Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to replace tab with space while performing OCR scan using MODI 11.0?

How to replace tab with space while performing OCR scan using MODI 11.0?

Scheduled Pinned Locked Moved C#
comhelptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mdrizwan_1
    wrote on last edited by
    #1

    Hello Everybody, I am creating a app to convert Image to Text file. I refereed following link []. I am able to convert Image to text file.But when i convert Image file which have row and column layout (i.e., data is as in excel sheet format).when i read this type of file if the gap between corresponding columns is different. OCR takes it as Row delimiter and cuts the following text on new line. So I wanna replace the gaps to equal space while performing OCR scanning. Please help Any suggestions appreciated. Regards Rizwan

    M 1 Reply Last reply
    0
    • M mdrizwan_1

      Hello Everybody, I am creating a app to convert Image to Text file. I refereed following link []. I am able to convert Image to text file.But when i convert Image file which have row and column layout (i.e., data is as in excel sheet format).when i read this type of file if the gap between corresponding columns is different. OCR takes it as Row delimiter and cuts the following text on new line. So I wanna replace the gaps to equal space while performing OCR scanning. Please help Any suggestions appreciated. Regards Rizwan

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      If you get the data into a text file then you can replace the char(9) tab in the text with char(34) which is a space, then output the text into the excel file.

      Never underestimate the power of human stupidity RAH

      M D 2 Replies Last reply
      0
      • M Mycroft Holmes

        If you get the data into a text file then you can replace the char(9) tab in the text with char(34) which is a space, then output the text into the excel file.

        Never underestimate the power of human stupidity RAH

        M Offline
        M Offline
        mdrizwan_1
        wrote on last edited by
        #3

        Hello Mycroft Holmes, When the data is retrieve in text file the order of rows and columns changes hence ,when i replace space with tab in Text file. I do not get the required table layout as in image file. Therefore i wanna replace it at the time of OCR scanning or know is there any alternative to achieve it. Any suggestion appreciated. Regards Rizwan

        1 Reply Last reply
        0
        • M Mycroft Holmes

          If you get the data into a text file then you can replace the char(9) tab in the text with char(34) which is a space, then output the text into the excel file.

          Never underestimate the power of human stupidity RAH

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          Is Char(32) not a Space and Char(34) a [Double Quote] according to the ascii tables.

          Dave Don't forget to rate messages!
          Find Me On: Web|Facebook|Twitter|LinkedIn
          Waving? dave.m.auld[at]googlewave.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups