Hi brothers,
I want to convert an image to program in C. So i want it in dot matrix form to edit in C
Suppose if image is a picture of square i want to convert it to 1s and 0s like :-
0000000000000
0111111111110
0100000000010
0100000000010
0100000000010
0100000000010
0111111111110
0000000000000
This text look like a square
Like that i need to create a txt file of 1s and 0s for each pixel of image I'm planning a Optical character reorganization software to build through C
Please provide me any software which i can do this or c program to do this
(Actual image may in any format, becase i can convert it to any format through photo-shop)
Demo of image to convert to this type of text is attached with this post.
My image have 1300 X 12xx Pixels
My planning is
* Gif image convert to a file which containing only 1s and 0s.
* And contain only one line
* And to operate it in c
I'm making an 2 dimensional array and add array look like like
0000000000000
0111111111110
0100000000010
0100000000010
0100000000010
0100000000010
0111111111110
0000000000000
(The image of square )
*I need to separate each character as per its size
Please help me.... Urgent!