im useing raspberry pi 3 with ultrasonic sensor and normal usb camera . so i will connect the raspberry pi to AZURE IOT HUB so ive setted the ultrasonic sensor in a place so if any car pass that place with very shot time so the camera will take picture and send it to Iot hub and than to azure database so . i want to know if this possible if it is . can anyone make code for me please :/ cause i have very short time and im busy on the other side of project and cause im new into this one so its will take time cause i have to search programs etc so i hope i get a nice replay :}
closed as too broad by Aurora0001, Milliways, Steve Robillard, Dmitry Grigoryev, Darth Vader♦ Mar 28 at 16:09
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
This can be good start for you. This example gives the time and distance calculations. You can trigger the Image capture of camera with your specified time.
I'd look at somethign like Motion https://motion-project.github.io/ to watch the camera stream and save the image if motion is detected in view of the camera. Motion can read the pi camera.
Getting the detected speed from a sensor and writing that value onto the image as an overlay would make it look more professional.
Saving images of vehicles that aren't speeding could be useful data too, depending on your requirements.
A quick google returns this https://gregtinkers.wordpress.com/2016/03/25/car-speed-detector/ as a starting point, but the example images do not capture a licence plate and do not show date/time overlay.
The speed sensor you choose will determine other things, so start there and progress forward.