### Install Flask and Start Web Service for Face Recognition Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&mobileaction=toggle_view_desktop&title=Orange_Pi_Zero_3 This snippet covers installing the Flask framework and starting the web service example. If face_recognition was installed via script, Flask may already be present. ```bash orangepi@orangepi:~$ '''python3 -m pip install flask''' orangepi@orangepi:~$ '''cd face_recognition/examples''' root@orangepi:~/face_recognition/examples$ '''python3 web_service_example.py''' ``` ```text * Serving Flask app 'web_service_example' (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: on * Running on all addresses (0.0.0.0) WARNING: This is a development server. Do not use it in a production deployment. * Running on http://127.0.0.1:5001 * Running on http://192.168.1.79:5001 (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 500-161-390 ``` -------------------------------- ### Set up Build Environment and Compile Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&mobileaction=toggle_view_desktop&title=Orange_Pi_4G-IoT Initializes the build environment and starts the compilation process using 'make'. ```bash source build/envsetup.sh luncher >full_k37mv1_bsp-eng make -j4 ``` -------------------------------- ### MobaXterm Download Selection Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&title=Orange_Pi_3B Guides the user to select the 'GET XOBATERM NOW!' button and then choose the 'Home' version for download. The portable version is recommended for immediate use without installation. ```text Click 'GET XOBATERM NOW!' button Choose 'Home' version Choose 'Portable' version ``` -------------------------------- ### Navigate to Examples Directory Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&title=Orange_Pi_5_Plus Change the current directory to the examples folder within the wiringOP-Python project. ```bash root@orangepi:~/wiringOP-Python# '''cd examples''' ``` -------------------------------- ### Compile and Run QT Example Code Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&mobileaction=toggle_view_desktop&title=Orange_Pi_4A Open an example code, configure the project, and then compile and run it by clicking the green triangle button. ```bash Click 'Configure Project' Click the green triangle button to compile and run the example code. ``` -------------------------------- ### Install Bluetooth Audio Module and Start Pulseaudio Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&mobileaction=toggle_view_desktop&title=Orange_Pi_Zero_3 Install the necessary pulseaudio-module-bluetooth package to enable Bluetooth audio support. After installation, start the pulseaudio service. ```bash orangepi@orangepi:~$ '''sudo apt update''' orangepi@orangepi:~$ '''sudo''' '''apt -y install pulseaudio-module-bluetooth''' orangepi@orangepi:~$ '''pulseaudio --start''' ``` -------------------------------- ### Navigate to Examples Directory Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&mobileaction=toggle_view_desktop&title=Orange_Pi_5_Plus Change the current directory to the examples directory to access sample programs like blink.py. ```bash cd examples ``` -------------------------------- ### Install Bluetooth Audio Module and Start Pulseaudio Source: http://www.orangepi.cn/orangepiwiki/index.php?mobileaction=toggle_view_desktop&oldid=5189&title=Orange_Pi_Zero_3 Install the pulseaudio-module-bluetooth package and start the pulseaudio service to enable Bluetooth audio connections. ```bash orangepi@orangepi:~$ **sudo apt update** orangepi@orangepi:~$ **sudo** **apt -y install pulseaudio-module-bluetooth** orangepi@orangepi:~$ **pulseaudio --start** ``` -------------------------------- ### ROS Installation Link Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&title=Orange_Pi_CM4 Link to the general ROS installation guide. ```text http://wiki.ros.org/noetic/Installation ``` -------------------------------- ### Navigate to wiringOP Examples Directory Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_5_Ultra Changes the current directory to the wiringOP examples directory. ```bash cd /usr/src/wiringOP/examples/ ``` -------------------------------- ### Baota Panel Installation Confirmation Prompt Source: http://www.orangepi.cn/orangepiwiki/index.php/Orange_Pi_5_Ultra Example of the prompt during Baota Panel installation asking to confirm the installation directory. Respond with 'y' to proceed. ```text +---------------------------------------------------------------------- | Bt-WebPanel FOR CentOS/Ubuntu/Debian +---------------------------------------------------------------------- | Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved. +---------------------------------------------------------------------- | The WebPanel URL will be http://SERVER_IP:8888 when installed. +---------------------------------------------------------------------- Do you want to install Bt-Panel to the /www directory now?(y/n): **y** ``` -------------------------------- ### Initialize Build Environment and Select Project Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_2G-IoT Sets up the build environment variables and selects the appropriate project configuration (T-Card or Nand startup) for compilation. ```bash cd */trunk/ $ source build/envsetup.sh $ lunch ``` -------------------------------- ### Qt 5 Installation on Ubuntu Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&title=Orange_Pi_CM4 Reference link for installing Qt 5 on Ubuntu. ```text https://wiki.qt.io/Install_Qt_5_on_Ubuntu ``` -------------------------------- ### Baota Panel Installation Confirmation Prompt Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_5_Ultra This is an example of the prompt you will see during the Baota Panel installation, asking to confirm installation to the /www directory. ```text +----------------------------------------------------------------------+ | Bt-WebPanel FOR CentOS/Ubuntu/Debian +----------------------------------------------------------------------+ | Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved. +----------------------------------------------------------------------+ | The WebPanel URL will be http://SERVER_IP:8888 when installed. +----------------------------------------------------------------------+ Do you want to install Bt-Panel to the /www directory now?(y/n): **y** ``` -------------------------------- ### Install QT5 and QT Creator Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_3B Execute a script to install QT5 and QT Creator. The output will show the installed QT version. ```bash orangepi@orangepi:~$ install_qt.sh ``` -------------------------------- ### Install luci-app-acl Package (OpenWRT Web UI) Source: http://www.orangepi.cn/orangepiwiki/index.php/Orange_Pi_5_Ultra Example of installing the 'luci-app-acl' package through the OpenWRT web interface. This involves searching for the package and initiating the installation. ```bash root@OpenWrt:/# ``` -------------------------------- ### Compile and Run QT Example Source: http://www.orangepi.cn/orangepiwiki/index.php?oldid=7480%EF%BC%88%E4%BA%8E&title=Orange_Pi_Zero_2W Compiles and runs an example project in QT Creator. A successful build indicates that QT is functioning correctly. ```bash Build and run the example code ``` -------------------------------- ### Navigate to YOLOv5 Example Directory Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_5_Ultra Changes the current directory to the YOLOv5 ONNX example within the RKNN-Toolkit2 installation. ```bash cd rknn-toolkit2/examples/onnx/yolov5/ ``` -------------------------------- ### Run Example on Ubuntu PC Source: http://www.orangepi.cn/orangepiwiki/index.php?oldid=8520%EF%BC%8E&title=Orange_Pi_5_Ultra Instructions for running the provided example code on your Ubuntu PC. This is part of the workflow for testing NPU model execution. ```text 在Ubuntu PC端运行示例 ``` -------------------------------- ### Start PulseAudio Service Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_Zero_3 Starts the PulseAudio sound server. This is necessary for Bluetooth audio to function correctly after installing the module. ```bash pulseaudio --start ``` -------------------------------- ### Compile and Install wiringOP-Python Source: http://www.orangepi.cn/orangepiwiki/index.php?action=edit&title=Orange_Pi_CM4 Compiles the wiringOP-Python library and installs it on the system. This involves generating bindings and running the setup script. ```bash root@orangepi:~/wiringOP-Python# '''cd wiringOP-Python''' root@orangepi:~/wiringOP-Python# '''python3 generate-bindings.py > bindings.i''' root@orangepi:~/wiringOP-Python# '''sudo python3 setup.py install''' ``` -------------------------------- ### Setting up Android 6.0 SDK Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_4G-IoT Instructions for creating a directory, copying, merging, and extracting the Android 6.0 SDK from multi-part .tar.gz archives. ```bash mkdir OrangePi_4G-IOT_Android6.0 cp -rf OrangePi_4G-IoT_Android6.0_V1.0.tar.gz.* OrangePi_4G-IOT_Android6.0/ cat OrangePi_4G-IoT_Android6.0_V1.0.tar.gz.* > OrangePi_4G-IOT_Android6.0.tar.gz tar xzvf OrangePi_4G-IOT_Android6.0.tar.gz ``` -------------------------------- ### Execute face_recognition Installation Script Source: http://www.orangepi.cn/orangepiwiki/index.php/%E7%89%B9%E6%AE%8A%3A%E6%90%9C%E7%B4%A2/Orange_Pi_Zero_3 After downloading the installation script, this command executes it to install the face_recognition library and its dependencies. The script will also run example tests upon completion. ```bash bash face_recognition_install.sh ```