logo

openmv4PLUS的图像为什么这么偏暗偏绿

2021-07-14 20:34
J
dpt5

感觉过头了,白天好一些,色块经常都不灵,openmv4就感觉还正常

0461d025-1d94-4f2d-a3b9-e7d40c324fa4.jpg
47796c47-862d-4d37-ad92-9eac2f92362a.png
0f029cfe-b604-4036-88e9-c8efc3b2901e.png

实际灯挺亮的

下面是openmv4的图像

c14b4b1c-03a7-42bd-8bc2-fdabb228f963.png

代码里面白平衡,曝光什么的也开了,没什么效果

plus就这样的吗,还是我哪里做的不对

2021-07-14 20:59
I
网红小智智 星瞳科技

提供一下具体的代码。

2021-07-14 21:10
J
dpt5

@kidswong999 跑例程就是这样的效果

image
# Hello World Example
#
# Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!

import sensor, image, time

sensor.reset()                      # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA)   # Set frame size to QVGA (320x240)
sensor.skip_frames(time = 2000)     # Wait for settings take effect.
clock = time.clock()                # Create a clock object to track the FPS.

while(True):
    clock.tick()                    # Update the FPS clock.
    img = sensor.snapshot()         # Take a picture and return the image.
    print(clock.fps())              # Note: OpenMV Cam runs about half as fast when connected
J
dpt5

@kidswong999

91a57595-8935-464d-94a5-ee441adc2df8.png
2021-07-14 21:54
J
dpt5

@kidswong999 是硬件的问题吗

2021-07-15 17:22
I
网红小智智 星瞳科技

应该是环境太暗了。你运行下面的代码。

import sensor, image, time

sensor.reset()                      # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA)   # Set frame size to QVGA (320x240)
sensor.set_auto_whitebal(False, rgb_gain_db=(62,60,63))
sensor.set_auto_exposure(False, 101244)
sensor.set_auto_gain(False, 22)
sensor.skip_frames(time = 2000)     # Wait for settings take effect.
clock = time.clock()                # Create a clock object to track the FPS.

while(True):
    clock.tick()                    # Update the FPS clock.
    img = sensor.snapshot()         # Take a picture and return the image.
    print(clock.fps())
2021-07-15 19:13
J
dpt5

@kidswong999 可能好一点了,但还是感觉偏暗

c6707f00-87e7-45ea-979b-a6ee3554efe4.jpg
a4b089fb-64b1-4a5b-9d28-4f0d5677f68d.jpg

下面是用手机拍的

f96e04aa-bdde-4084-b216-5e20dd62e891.png
2021-07-19 12:53
I
网红小智智 星瞳科技

那你就把里面的曝光值再大一些

步骤:https://forum.singtown.com/topic/6685/%E5%8D%87%E7%BA%A7%E5%88%B02-6-9%E7%89%88%E6%9C%AC-%E5%9B%BA%E4%BB%B6%E5%8D%87%E7%BA%A7%E5%90%8E-%E7%9B%B8%E6%9C%BA%E5%88%9D%E5%A7%8B%E5%8C%96%E5%A4%B1%E8%B4%A5-%E9%A2%9C%E8%89%B2%E4%B8%8D%E6%AD%A3%E5%B8%B8/9