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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:46:52+00:00 2026-05-12T21:46:52+00:00

I am trying to make a DIY touchscreen and would like to enter it

  • 0

I am trying to make a DIY touchscreen and would like to enter it into the local science fair but wanted to do it on the programing aspect of Multi-touch. My problem lies in that i have never worked with analyzing images (from a USB based web-cam).

I would like to do this project in C# if possible (C++ – if worst comes to worst)

I need to analyze a black picture (from a USB web-cam) and then detect when white blotches come into view. How would i go about doing this? — is there a known method for detecting the change vs analyzing every pxl? if so a pointer to where this is would be nice 🙂

Also how would i get the input from the Web-Cam via USB? — where can i get the libraries / ddl’s ?

I have seen some programs that work with this but they convert the images – which takes up time and processor speed… is there a way to use the raw imput image/data?

HELP?

  • 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-05-12T21:46:53+00:00Added an answer on May 12, 2026 at 9:46 pm

    Once you have your input you will have (assuming it is perfectly dark and perfectly bright contrast) you will have an matrix of values similar to this: (gray scale)

    0 0 0 0 0 0 0 0 0 0 0 0 
    0 0 0 0 0 0 256 0 0 0 0 0
    0 0 0 0 0 256 256 256 0 0 0 0
    0 0 0 0 0 0 256 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 
    

    Your job would need to be to segment out the section of the right color values (256) and to determine position. To get movement [assuming you are only tracking 1 object] you would have to compare the next position of the blob with the previous.

    In the realworld, especially with a webcam you will never get a solid dark background with a good contrast. The webcam is low resolution, the light is never perfect, and noise is added in from the lense and CCD defects/color approximation.

    Additionally, you may run into problems with tracking the blobs movement (a blob may be misdectected elsewhere on the surface. When you attempt to track two blobs you will run into more issues.

    Some of these issues include:

    1. Blob collision (how do you know which blob goes where)
    2. Blob cross overs (did the blobs switch sides, or did the blobs move in a reverse direction from previous travel)
    3. Blob combining (where two blobs become one)

    To grab the camera using C# you may want to check this out. WIA is not the quickest method to use to take pictures. However, it is a lot easier to deal with. My suggestion to you if you are still interested in doing this is to draw two images in photoshop and track the markers. Its not as exciting, but it will help you tackle the problem easier and relax the problem description.

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

Sidebar

Related Questions

No related questions found

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.