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

  • Home
  • SEARCH
  • 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 8335955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:50:01+00:00 2026-06-09T03:50:01+00:00

I am developing an anpr application and I have managed to locate the number

  • 0

I am developing an anpr application and I have managed to locate the number plate area from the vehicle image. Following is the numberplate image i h ave extracted

when i feed this image to tesseract OCR engine it seems to detect a character “L” before “C” so im thinking of taking out the remaining black pixels around the number plate area. is there a particular approach that i can take to sort this out? I am using aforge.net library in this case

Cheers

  • 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-09T03:50:03+00:00Added an answer on June 9, 2026 at 3:50 am

    One approach for semi-automatically removing the black pixel areas around the number plate could be to apply the PointedColorFloodFill filter four times, placing the flood fill starting points in the four corners of your image.

    Here is some example code where I have applied the filter on a copy of the number plate image from your question above (cropped to remove the white border):

    var filter = new PointedColorFloodFill();
    filter.FillColor = Color.White;
    filter.Tolerance = Color.FromArgb(60, 60, 60);
    
    filter.StartingPoint = new IntPoint(0, 0);
    filter.ApplyInPlace(image);
    filter.StartingPoint = new IntPoint(image.Size.Width - 1, 0);
    filter.ApplyInPlace(image);
    filter.StartingPoint = new IntPoint(image.Size.Width - 1, image.Size.Height - 1);
    filter.ApplyInPlace(image);
    filter.StartingPoint = new IntPoint(0, image.Size.Height - 1);
    filter.ApplyInPlace(image);
    

    which provides the following image after completed filtering from all four corners:

    Flood-filled number plate

    You may want to experiment with a more grayish fill color and different tolerance, but this example could at least provide a reasonable starting point.

    UPDATE I stumbled across the BradleyLocalThresholding filter which could give you an even better starting point for your OCR recognition. This filter can only be applied to 8bpp images, which you would be able to solve for example by first applying the Grayscale filter on your original image. If you add the following four lines before the PointedColorFloodFill code:

    var grayFilter = new Grayscale(0.3, 0.3, 0.3);
    var image = grayFilter.Apply(originalImage);
    
    var bradleyfilter = new BradleyLocalThresholding();
    bradleyfilter.ApplyInPlace(image);
    

    and reduce the PointedColorFloodFill tolerance to e.g. 10 for each RGB component:

    filter.Tolerance = Color.FromArgb(10, 10, 10);
    

    the fully filtered number plate will now look like this:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam developing one application.In that i need to get the music files from the
developing iphone app, I have used a UIImageview and i have set an image
Developing iphone application using makkit framework. I have got the map view integrated in
Developing a network application, I have a Connection class that manages sending and receiving
Developing an MVC application, i now need to have test other browser versions. Installed
Developing a web application that I've registered with Twitter. In this app, I might
Developing a simple application. With a webview inside a window, loading a url. This
Developing for Android 2.3, I have a question regarding layouts. I use a vertival
Developing a project of mine I realize I have a need for some level
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart

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.