GithubHelp home page GithubHelp logo

Comments (8)

mtschirs avatar mtschirs commented on June 17, 2024

Please download the updated version of js-objectdetect and try again, the last commit introduced a bug in the grayscale conversion. This is now fixed, sorry for the inconvenience.

from js-objectdetect.

mkirank avatar mkirank commented on June 17, 2024

Thanks . Can you add the gesture control example , that looks great and the code can be used in a lot of places

from js-objectdetect.

mkirank avatar mkirank commented on June 17, 2024

Is this the correct usage for the handfist, It does not seem to be stable and the position keeps moving even if the fist is in one place , what am I missing here

      if (video.readyState === video.HAVE_ENOUGH_DATA) {
            $(video).objectdetect("all", {  classifier: objectdetect.handfist}, function(coords) {
                if (coords[0]) {
                    var canvas = document.getElementById('can');
                    var ctx=canvas.getContext('2d');
                    ctx.clearRect(0,0,320,240);
                    ctx.strokeStyle="rgba(0,0,0,1)";
                    //console.log ( coords[0] );
                    var x = ~~(coords[0][0] + coords[0][2] );
                    var y = ~~(coords[0][1] + coords[0][3] );
                    ctx.strokeRect(x , y ,20,20);
                } else {
                          //                        
                }
            });

from js-objectdetect.

mtschirs avatar mtschirs commented on June 17, 2024

Hi mkirank,
the gesture control example shown in the video is not compatible with the js-objectdetect code published here. I am a bit under pressure these weeks, but once I have some free time again I will try to make it available (including perf. updates to js-objectdetect).

from js-objectdetect.

alexthegoodman avatar alexthegoodman commented on June 17, 2024

I must also say that it would be awesome to get a look at the gesture control code!

from js-objectdetect.

gr0g avatar gr0g commented on June 17, 2024

+1 for the gesture control code

from js-objectdetect.

cjuhong avatar cjuhong commented on June 17, 2024

+1 for the gesture control code

from js-objectdetect.

mtschirs avatar mtschirs commented on June 17, 2024

Two gesture control examples have been added, checkout the example section in the readme.

from js-objectdetect.

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.