Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Human body detection in Javascript [closed]

Is there any JavaScript library for human body detection in images or video? I know OpenCV in C++ and Python, but I need it in JavaScript. There are also libraries for face detection, but I can't find any for the whole body.

like image 547
xavimb Avatar asked Jun 26 '12 14:06

xavimb


People also ask

How do you detect a human body?

The Passive Infrared (PIR) sensor is used to detect the presence of human. But this detects the human only if they are in motion.

How to detect a person using OpenCV?

However, OpenCV has a built-in method to detect pedestrians. It has a pre-trained HOG(Histogram of Oriented Gradients) + Linear SVM model to detect pedestrians in images and video streams. This algorithm checks directly surrounding pixels of every single pixel.

What is human detection?

Human detection is the task of locating all instances of human beings present in an image, and it has been most widely accomplished by searching all locations in the image, at all possible scales, and comparing a small area at each location with known templates or patterns of people.

How can you find people in a video?

To detect people in a video, send a video annotation request to Video Intelligence, and include the PERSON_DETECTION flag. The annotation request returns details about each person detected in the video, including video segment locations where the person is detected.


1 Answers

Yes, there are JavaScript ports of OpenCV that perform object detection on images or videos in real-time: js-objectdetect (which contains an upper body classifier) and HAAR.js.

More classifiers can be found in the OpenCV distribution or on the internet, they just have to be converted into another format before they can be read by the JavaScript libraries.

like image 171
le_m Avatar answered Sep 21 '22 10:09

le_m