
专业版
CompatibleMV-OV2640
707
0
0
0
简介
兼容openmv4的摄像头模块
简介:兼容openmv4的摄像头模块开源协议
:Public Domain
创建时间:2024-08-05 14:29:44更新时间:2024-08-06 06:32:07
描述
一个可用于OpenMV4的OV2640的模块,将FPC模组转接到OpenMV4的BTB座子。
摄像头我用的是https://m.tb.cn/h.gkDQKAOUux5XX3U?tk=fmPn3W9kW5P,M12的应该都能锁上螺丝
BTB连接器我用的是https://m.tb.cn/h.gkD9MfOiVl2YqBc?tk=uAQm3W9l4WF, 选择DF12NB(3.0)-36DP-0.5V
摄像头实测需要翻转,例子如下
```python3
import sensor
import 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_hmirror(True)
sensor.set_vflip(True)
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
# to the IDE. The FPS should increase once disconnected.
```
效果如图,说实话不是很好,帧率也不是很高,图一乐(
设计图

BOM


添加到专辑
0
0
分享
侵权投诉
评论