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

Camera board • Re: RuntimeError: Stream 'a.jpg' is not defined with NoIR V3 camera and Pi Zero 2W

$
0
0
Hi, "capture_image" returns an image object but does not save anything to a file. So the correct usage would be

Code:

image = camera.capture_image('main')
or even just

Code:

image = camera.capture_image()
If you want to save an image to a file, use

Code:

camera.capture_file("a.jpg")

Statistics: Posted by therealdavidp — Wed Jul 10, 2024 8:14 am



Viewing all articles
Browse latest Browse all 5439

Trending Articles