Python Forum
Get image from PI camera and analyze it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get image from PI camera and analyze it
#1
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
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 ,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create RTSP stream from camera? korenron 1 3,265 Jan-04-2022, 10:38 AM
Last Post: Larz60+
  How to get OpenCV to display entire camera frame? George713 1 3,267 Aug-12-2021, 02:45 AM
Last Post: Pedroski55
  analyze list davidm 5 3,270 Dec-03-2020, 03:42 PM
Last Post: Larz60+
  Wifi Camera Connection MeenAg 2 3,115 Oct-02-2020, 06:35 PM
Last Post: MeenAg
  mapping-camera-coordinates-to-a-2d-floor-plan fauveboyxuuki 0 2,543 Dec-10-2019, 10:34 PM
Last Post: fauveboyxuuki
  Controling a Canon dslr camera on Windows Leon 16 19,028 Nov-22-2019, 09:12 PM
Last Post: Larz60+
  New to Python, help with saving image from camera tantony 2 3,862 Sep-13-2019, 05:19 PM
Last Post: tantony
  pi camera stream is upside down delta1071 3 5,752 Sep-11-2019, 11:35 AM
Last Post: metulburr
  Camera animation to Text file (CINEMA 4D) vbz 0 2,314 Aug-13-2019, 07:39 AM
Last Post: vbz
  How to extract temperature value of pixels of a thermal image recorded by IR camera hamacvan 1 14,458 Jan-13-2019, 06:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020