Problems with installing node-webcam #189
-
I'm trying to follow your example for the demo but I'm facing problems with installing node-webcam with a React app using |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
ReactJS and/or NextJS are very specific setups, search previously closed issued, there are several ways to approach this. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use Human on stream, so I can get the best usage of caching using multiple frames per second instead of just a screenshot every second from the camera stream |
Beta Was this translation helpful? Give feedback.
-
is there any way to get the needed input for Human using React-webcam? If you have any idea it will be more than appreciated, thanks |
Beta Was this translation helpful? Give feedback.
-
never used |
Beta Was this translation helpful? Give feedback.
-
yeah, that's what I use right now, please correct me if I'm wrong, you're using a buffer from the stream then convert it to tensor then passing it to Human, right? |
Beta Was this translation helpful? Give feedback.
-
no, i tried that but decoding stream in JS is too slow. Fastest way depends on many thing, so there is no single answer assuming modern browser which does accelerated stream decoding (far faster than any JS could do) and
but can slow down a lot - for example:
regarding caching, but it does check if input is similar enough by resizing it to a tiny image and running checksum on it - if checksum difference is below what does each model do with its skipFrame is up to the model. For example, for where time between frames matters is results interpolation - if you're using |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your detailed reply! |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/vladmandic/human/wiki/Backends |
Beta Was this translation helpful? Give feedback.
See https://github.com/vladmandic/human/wiki/Backends