简体   繁体   中英

Java ANPR project with webcam connectivity

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM