Download Latest Version TiRG_RAW_20110219.zip (245.8 kB)
Email in envelope

Get an email when there's a new version of TiRG

Home
Name Modified Size InfoDownloads / Week
README.txt 2011-03-01 1.6 kB
TiRG_RAW_20110219.zip 2011-02-28 245.8 kB
TiRG_BCB_20110219.zip 2011-02-21 644.0 kB
TiRG_BCB_20110209.zip 2011-02-11 625.6 kB
TiRG_BCB_20110202.zip 2011-02-09 359.5 kB
TiRG_Python_20110202.py 2011-02-09 7.6 kB
Totals: 6 Items   1.9 MB 1
=========================================
 *These notes for TiRG_RAW_20110219.zip*
=========================================
In its core part it's absolutely the same beast as v.20110219 for Borland
C++Builder. But this version can be compiled with any C++ compiler: there
is nothing any os/platform specific in it.
It just reads an image from a file in RAW format, processes it and prints
result to stdout. Its output looks like this:


====================================
222t.raw
====================================
Detected 3 region(s):
====================================
  1. (169, 5) (296, 13)
  2. (169, 151) (288, 163)
  3. (15, 193) (144, 204)
====================================
Press any key to exit...


Here two pairs of numbers are coordinates (X, Y) of upper left and bottom
right corners of rectangular bounding for a detected text area. Origin of
(X, Y) axes is upper left corner of the image. X is directed from left to
right, Y from up to down.


==================================================
In the code RAW format assumed to be as follows:
==================================================
  1. No header bytes.
  2. Color order of RGB 8-bit channels is R->G->B.
  3. Interleaved.
==================================================

So, if some image has Width = 4, Height = 5, then
total size of its RAW file is 4 x 5 x 3 = 60 bytes.

(I included into .zip some sample images)

For converting any image format to .RAW format I'd recommend IrfanView.
With full set of installed plugins it does the trick: www.irfanview.com
Source: README.txt, updated 2011-03-01