Page 4 of 4 FirstFirst 1234
Results 31 to 39 of 39

Thread: Automatic Number Plate Recognition (anpr)

  1. #31
    Maximum Bitrate tempgp's Avatar
    Join Date
    Jun 2007
    Posts
    663
    here in NYPD they got system called raidoff or something like that ... thats 2 IR cameras mounted on the trunk... at slow speed they have 98% accuracy (slow speed 5mph)

    Im playing around to get the same results w/ smaller cameras... for now testing commercial demos of LPR
    Automotive LED Headlight Module High Power VS HID NEW
    Acura / Honda A/V CarPC Adapter GA-NET+ - Convert your native navi DVD unit to CarPC + Dash buttons are usable in car pc!!!
    Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin

  2. #32
    Newbie
    Join Date
    Jun 2010
    Posts
    5

    Get plate patches from video

    Would it not be easier to have a routine to scaneach frame of video for an actual number plate, then save the plate patch to a folder, then do the OCR.Just a thought,but as i'mnot a programmer i dont know if its possible.

    Rgds

  3. #33
    Raw Wave
    Join Date
    Nov 2009
    Posts
    2,116
    That is the problem - determining what is the number plate.
    Relatively speaking, the OCR is not a problem. (Just run the OCR on the entire frame!)

  4. #34
    Newbie
    Join Date
    Jun 2010
    Posts
    5

    Plate patch grab

    If you do ocr on the full image won't it ocr other text that maybe on the image such as livery on the side, front or back of vehicles, also how would you get the camera to save images of the vehicles as they pass through the camera field of view, or do you mean do OCR on every frame from the camera.
    Why not just search for rectangles with a minimum maximum size and save them frames maybe.But I suppose you would need almost dead straight images because of skew and perspective..... God its complicated,,,,,,, Doh!!!

    Rgds
    YandMan

  5. #35
    Maximum Bitrate tempgp's Avatar
    Join Date
    Jun 2007
    Posts
    663
    Quote Originally Posted by yandman View Post
    Why not just search for rectangles with a minimum maximum size and save them frames maybe.But I suppose you would need almost dead straight images because of skew and perspective..... God its complicated,,,,,,, Doh!!!
    Thats how LPR works first your apply edge filter to analize edges ofbjects that are on the pix then you try to find whitch edge can be a rectangle given that you know your countries LP dimensions, and then once you found possible object you do OCR

    Also every day there more and more open source attempts to do this, once some one will do good lib I will add LPR to mt car I alredy got good camera for this
    Automotive LED Headlight Module High Power VS HID NEW
    Acura / Honda A/V CarPC Adapter GA-NET+ - Convert your native navi DVD unit to CarPC + Dash buttons are usable in car pc!!!
    Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin

  6. #36
    Raw Wave
    Join Date
    Nov 2009
    Posts
    2,116
    Yep - OCR will pick lots of stuff. But then match to vehicle databases and....

    But I was merely illustrating.

    As for size - that assumes known distance....


    It is and can be done. But it's not a case of using "simple" edge detection (which is usually contrast-edge detection, not shape-edge detection).
    Compared to visual recognition that not only identifies a random face in a random background, tracks and zooms in on it, and does the unique-ID "point distancing" analysis, number-plate recognition is extremely easy.

  7. #37
    Newbie
    Join Date
    Dec 2010
    Posts
    1

    Arrow

    @GarGoil - Since you are in NC, what XML and Neural framework are you using for US recognition? I've been trying several XML and training patches with limited success here in WA for use with JavaANPR.

    Quote Originally Posted by GarGoil View Post
    Just for laughs... Here is a Perl script that I run while taking photos of plates that looks for images/screenshots from my camera and runs them through the JavaANPR application and records my current GPS location with a date and time stamp. I execute this script from the \javaanpr\dist folder. You will need ActiveState ActivePerl. You will also need the GPS::NMEA module installed. Just for fun!

    ## Script for automatic processing of (license plates) number plates from a CarPC camera using JavaANPR and a GPS unit


    ## Location of image captures jpg or png files
    $path = 'C:\\Documents and Settings\\UserName\\My Documents\\My Pictures\\';

    ## Destination to place images processed by javaanpr
    $pathdest = 'C:\\Plates\\';

    ## File ext. to search for
    $fileextwewant = "png";

    ## GPS module
    use GPS::NMEA;

    ## Connect to our GPS device
    my $gps = GPS::NMEA->new(Port => 'COM4', # or COM5: or ev/ttyS0 Baud => 4800);




    while (1) {

    ## Check every two seconds for a new image
    sleep(2);

    ## Open the folder containing the images
    opendir (DIR, "$path") or die "Couldn't open directory, $!";

    ## Get a list of the files in the folder and place the list in a array
    @file = readdir DIR;
    $lengthoflist = @file;


    ## I can count!
    $counter = 0;


    while ($counter <= $lengthoflist)
    {


    $fileext = $file[$counter];

    ## Get the last three chars of the file name (the ext)
    $fileext = substr($fileext, -3);

    ## Check if the file is a file we want to process
    if ($fileext eq $fileextwewant) {

    ## Load the File module for moving the files around
    use File::Copy;

    ## Create the name of the destination folder, it will be the image name with ANPR added to the front
    $newfoldername = "ANPR$file[$counter]";
    $newfoldernamewithpath = "$pathdest$newfoldername";

    ## Issue the OS command to make the folder
    system("mkdir $newfoldernamewithpath");

    ## We will now move the file from the screenshot folder to is destination
    $oldlocation = "$path$file[$counter]";
    $newlocation = "$newfoldernamewithpath\\$file[$counter]";
    move($oldlocation, $newlocation);

    ## Give you something to read while waiting...
    print "Processing Image $fileextwewant....\n";

    ## Call the JavaANPR application to process the image file and generate a report
    system("\"C:\\PROGRA~1\\Java\\jre1.6.0_04\\bin\\ja va.exe -jar C:\\javaanpr\\dist\\javaanpr.jar -recognize -i $newlocation -o $newfoldernamewithpath\\\"");

    ## Call the GPS sub routine to get our current position
    &get_gps_position;

    ## More stuff to read...
    print "Processing Complete!\n";



    }


    $counter++;
    }

    ## Close the folder we opened
    closedir DIR;

    print "Searching for $fileextwewant files...\n";

    }




    sub get_gps_position {

    ## Use the GPS module to get the current GPS position
    ($ns,$lat,$ew,$lon) = $gps->get_position;


    ## Get the current date and time
    ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isd st) = localtime();


    $mday = $mday + 1;
    $mon = $mon + 1;
    $year = $year + 1900;

    $gpstxtfilename = "GPSStamp.txt";

    ## Write the GPS position and date time stamp to a text file in the folder with the javaanpr report
    open FILE, ">$newfoldernamewithpath\\$gpstxtfilename" or die $!;
    print FILE "Time: $hour:$min.$sec Date: $mday-$mon-$year GPS: $ns $lat $ew $lon\n";
    close FILE;


    }

  8. #38
    Maximum Bitrate tempgp's Avatar
    Join Date
    Jun 2007
    Posts
    663
    that code seams like just deting Date and move photos around
    Automotive LED Headlight Module High Power VS HID NEW
    Acura / Honda A/V CarPC Adapter GA-NET+ - Convert your native navi DVD unit to CarPC + Dash buttons are usable in car pc!!!
    Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin

  9. #39
    Newbie
    Join Date
    Nov 2011
    Posts
    1
    hey friend can u mail me d java code for this , as am too having this topic as my project . if possible plz do dis favour.
    mail me at shijoraju123@yahoo.com

    thanku

Page 4 of 4 FirstFirst 1234

Similar Threads

  1. Release new phoco integration preview
    By Robby BMW in forum Road Runner
    Replies: 544
    Last Post: 09-12-2009, 05:29 AM
  2. ALPR - Automatic License Plate Recognition
    By chuckster in forum General MP3Car Discussion
    Replies: 3
    Last Post: 01-12-2007, 12:31 PM
  3. ME 2.0 Official Bug Reports
    By phat_bastard in forum ME Archive
    Replies: 67
    Last Post: 01-31-2004, 06:27 PM
  4. Error #91
    By SiGmA_X in forum ME Archive
    Replies: 18
    Last Post: 01-08-2004, 09:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •