Git Product home page Git Product logo

ti_sk68_am68_auto_drive's Introduction

IN PROGRESS ...

TI_SK68_am68_auto_drive

Using Ti am68 to implement toy car auto drive.
Using TI am68 to detect signs for auto driving.

Using ONR-OD-8200-yolox-nano and bottle

I don't konw why I CAN NOT add toy traffic corn to TI_SK68 by web model composer. (2024/04)
I try web model composer and ok in 2024/06.

Work around, short term solution, using small bottle instead of toy traffic corn.
The native model, ONR-OD-8200-yolox-nano, is good at detecting bottle.
Thus, my plan,
(1)The am68a runs "wget/curl" to get jpg file from WiFi web camera on toy car.
(2)The am68a detect all bottles X1Y1X2Y2 in the jpg file.
(3)Then am68a controls toy car by USB-FT232 -> arduino -> PWM -> servo -> motor.

The command to stop Ti_SK68 out-of-box demo:
/etc/init.d/edgeai-launcher.sh stop

Ti_SK68/SDK9.1 comes with python demo about inference.
/opt/edgeai-dl-inferer/tests/test_python/app_dl_inferer_test.py
app_dl_inferer_test.py call app_dl_inferer_post_process.py to draw rectangle.
We can add some code in app_dl_inferer_post_process.py to output rectangle X1Y1X2Y2.

test

copy pic_test/bottles.jpg to am68 /tmp by scp/ssh.
run:
cd /opt/edgeai-dl-inferer/tests/test_python
python3 app_dl_inferer_test.py -d /opt/model_zoo/ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416/ -v 0.3 -i /tmp/bottles.jpg
Then, you get a jpg file of detection_output0_ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416.jpg at
/opt/edgeai-dl-inferer/tests/test_python
pic

Using handmade ad25e250 and orange toy traffic cone

Made by model composer.(2024/06)

test_1

Copy ad25e250/ to /opt/model_zoo/
Reboot system
The [Custom] Model add item of ad25e250. Run it with Camera / USB Camera 0

test_2

copy pic_test/cones.jpg to am68 /tmp by scp/ssh.
run:
cd /opt/edgeai-dl-inferer/tests/test_python
python3 app_dl_inferer_test.py -d /opt/model_zoo/ad25e250/ -v 0.3 -i /tmp/cones.jpg
Then, you get a jpg file of detection_output0_ad25e250.jpg at
/opt/edgeai-dl-inferer/tests/test_python
pic


other resource

disable out-box demo

/etc/init.d/edgeai-launcher.sh stop
sleep 1
systemctl stop weston
sleep 1
echo 0 > /sys/class/graphics/fbcon/cursor_blink
dd if=/dev/urandom of=/dev/fb0 bs=7680 count=1080

get a picture from usb camera

gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video-usb-cam0 \
! image/jpeg, width=1280, height=720 \
! jpegdec \
! jpegenc \
! filesink location=/home/root/2.jpg

show jpg file

gst-launch-1.0 filesrc location=/home/root/2.jpg \
! jpegdec \
! imagefreeze \
! waylandsink fullscreen=true

ti_sk68_am68_auto_drive's People

Contributors

greatcattw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.