Subset array of IMX327 in Python
-
Hi,
I wonder if it is possible to subset the images of IMX327 directly before saving it...I tried:
frame = camera.capture(encoding='jpeg') frame = frame.as_array frame = frame[360:720, 640:1280] frame.as_array.tofile(dest+"/nm590" + date + ".jpg")
But I got the error: IndexErroe: too many indices for array
When checking number of dimensions with
len(frame.shape)
it returns 1
Any idea what the problem may be?
-
@seka
I'm not very familiar with python. But in my opinion, jpeg is compressed data, which can't be subset by simple sampling, is it?