GithubHelp home page GithubHelp logo

Comments (6)

xavierjs avatar xavierjs commented on May 22, 2024

Hi Andrew,

It won't be a big deal.
We prefer to include the capture of the webcam video feed in the library because we have put a lot of polyfills and tests in order to make it work everywhere (many other face detection libraries keep it outside).

I am working on adding a faceSwap demo in the repository to illustrate multi face detection, then I will add the rear-facing camera option (at the beginning of next week). I think I will add an initialization option to provide custom getUserMedia constraint which will override the application constraints and add a method to get the different media devices.

from jeelizfacefilter.

andrewdeutsch avatar andrewdeutsch commented on May 22, 2024

Great! I don't think I was specific enough though. The example I sent you claims to provide plane detection. That wouldn't be possible yet in standard browsers yet, correct?

from jeelizfacefilter.

xavierjs avatar xavierjs commented on May 22, 2024

Hi Andrew,
I have improved the videoSettings init parameter and updated the readme.
We can tweak the camera facingMode now.

I think for AR, the plane detection will be taken into account on browser side, because it also depends on other data coming from accelerometers or 3D scanners.
Currently there is webARCore. I think we can get the raw webcam video element. I have also added the possibility to use a custom

But I think that WebARCore will be replaced by WebXR. The standard is currently too young and I think there will be breaking upgrades, so we still wait before working with it.

from jeelizfacefilter.

andrewdeutsch avatar andrewdeutsch commented on May 22, 2024

This is great. Thanks, Xavier.

from jeelizfacefilter.

chrispoole102 avatar chrispoole102 commented on May 22, 2024

Hello @xavierjs,

I looked over this issue and attempted to implement it in my project. Unfortunately I can't seem to get the video settings to apply. I'm confident my browser / device combo supports rear-facing camera with these settings because I've been messing around with other face tracking sdks and I managed to implement it with those. I'd much prefer to use yours, though, so how do I solve this? Has there been an update since this issue was resolved that might have broken it again? I'm aware that at some point getUserMedia was updated, but I'm not sure about the details.

Thanks,
-Chris

from jeelizfacefilter.

xavierjs avatar xavierjs commented on May 22, 2024

Hi,

You need to give specific videoSettings ( see https://github.com/jeeliz/jeelizFaceFilter#optionnal-init-arguments ) when calling JEEFACEFILTERAPI.init(...) method. Typically:

JEEFACEFILTERAPI.init({
  videoSettings: {facingMode: 'environment'}
})

Best,
Xavier

from jeelizfacefilter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.