Real-time plate detection from a webcam using Python

2,707 views
Skip to first unread message

Lilian Cabé

unread,
Jun 29, 2016, 9:13:03 AM6/29/16
to OpenALPR
Hi,

I'm currently trying to detect licence plate from the video stream of my webcam, using the Python ALPR Api. What I am doing for the moment, is using OpenCV to extract a frame from the video stream, and then use it with OpenALPR. 
My question is : Is it possible to directly use the video stream from my webcam as an input to OpenALPR (just like with the command lines) ? Instead of taking pictures from the webcam ? Because i guess that ALPR works better with a video stream than just static pictures.


Matt

unread,
Jul 3, 2016, 11:29:25 AM7/3/16
to OpenALPR
"alpr webcam" should  read from your webcam (assumes /dev/video0).  alprd can also use a webcam.

Lilian Cabé

unread,
Jul 6, 2016, 8:27:00 AM7/6/16
to OpenALPR
Thanks Matt for you answer.

My question is, how to do the same using the Python API ? I don't want to use the command lines ...

Matt

unread,
Jul 6, 2016, 11:07:51 PM7/6/16
to OpenALPR
Probably using the OpenCV API to pull from your webcam and then sending those images to OpenALPR would be the easiest.  Here's a helpful tutorial:
Reply all
Reply to author
Forward
0 new messages