This post explains how we can add support for panning and zoom functionality in the display node in OpenVX.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Many application requires support for features like panning and zoom in/out. This features can be implemented in the last component of the entire usecase chain, so that rest of the chains does not require to be adjusted due to change in the frame position/size.
Please find attached patch, which adds control command interface for setting up crop parameters. Please apply this patch on ti-processor-sdk-rtos-j721e-evm-07_01_00_11\tiovx folder in PSDKRA7.1 release.
In this patch, we can enable cropping at the create time by setting "enableCropping" flag to true and then setting 4 crop parameters, ie startX, startY, width and height. Scaling will be enabled if the cropped size is different from the output frame size, ie outWidth and outHeight.
Later on, the crop parameters could be changed the TIVX_DISPLAY_SET_CROP_PARAMS control command.
I have tested this feature by updating Single camera example. Pease find attached patch which adds support for testing this feature on single camera example. Please apply this on ti-processor-sdk-rtos-j721e-evm-07_01_00_11\vision_apps folder. I have added few run time options to move crop window around the image.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.