Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

AI Camera - IMX500 • Re: CCTV security environment

$
0
0
I tried similar a few weeks back but it wouldn't create the destination file without the time.sleep(n) between the two lines. If you've got it to do that without then that's a breakthrough! Doubt I'll get chance to experiment further now until next week.

Code:

circular.open_output(PyavOutput(destination))...circular.close_output()
Otherwise I'm considering writing something that uses the working of CircularOutput and mixes it with the PyavOutput benefit of CircularOutput2, however I'm not a Python developer & haven't tried working with CircularOutput properly yet. Alternatively I might see if there's a way to spawn the circular buffer into a separate process / thread to stop it blocking the main one, but I notice there are notes on "locking" in the circularoutput2.py code that I might need to understand first https://github.com/raspberrypi/picamera ... C11-L24C28

Statistics: Posted by Cobilia — Thu Mar 20, 2025 11:54 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles