Apr-28-2022, 06:49 AM
Hello,
I'm trying to write a code for detecting license plate number ,
until now I took a saved image and did all the testing on it
I want to check the code "Live" - taking image automatically from PI camera
how do I do this ?
I have found this simple example
maybe to add a PIR sensor or something ? is this a good solution ?
do I run this part every 5 seconds ~ then what ?
Thanks ,
I'm trying to write a code for detecting license plate number ,
until now I took a saved image and did all the testing on it
I want to check the code "Live" - taking image automatically from PI camera
how do I do this ?
I have found this simple example
from picamera import PiCamera
import time
camera = PiCamera()
camera.resolution = (1280, 720)
camera.vflip = True
camera.contrast = 10
camera.image_effect = "watercolor"
time.sleep(2)
camera.capture("/home/pi/Pictures/img.jpg")
print("Done.")my question is how do I know I got something and need to analyze it ? and didn't take image of empty road ?maybe to add a PIR sensor or something ? is this a good solution ?
do I run this part every 5 seconds ~ then what ?
Thanks ,
