Page 1 of 4 1234 LastLast
Results 1 to 10 of 39

Thread: Automatic Number Plate Recognition (anpr)

  1. #1
    Newbie
    Join Date
    Feb 2007
    Posts
    2

    Thumbs up Automatic Number Plate Recognition (anpr)

    i got a idea today i want to know if any one is interested for building a app for anpr and have a database of all the undercover police cars and have a website with lists of them by country

    here is a java app i found to do it but needs some work to get it webcam and to use databases and then alarm to say one has been spoted




    i got the full source files for it and it open source

    i haven't much i idea about java but am good with building the site for it

    let me know what you think

  2. #2
    Low Bitrate
    Join Date
    May 2008
    Posts
    77
    Why would you want to know the reg's of all the undercover police cars?

    j

  3. #3
    Variable Bitrate AlienEclipse's Avatar
    Join Date
    Jul 2003
    Location
    Dunedin - New Zealand
    Posts
    424
    Quote Originally Posted by Greeno2k8 View Post
    Why would you want to know the reg's of all the undercover police cars?

    j
    I would guess, so you could rcognise them. Provided you have excellent eye sight and could see them before they see you.
    We are, will have and forever will be...
    But not tommorrow!

  4. #4
    Variable Bitrate NeonDev's Avatar
    Join Date
    Feb 2008
    Posts
    431
    no, his idea was to have a program running in conjunction with a webcam to auto detect and alert to police cars.

    1. I don't know a web cam with decent enough quality for this to work well

    2. seems like a LOT of work for VERY little gain

    3. you could never be certain that the database was 100% up to date.

    4. why not just use a regular radar/laser/whatever detector?

    5. how about just driving like a sane person?
    check us out at: www.neonboombox.com

  5. #5
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,949
    It's impossible to have a database of undercover police cars, actually.
    Coming from an undercover cop, I know the cars are registered to the undercover aliases and are no different than any other vehicle registration.

    Now, it's possible you could compile a list of unmarked police vehicles, which are a whole other matter entirely.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  6. #6
    Newbie
    Join Date
    Apr 2006
    Location
    Greensboro, NC
    Posts
    12

    Just for fun ANPR

    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;


    }
    VIA Epia M10000 MB
    512 DDR RAM
    40G 2.5 HDD
    M2-ATX
    SP7 7" VGA TS dash
    Lilliput 7" RCA rear
    Holux GM-210 GPS
    Linksys WUSB54G
    Mini-Key USB KB
    CarPCSub 0.71 Win32 + 0.71L Linux
    GPS to Subtitles Recorder
    http://carpcsub.sourceforge.net

  7. #7
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,560
    will this work in linux?
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  8. #8
    Newbie
    Join Date
    Apr 2006
    Location
    Greensboro, NC
    Posts
    12

    can this work on linux

    Yes, this can work on a linux machine. If I am not mistaken most builds of linux come with Perl installed. You will need to install the GPS::NMEA module. You will need to change the path names so they are in the correct format for linux (e.g. / instead of \). The initial GPS::NEMA example I used was from a linux machine. The JavaANPR is a cross-platform application. You will need the Java runtime for linux installed to run the JavaANPR application. Since I am not using any perl modules that are Win32 specific you should be able to get this to work.

    GG
    VIA Epia M10000 MB
    512 DDR RAM
    40G 2.5 HDD
    M2-ATX
    SP7 7" VGA TS dash
    Lilliput 7" RCA rear
    Holux GM-210 GPS
    Linksys WUSB54G
    Mini-Key USB KB
    CarPCSub 0.71 Win32 + 0.71L Linux
    GPS to Subtitles Recorder
    http://carpcsub.sourceforge.net

  9. #9
    Low Bitrate
    Join Date
    Jan 2008
    Posts
    88
    i am intrested in the program above and creating a database for number plate's and i would also like some more infromation on your project and the software you have above

  10. #10
    Newbie
    Join Date
    Apr 2009
    Posts
    11
    im working on this right now is this project dead or what?

Page 1 of 4 1234 LastLast

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
  •