0

I need to make a .net application where I must detect a specific object the user is holding, using a camera.

If the object must have some specific characteristics so that it can be easily recognized and detected from the surrounding space, please give me some tips (ex a green cube?)

What would be the best technique/.net library to use? I need to translate in realtime the user's hand movement and display an animation on screen accordingly.

abinop
  • 3,153
  • 5
  • 32
  • 46

3 Answers3

1

for motion detection: find the good features(corners,ie.) and feed them into a lucas-kanada optical flow algorithm. opencv has those functions but I don't know if opencvnet has it or not.

if your object has a specific feature, like being the greenest in the scene for example, you can use thresholding. otherwise you need to use pattern recognition techniques.
pseudo code:

threshold1 = 128
threshold2 = 64
foreach Pixel p in Picture
 if (p.Green > 128) and (p.Red < threshold2) and (p.Blue < threshold2)
   outputImage.CurrentPixel = 255
else
   outputImage.CurrentPixel = 0

here you'll have your image which greens are shown as white and the rest is black

sithereal
  • 1,656
  • 9
  • 16
0

You're looking for AForge.Net.
See also this article.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

I would suggest coming up to speed on OpenCV, Emgu CV's the .NET port I use.

kenny
  • 21,522
  • 8
  • 49
  • 87