License plate recognition

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

I got it ! problem is in LPR.ini . if a set the plate number of test_005 jpg (number = TS260AK) , the script STOPS. (it should send an email with ok, plate is known)
if a set a plate number different from that of test_005 jpg, email goes out , and i receive a warming of strange plate number .

and device V11 has the correct vale (TS260ak)
Last edited by drmacchi on Wed Jan 06, 2010 1:30 am, edited 1 time in total.
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

Uh, okay, please check two things:
- You did have a first line in the ini file that is just comment. Only the first have to be comment. Everything after that must be license plates.
- You have created two events. One if illegal license plate and the other one if legal license plate. Also please check your spelling (compare with the string within the script)!!
Alexander
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

"comment line" : does it need a special mark to underline that is a comment?

this is my LPR.INI

ALLOWED LICENSE PLATES
TS260AK
BY351HW
--------------> doesn't work

ALLOWED LICENSE PLATES
BY351HW
TS260AK
--------------> doesn't work

ALLOWED LICENSE PLATES
BY351HW
---------------------> it works
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

This is indeed what i meant. can you mail me the ini file? Because i don't have any problems.
Alexander
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

am i so stupid? i can not find the button to do attachment in PM , where is it? Sorry !
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

Sorry not in the PM functionality i guess. But i thought you would remember our earlier mail conversation about RFID in april 2009. I've send you an email.
Alexander
pietervanharen
Starting Member
Starting Member
Posts: 27
Joined: Tue Dec 29, 2009 11:56 am
Contact:

Re: License plate recognition

Post by pietervanharen »

I found this paper about LPR using ReCAPTCHA, maybe it's usefull to anyone here. ReCAPTCHA is a technique that was developed using CAPTCHA to digitize books.
running Domoticz
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

Lorenzo,

Don't have a problem with the file you'd send:
  • 6-1-2010 10:40:02 Event Event Trigger "Recognize license plate"
    6-1-2010 10:40:02 Event Running script in background: licenseplate.vb
    6-1-2010 10:40:06 Event Event Trigger "Illegal license plate detected"
    6-1-2010 10:40:18 Event Event Trigger "Recognize license plate"
    6-1-2010 10:40:18 Event Running script in background: licenseplate.vb
    6-1-2010 10:40:22 Event Event Trigger "Illegal license plate detected"
with this content of file LPR.ini

Code: Select all

ALLOWED LICENSE PLATES
BUH000KU
  • 6-1-2010 10:44:52 Event Event Trigger "Recognize license plate"
    6-1-2010 10:44:52 Event Running script in background: licenseplate.vb
    6-1-2010 10:44:56 Event Event Trigger "Legal license plate detected"
    6-1-2010 10:45:10 Event Event Trigger "Recognize license plate"
    6-1-2010 10:45:10 Event Running script in background: licenseplate.vb
    6-1-2010 10:45:13 Event Event Trigger "Legal license plate detected"
with this content of file LPR.ini

Code: Select all

ALLOWED LICENSE PLATES
BUH000KU
TS260AK
  • 6-1-2010 10:47:35 Event Event Trigger "Recognize license plate"
    6-1-2010 10:47:35 Event Running script in background: licenseplate.vb
    6-1-2010 10:47:39 Event Event Trigger "Legal license plate detected"
    6-1-2010 10:47:52 Event Event Trigger "Recognize license plate"
    6-1-2010 10:47:52 Event Running script in background: licenseplate.vb
    6-1-2010 10:47:56 Event Event Trigger "Legal license plate detected"
with this content of file LPR.ini

Code: Select all

ALLOWED LICENSE PLATES
TS260AK
BUH000KU
  • 6-1-2010 10:51:25 Event Event Trigger "Recognize license plate"
    6-1-2010 10:51:25 Event Running script in background: licenseplate.vb
    6-1-2010 10:51:28 Event Event Trigger "Legal license plate detected"
    6-1-2010 10:51:33 Event Event Trigger "Recognize license plate"
    6-1-2010 10:51:33 Event Running script in background: licenseplate.vb
    6-1-2010 10:51:37 Event Event Trigger "Legal license plate detected"
with this content of file LPR.ini

Code: Select all

ALLOWED LICENSE PLATES
TS260AK
So it must be something else. Please add the hs.writelog as i've stated earlier. Hopefully we find something, but at the moment i don't have any problems!
Alexander
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

Ciao, it works. It was a problem of my HS. today i had time to setup a new server with HS-PRO , license was waiting to be installed since 3 months. It works perfectly. Very good job Alexander and many thanks.
Now it's time to elaborate the attachment.
Then i should find a webcam with high resolution , because i think that blur will obstacle plate's detection. mOBOTIX....... :mrgreen:
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

oh oh , just a little problem : the device v11 is not updated.
with the new installation it has never been updated (on the other pc it was)
i did :
1) changed address of device and setting in vb script
2) changed type from virtual to others
3) deleted and created again

not solved.
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

Lorenzo,

What do you mean with not updated? The value doesn't change (other license plate) or the last update column with the time & date.
No log errors?
Alexander
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

no error log. script goes on and i see email sent.
i do receive email
but v11 is not updated
Attachments
alex.jpg
alex.jpg (126.22 KiB) Viewed 13759 times
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Re: License plate recognition

Post by Alexander »

change device to status only. That will properly not fix is, but its a better choose.
does the file c:\windows\ocrLPR.txt exist and if so what is the content?
Alexander
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

oh no ! if i edit lpr.ini and delete plates number (i have only the first line ALLOWED LICENSE PLATES) i still receive email

email received contains "legal plate" if in your vb script comes FIRST

If instr(uCase(strFileContentConfig), uCase(strFileContentLPR.Trim)) > 0 Then
hs.TriggerEvent("Legal license plate detected") Else
hs.TriggerEvent("Illegal license plate detected")

or
email received contains "Illegal plate" if in your vb script comes FIRST

If instr(uCase(strFileContentConfig), uCase(strFileContentLPR.Trim)) > 0 Then
hs.TriggerEvent("Illegal license plate detected") Else
hs.TriggerEvent("Legal license plate detected")

So it seams taking " the first line " coming from the script , without managing informations
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: License plate recognition

Post by drmacchi »

Alexander wrote:change device to status only. That will properly not fix is, but its a better choose.
does the file c:\windows\ocrLPR.txt exist and if so what is the content?
ocrLPR.txt exist , but it's empty. file creation is 06/01/2010 23.04
Post Reply

Return to “Webcams & Camera Stuff Forum”