Question
STM32F4,DCMI_OV9655_SelectOutputFormat
Posted on April 21, 2017 at 00:02
I am using the ov9655 camera for image processing with the STM32F4 microprocessor. I want to convert the camera format from RGB to YUV(grayscala) . How can ı do it ?
/* OV9655 Camera size setup */
#if defined (QQVGA_SIZE) DCMI_OV9655_QQVGASizeSetup(); #elif defined (QVGA_SIZE) DCMI_OV9655_QVGASizeSetup(); #endif /* Set the RGB565 mode */ DCMI_SingleRandomWrite(OV9655_DEVICE_WRITE_ADDRESS, OV9655_COM7, 0x63); DCMI_SingleRandomWrite(OV9655_DEVICE_WRITE_ADDRESS, OV9655_COM15, 0xd0);/* Invert the HRef signal*/
DCMI_SingleRandomWrite(OV9655_DEVICE_WRITE_ADDRESS, OV9655_COM10, 0x08); /* OV9655 Camera DCMI setup */ OV9655_DCMI_Configuration();return (0x00);
