VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    Subset array of IMX327 in Python

    Scheduled Pinned Locked Moved VEYE MIPI camera
    2 Posts 2 Posters 652 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Seka
      last edited by Seka

      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?

      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @Seka
        last edited by

        @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?

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        1 Reply Last reply Reply Quote 0

        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
        • First post
          Last post