Image resolution constraints.

28 views
Skip to first unread message

Michael Drouillard

unread,
Mar 18, 2017, 7:21:59 AM3/18/17
to JavaANPR
Running the software for the first time with the sample images works fine. Before I start going deep into the code I tried running the software on some of my own sample images but received an out of memory java heap size error. My image was approximately 2.2 mb in size whereas your samples are only 66k. What if any image size or resolution constraints are there. Could it be I used a too large of an image or simply the processor that I was running it on (which is a small raspberry Pi like board ) many thanks great work.

Md

Ondrej Škopek

unread,
Mar 18, 2017, 7:26:55 AM3/18/17
to Michael Drouillard, JavaANPR
Hi Michael,

I suggest downscaling the images. Above a certain size, there is no added benefit anyway (only the runtime gets worse). Can't really recommend specific dimensions/size, try it out and see what you get, although I wouldn't waste too much time on figuring it out.

Ondrej

On Sat, Mar 18, 2017 at 12:22 PM Michael Drouillard <mddrou...@gmail.com> wrote:
Running the software for the first time with the sample images works fine. Before I start going deep into the code I tried running the software on some of my own sample images but received an out of memory java heap size error. My image was approximately 2.2 mb in size whereas your samples are only 66k. What if any image size or resolution constraints are there. Could it be I used a too large of an image or simply the processor that I was running it on (which is a small raspberry Pi like board ) many thanks great work.

Md

--
You received this message because you are subscribed to the Google Groups "JavaANPR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javaanpr+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Drouillard

unread,
Mar 18, 2017, 7:51:00 AM3/18/17
to JavaANPR
Thanks. I did run it on a real pc and it did not crash. It did not recognize any digits in the image but that is expected as the image I fed it is not a European plate picture. I probably should create a new thread question but what is involved in training the software for Ontario Canadian plates or other images with numbers and digits in them? How is the config xml training file created?

Michael Drouillard

unread,
Mar 18, 2017, 8:19:30 AM3/18/17
to JavaANPR
I am reading other posts and the documentation now regarding the syntax xml file and aspect ratio reports. I am sure I will figure this out. Read the manual is always advised. I will post what I have learned and reach out if I don't (learn)

Ondrej Skopek

unread,
Mar 27, 2017, 6:30:02 AM3/27/17
to Michael Drouillard, JavaANPR
You should take a look at http://javaanpr.sourceforge.net/anpr.pdf, the original authors thesis, if you haven't done so yet.

Ondrej

On Sat, Mar 18, 2017 at 1:19 PM Michael Drouillard <mddrou...@gmail.com> wrote:
I am reading other posts and the documentation now regarding the syntax xml file and aspect ratio reports. I am sure I will figure this out. Read the manual is always advised. I will post what I have learned and reach out if I don't (learn)

Reply all
Reply to author
Forward
0 new messages