If I need to turn on a camera using front-end webpage, scan an image and see if target image matches pre-defined image. if so, throw a web event.

Is there a JS library doing the job?


  • 1
    Should it work offline? For instance, let's say I load your webpage and then board a plane with no WiFi. – Nicolas Raoul May 13 '19 at 9:20
  • @NicolasRaoul not really needed. I just need it to be front-end only – Eric0x May 13 '19 at 10:17
  • Do you have any requirement for the server-side, then? Self-hosted? No budget limit? – Nicolas Raoul May 13 '19 at 12:05
  • no specific requirements. it could be hosted on github.io or any front-end service provider. I have budget, but limit is unknown for now. – Eric0x May 13 '19 at 12:38

I can remember two js libraries Tenserflow & tracking JS. Both can do like webcam tracking, real-time color tracking, face detection etc.

  • can tracking.js do image recognition? like, compare similarity between 2 image? – Eric0x May 23 '19 at 6:33

A little older library is https://github.com/timhuff/canvas-phash. It's a library that uses phash to detect how similar images are.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.