stm32使用OV2640摄像头二值化代码

上传者: 41834692 | 上传时间: 2023-03-12 18:54:00 | 文件大小: 6.81MB | 文件类型: ZIP
使用STM32F+OV2640进行色块识别,希望对你有帮助 先把RGB565转换为灰度图,再进行判断二值化,对白色坐标进行取平均,就可以获得小球坐标,学习STM32F4的DCMI接口和OV2640摄像头模块的使用.。 本实验开机后,初始化摄像头模块(OV2640),如果初始化成功,则提示选择模式:RGB565模式,或者 JPEG模式。KEY0用于选择RGB565模式,KEY1用于选择JPEG模式。 当使用RGB565时,输出图像(固定为:UXGA)将经过缩放处理(完全由OV2640的DSP控制),显示在LCD 上面。我们可以通过KEY_UP按键选择:1:1显示,即不缩放,图片不变形,但是显示区域小(液晶分辨率 大小),或者缩放显示,即将1600*1200的图像压缩到液晶分辨率尺寸显示,图片变形,但是显示了整个 图片内容。通过KE0Y按键,可以设置对比度;KEY1按键,可以设置饱和度;KEY2按键,可以设置特效。 当使用JPEG模式时,图像可以设置任意尺寸(QQVGA~UXGA),采集到的JPEG数据将先存放到STM32F4的内 存里面,每当采集到一帧数据

文件下载

资源详情

