- Home /
Detect and Track Objects in Live Webcam Video based on Color and Size by C#
hi, i need to capture the laser light's xyz position, which will be falling on the screen(a flat surface)and capturing using webcam(webcam facing the screen).i found a link "http://www.codeproject.com/Articles/139628/Detect-and-Track-Objects-in-Live-Webcam-Video-base " and thought useful.but i dont know how to implement in unity 3d.am new to unity 3d. my main criteria is to detect a point with specified dimensions and color(laser light point)and to track the position of that object(laser light).
Answer by valyard · Nov 07, 2012 at 01:46 PM
This is not as easy as it might seem. But there are computer vision libraries which can do that in a couple of lines of code. I would use Aforge (as the guy in the article you linked does) or OpenCV.
Unfortunately if I'm not mistaken nor Aforge nor OpenCV doesn't work in Unity out of the box. You might read about the math behind these libraries but it's not an easy read I would say.
Your answer

Follow this Question
Related Questions
Errors on accessing WebCamTexture.devices 1 Answer
How to capture still pictures from the webcam utility of Unity? 0 Answers
3d model construction through webcam 1 Answer
WebCamTexture camera not activating 0 Answers
webcam Capture from webcam encountered: IndexOutOfRangeException: Array index is out of range 0 Answers