2141 views|2 replies

25

Posts

0

Resources
The OP
 

【PLC based on IoT】---Testing RPI-400 performance based on AI [Copy link]

 This post was last edited by cpsiot on 2022-7-23 12:58

It is a bit of a waste to use RPI-400 as the HMI part. Today, I will test the AI performance. If it is OK, I can do the AI recognition part locally. Since it is IOT, how can I leave AI? !

Hardware used for testing:

Open (the following operations are based on the latest version of Raspberry Pi Bullseye 64-bit):

sudo apt install -y \
swig libjpeg-dev zlib1g-dev python3-dev \
unzip wget python3-pip curl git cmake make
sudo apt install python3-pyaudio

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy==1.22.3

curl -OL https://ghproxy.com/https://github.com/PINTO0309/TensorflowLite-bin/releases/download/v2.9.0/tflite_runtime-2.9.0-cp39-none-linux_aarch64.whl

sudo pip3 install --upgrade tflite_runtime-2.9.0-cp39-none-linux_aarch64.whl

After installation, open python3 in the terminal and enter. If there is no error, the installation is successful.
import tflite_runtime.interpreter as tflite

Download and run the object detection test program of TensorFlow Lite:

git clone https://ghproxy.com/https://github.com/tensorflow/examples --depth 1

cd examples/lite/examples/object_detection/raspberry_pi

sh setup.sh

Enter the following two addresses in the browser address bar to automatically download, and name the downloaded files as efficientdet_lite0.tfliteand efficientdet_lite0_edgetpu.tfliteput them in setup.shthe same directory as required .

https://tfhub.dev/tensorflow/lite-model/efficientdet/lite0/detection/metadata/1?lite-format=tflite

https://storage.googleapis.com/download.tensorflow.org/models/tflite/edgetpu/efficientdet_lite0_edgetpu_metadata.tflite

After installation, run the program:

python3 detect.py --model efficientdet_lite0.tflite

Use VNC to connect to the Raspberry Pi desktop:

The mouse and keyboard were successfully recognized. AI localization preparation is complete.

This post is from DigiKey Technology Zone

Latest reply

Want to know the specific principle of identifying the mouse and keyboard   Details Published on 2022-7-24 10:08
 
 

6555

Posts

0

Resources
2
 

Want to know the specific principle of identifying the mouse and keyboard

This post is from DigiKey Technology Zone

Comments

The trained model library efficientdet_lite0.tflite in DEMO contains keyboard and mouse, so it can be recognized. If it is not in the library, it cannot be recognized. You need to retrain it yourself. For details, please refer to the TensorFlow Lite official website.  Details Published on 2022-7-25 08:08
 
 
 

25

Posts

0

Resources
3
 
Jacktang posted on 2022-7-24 10:08 I want to know the specific principle of identifying the mouse and keyboard

The trained model library efficientdet_lite0.tflite in DEMO contains keyboard and mouse, so it can be recognized. If it is not in the library, it cannot be recognized. You need to retrain it yourself. For details, please refer to the TensorFlow Lite official website.

This post is from DigiKey Technology Zone
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list