[{"title":"( 210 个子文件 6.81MB ) stm32使用OV2640摄像头二值化代码","children":[{"title":"core_cmFunc.h <span style='color:#111;'> 16.74KB </span>","children":null,"spread":false},{"title":"core_cm4.h <span style='color:#111;'> 106.58KB </span>","children":null,"spread":false},{"title":"startup_stm32f40_41xxx.s <span style='color:#111;'> 28.91KB </span>","children":null,"spread":false},{"title":"core_cm4_simd.h <span style='color:#111;'> 22.20KB </span>","children":null,"spread":false},{"title":"core_cmInstr.h <span style='color:#111;'> 20.03KB </span>","children":null,"spread":false},{"title":"keilkilll.bat <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"usmart_config.d <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"delay.d <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"key.d <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"key.crf <span style='color:#111;'> 425.09KB </span>","children":null,"spread":false},{"title":"led.o <span style='color:#111;'> 461.99KB </span>","children":null,"spread":false},{"title":"usart.crf <span style='color:#111;'> 429.56KB </span>","children":null,"spread":false},{"title":"timer.d <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.d <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.d <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"stm32f4xx_it.d <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.crf <span style='color:#111;'> 425.41KB </span>","children":null,"spread":false},{"title":"usart2.crf <span style='color:#111;'> 428.90KB </span>","children":null,"spread":false},{"title":"usmart.o <span style='color:#111;'> 477.47KB </span>","children":null,"spread":false},{"title":"led.d <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"timer.o <span style='color:#111;'> 467.30KB </span>","children":null,"spread":false},{"title":"system_stm32f4xx.crf <span style='color:#111;'> 424.54KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.d <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"startup_stm32f40_41xxx.d <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.d <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"usart.d <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"startup_stm32f40_41xxx.lst <span style='color:#111;'> 75.91KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.o <span style='color:#111;'> 462.96KB </span>","children":null,"spread":false},{"title":"usmart_str.o <span style='color:#111;'> 468.78KB </span>","children":null,"spread":false},{"title":"OV2640_sct.Bak <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"usmart_str.d <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.o <span style='color:#111;'> 461.37KB </span>","children":null,"spread":false},{"title":"key.o <span style='color:#111;'> 463.90KB </span>","children":null,"spread":false},{"title":"usmart_config.o <span style='color:#111;'> 471.26KB </span>","children":null,"spread":false},{"title":"dcmi.d <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.crf <span style='color:#111;'> 425.14KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.o <span style='color:#111;'> 494.40KB </span>","children":null,"spread":false},{"title":"ov2640.crf <span style='color:#111;'> 437.18KB </span>","children":null,"spread":false},{"title":"OV2640.sct <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"usmart_config.crf <span style='color:#111;'> 432.36KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.o <span style='color:#111;'> 477.92KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.d <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"misc.o <span style='color:#111;'> 460.11KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.o <span style='color:#111;'> 467.10KB </span>","children":null,"spread":false},{"title":"sys.crf <span style='color:#111;'> 423.83KB </span>","children":null,"spread":false},{"title":"startup_stm32f40_41xxx.o <span style='color:#111;'> 7.89KB </span>","children":null,"spread":false},{"title":"sccb.o <span style='color:#111;'> 466.12KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.crf <span style='color:#111;'> 429.84KB </span>","children":null,"spread":false},{"title":"OV2640_OV2640.dep <span style='color:#111;'> 61.06KB </span>","children":null,"spread":false},{"title":"usart2.o <span style='color:#111;'> 464.47KB </span>","children":null,"spread":false},{"title":"timer.crf <span style='color:#111;'> 429.38KB </span>","children":null,"spread":false},{"title":"usmart.d <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.d <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"usart2.d <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"led.crf <span style='color:#111;'> 424.32KB </span>","children":null,"spread":false},{"title":"ov2640.d <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"delay.crf <span style='color:#111;'> 424.85KB </span>","children":null,"spread":false},{"title":"dcmi.crf <span style='color:#111;'> 441.00KB </span>","children":null,"spread":false},{"title":"usmart.crf <span style='color:#111;'> 434.72KB </span>","children":null,"spread":false},{"title":"OV2640.map <span style='color:#111;'> 141.17KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.crf <span style='color:#111;'> 428.67KB </span>","children":null,"spread":false},{"title":"system_stm32f4xx.d <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"OV2640.htm <span style='color:#111;'> 145.68KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.crf <span style='color:#111;'> 423.70KB </span>","children":null,"spread":false},{"title":"sys.d <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"sccb.crf <span style='color:#111;'> 426.74KB </span>","children":null,"spread":false},{"title":"OV2640.axf <span style='color:#111;'> 532.27KB </span>","children":null,"spread":false},{"title":"main.d <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"OV2640.hex <span style='color:#111;'> 135.45KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 480.52KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.o <span style='color:#111;'> 470.09KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.crf <span style='color:#111;'> 442.88KB </span>","children":null,"spread":false},{"title":"dcmi.o <span style='color:#111;'> 476.19KB </span>","children":null,"spread":false},{"title":"misc.crf <span style='color:#111;'> 423.37KB </span>","children":null,"spread":false},{"title":"delay.o <span style='color:#111;'> 463.74KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.d <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"misc.d <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"OV2640.lnp <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"stm32f4xx_it.o <span style='color:#111;'> 460.59KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.d <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.o <span style='color:#111;'> 464.30KB </span>","children":null,"spread":false},{"title":"ov2640.o <span style='color:#111;'> 481.73KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.crf <span style='color:#111;'> 433.75KB </span>","children":null,"spread":false},{"title":"system_stm32f4xx.o <span style='color:#111;'> 460.57KB </span>","children":null,"spread":false},{"title":"usmart_str.crf <span style='color:#111;'> 427.96KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.crf <span style='color:#111;'> 428.47KB </span>","children":null,"spread":false},{"title":"lcd.d <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"main.crf <span style='color:#111;'> 444.98KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.o <span style='color:#111;'> 467.34KB </span>","children":null,"spread":false},{"title":"sccb.d <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"usart.o <span style='color:#111;'> 466.80KB </span>","children":null,"spread":false},{"title":"lcd.o <span style='color:#111;'> 536.33KB </span>","children":null,"spread":false},{"title":"OV2640.build_log.htm <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"stm32f4xx_it.crf <span style='color:#111;'> 422.80KB </span>","children":null,"spread":false},{"title":"lcd.crf <span style='color:#111;'> 459.79KB </span>","children":null,"spread":false},{"title":"sys.o <span style='color:#111;'> 460.31KB </span>","children":null,"spread":false},{"title":"usmart_str.h <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"usmart.c <span style='color:#111;'> 15.13KB </span>","children":null,"spread":false},{"title":"usmart_config.c <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"usmart_str.c <span style='color:#111;'> 11.29KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明