bradenhurl / DeepGTAV-PreSIL

GNU General Public License v3.0
78 stars 16 forks source link

How to get the occlusion of the object from image data #26

Open yitong-quan opened 1 year ago

yitong-quan commented 1 year ago

Hi,

I want to extract the occlusion level of a target inside a bounding box, say a person partially occluded by a tree. I found the following info from the code. But from the message obtained through the python script, this occluded filed is not Integer as said, but a value between 0 and 1. Is it correct? if yes, how can I translate from a value 0 to 1 to the following documented values?

1 occluded Integer (0,1,2,3) indicating occlusion state: 0 = fully visible, 1 = partly occluded 2 = largely occluded, 3 = unknown.

Another question, I found the following code, is this function used to calculate the occluded filed above? If yes, how can I pass the value of e->occlusion to the message passed to python script.

Thank you in advance!