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


Messages In This Thread
Get image from PI camera and analyze it - by korenron - Apr-28-2022, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up How to analyze a 300ms delay issue in VLLM SkyLee 1 627 Aug-28-2024, 07:07 AM
Last Post: SkyLee
Exclamation Multi-Threaded Camera Feed issue Khajababa69 0 1,431 May-05-2024, 09:44 PM
Last Post: Khajababa69
  Create RTSP stream from camera? korenron 1 4,442 Jan-04-2022, 10:38 AM
Last Post: Larz60+
  How to get OpenCV to display entire camera frame? George713 1 4,362 Aug-12-2021, 02:45 AM
Last Post: Pedroski55
  analyze list davidm 5 4,301 Dec-03-2020, 03:42 PM
Last Post: Larz60+
  Wifi Camera Connection MeenAg 2 4,381 Oct-02-2020, 06:35 PM
Last Post: MeenAg
  mapping-camera-coordinates-to-a-2d-floor-plan fauveboyxuuki 0 3,271 Dec-10-2019, 10:34 PM
Last Post: fauveboyxuuki
  Controling a Canon dslr camera on Windows Leon 16 24,638 Nov-22-2019, 09:12 PM
Last Post: Larz60+
  New to Python, help with saving image from camera tantony 2 5,493 Sep-13-2019, 05:19 PM
Last Post: tantony
  pi camera stream is upside down delta1071 3 7,048 Sep-11-2019, 11:35 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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