GithubHelp home page GithubHelp logo

picojs's People

Contributors

akx avatar nenadmarkus avatar tehnokv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

picojs's Issues

what should I set ldim to?

Hi, I want to use pico to find faces on images of arbitrary width/height. I am hoping there is some sort of general rule I can uses for setting the ldim parameter based on image width & height. I have read over the explanation doc https://nenadmarkus.com/p/picojs-intro/

The parameter ldim tells us how to move from one row of the image to the next (known as stride in some other libraries, such as OpenCV).

From what I gather from the examples, it is usually set to the ncols parameter (a.k.a image width). However, I have an example image that is 400x400 pixels. Setting these params:

// where image.width === 400 and image.height === 400
  const image = {
    pixels: rgba_to_grayscale(image_data, image_data.height, image_data.width),
    nrows: image_data.height,
    ncols: image_data.width,
    ldim: image_data.width
  }

This results in zero detections. Setting ldim to the seemingly arbitrary value of 419 results in one detection (which is the desired result). Setting ldim to anything higher results in several detections all correspoding to the same face.

All the other parameters have values taken from examples/image.html
ldim: 400 (the image width):
preview
ldim: 419 (the desired result):
preview
ldim: 420:
preview
ldim: 480:
preview

Save the recognized pattern?

Thanks to your awesome library! Is there a documentation how to save a recognized pattern from an image or video?

Nodejs Support?

Does this library support NodeJS? If yes, including simple example in documentation will help a lot.

Detect tilted faces

Hi,
I need whether the user's head is tilted to the left, the right, or is more-or-less balanced. I'm using a simple algorithm that checks the angle between the a line that connects between the eyes to the x-axis (thinking in 2d only - I'm not looking for the 3d head-pose).
I noticed that the face detection is not so good when the face is tilted. I need to support a tilt of up to ~45 degrees. Do you have any suggestion for how to support that? Maybe I could run the the algorithm multiple times, on several rotation angles of the image?
I hope there is a simple solution because this library is very light and I don't want to switch to the heavier face-api.

commercial use / mouth movement detection

Hello, this is fantastic, can you provide some contact information here please or on your website? I couldn't find any anywhere. I'd like to discuss a contract work opportunity for our company for mouth movement (speaking) detection.

Doesn't detect faces

I replaced the image in the example with an image of myself and my face was not detected. The program did not draw a circle around my face on the screen.

Watch for specific face?

Is the program able to have data about faces and let you know about the confidence level of a matching face?

Event Listeners

What available events can I listen for?

Am hoping for something like "ondetect"; would like to do some work the instant a face is detected.

webassembly memory error

uncaught rangeerror webassembly.memory() could not allocate memory at wasm pico.js, how to solve it

hand detection

Hey I have a question if I want to do hand detection using is it possible to do it?

How is it used?

How is it used?Some files will report an error when running on my laptop

what to use this for ?

Hi,
Thanks for this utility, but your expaination is a hight level one, at the end we don't know where or wh to use it for, can you provide some sample simple examples ?
Thanks.

webassembly's problem

I compile the webassebly's version of pico, but in practice, it can't detect the face when the in the left of video , while in the right video , it cat detect the face . why ?

what should I set ldim to?

Hi, I want to use pico to find faces on images of arbitrary width/height. I am hoping there is some sort of general rule I can uses for setting the ldim parameter based on image width & height. I have read over the explanation doc https://nenadmarkus.com/p/picojs-intro/

The parameter ldim tells us how to move from one row of the image to the next (known as stride in some other libraries, such as OpenCV).

From what I gather from the examples, it is usually set to the ncols parameter (a.k.a image width). However, I have an example image that is 400x400 pixels. Setting these params:

// where image.width === 400 and image.height === 400
  const image = {
    pixels: rgba_to_grayscale(image_data, image_data.height, image_data.width),
    nrows: image_data.height,
    ncols: image_data.width,
    ldim: image_data.width
  }

This results in zero detections. Setting ldim to the seemingly arbitrary value of 419 results in one detection (which is the desired result). Setting ldim to anything higher results in several detections all correspoding to the same face.

All the other parameters have values taken from examples/image.html
ldim: 400 (the image width):
preview
ldim: 419 (the desired result):
preview
ldim: 420:
preview
ldim: 480:
preview

How to train custom datasets. Does this library provides headpose value as well(pitch, yaw, roll)

Hello,

Could you please guide me how to train custom datasets, if possible can you give me architecture and its code to understand and then train with custom datasets. (I red your paper and details, yo said it uses ensemble decision tree to achieve this, could you give some code or overview on this).

Are you using face-detection techniques or face landmark/key-points technique here?.

Please let me know does this library gives headpose values?

A rust webassembly implementation

Great project and good to see you already had a wasm version in C.

I also write a Rust wasm version and here is the code: picojs-rust-wasm

Maybe we can do more comparative experiment to find the performance difference between each version :)

Official npm package

Thank you for creating and maintaining this project! 🙏

I would like to install and use the library via npm. I would appreciate to see this solution distributed as a downloadable package, so it could get the attention it deserves.

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.