Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 2W

266 bytes added, 14:56, 26 September 2023
Use apt to install OpenCV
<ol style="list-style-type: decimal;">
<li><p>The installation command is as follows</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 version number of OpenCV. The output is normal, indicating that the OpenCV installation is successful.</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The version of OpenCV in Ubuntu22.04 is as follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c &quot;import cv2; print(cv2.__version__)&quot;'''</p>
<p>'''4.5.4'''</p>|}</li>
<li><p>The version of OpenCV in Ubuntu20.04 is as follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c &quot;import cv2; print(cv2.__version__)&quot;'''</p>
<p>'''4.2.0'''</p>|}</li>
<li><p>The version of OpenCV in Debian11 is as follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c &quot;import cv2; print(cv2.__version__)&quot;'''</p>
<p>'''4.5.1'''</p>|}</li>
<li><p>The version of OpenCV in Debian12 is as follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''python3 -c &quot;import cv2; print(cv2.__version__)&quot;'''</p>
<p>'''4.6.0'''</p>|}</li></ol>
</li></ol>
<span id="set-up-the-chinese-environment-and-install-the-chinese-input-method"></span>
 
== Set up the Chinese environment and install the Chinese input method ==