Redact Some information on .tiff Image RRS feed

  • Question

  • User1500058092 posted
    Hi, We want to redact certain information on .tiff image after loading in in web browser. Say for example, we have a .tiff file which after loading user wants to blacken/ redact sensitive information like SSN No., credit card no and print it before giving hardcopy to anyone. Any help appreciate. Thanks, Vinay
    Monday, August 16, 2004 10:55 AM

All replies

  • User815917640 posted

    Did you find anything on this? OR any one has any info on how to do this?

     I need to blank out SSN's from tiff image. I could make Windows app



    Thursday, June 12, 2008 10:06 AM
  • User-396210223 posted

    I am looking for something similar, anyone found any solutions??

    Thursday, October 16, 2008 4:24 PM
  • User815917640 posted

     Yes we did.

     We used open source OCR library: http://code.google.com/p/tesseract-ocr/

    It is very good at redaction as compared to paid ones that I tried. Here's some code with logic as comments

    1    Dim OcrOutput As List(Of tessnet2.Word) = Ocr.doOCR(Image1, Rectangle.Empty)
    2    'Read words
    3    For Each Word As tessnet2.Word In OcrOutput
    4        'Read each character in words - so we can look for pattern
    5        For Each WordChar As tessnet2.Character In Word.CharList
    6        Next
    8        'Then run regular expression on the words or character combinations to extract out SSN or anthing
    9        'And get x,y,height,width for word/char to create rectangles that will be drawn on the image
    10   Next
      Hope this helps
    Thursday, October 16, 2008 5:10 PM