openmv感光元件函数库sensor(持续更新ing)
本文最后更新于34 天前,其中的信息可能已经过时,如有错误请发送邮件到3014096835@qq.com

示例:

import sensor

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(100)

while(True):
    sensor.snapshot()

函数

sensor.reset()初始化相机传感器

sensor.sensor_sleep(enable)如果enable为True,则将相机置于睡眠状态。否则将其唤醒

sensor.snapshot()使用相机拍摄一张照片,并返回image对象

sensor.skip_framse([n,time])跳过n帧,或者跳过Time毫秒

sensor.width()返回传感器的分辨率宽度

sensor.height()返回传感器的分辨率高度

sensor.set_pixformat(pixformat)设置相机模块的像素模式

  • sensor.GRAYSCALE:8bit/像素
  • sensor.RGB565:16bit/像素
  • sensor.BAYER:8bit没像素的bayer格式
  • sensor.JPEG:JPEG压缩数据。仅适用于OV2640、OV5640

sensor.set_framesize(framesize)设置相机模块的帧大小

sensor.snapshot()拍摄一张照片,返回一个image对象

sensor.set_auto_gain()自动增益开启(True)或者关闭(False)。在使用颜色追踪时,需要关闭自动增益

sensor.set_auto_whitebal()自动白平衡开启(True)或者关闭(False)。在使用颜色追踪时,需要光比自动白平衡

sensor.set_auto_exposure(enable[\,exposure_us])自动曝光

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
下一篇