Closed HieronymusLex closed 5 months ago
that sounds complicated, but I guess you could try to hack the source code and re-compile the library.
You can modify the input video here: https://github.com/hiukim/mind-ar-js/blob/fb5db87b1e5076ba86fde82101955da70b629a1c/src/face-target/three.js#L204
I believe it's probably some post-processing you need to do to adjust the position. because the threejs canvas is full screen, and your passed a chopped video feed for detection, so the detected pose will be off.
I'll have a play around with the input video and see if I can achieve what I'm after
I have a use case where I'd like to:
Face tracking only seems to track a single face at the moment and I can't see an equivalent parameter to the image tracking
maxTracks
? Therefore if it is only possible to track a single individual, I was thinking of managing the tracking outside of MindAR using a TF model to track individuals, then crop the video feed and supply that to MindAR. However I can't see a way of modifying the video feed without monkey patchingnavigator.mediaDevices.getUserMedia
or perhaps creating a virtual camera from the cropped video stream and supply that deviceId when instantiatingMindARThree
Is there a better way of achieving this?