Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    Subset array of IMX327 in Python

    VEYE MIPI camera
    2
    2
    273
    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
      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_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        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?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post