OpenCV.js : image recognition in video capture

asked 2018-10-11 08:01:48 -0600

Hi

I’m working for the first time with OpenCV.js, as well as everything wich has with image to do. I’m trying to detect an image in a webcam video flow. Exactly like face detection in this example Face detection in video capturel , I think that I more or less understood what I have to do, but I don’t get it together. It should be possible to do template matching which video instead for a still image; or object detection with something else than haar cascade. Do you know some tuts which could help me? Thanks.

edit retag flag offensive close merge delete

Comments

already +1 for reading tutorials ;)

there is another, cnn based js example, that does face detection and recognition. it's somewhat advanced, but you could use the detection part of it with other pretrained models to e.g. detect cars, or dogs, etc. you could even train your own !

berak gravatar imageberak ( 2018-10-11 08:09:00 -0600 )edit

there is template matching, too, but it does not work well with video, due to being sensitive to pose/rotation.

berak gravatar imageberak ( 2018-10-11 08:12:11 -0600 )edit

Thank you for the answers. I see that the face detection and recognition script uses utils.js ? I found several of them in the web. What is it exactly? EDIT : Well : I used the same url than opencv.js and it seems to work :

  <script async src="https://docs.opencv.org/master/opencv.js" type="text/javascript"></script>
  <script src="https://docs.opencv.org/master/utils.js" type="text/javascript"></script>
Reflexive gravatar imageReflexive ( 2018-10-11 08:55:35 -0600 )edit

^^ yes, please use the js scripts from the master docs (those will be "latest version" nightly builds) !

berak gravatar imageberak ( 2018-10-11 09:23:38 -0600 )edit