Giter Club home page Giter Club logo

Comments (10)

foo123 avatar foo123 commented on July 17, 2024

i'm not sure what is the issue here, it is closed. In any case even if it is for criticism, its ok

from haar.js.

justgeek avatar justgeek commented on July 17, 2024

the issue is that your code is not working on any image but the one attached with source !!

from haar.js.

foo123 avatar foo123 commented on July 17, 2024

yes this can happen, i say it is not the code, it is the type (and difficulty) of the application.

In general image recognition is a very difficult task. Of course if the code has issues, it is good to know.

from haar.js.

foo123 avatar foo123 commented on July 17, 2024

Try to play around with the detector paramaters and see similar issues #19 and #17

from haar.js.

justgeek avatar justgeek commented on July 17, 2024

Actually there are much better libraries out there , the problem is im trying to detect human neck , never found a cascade for that :(

from haar.js.

foo123 avatar foo123 commented on July 17, 2024

You can train a cascade for anything you want, there is a link in the readme of this repo, gather any image samples that cover the feature you need and train one.

Well there are of course other js libs like liuliu/ccv (the 1st for face detection in pure js), js-objectdetect and jsFeat which cover similar functionality (some with additional features as well).

You can also try another lib of mine filter.js for general image/video processing where you can add custom plugins (e.g HAAr.js can be added as plugin)

Hope this helps

from haar.js.

justgeek avatar justgeek commented on July 17, 2024

thanks alot for your concern , but would you explain how can i use haar.js with your filter.js ?

from haar.js.

foo123 avatar foo123 commented on July 17, 2024

One can add it a s a plugin in filter.js, include the haar.js file and filter js and make a custom plugin, which can be used as a filtyer with other filters.

haar.js does not support filter.js plugins by default but one can make almost any other library or code into a plugin for filter.js (if it so desired).

FILTER.Image can accept any url/image/canvas/video element and represent it as a filter image which can be processed.

FILTER.js is a work in progress and aims to support multiple ways to process images/video in pure javascript (inluding main thread js, parallel threads, webgl, svg and css filters)

Most of these features are already usable (main thread, paralle threads and webgl in progress).

haar.js was made to function standalone without any dependencies (plus optionaly support parallel computations with parallel.js)

So no extra code is added, however f this is a popular request i can customize the haar code to be used more easily as a filter plugin

from haar.js.

justgeek avatar justgeek commented on July 17, 2024

but this has nothing with training custom objects right ?

from haar.js.

foo123 avatar foo123 commented on July 17, 2024

No, training cascades is another thing. If a cascade for a feature does not exist, one can as well train one.

The haar code (either standalone or as a plugin whatever) will use cascade for detecting a feature. The creation of the cascade (i.e training) is another thing, one will need the openCV package for this. See the link in the readme file.

Plus one should be aware that the quality of detection depends on the quality of the cascade and the quality of the cascade depends on the number and quality of samples used to train the cascade.

from haar.js.

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.