License plate recognition
Moderator: Esteban
Re: License plate recognition
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)
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.
Re: License plate recognition
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)!!
- 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
Re: License plate recognition
"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
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
This is indeed what i meant. can you mail me the ini file? Because i don't have any problems.
Alexander
Re: License plate recognition
am i so stupid? i can not find the button to do attachment in PM , where is it? Sorry !
Re: License plate recognition
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
-
- Starting Member
- Posts: 27
- Joined: Tue Dec 29, 2009 11:56 am
- Contact:
Re: License plate recognition
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
Re: License plate recognition
Lorenzo,
Don't have a problem with the file you'd send:
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!
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"
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"
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"
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"
Code: Select all
ALLOWED LICENSE PLATES
TS260AK
Alexander
Re: License plate recognition
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.......
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.......

Re: License plate recognition
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.
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
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?
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
Re: License plate recognition
no error log. script goes on and i see email sent.
i do receive email
but v11 is not updated
i do receive email
but v11 is not updated
- Attachments
-
- alex.jpg (126.22 KiB) Viewed 15950 times
Re: License plate recognition
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?
does the file c:\windows\ocrLPR.txt exist and if so what is the content?
Alexander
Re: License plate recognition
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
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
ocrLPR.txt exist , but it's empty. file creation is 06/01/2010 23.04Alexander 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?