Page 3 of 4

Re: License plate recognition

Posted: Wed Jan 06, 2010 1:24 am
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)

Re: License plate recognition

Posted: Wed Jan 06, 2010 1:28 am
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)!!

Re: License plate recognition

Posted: Wed Jan 06, 2010 1:39 am
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

Re: License plate recognition

Posted: Wed Jan 06, 2010 1:42 am
by Alexander
This is indeed what i meant. can you mail me the ini file? Because i don't have any problems.

Re: License plate recognition

Posted: Wed Jan 06, 2010 1:55 am
by drmacchi
am i so stupid? i can not find the button to do attachment in PM , where is it? Sorry !

Re: License plate recognition

Posted: Wed Jan 06, 2010 2:09 am
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.

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:14 am
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.

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:41 am
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!

Re: License plate recognition

Posted: Wed Jan 06, 2010 9:03 pm
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:

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:09 pm
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.

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:16 pm
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?

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:33 pm
by drmacchi
no error log. script goes on and i see email sent.
i do receive email
but v11 is not updated

Re: License plate recognition

Posted: Wed Jan 06, 2010 11:54 pm
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?

Re: License plate recognition

Posted: Thu Jan 07, 2010 12:04 am
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

Re: License plate recognition

Posted: Thu Jan 07, 2010 12:07 am
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