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 7850277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:47:53+00:00 2026-06-02T18:47:53+00:00

I tried using MatchTemplate() to match numbers in image. For example, the numbers are

  • 0

I tried using MatchTemplate() to match numbers in image. For example, the numbers are [0985-977-735] in image.
And got the results as following:(number, location)
[(0, 1), (3, 103), (5, 33), (5, 116), (7, 62), (7, 73), (7, 85), (8, 21), (9, 11), (9, 53)]

But in most situations, the accuracy is very low.

[0983-945-180]:
[(0, 113), (1, 93), (3, 31), (4, 62), (5, 74), (8, 103), (9, 11), (9, 53)]
the first zero and eight can’t be recognized.

[0932-509-607]
[(0, 103), (2, 31), (3, 21), (5, 54), (6, 92), (7, 113), (9, 72)]
the first, second zero and first nine can’t be recognized.

[0911-873-752]
[(0, 1), (1, 22), (1, 33), (2, 113), (3, 72), (5, 105), (7, 92), (8, 52), (9, 11)]
the first seven can’t be recognized.

part of the code as following:

import cv
for i in range(10):
    template_im = cv.LoadImage(template_file, cv.CV_LOAD_IMAGE_GRAYSCALE)
    width = original_im.width - template_im.width + 1
    height = original_im.height - template_im.height +1
    result_image = cv.CreateImage((width, height), cv.IPL_DEPTH_32F, 1)
    cv.Zero(result_image)
    cv.MatchTemplate(original_im, template_im, result_image, cv.CV_TM_CCOEFF_NORMED)
    (_, R, _, max_loc) = cv.MinMaxLoc(result_image)

    if R < 0.90:
        pass
    else:
        phone_number_location.append((i, max_loc[0]))
        ...
        ...
  • 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-02T18:47:54+00:00Added an answer on June 2, 2026 at 6:47 pm

    You may like to use SimpleCV for this. It is written in python. Most of the things you require are in it. I wrote a basic image stitching app in just 15 lines of code. Hope this helps. Use the code in github because template matching is new in SimpleCV.
    Hope this helps.

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

Sidebar

Related Questions

I tried using the following data in my intent filter: <data android:scheme=http android:host=an.example.i.p android:pathPrefix=t
I tried using the following code in .java(main activity): final ImageView diskView1 = (ImageView)
I tried using <link href=@Url.Content(~/Content/Extras.css) rel=stylesheet type=text/css /> but got a warning Validation (XHTML
I tried using Kohana/ORM on my localhost xampp and i get the following error
I tried using webparts on an asp.net webpage and got a blank screen. While
I tried using this example: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx <ajaxToolkit:ModalPopupExtender ID=MPE runat=server TargetControlID=LinkButton1 </ajaxToolkit:ModalPopupExtender> And try using
I tried using random.randint(0, 100) , but some numbers were the same. Is there
I tried using mechanize to see the URL of the image, but its a
I tried using the following but apparently it's invalid SQL: CREATE OR REPLACE TRIGGER
I tried using the example code from my previous question . However I get

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.