Example explanation 04-Image-Filters->Histogram_Equalization Histogram

Equalization


# 直方图均衡例子
#
# 此示例展示了如何使用直方图均衡来改善图像中的对比度。 
import sensor, image, time

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()

while(True):
    clock.tick()

    img = sensor.snapshot().histeq()

    print(clock.fps())

Original image:

Running effect diagram:

Singtown Technology OpenMV official Chinese document function explanation:

results matching ""

    No results matching ""