Results 1 to 8 of 8
Thread: Library to split picture
- 09-09-2011, 09:02 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 4
- Rep Power
- 0
Library to split picture
Hello,
I search a Java library that we can use to split an image automatically. The idea is that scan a letter and use this library to split and analyze the elements of the letter (content, sender address, receiver address, ...).
Does anyone know a library that I could use?
Thanks.
- 09-09-2011, 02:04 PM #2
Re: Library to split picture
The BufferedImage class has a method that will get sub images out of an image. Use that with a set of x,y,width, height values and an array should do it.
- 09-09-2011, 02:37 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 4
- Rep Power
- 0
Re: Library to split picture
Thanks for your answer.
I think I haven't well explained my problem: I don't want to extract a subimage. I want a library that calculate and give me coordonate (x, y, width, height) of each element in the image. After, I will can use your method to "cut" the image.
For example, look at this picture:

I want a library that analyze the picture and return me the separated elements:
- The sender address
- The recipient address
- The stamp.
Do you have an idea?
- 09-09-2011, 03:39 PM #4
Re: Library to split picture
How is an element of an image defined?calculate and give me coordonate (x, y, width, height) of each element
Is there a white background with groups of other colored pixels for the elements?
You want to draw a rectangle around each of the groups of non-background colored pixels where the background colored border is greater than a certain number of pixels.
- 09-09-2011, 04:06 PM #5
Member
- Join Date
- Sep 2011
- Posts
- 4
- Rep Power
- 0
Re: Library to split picture
An element is defined because it has white space around it (see my example).How is an element of an image defined?
My project is:
- Registered letter
- Split the scanned image in elements (my question): address, barecode
- Archive some elements (barecode) and read and store texts in a database using an OCR
- 09-09-2011, 04:09 PM #6
Re: Library to split picture
Are you going to write the code to do the scan to find the elements?
- 09-09-2011, 04:11 PM #7
Member
- Join Date
- Sep 2011
- Posts
- 4
- Rep Power
- 0
Re: Library to split picture
No, it's too complicate and should take too much time. I'm searching an OpenSource library that do that.
- 09-09-2011, 04:11 PM #8
Similar Threads
-
Split a String with split()--Help
By danilson in forum New To JavaReplies: 7Last Post: 11-19-2010, 04:08 PM -
I want to put the native library in library path in mac os x
By Hussain Ali in forum Advanced JavaReplies: 2Last Post: 02-24-2010, 07:55 AM -
How to split a String using split function
By Java Tip in forum java.langReplies: 4Last Post: 04-17-2009, 08:27 PM -
Tell me jar file for library library org.bouncycastle.cms
By 82rathi.angara in forum New To JavaReplies: 10Last Post: 09-09-2008, 05:11 AM -
How to split a String using split function
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks