ZackAkil / video-intelligence-api-visualiser

A simple app that lets you visualise annotations from the Google Cloud Video Intelligence API using your local files.
https://zackakil.github.io/video-intelligence-api-visualiser/
101 stars 67 forks source link

How to get PERSON_DETECTION attributes? #15

Closed kawaljitfram closed 1 year ago

kawaljitfram commented 1 year ago

Currently "result" does not generate attributes of person like:

UpperCloth:Yellow 0.0027923339512199163
UpperCloth:White 0.003149580443277955
UpperCloth:TankTop 0.0005836356431245804
UpperCloth:T-Shirt 0.04742685332894325
UpperCloth:Sweater 0.032353583723306656
UpperCloth:Suit 0.00021243176888674498
UpperCloth:Striped 0.006438440643250942
UpperCloth:Spotted 0.0006699545192532241
UpperCloth:ShortSleeve 0.03521478921175003
UpperCloth:Shirt 0.02210160531103611
UpperCloth:Red 0.0031773068476468325
UpperCloth:Purple 0.0076485988683998585
UpperCloth:Plain 0.9111855030059814
UpperCloth:Plaid 0.00020911525643896312
UpperCloth:Orange 4.279583299648948e-05
UpperCloth:NoSleeve 0.00027835002401843667
UpperCloth:MultiColor 0.04962644726037979
UpperCloth:LongSleeve 0.9889023303985596
UpperCloth:Jacket 0.6971068382263184
UpperCloth:Green 0.025935975834727287
UpperCloth:Gray 0.007227590307593346
UpperCloth:Graphics 0.04814588651061058
UpperCloth:Floral 0.0022292593494057655
UpperCloth:Dress 0.0045667728409171104
UpperCloth:Coat 0.015692155808210373
UpperCloth:Brown 0.00029499069205485284
UpperCloth:Blue 0.2514462172985077
UpperCloth:Black 0.833584189414978
LowerCloth:ShortSkirt 0.0067656803876161575
LowerCloth:ShortPants 0.10137072205543518
LowerCloth:LongSkirt 0.001374957268126309
LowerCloth:LongPants 0.9604998230934143

I have set "include_attributes=True"

person_config = videointelligence.PersonDetectionConfig( include_bounding_boxes=False, include_attributes=True, include_pose_landmarks=False, )

Any way to get this?