添加NPU驱动

This commit is contained in:
hehaoyang 2023-11-12 16:10:20 +00:00
parent 980e12a4e5
commit ed064d9481
16 changed files with 105 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,20 @@
# 基于RKNN3568的YoloV5模型检测
```
cd RKNNModel
adb push RK3568V5_LINUX /home
adb shell
cd /home/RK3568V5_LINUX
export LD_LIBRARY_PATH=./lib
./rk3568V5 model/RK356X/yolov5s-640-640.rknn model/bus.jpg
# 查看检测结果
adb pull adb pull /home/rk3568V5_Linux/outv5.jpg .
```
![1693464256562](image/README/1693464256562.jpg)
![1693464350527](image/README/1693464350527.jpg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@ -0,0 +1,80 @@
person
bicycle
car
motorcycle
airplane
bus
train
truck
boat
traffic light
fire hydrant
stop sign
parking meter
bench
bird
cat
dog
horse
sheep
cow
elephant
bear
zebra
giraffe
backpack
umbrella
handbag
tie
suitcase
frisbee
skis
snowboard
sports ball
kite
baseball bat
baseball glove
skateboard
surfboard
tennis racket
bottle
wine glass
cup
fork
knife
spoon
bowl
banana
apple
sandwich
orange
broccoli
carrot
hot dog
pizza
donut
cake
chair
couch
potted plant
bed
dining table
toilet
tv
laptop
mouse
remote
keyboard
cell phone
microwave
oven
toaster
sink
refrigerator
book
clock
vase
scissors
teddy bear
hair drier
toothbrush

View File

@ -328,6 +328,11 @@ EOF
do_post_install() {
sed -i "/Config-Version/d" ${IMAGE_ROOTFS}/var/lib/dpkg/status
cp -rf ${THISDIR}/files/RKNNModel/rk3568V5_Linux ${IMAGE_ROOTFS}/home/
cp -rf ${THISDIR}/files/RKNNModel/rk3568V5_Linux/lib/librga.so ${IMAGE_ROOTFS}/usr/lib/librga.so
cp -rf ${THISDIR}/files/RKNNModel/rk3568V5_Linux/lib/librknnrt.so ${IMAGE_ROOTFS}/usr/lib/librknnrt.so
chmod +x ${IMAGE_ROOTFS}/usr/lib/librga.so
chmod +x ${IMAGE_ROOTFS}/usr/lib/librknnrt.so
}
do_enable_coredump() {