开发者

Silverlight 4 Motion and Color Tracking using Webcam

Software Design Question:

Since silverlight 4 is out, and it has webcam supp开发者_运维知识库ort, does anyone know the code to track the motion and color ? Is SL4 writable bitmap is the first step to start wrting the code ?

I wants to convert specific color motion into action in Silverlight. For example if you move red color pen in front of camera from left- > right it should scroll the picture from left to right.

Any help will be appriciated


I found couple of links which are helpful -

http://kodierer.blogspot.com/2009/12/silverlight-4-augmented-reality-proof.html http://adamkinney.wordpress.com/2009/12/03/bugcamsmash-motion-detection-with-silverlight-4-beta/


It is not simply a *code* to do this. You need to use image processing algorithms to analyze the images from the video stream to determine points of interest, and track these between the frames. Since you only want to track a point of a certain color, this simplifies the problem somewhat because there is less heavy mathematics involved (as in face recognition). You should learn more about the following algorithms:

  • Convolution
  • Edge/point detection using filter kernels, such as the Sobel operator


I started looking into this type of application and I found AForge.Net. I would imagine it is possible to port it over to Silverlight (though it probably would take a while). Another possible option would be to wrap AForge in COM and use Silverlight's ability to run COM in trusted OOB applications. The issue there would be you would have to figure out how to use COM to install a COM components.

http://code.google.com/p/aforge/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