473,416 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

steps for creating a histogram for binary image in JAVA

Please explain the steps to create a histogram for a binary image using JAVA(JAI).
I m working out a project wherein I need to separate single sentences (individual lines only; not upto full stop)from a scanned handwritten document in one of the Local languages of INDIA. If you have any idea regarding the separation of lines pls share it with me..
and pls dont forget the histogram..
since it's a research project i need the best solutions.. pls help
Jul 26 '10 #1
1 2507
chaarmann
785 Expert 512MB
How to detect space between text lines?
You can detect the separating blank stripes between text lines if you look for consecutive dots of white color (usually all bits set in RGB), that means a row of bytes that have all the same value if the document was scanned in horizontally. (Vertical scanned documents must be flipped 90 degree before).

Regarding "histogram":
Basically, you will go through all bytes of the image and calculate a statistic about how often which value shows up.
I googled for you "histogram of binary image" and the first hit shows me some formulas how to calculate it. Did you read it? Why not, what problem did you have there, can you tell me? I would copy and paste the formula here for you, but first I am probably violating copyright and second I can't show it up here in the forum as nice as it's there regarding text formatting. So please look it up yourself. You can research in your research project if this is the best solution. Maybe you'll find a better one. If you don't research yourself but instead only manage answers of other researchers, then it's not a research project, but a management project.
Jul 27 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Altemir | last post by:
I have a table that contains the following two columns: BITS (image(16)) BIT_LENGTH (int(4)) When I look at the table, I see "OLE Object" in the BITS column. What syntax should I use in...
1
by: msnews.microsoft.com | last post by:
How can I work with Binary (Image) type fields of SQL Server from C# (Visual Studio)? Fro example I want to load and update picture.
4
by: Sharon | last post by:
Hi Everyone, I have a TIF file 62992 x 113386 Pixels, Huffman RLE compression, 3200 x 3200 DPI resolution, binary colored (1 Bit Per Pixel), file on disk size 43.08 MB (45,169,042 Bytes). This...
6
by: androoo | last post by:
I have a source database which stores the main image. I read the image out as this : Dim strSQL As String Dim objData As clsDatabase Dim dr As OleDb.OleDbDataReader strSQL += "select * from...
29
by: tele-commuter | last post by:
Hi folks, I want to understand how exactly is an image(compiled c code and loaded into memory) stored in memory. What exactly is a linker script? I work with a lot of c code on a daily...
1
by: rankief | last post by:
hi, im having a problem. i have a javascript that receives binary image data and i wanted to show it on the html page. how do i use javascript to convert it to an image object? or is there...
6
by: Bora Ji | last post by:
Please help me to creating dynamic VARIABLE in java, with predefined name.
1
by: bharanidharan1982 | last post by:
All, I m having one binary image in xml. Now I need to get that image and store as a byte (byte array)in Java. Can anyone help me out. Plz its very urgent. I have blocked on this.
11
by: eddiefisher41 | last post by:
Hey Guys. I'm looking for some info on how to read binary image data. Basicly RAW image files are strings of bits with say 2 bytes per pixel. What i need to do is read the value of each pixel in...
2
by: matech | last post by:
I have a problem with uploading special characters from excel files to mysql 5. It doesn't matter if I use UTF-8 or iso-8859-1 when uploading the trademark ™ symbol. htmlspecialchars() or...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.