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

The Archive Base Latest Questions

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

I am basically processing bar codes with an open source software. But the tool

  • 0

I am basically processing bar codes with an open source software. But the tool sometimes fails detecting no bar code at all.

So I want to myself check wether the image was really blank or it contains some sort of bar code.

My images are produced through scanning and they only contain a bar code (if they are not blank) and some noise images produced by the scanning. So my problem could be even down to checking if the image contains a significant amount of concentrated black pixels to differentiate it from white space images with noise.

I have checked this SO question, but the suggestion was to use “probabilistic Hough line transform” which I found a little bit an overkill for my situation.

I have also checked out this but it has unsafe code.
I am looking for a managed C# solution.

  • 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:07:00+00:00Added an answer on June 11, 2026 at 6:07 am

    The second sample that you linked to uses unsafe code only to speed up access to pixel values in your bitmap. You can easily replace all that by using the Bitmap‘s GetPixel() method instead (the downside is that this will then be extremely slow, but it will probably still be fast enough for your purposes).

    As far as the unsafe code goes, however, there is no reason to worry about using it. The only issue with the unsafe tag is that some users (depending on their permissions levels) may not be able to run the code, although I have never actually encountered this potential problem myself.

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

Sidebar

Related Questions

I'm currently working on a problem that basically involves processing all data in a
Basically, for revision purposes tried to code a Binary Search algorithm in Processing. Decided
I want most frequent words in english. Basically, I am processing wikipedia text and
I am having the following problem processing big data in the database: Basically all
I am basically processing tweets for a project of mine. I am trying to
Basically I need to capture the video from videocamera do some processing on frames
I basically have a unix process running and it is doing some heavy processing
I am doing some pre-processing on my database. Basically two queries, one is INSERT
Basically I want to check the extended permissions the user has granted my app.
Basically I want to convert a virtual path to an absolute path.

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.