dinvlad / HyperVision

Slick camera setup for Hyperion ambilight
BSD 3-Clause "New" or "Revised" License
42 stars 2 forks source link

calibrate_screen.py - 'tuple' object has no attribute 'sort' #3

Closed mrvnklm closed 1 year ago

mrvnklm commented 1 year ago

After running calibrate_camera.py successfully, the calibrate_screen.py always returns the error 'tuple' object has no attribute 'sort'. The screen is withing the cameras view, the lights are off, the screen is bright and visible within the preview window. I just noticed, that the blue rectangles are missing after the white screen appears for like a second.

Do you have any idea what could be the issue?

dinvlad commented 1 year ago

Sorry not sure tbh, I haven't seen that before. If you could share the JSON file that it saved, that would be helpful - I think it might've saved something incorrectly.

mrvnklm commented 1 year ago

I just figured out, that it was an issue with a newer version of opencv-python. I had to install python 3.9 and use opencv-python==4.5.3.56 to make it work.