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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login