no read-out from i2c whitebalance
-
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 frameBut I still get different image brightness.
I tried to read-out the whitebalance value with./veye_mipi_i2c.sh -r -f wbmode -b 10But 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
-
@seka
I can read-out mshuttr, daynightmode etc. perfectly.. only wbmode there is no return.
Just executes the command and nothing -
@seka
hdver is 0x 3 amd devid is 0x 6 -
@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. -
@veye_xumm Thank you Xu, downloaded the new file and now it is working like a treat!
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