Hardware used: Raspberry pi 4b, 4 gb ram, AMG8833 thermal camera, PiCamera V2 noir, ALL brand new, i just bought them few weeks ago.
Im trying to do finish a project and i ran into a not that good error, i couldnt find anything on the internet till now!
If the picamera does not get a capture the blob detection algorithm gets the same image from the last time... and it s not that nice.
And the AMG8833 code is the adafruit version that i changed with a simple while (1) loop so it can run and update continuously.
Ok, the question is: Why do i keep getting that error only when it is in main code and when i test it in the normal folder i wont get any error and it works perfectly?
I tried with a while loop and it gives me the same error and then i tried a simple version and it worked. Same in the main code - i used it in the while 1 loop and it gives me the error from the first image and then i deleted it from the while loop and dropped it outside the while loop and the problem seems to be from the while loop, but i still dont know yet... what is the problem.
I would like to see some answers from more experienced guys, i only have like... 2 weeks in programming and raspberry pi..