8,367
edits
Changes
→Use apt to install OpenCV
<ol style="list-style-type: decimal;">
<li><p>The installation command is shown below</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo apt-get update'''</p>
<p>orangepi@orangepi:~$ '''sudo apt-get install -y libopencv-dev python3-opencv'''</p>|}</li>
<li><p>Then use the following command to print the output of the version number of OpenCV, indicating that the installation of OpenCV is successful</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The version of OpenCV in ubuntu22.04 is shown below:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c "import cv2; print(cv2.__version__)"'''</p>
<p>'''4.5.4'''</p>|}</li>
<li><p>The version of OpenCV in Ubuntu 20.04 is shown below:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c "import cv2; print(cv2.__version__)"'''</p>
<p>'''4.2.0'''</p>|}</li>
<li><p>The version of OpenCV in Debian11 is shown below:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c "import cv2; print(cv2.__version__)"'''</p>
<p>'''4.5.1'''</p>|}</li>
<li><p>The version of OpenCV in Debian12 is shown below:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c "import cv2; print(cv2.__version__)"'''</p>
<p>'''4.6.0'''</p>|}</li></ol>
</li></ol>
<span id="the-installation-method-of-the-aapanel-linux-panel"></span>
== The installation method of the aapanel Linux panel ==