Hi all,
Using the Pixy pantilt (CMUcam5), I understand that there are 2 python examples, each use different pixy module :
- get_blocks.py : detect blocks without moving and store them into a BlockArray struct;
- pantilt.py : detect blocks, but choose only one to track
Then, I would like to know how we can get more than one block with the python pantilt program (I’m beginner at python).
The goal is to get all the blocks and passing them through a neural network which would allow to choose only one to track, but without going into details, increasing the size of the buffer shows that it detects several targets but still returns a single block (I guess the biggest one). This seems logical since the program pantilt use the struct Block() instead of struct BlockArray().
Grouping the 2 pixy modules and import them as 2 different names in my python program didn’t solve my problem since the functions that work depend on the pixy_init() that is initiate …
So if you have any suggest in how I could obtain a one module pixy which is simply the pixy module for tracking with the possibility to get many objects.
Thanks for your help.