Advice On Building a Automobile Detector
Smcneese
Posts: 5
I am looking for advice from all the Parallax experts. I am working on a project that uses License Plate Recognition technology to inventory a parking lot. LPR systems typically trigger recognition via motion detection or an external trigger like a loop detector or IR beam when a car passes in front of the space being monitored. In our solution, we have the LPR camera mounted on a golf cart. Using motion detection is rendered useless since motion is 100% of the time while moving causing the system to try and scan for plates on every frame of video captured - very slow.
When writing the software I included the ability to snap a picture and process for a plate. This works and is very fast but on a parking lot with 1500 vehicles it becomes very tedious to press a button that many times for each patrol of the lot. I can also trigger this snapshot to occur from an external IO switch and that is where I need some advice.
When scanning, the vehicle license plates are between 4-6 feet from the LPR camera. Typical space between vehicles is 2-3 feet. I would like to build a device that can sense when the LPR camera is behind the vehicle versus between or out in the open away from vehicles. My thought was to use the Ping ultrasonic sensor with a propeller or basic stamp microcontroller. Using the distance measurement to trigger a relay to close the switch to trigger the snapshot.
I am a software developer by trade and an amature electronic hobbyist. I have never used microcontrollers but believe this would be a perfect solution for our problem. Can someone recommend which microcontroller would be a good fit and/or a development board I should use? Looking though some code examples for both microcontrollers, I feel that I should be able to figure out the programming. I am proficient in C/C++, C#, JAVA and Basic.
Sorry for the long explanation but I hope someone can point me in the right direction.
Steve
When writing the software I included the ability to snap a picture and process for a plate. This works and is very fast but on a parking lot with 1500 vehicles it becomes very tedious to press a button that many times for each patrol of the lot. I can also trigger this snapshot to occur from an external IO switch and that is where I need some advice.
When scanning, the vehicle license plates are between 4-6 feet from the LPR camera. Typical space between vehicles is 2-3 feet. I would like to build a device that can sense when the LPR camera is behind the vehicle versus between or out in the open away from vehicles. My thought was to use the Ping ultrasonic sensor with a propeller or basic stamp microcontroller. Using the distance measurement to trigger a relay to close the switch to trigger the snapshot.
I am a software developer by trade and an amature electronic hobbyist. I have never used microcontrollers but believe this would be a perfect solution for our problem. Can someone recommend which microcontroller would be a good fit and/or a development board I should use? Looking though some code examples for both microcontrollers, I feel that I should be able to figure out the programming. I am proficient in C/C++, C#, JAVA and Basic.
Sorry for the long explanation but I hope someone can point me in the right direction.
Steve
Comments
Hi Steve,
I'm certainly no expert but maybe consider that many license plates are highly reflective. Perhaps you can direct a kind of infrared strobe that can pulse the area in front of your camera and have an IR sensor that is calibrated for license plate reflections. It probably won't work 100% but it might be worth a try. I don't know if your camera has some sort of autofocus (which might use IR), so you would have to test the system under various situations.
After looking further at the Ping, I'm not sure it is a good choice because of temperature variations during operation. Maybe the laser ranger finder would be a better choice?
It scans license plates, checks the numbers against central registers and flags them if there's one that needs attention, in real-time.
From what I understand, the system uses 'brute force' to find the plates in the video feed.
No PING, no laser rangefinders, and yeah, it handles traffic at 50mph...
Edit: Sorry ElectricAye you beat me to this.
The device I need to build does not need to find the license plate - it just needs to detect a large object within x feet of the camera.
Steve
At the new Portland, Oregon airport (PDX) parking garage, there is an electronic sensor above EVERY parking space. If all the spaces are taken, then that parking level will show full to people entering the parking garage - thus they can bypass that floor and continue to the next floor. Here is some info on that...
http://www.portofportland.com/Environmental/Envrnmntl_PDXPrkng.htm
The Stamp or other processor would constantly compare the distance readings and trigger when "something" was seen by both sensors as being about the same distance away, but closer than 10 feet. If one sensor was seeing the slot between cars, nothing would happen. If both sensors saw the same long distance, that's an empty space.
Cheers,
Magnetic sensing as used in metal detectors is probably out due to the distance.
Magnetic sensing of the metal mass of the cars may not work due to the proximity of the other vehicles.
One of the following methods might work:
Laser ranging is most likely to work.
Measuring reflected IR intensity.
Ultrasonic ranging if there is not too much ultrasonic background noise.
Microwave ranging.
Magnetic sensing of changes to the earth's field.
One of the range measuring methods seems like the best bet. By placing the camera 2 - 3 feet in front or behind the sensor and triggering it after a sudden increase in range is followed by a sudden decrease the license plate should be well within the camera FOV.
Just an offbeat idea to try.
I think the laser range finder is better than the ping))) since we are dealing with temperatures ranging from the teens to well over 110 degrees F. If I use propeller, can you recommend a board or kit to use that will interface with the laser ranger finder board easily? Can you also give me an idea how the recommended board could trigger a relay to close the switch on detection.
I appreciate all the discussion on this. It has helped me greatly.
Steve
Or a cheaper solution is to have a soft foam rod hinged so that it actuates a microswitch when it hits a car and then springs back when the car is passed.you may have to drive closer to the cars for this to work (as long as the buggy driver doesn't drink alcohol you should be ok)
you could have a reflective disc placed at each bay that you drive over (or on a ceiling if exists) and the buggy reads the disc and triggers the camera
Or if you want it only to take a pic when a car is parked in the bay, have the cars weight hinge the reflective disc into view of the buggy sensor ( might not work with trikes and three wheeled cars or drivers that park badly )
Cheers,