1

Im working on a project with multiple face detection algorithms. I was wandering if i can select which camera i want to open in JAVASCRIPT.

I use Google Chrome - Version 71.0.3578.98 (Official Build) (64-bit)

For the moment i just use my laptop web-cam but i want to use a better camera (dslr, goPro, even mobile devices) to detect more and more detail about the face for image processing purposes (e.g. depth-maps).

I know i can use something like this

navigator.getUserMedia

but this will return devices just of type ImageDevices enter image description here


Is there any way to connect external cameras (either with WI-FI,BT, USB)?

Loizos Vasileiou
  • 674
  • 10
  • 37
  • https://www.davidbcalhoun.com/2011/android-3.0-honeycomb-is-first-to-implement-the-device-api/ - maybe this is helpful i dont know?? – Loizos Vasileiou Jan 22 '19 at 00:10

1 Answers1

0

To access multiple cameras from javascript you can refer to the Post Accessing Multiple camera javascript getusermedia Take care the two cameras must be connected to different USB bus and both must be accessed in the same browser in different or same window.

If you like to use external cameras the best option is to go onvif with unlimited number of ip cameras connected by wifi or ethernet. To control the cams you can install a node server in your workstation and install the node-onvif module. There are surveillance cameras with AI face rocognition built-in Face recognition cameras

To use a smartphone you can follow this video Smartphone as webcam and use IP webcam app from Playstore

If you prefer to connect a GoPro you have to connect to the AP Access Point of your router or you can configure your laptop as an AP then connect your camera via wifi according the following video GoPro wifi or this other one GoPro wifi config.

You can find some ideas for face recognition like this Face recognition in Python as Open Source solutions based on Linux Python using OpenCV and suitable for depth maps

Yones
  • 95
  • 7
  • i work on a local server, so i can't use that unfortunately. I was just wondering if there is a library like kinect.js that i can work with any camera – Loizos Vasileiou Jan 22 '19 at 00:23
  • Nodejs can be installed in a laptop and has a very small footprint. You can even install it in a Docker container to don't interfere with your system. – Yones Jan 22 '19 at 00:32