I poll Pixy firmware 1.0.2 over I2C but I feel I see this very same issue using PixyMon as well.
I can have nice lighting and object being detected in mid frame for a few seconds at a time.
But no matter what I try I get periodic dropouts where no objects are detected then they come back in a fraction of a second later in another sample. I am using 3-color stripes in cc object mode for object type 121 for example.
What I have to do is have my system not report that the object is gone from the frame until I no longer see the object for up to 3 seconds. This is a workaround but of course is a real issue for me. I wish to know if the object has disappeared from the frame by worse case 500msec.
I See this also in PixyMon if you just bring up PixyMon and do NOT yet hit the ‘cook’ icon so you see the object outline in white box on black. It appears to flicker and completely disappears for 1/4 second or so intervals irradically.
This happens even if I tweek ‘brightness’ so the block detection is optimal in PixyMon using the ‘cook’ icon. I want to tweek brightness to scan in several brightnesses and look for close or farther away thing because I know brightness is a key and critical parameter.
I wonder if slowing down the frame rate to 10 per second which is FINE for my needs would maybe better help this issue but cannot find a frame rate setting in PixyMon.
Again I question if maybe what I am seeing is that I sample Pixy right as it is updating samples and if proper queue or locking on the queue are not done maybe the blocks being reported come out to be none for that case. I’m just throwing out ideas here.
I will be implementing checksum verification as there is some chance this may be over the wire corruption but since I see what looks like maybe this same issue in both the flickering Pixy 3-color light AND in PixyMon loosing the image I question if it is maybe ‘real’ bug.
Any thoughts? Thanks, Mark