Skip to content

openzf/STM32_USB_UVC_CAMERA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

STM32_USB_UVC_CAMERA

cubemx stm32h743iit6, usb device uvc camera

开发环境: cubemx 6.0 +keil5 + stm32h743iit6

基于CDC串口更改

功能: 因为没摄像头,内部模拟了一张图片 USB插入到电脑中, 打开摄像头会显示这张图片

img

img

1 如何添加摄像头数据

在usdb_uvc_if.c中 返回图片缓冲地址

uint8_t *Camera_GetFrame(uint32_t *pFrameLength)
{
	pFrameLength[0] = 160*120*2;
	int ix = 0;
	for(int i = 0; i<160;i++)
	{
			for(int j = 0; j<20;j++)
			{
				pic[i][j] = 0xffff;
			}
	}
	return (uint8_t *)&pic;
}

About

cubemx stm32h743iit6, usb device uvc camera

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published