Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Purpose of script

Script

1

Start of Auto-Uragan program module

DoReact("ULPR","1","START")

2

Shutdown of Auto-Uragan program module

DoReact("ULPR","1","STOP")

3

Activation of window of operator request by results of recognized vehicle license plate found in the external database

OnEvent("LPRDB","1","SEARCH_RESULT") { DoReact("DIALOG","black_list","RUN","number<"number">,comment<" + comment + ">,date<" + date + ">"); }

4

Video convertation to AVI format with record of vehicle, license plate of which is recognized

OnEvent("ULPR","1","NUMBER_DETECTED")
{if(strequal(plate,"с590ае97")){[time1=time;DoReact("CAM","1","REC_STOP");Sleep(500);DoReact("CAM","1","REC");t1=extract_substr(time1,":",0);t2=extract_substr(time1,":",1);t3=extract_substr(time1,":",2);t3=str(t3-1);
if (atof(t3)<0) {t3=str(60+t3);t2=str(t2-1);}if (atof(t2)<0) {t2=59;t1=str(t1-1);}if (atof(t1)<0) {t1=23;}
if (atof(t3)<10) {t3=strltrim(" 0"+t3);}if (atof(t2)<10) {t2=strltrim(" 0"+t2);}if (atof(t1)<10) {t1=strltrim(" 0"+t1);}
time2=t1+":"t2":"+t3;Sleep(1000);DoCommand("c:\intellect\tools\converter.exe c:\backup\"date"_"t1+t2+t3".avi,1,"date" "time2","date" "+time1);]}}

5

Raising of turnpike

OnEvent("LPRDB","1","SEARCH_RESULT") { [ DoReact("GRELE","2","ON"); Sleep(5000); DoReact("GRELE","2","OFF"); ] }

6

Manual start of recognition for the CARMEN-parking module.

Manual stop of recognition for CARMEN-parking module. It is in use if the Parking mode disabled.

Info
titleNote.

The Parking mode enabled when the value of HKLM\SOFTWARE\ITV\INTELLECT\URMLPR\ParkingMode registry key is 1. In the Parking mode the recognition is stopped if the license plate is not recognized in the frame. If the Parking mode disabled, the recognition continues until the command of recognition stopping will not be entered.

For the CARMEN-parking module the time of one frame processing can run to 30 seconds, i.e. big delay of LP recognition will be detected while the live video recognizing. Manufacturers of the CARMEN-parking module recommend starting the recognition by some trigger (motion in the frame, vehicle appearance in the frame, operator command – as in this example, etc.). Special detections/radars which can be integrated with the help of Sensor object also can be trigger.

Info
titleNote.

The Parking mode operates with all recognition modules.

OnEvent("MACRO","1","RUN"){
DoReactStr("ULPR","1","MD_START","");
}
OnEvent("MACRO","2","RUN"){
DoReactStr("ULPR","1","MD_STOP","");
}