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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:56:02+00:00 2026-06-01T09:56:02+00:00

So i have an image that has been processed with the sobel method, and

  • 0

So i have an image that has been processed with the sobel method, and now i need to extract that image.

My problem is how can i start scanning the image from the mid line uo and down line by line, and when the number of edge is less than 60, record that coordinate to crop the image.

The image in question is a barcode, and this method should work for extracting only the bars. The problem is the implementation with emgu cv.

Update:

I am following the method described in this paper: http://bit.ly/HUWdcy

This question is referent to the C. Image Extraction Chapter

  • 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-01T09:56:04+00:00Added an answer on June 1, 2026 at 9:56 am

    Check the cv::threshold and cv::reduce functions.

    First wil create a binary map out of your edge image, with black on the stripes, and white on background.

    Like this small example:

    After edges

    1 70  0 0 85  128 99  0
    1 70  0 0 85  128 99  0
    1 70  0 0 85  128 99  0
    1 70  0 0 85  120 99  0
    1 74  0 0 85  138 99  0
    1 80  0 0 85  128 99  0
    1 72  0 0 85  128 99  0
    

    After threshold

    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    0 255 0 0 255 255 255 0
    

    Second function can be used to “project” the image on one of its dimensions, using CV_MAX, or CV_SUM, or CV_AVG, and you will have the barcodes stored in a row

    Example for reduce with SUM:

    0 1785 0 0 1785 1785 1785 0
    

    Now, reapply a threshold:

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

Sidebar

Related Questions

I have been working on a website that has some images that I need
I have a GIF image that has an alpha set, and when my site
I have a big image that has to go in the background. Say the
I have a PNG image that has an unsupported bitmap graphics context pixel format.
I have an image file that has all the character sprites that I will
I have an image (PNG file) that has an alpha channel that is set
I have an image gallery app that has a slider to control the width
i have a page for a small mobile site that has an image that
I have an image that is 480x331 and has a transparent background. The transparent
I have an android application i have been working on that downloads an image

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.