Navigation

    VEYE IMAGING Forum

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

    SOLVED no read-out from i2c whitebalance

    VEYE MIPI camera
    2
    5
    481
    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

      Hi,
      I am having troubles with variations in supposedly whitebalance and image brightnes.

      I changed to same model but different RPI 4B and still use this code:

      import D_mipicamera as Dcam
      
      
      camera = Dcam.mipi_camera()
      
      
      camera.init_camera()
      
      import os
      status = os.system('sh ./veye_mipi_i2c.sh -w -f cameramode -p1 0x0 -b 10')
      print status 
      
      status = os.system('sh ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFC -p1 0x00 -b 10')
      #print status 
      
      
      ##turn off automatic exposure
      status = os.system('sh ./veye_mipi_i2c.sh -w -f agc -p1 0 -b 10')
      print status 
      ##turn off white balance
      status = os.system('sh ./veye_mipi_i2c.sh -w -f wbmode -p1 0x1b -b 10')
      print status 
      
      
      
      status = os.system('sh ./veye_mipi_i2c.sh -w -f lowlight -p1 0x09  -b 10')
      print status 
      
      directory="/home/pi/testmipi/"
      
      date = datetime.datetime.now().strftime("%m_%d_%Y_%H_%M_%S")
      frame = camera.capture(encoding = 'jpeg')
      
      camera.release_buffer(frame)
      del frame
      time.sleep(1)
      
      frame = camera.capture(encoding = 'jpeg')
      frame.as_array.tofile((directory)+"nm590"+ date + ".jpg")
      camera.release_buffer(frame)
      del frame
      

      But I still get different image brightness.
      I tried to read-out the whitebalance value with

      ./veye_mipi_i2c.sh -r -f wbmode -b 10
      

      But i dont get any return value.

      What can be the problem?

      Do I have to install the camera again if it is the same disk image but another (same model) Pi?

      I can read-out the value for mshutter without problems...

      Another question: Is there a limit how often I can change the camera settings

      I realized that the camera settings have to be set each time that the RPI boots. Is there a way to write the camera settings permanently?

      Many thanks

      S 1 Reply Last reply Reply Quote 0
      • S
        Seka @Seka last edited by

        @seka
        I can read-out mshuttr, daynightmode etc. perfectly.. only wbmode there is no return.
        Just executes the command and nothing

        S 1 Reply Last reply Reply Quote 0
        • S
          Seka @Seka last edited by

          @seka
          hdver is 0x 3 amd devid is 0x 6

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

            @seka
            Please check if you veye_mipi_i2c.sh is the latest version.

            Is there a way to write the camera settings permanently?
            I'm sorry, VEYE series can not support this.

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

              @veye_xumm Thank you Xu, downloaded the new file and now it is working like a treat!

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