Human pose detection
In the previous section, we learned about detecting multiple objects and segmenting them. Now we will learn about detecting multiple people in an image, as well as detecting the keypoints of various body parts of the people present in the image using Detectron2. Detecting keypoints comes in handy in multiple use cases, such as in sports analytics and security. For this exercise, we will be leveraging the pre-trained keypoint model that is available in the configuration file:
The following code can be found in the Human_pose_detection.ipynb
file located in the Chapter10
folder on GitHub at https://bit.ly/mcvp-2e.
- Install all the requirements as shown in the previous section:
%cd /content/ # install detectron2: !git clone https://github.com/facebookresearch/detectron2 %cd /content/detectron2 %pip install -r requirements.txt !python setup.py install %pip install git+https://github.com/facebookresearch/fvcore.git %cd /content/ %pip...