iliasam / STM32_HOST_UVC_Camera

Example of connecting USB Web camera to STM32F4 USB HOST
http://we.easyelectronics.ru/STM32/zahvat-izobrazheniya-s-usb-kamery-pri-pomoschi-stm32.html
GNU Lesser General Public License v3.0
137 stars 64 forks source link

How to change the camera resolution? #6

Closed liuzhijun23 closed 3 years ago

liuzhijun23 commented 3 years ago

I have run the project in STM32F407 success now. I find the camera resolution is 120 X 160,how to change the resolution to 240 X 320?

iliasam commented 3 years ago

Change UVC_TARGET_WIDTH and UVC_TARGET_HEIGHT to needed values in https://github.com/iliasam/STM32_HOST_UVC_Camera/blob/master/HAL_source/Middlewares/ST/STM32_USB_Host_Library/Class/VIDEO/Inc/usbh_video.h

liuzhijun23 commented 3 years ago

Change UVC_TARGET_WIDTH and UVC_TARGET_HEIGHT to needed values in https://github.com/iliasam/STM32_HOST_UVC_Camera/blob/master/HAL_source/Middlewares/ST/STM32_USB_Host_Library/Class/VIDEO/Inc/usbh_video.h

Thanks,This method works.