Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8519755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:20:22+00:00 2026-06-11T06:20:22+00:00

No Idea with what to start in this case i have to extract the

  • 0

No Idea with what to start in this case i have to extract the red block image from following tiff Image enter image description here

After extracting I have to read the graph and get output as follows :-
if
1 – Off Duty
2 – Sleeper Berth
3 – Driving
4 – On Duty
then following graph Should give as 22222243333131331332222 . what algorithm should be used I am using C# as programming Language

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:20:24+00:00Added an answer on June 11, 2026 at 6:20 am

    Maybe MODI will help you:

    http://www.codeproject.com/Articles/29172/Converting-Images-to-Text-using-Office-2007-OCR-Op

    Updated:

    I think, you tried correctly way (AForge.net).
    With AForge.Math.Geometry.SimpleShapeChecker class, you will find all rectangles.
    I will try again.

    Updated

    with Aforge.net you may compare two image. In your problem, you need compare with original empty cell(standard cell) each cell. And order by similarity, so first 24 cells are (that most not similar cells) that you need.

    like this:

    private void ProccessBitmap(Bitmap img, Bitmap original_cell)
        {
            int cellWidth = img.Width / 24;
            int cellHeight = img.Height / 4;
            IList<KeyValuePair<float, Rectangle>> table = new List<KeyValuePair<float, Rectangle>>();
            Bitmap cell;
            Rectangle rect;
    
            AForge.Imaging.ExhaustiveTemplateMatching tm = new AForge.Imaging.ExhaustiveTemplateMatching(0);
    
            for (int rowIndex = 0; rowIndex < 4; rowIndex++)
            {
                for (int colIndex = 0; colIndex < 24; colIndex++)
                {
                    rect = new Rectangle(colIndex * cellWidth, rowIndex * cellHeight, cellWidth, cellHeight);
    
                    cell = img.Clone(rect, img.PixelFormat);
    
                    var matchings = tm.ProcessImage(original_cell, cell);
                    table.Add(new KeyValuePair<float, Rectangle>(matchings[0].Similarity, rect));
    
                    cell.Dispose();
                }
            }
    
            using (Graphics gr = Graphics.FromImage(img))
            {
                gr.DrawRectangles(new Pen(Color.Red, 3.0f), table.OrderBy(a => a.Key).Take(24).Select(a => a.Value).ToArray());
            }
    
            pictureBox1.Image = img;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no idea where to start with this one. I have a confirmation
I have no idea where to start with this one: I have a database
I have the following Scala code. import scala.actors.Actor object Alice extends Actor { this.start
My idea is to make an application start automatically when a message from a
I have to code an object detector (in this case, a ball) using OpenCV.
I have the following scenario that i will start to develop very soon, but
Me again, In this case I have an accountingcode table [ACCOUNTINGCODE] with the fields:
I have following question on function with Variable length argument in C: Case 1
Is it a good idea to start new test framework using Selenium web driver
I understand that in general it is a bad idea to start a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.