Only detect "PERSON" class type during object detection and tracking

Hi,

I am currently working on multi-camera object detection. In both the zed cameras, I would like to detect only the pedestrian or person as a single class. It should not detect any other object. I followed the python API for object detection and the code below:
image

gives me the following error.

I have checked all the attributes inside obj_param as well as the enum_values for sl.OBJECT_CLASS. It lists the classes as:
Person
Vehicle
Bag
Animal
Electronics
Fruit-Vegetable
Sport
Unknown

So, I tried sl.OBJECT_CLASS.Person (with small), but it too did not work. Can anyone help what is the correct way to detect only person class in python API?

Hi, you are mixing object clases with detection models. You cannot do that. You should should MULTI_CLASS_BOX_ACCURATE for example. Then, it your detection, you can filter the other objects to keep only the PERSON class.

You should check out tutorial 6, it’s clear in there.