Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


aw747

10 posts

Wannabe Geek


#318914 4-Mar-2025 12:46
Send private message

Hi All, 

A little project I have been working on recently, after getting frustrated with the number of vehicles speeding down our road. 

Problem Statement: 
How to capture the number plate of vehicles that have no regard for the 50 km/hr posted speed in our street. 
With no footpaths and people walking their dogs, riding their horses, it won't be long before a serious accident occurs. 

What technologies are available:
Radar - Available and not too expensive
Outdoor Security Camera - Found in a box in the garage
ESP32 - Have a few of these laying around
Computer for processing - Yep can repurpose an old box with linux


I looked at different technologies for speed detection. 

1) Camera and then map a known distance on the road and then use opencv to calculate the distance travelled by a vehicle over a certain time. 
* Not very reliable due to dropped frames from network camera and sun glare etc. 

2) Vehicle crossing two points (detectors) and then calculating the time to travel etc. 
* Only have access to my side of the road, nowhere to put reflectors in etc. 

3) Radar 24Ghz - LD2451 from HLK
*Not too expensive
*Small
*Easy enough to setup and read with ESP32
*Pretty accurate (some claim 1km/hr error rate if setup parallel to road surface.


LD2451 Module
Easy to get hold of 'Aliexpress'
Outputs serial data 
Lots of options to 'tweak' the output (angle, min speed, sensitivity)
Legal to use as low power


The LD2451 module is connected to an esp32 via the second serial input.
The ESP32 takes the data stream from the ld2451 module, and converts it to 'something useful'. Decodes the packets and outputs
Speed - Distance - Angle - SNR

The ESP32 then sends this via a webhook to the linux machine


On the linux machine I have a webhook listener 
The webhook listener is also capturing a continual 5 second camera buffer.  Camera is mounted on fence looking up the road. 
When the webhook listener gets speed information from the esp32 it buffers this also, waiting for the packet transmission to end and then does the following...

Looks at the speeds received
Balances them and gives them a weight according to the SNR.  Better SNR then a higher rating value. 
Takes the values, then as the sensor is not completely parallel to the road, I apply an offset using some formulas to come up with the best speed.

It then takes the video capture, and saves it as an mp4 of the event.


I then have another script that takes the video, looks through it and using opencv decides on the best frame to capture a still image.  It then uses Yolo to extract the numberplate. 
The numberplate is then OCR matched on the machine using Panda OCR

The script will output an image with the date/time - Estimated Speed and the Numberplate. 
It also outputs all data to a CSV file as well. 



Accuracy: 
Having driven the road in two different vehicles and using Ways on phone and doing 30 and 50, both times and both directions the accuracy was within 2 km/hr. 
It is never going to be exact speed, but gives a good indication of how the road is being 'used' . 





View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2 | 3
Silvrav
469 posts

Ultimate Geek

ID Verified

  #3349982 4-Mar-2025 13:05
Send private message

Nice side project, but what is the ultimate goal here? Its not going to stop people from speeding.




aw747

10 posts

Wannabe Geek


  #3349987 4-Mar-2025 13:14
Send private message

Silvrav:

 

Nice side project, but what is the ultimate goal here? Its not going to stop people from speeding.

 



You are 100% correct. 

From any business vehicles identified I intend to inform their companies. 
Particularly the ones that have the 'How is my driving' stickers

Police have already been involved in one incident, and I intend to follow up with other cases.





shanes
258 posts

Ultimate Geek

Lifetime subscriber

  #3350004 4-Mar-2025 14:26
Send private message

Nice project!!

 

Quite a coincidence, a courier just delivered an LD 2451 for a project I am doing that needs to detect the presence of a car.


nitro
656 posts

Ultimate Geek


  #3350008 4-Mar-2025 14:50
Send private message

i'm gonna join the "cool project" comments, for sure. but i don't know that you can expect any action from this.

 

 


mattwnz
20141 posts

Uber Geek


  #3350018 4-Mar-2025 16:27
Send private message

aw747:

 

Silvrav:

 

Nice side project, but what is the ultimate goal here? Its not going to stop people from speeding.

 



You are 100% correct. 

From any business vehicles identified I intend to inform their companies. 
Particularly the ones that have the 'How is my driving' stickers

Police have already been involved in one incident, and I intend to follow up with other cases.


 

 

 

 

Can't police ticket someone who is obviously speeding based on their visible speed, even if they aren't using a speed camera? eg the police maybe walking down the street and then see a car obviously speeding. If that is the case your camera could pick up those people and be reported to police?.


Silvrav
469 posts

Ultimate Geek

ID Verified

  #3350020 4-Mar-2025 16:34
Send private message

mattwnz:

 

aw747:

 

Silvrav:

 

Nice side project, but what is the ultimate goal here? Its not going to stop people from speeding.

 



You are 100% correct. 

From any business vehicles identified I intend to inform their companies. 
Particularly the ones that have the 'How is my driving' stickers

Police have already been involved in one incident, and I intend to follow up with other cases.


 

 

 

 

Can't police ticket someone who is obviously speeding based on their visible speed, even if they aren't using a speed camera? eg the police maybe walking down the street and then see a car obviously speeding. If that is the case your camera could pick up those people and be reported to police?.

 

 

 

 

and be challenged in court around OP qualifications to program speed camera's and licenses to operate said equipment. Not to mention for police to enforce it it has to be capture by approved agencies/operators and equipment.

 

 

 

I doubt even the companies will pay much attention to it.


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
aw747

10 posts

Wannabe Geek


  #3350023 4-Mar-2025 16:37
Send private message

No harm in police 'having a chat' to them.  

Can also be used to say to the police, instead of the once a week if you are lucky drive down my street, can you pay a bit more attention to it.

Project was designed to bring attention to the problem, not to have people 'prosecuted in court' 


RunningMan
8953 posts

Uber Geek


  #3350034 4-Mar-2025 17:01
Send private message

What are the privacy implications of collecting and storing information such as rego numbers?


aw747

10 posts

Wannabe Geek


  #3350042 4-Mar-2025 17:21
Send private message

From what I have researched, it is not illegal to record and store the number plates. 

It is a public road
No other information is stored other than the date/time - estimated speed - OCR values. 

Number plates alone aren't personal info under the Privacy Act.
Estimated speed is just as it says
OCR value is of number plate. 
No other lookups are done to identify an individual.  They are just vehicles on a road, which is public space and as an individual have you have every right to record in public.  Different if this is an agency or business. 

No identifying information is ever shared on any platform including social media. 








SirHumphreyAppleby
2844 posts

Uber Geek


  #3350046 4-Mar-2025 17:35
Send private message

r0bbie:

 

How about a brought one

 

 

Do you have any experience with these?

 

We need to replace our gate camera which was configured so we could read plates day and night. A dedicated plate camera would be great, especially if the OCR is accurate and can be easily accessed (ideally via MQTT).


MadEngineer
4271 posts

Uber Geek

Trusted

  #3350053 4-Mar-2025 18:03
Send private message

Interesting project, just don’t get yourself into the realm of trying to be a policeman.

 

See if you can download the list of stolen vehicles from the nzpolice website and have it look for any entries. 

 

https://www.police.govt.nz/can-you-help-us/stolen-vehicles?nondesktop





You're not on Atlantis anymore, Duncan Idaho.

tweake
2391 posts

Uber Geek


  #3350057 4-Mar-2025 18:18
Send private message

this has been done before.

 

downside is police can't use the footage to prosecute for speeding as it needs to be a certified system.

 

your best option is to get the license plate and pass details onto the roadwatch site https://forms.police.govt.nz/forms/community-roadwatch . make sure you id the vehicles correctly and beware there are tons of cars with incorrect colors listed and many cars with fake plates. usually run it through carjam first.

 

just be aware that police dgaf and may harass you to stop you putting in complaints. the roadwatch may get enough of the right attention especially if you pick up stolen vehicles, known drunk/drug drivers  etc or shows a regular problem. otherwise the odds of police doing anything is practically zero. 


johno1234
2793 posts

Uber Geek


  #3350059 4-Mar-2025 18:21
Send private message

RunningMan:

 

What are the privacy implications of collecting and storing information such as rego numbers?

 

 

I would have thought none. It is public information as anyone can see it with their own eyes.


johno1234
2793 posts

Uber Geek


  #3350060 4-Mar-2025 18:23
Send private message

If I were a business fleet owner and I heard my branded vehicles were pissing off members of the public I certainly would be having a wee chat with the driver. On the other hand people I know who manage fleets with vehicle trackers installed routinely ignore the speeding reports that they receive.

 

 


 1 | 2 | 3
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.