How can I display masks detected window

Hi
You helped me previously to fix my code but I am still having issues. ran the code with sphinx “/opt/parrot-sphinx/usr/share/sphinx/drones/anafi_ai.drone”::firmware=“https://firmware.parrot.com/Versions/anafi2/pc/%23latest/images/anafi2-pc.ext2.zip”
and
parrot-ue4-sphx-tests -level=autotests -config-file=/home/aims-lab/code/parrot-olympe/research/config.yaml

Could you please tell how you were able to get the window with masks (I attached it, grey picture)?

I attached the screenshot of my env. It still never detects/prints “Red object is detected”. Am i doing anything wrong?


this is still relevant. thank you

I have not tested your code lately, but it may be because the frame format returned by yuv_frame_cb is not the one you expect. Are you sure that bgr_frame contains blue, green, and red channels as your code suggests? You can use cv2.imwrite to write the frames as png files.