DCMI Crop feature
Hi all, I recently started learning about st-controllers and I am stuck in this, any help would be greatly appreciated.
I am working with stmf746, I wanted to crop the captured image with DCMI crop feature, I am configuring crop window size and offset with HAL_DCMI_ConfigCrop() and enabling crop with HAL_DCMI_EnableCrop(); If I want crop to size MxN from size 90x60, I am calling these function before camera capture after BSP_CAMERA_INIT(); HAL_DCMI_ConfigCROP(&dcmi, X0, Y0, M-1, N-1); HAL_DCMI_EnableCROP(&dcmi);
But I can see that the cropped image is not getting displayed properly, I can see the image is cropped, but there was there more than one image in a frame (4 to 5 images in a frame), I have correctly configured the code to display cropped image to MxN, can someone please explain me why this is happening, is there something I am missing? or anything wrong?
