Control camera settings from opencv using libargus based application

Hi,

We are trying to integrate the opencv support to the argus application (/usr/src/jetson_multimedia_api/samples/13_multi_camera/main.cpp) by referring the discussion in the following forum.

But the application failed to built with following error.
nvidia@nvidia-desktop:/usr/src/jetson_multimedia_api/samples/13_multi_camera$ sudo make
Compiling: main.cpp
main.cpp: In member function ‘virtual bool ArgusSamples::ConsumerThread::threadExecute()’:
main.cpp:367:43: error: ‘CV_RGBA2BGR’ was not declared in this scope

  •         cvtColor(imgbuf, display_img, CV_RGBA2BGR);*
    
  •                                       ^~~~~~~~~~~*
    

main.cpp:367:43: note: suggested alternative: ‘CV_RGB’

  •         cvtColor(imgbuf, display_img, CV_RGBA2BGR);*
    
  •                                       ^~~~~~~~~~~*
    
  •                                       CV_RGB*
    

Makefile:57: recipe for target ‘main.o’ failed
make: *** [main.o] Error 1

We are trying this in L4T32.6.1. How to fix the build issue while integrating opencv support to the argus application?

Also, the final aim of our application is to set the camera controls from opencv.

Is there any sample code available to access the Argus camera controls using opencv?

Thanks,
Koil Arul Raj.S

Hi,

Update on the above query.

We were able to fix the build issue by changing the “CV_RGBA2BGR” to “cv::COLOR_RGBA2BGR”. Now we could able to see streaming.

We are still checking to set the argus camera settings such as exposure_time_range, sensor_gain, isp_digital_gain etc from opencv.
Is there any sample code to set argus camera settings from opencv?

Thanks,
Koil Arul Raj.S

Have reference to argus_camera APP for those settings.

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.