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

    no read-out from i2c whitebalance

    Scheduled Pinned Locked Moved VEYE MIPI camera
    5 Posts 2 Posters 1.2k 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

      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 Offline
        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 Offline
          Seka @Seka
          last edited by

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

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            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.

            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.)

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              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

              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