机器学习
The LS1046A-TP platform includes a Coral Tensor Flow Processing Unit (TPU) on an add-in card for accelerated inferencing for AI/ML applications.
Docker is an open, container-based platform for developing highly portable workloads. Docker containers can run on a developer's local laptop, on physical or virtual machines in a data center, on cloud providers, or in a mixture of environments. The Facial Detection Demo shown below is an example of a demo running in Docker.
Facial Detection Demo
The FRWY-LS1046A can be used for both learning and recognition using NCNN and MobileFacenet software, even without cloud connectivity.
Note: This demo is a slightly older version that what is shipping on the LS1046A-FRWY today, but it demonstrates the same functionality.
Sensor Data Analytics Demo
This demo shows how the LS1046A-FRWY can track and store sensor data such as static acceleration of gravity in tilt-sensing applications as well as dynamic acceleration resulting from motion or shock. It can run on both 2 or 4 cores, and can monitor up to 50 sensor values concurrently in a sensor table.
Cold Storage Data Analytics Demo
This demo shows the compute power of the FRWY-LS1046A, with 24,000 data points processed and pushed to a local database per minute.. The user can choose from among 400 simulated refrigerators to check internal temperature, external temperature and deviation from set-point. The gateway will flag any refrigerator that is not performing within the specified range of temperature. A local database is used to check past performance up to 24 hours.
Jupyter Notebook
Jupyter Notebook是一个开源Web应用程序,可用于创建和共享包含实时代码、方程式、可视化效果和文本的文档。Its flexible interface allows users to configure and arrange workflows in data science, scientific computing, computational journalism and machine learning.
Jupyter Notebook的优势
- 卸载工作:在LS平台上,您可以部署Jupyter Notebook并从网络浏览器访问它,这样LS板就不会因为运行Python而本身负担加重。
- 易于实施并解决问题:使用Jupyter Notebook,可以在Web浏览器中直接查看、执行代码并显示结果。
- 教程和文档:Jupyter使代码与更详细的文档和结果相结合。这对于多种目的可能是有效的,例如与创建AI/ML模型有关,包括您可能已经遇到的教程。
- 访问shell:Jupyter笔记本电脑还可以通过web浏览器访问终端,如果需要,用户可以随时修改文件,而不必担心控制台或主板的访问,也不必在两者之间切换屏幕。
在LS平台上配置Jupyter笔记本
Some of the packages to be download:
apt install python3-pip python3-dev
pip3 install --upgrade pip
pip3 install virtualenv
pip install jupyter
在LS平台上使用用户权限运行以下命令以启动jupyter notebook:
$ jupyter notebook
输出:
[I 21:23:21.198 NotebookApp] 将笔记本服务器cookie机密写入/run/user/1001/jupyter/notebook_cookie_secret
[I 21:23:21.361 NotebookApp] 从本地目录提供笔记本:/home/nxp/my_project_dir
[I 21:23:21.361 NotebookApp] Jupyter Notebook在以下位置运行:
[I 21:23:21.361 NotebookApp] http://localhost:8888/?token=1fefa6ab49a498a3f37c959404f7baf16b9a2eda3eaa6d72
[I 21:23:21.361 NotebookApp] 使用Control-C停止此服务器并关闭所有内核(两次跳过确认)。
[W 21:23:21.361 NotebookApp] 找不到web浏览器:找不到可运行的浏览器。
[C 21:23:21.361 NotebookApp]
VNC Remote Desktop
虚拟网络计算(VNC)是一种可对计算机进行远程控制的软件。It allows a user to view the desktop display of another computer remotely, and control the computer over the network. TigerVNC is a high-performance, platform-neutral implementation of VNC.
VNC presents a graphical desktop (Gnome or LXDE) running on the FRWY-LS1046A. The default desktop shipped with the FRWY-LS1046A is the LXDE desktop environment.
在LS平台上配置VNC服务器
Some of the packages to be download:
apt-get install tigervnc-standalone-server
apt-get install lxde-common
apt-get install openbox-lxde-session
apt-get install emacs
设置VNC的配置和密码。
在LS平台上使用用户权限运行以下命令以启动vncserver:
/usr/bin/perl /usr/bin/vncserver -localhost no -geometry 1024x768
此服务器可以自动启动。On FRWY-LS1046A console issue:
# systemctl enable vncserver-user@:1.service
Connection to FRWY-LS1046A vncserver is possible using:
$ vncviewer 192.168.99.1:1
注:
- 导出显示:导出DISPLAY=:0
- To run the demo using VNC, image should have support of OpenCV.
- Python脚本应该显示,以便流化输出。
- Download the vncviewer for X86 machine, use port 1 for connection.
TigerVNC
TigerVNC是VNC(虚拟网络计算)的高性能、与平台无关的实现,VNC是一种客户端/服务器应用程序,允许用户在远程计算机上启动图形应用程序并与之交互。
The default desktop shipped with FRWY-LS1046A is the LXDE desktop environment.
TigerVNC的优势
- 具有开发环境的虚拟显示: LS板支持VNC服务器,提供类似x86的桌面体验,支持GMAC、终端、web浏览器、文件管理器等基本工具。
- User-Friendly: User can modify the code directly opening the file in edit window, can copy paste the file from one location to another and even run video/camera stream.
- Highly secure: Full session encryption, multifactor authentication and many other security features.
- Support multiple devices: VNC is a light weighted tool and can be easily ported to any LS platform family.
- Multiple user support: One can create multiple users on LS platform with different access permission, so that each user can access the area they have to work on.
Tools and References
Artificial Intelligence Learn about our broad IC portfolio, NXP artificial intelligence (AI) core technologies enable AI and machine learning for edge applications in automotive, industrial, and IoT.
Edge Computing The EdgeVerse platform offers primary edge computing capabilities. 我们全面的处理器、微控制器和主打软件产品组合建立在可扩展性、能效、安全性、机器学习和连接性的基础上。