Java ANPR project with webcam connectivity

3.6k views Asked by At

I am working on a project named as ANPR and while searching for guide I found a link on JavaANPR. Its a great project, but I want that project to be connected with my webcam so the number plates can be recognized directly from webcam not from still image.

Please any one if there is a way that I can connect my webcam directly to this project then share it with me.. I'll really appreciate that..!

Thank you

1

There are 1 answers

0
Ondrej Skopek On BEST ANSWER

Using Webcam Capture in Java, you should easily be able to build a simple program using my fork of JavaANPR.

Using the code examples given by both Webcam Capture and JavaANPR, the main part of your code would look something like this:

Intelligence intel = new Intelligence();
Webcam webcam = Webcam.getDefault();
webcam.open();

CarSnapshot carSnap = new CarSnapshot(webcam.getImage());
String numberPlate = intel.recognize(carSnap);

Now the numberPlate string contains the recognized number plate text.