Hi Xu Ji,
Using the Yocto 5.4.3 release, Python 3 works for this. From the command line on your board:
root@imx8qmmek:~# python3
>>>import cv2
>>> cv2.__version__
'4.2.0'
Don
Hi,
The OpenCV version is contained within a special
variable, which you can access like this:
The
variable is simply a string which you can split into the major and minor versions:
Regards
Hi Xu Ji,
I don’t see a Yocto 2.3.0 release. The earliest Yocto release that I can see support for the MX8 QM in is 4.9.51. You might want to double check the version that you are on.
When you run “bitbake ” you will see the “DISTRO_VERSION” listed. The best way to get a newer version of OpenCV would be to use a new distro.
You can check the version that is provided in your BSP by running:
$ bitbake -s | grep opencv
opencv :4.2.0.imx-r0
In Distro 4.19-warrior you get OpenCV 4.0.1. It might be possible to integrate 4.2.0 into an older distro but it would probably be a fair bit of work.
Best recommendation is to move to Yocto distro 5.4-zeus to get OpenCV 4.2.0
Don
Don Gunn BEng, Bsc
Advanced Engineer, Processor Specialist
Future Intelligent Solutions
C: 604-318-1319
www.FutureElectronics.com<http://www.futureelectronics.com/>;
This communication is subject to Future Electronics' Email Policy
WARNING: Please do not attach, forward or reply with any Export Controlled Technical Data, Documents/Drawings (EAR and ITAR) to this email.<http://www1.futureelectronics.com/disclaimer.html>
<https://www.futureelectronics.com/help/shipping-impacts/letter>
Click on the banner to go to our website for updates.