TIDA-00254: Changing resolution of OpenCv camera
Part Number: TIDA-00254
I have successfully compiled the SDK by commenting out the PG Flycam drivers in the CMakeLists.txt file. In the next step I set the parameters of my camera to fixed values. In my case on 2056 x 1542 pixels of the IDS camera. These parameters are now correctly set in the program camera_view_opencv.exe, but the resolution of the image does not match yet. The 640 x 480 pixels in the image are still displayed in the live image. Which parameters still have to be overwritten? I can't find the root source of the 640 x 480 display parameters.
Welcome to the E2E forums, and thanks for your interest in our DLP technology.
What is the model number/information of the camera you are using?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Philippe Dollo:
currently i'm using IDS UI-3270cP-M-GL Rev.2.
In reply to David Jaskolka:
Kindly wait for a few more days, we are looking into your query and will get back soon! Thank you for your patience.
In reply to Hirak Biswas:
The problem lies in the OpenCV side that certain cameras it defaults 640x480 resolution when it fails to apply the user requested resolution. You can try with the camera model maker if they have openCV example implementation for capturing native resolution. Often it will be done by modifying the OpenCV source code and rebuilding the libraries. I came across this stack over flow discussion https://stackoverflow.com/questions/16390810/opencv-cant-set-resolution-of-video-capture
I suggest first checking with camera manufacturer if they have OpenCV support for the model and example code, you can take it from there.
Hope this helps.
If a post answers your question, please click on "Verify Answer" button
In reply to Sanjeev:
today I rebuilt the OpenCV version and changed the default to my resolution as described. Unfortunately it still shows the low resolution. And when using the latest OpenCV version the compiler doesn't work properly. Do you have another option or solution for me?
Okay. Have you spoken to camera manufacturer about the OpenCV issue? In the past i have came across situations the camera manufacturer made changes to the OpenCV source code to get it working. I recommend you try this option.
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 andembedded processors, along with software, tools and the industry’s largest sales/support staff.