Is there tested sample code available for live camera object detection with OpenCV for imx8mqevk target.
Thanks & regards,
You can use the Opencv with you MX8MQEVK, even with camera please check the Linux BSP documentation in the User guide chapter 12 eIQ machine learning for i.MX toolkit provides a set of libraries and development tools for machine learning applications targeting NXP microcontrollers and application processors. The toolkit is contained in the meta-fsl-bsp-release/imx/meta-ml layer. It describe how to run OpenCV, Arm Compute Library, Tensorflow, TensorFlow Lite, Arm NN, and ONNX demos on i.MX Linux BSPs.
Thanks for reply!
I have compiled eIQ OpenCV object detection cpp example. Facing run time error:
[ 368.794291] mx6s-csi 30a90000.csi1_bridge: CSI dev coherent is 1[ 368.800620] mx6s-csi 30b80000.csi2_bridge: CSI dev coherent is 1[ 368.825304] mx6s-csi 30a90000.csi1_bridge: CSI dev coherent is 1
(ObjectRecognitionCPP:4394): GStreamer-CRITICAL **: 09:55:24.973: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failedVideo fps: 1.00777terminate called after throwing a[ 369.881174] audit: type=1701 audit(1583488526.012:5): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=System pid=4394 comm="ObjectRecogniti" exe="/home/test/eiq_sample_apps/examples-opencv/obj_recognition_cpp/src/ObjectRecognitionCPP" sig=6 res=1n instance of 'cv::Exception' what(): OpenCV(4.0.1) /home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/opencv/4.0.1.imx+gitAUTOINC+c3d56b9aea_2522124473_32e315a5b1_34e4206aef_fccf7cd6a4_d29d003e00-r0/git/modules/imgproc/src/resize.cpp:3784: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
Aborted (core dumped)
is there any dependency package which I missed? Looking forward for your response.
I think because your camera device input not in there. Just try in terminal ls /dev. There is a video0 or video1 etc. Use your option.
I could access camera through gstreamer command :
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! waylandsink
l could see both video0 & video1 with full permissions also, no issue on the devices. Its showing some issue with resize function.
Thanks & Regards,
Seems like issue is with the dimension.
Retrieving data ...