When using a Neural Network detection pipeline how do you get the name of the object detected in PhotonLib. Which method provides it?
Could be wrong but I think the fiducial ID method gives you the ID of the item. And each item in the model will have its own ID integer, 0, 1, 2 etc. There’s a text file that maps the items in the model to integers.
It can’t give you the name directly.
@bankst Can chime in here with a smarter answer than mine.
So having my own map from integer to name/enum wouldn’t hurt.
1 Like
Yeah, that’s a simple way of doing things.
In the latest 2025 beta PhotonTrackedId has objDetectId and objDetectConf
1 Like
Also I created a PhotonVisionCamera wrapper object that integrates the examples from their repo/website.
There are a few record classes for storage purposes used in this gist
That’s great, I guess my info was out of date.