Like Tree1Likes
  • 1 Post By Salem

Help with simple file editting .. I want to convet 1 bit bmp image to 1 and 0s in c

This is a discussion on Help with simple file editting .. I want to convet 1 bit bmp image to 1 and 0s in c within the C Programming forums, part of the General Programming Boards category; Hi brothers, I want to convert an image to program in C. So i want it in dot matrix form ...

  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    1

    Lightbulb Help with simple file editting .. I want to convet 1 bit bmp image to 1 and 0s in c

    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!
    Attached Images Attached Images  
    Last edited by crazyamjed; 05-26-2013 at 01:37 AM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,335
    > I'm planning a Optical character recoganization software to build through C
    If you can't even figure out how to read an image file into memory, you're a long long way off being able to do OCR on it.

    Try these searches
    "png file format"
    "png library"

    Replace "png" with the file format of your choice.


    Or try some readily available answers
    https://help.ubuntu.com/community/OCR
    stahta01 likes this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,403
    Please help me.... Urgent!
    dont you realise that this is not a helpdesk - do you think we have some kind of SLA's or something?
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. merge multiple image file into one image
    By mr_empty in forum C++ Programming
    Replies: 7
    Last Post: 12-09-2009, 01:12 PM
  2. how to convert a bitmap image to a jpg image file using C++?
    By nomer in forum Windows Programming
    Replies: 4
    Last Post: 06-04-2006, 07:40 PM
  3. Editting Memory Addresses?
    By Dae in forum C++ Programming
    Replies: 7
    Last Post: 07-03-2005, 07:07 PM
  4. Image class - loading image file
    By GaPe in forum Windows Programming
    Replies: 2
    Last Post: 07-11-2004, 01:35 PM
  5. how to convet From .PDF to .Txt through C pgm
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 12-08-2001, 01:13 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21