Subset array of IMX327 in Python
I wonder if it is possible to subset the images of IMX327 directly before saving it...
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
it returns 1
Any idea what the problem may be?
veye_xumm last edited by
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?