แสดงบทความที่มีป้ายกำกับ raspberry pi intel neural compute stick แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ raspberry pi intel neural compute stick แสดงบทความทั้งหมด

วันศุกร์ที่ 15 กรกฎาคม พ.ศ. 2565

Raspberry pi 4B Object Detection with Intel Neural Compute Stick and OpenVINO

Raspberry pi Object Detection with Intel Neural Compute Stick and OpenVINO

This project showcases Object Detection on edge device.

We use Raspberry pi 4B board with Intel NCS ( Neural Compute Stick ) and OpenVINO Library and Source code from Intel AI.

 

Hardware

·     Raspberry Pi Board (4B )
·     Intel Neural Compute Stick 2
·     SD Card 32GB
·     5V DC. 2A Power Supply

Software

·     OS Raspbien 10 ( Buster )
·     Python 3.7.3
·     OpenVINO Toolkit 2019.R3
·     OpenCV 4.0.0

Machine Learning Object Detection Model : Mobilenet SSD V2

Run Python Code ( Async Mode )

Async API usage can improve overall frame-rate of the application, because rather than wait for inference to complete, the app can continue doing things on the host, while accelerator is busy.

This and other performance implications and tips for the Async API are covered in the Optimization Guide.

Other demo objectives are:

  • Video as input support via OpenCV*

  • Visualization of the resulting bounding boxes and text labels (from the .labels file) or class number (if no file is provided)



Video Test   : 960x540 pixels

Total frame  : 301 frames

Total Inference time   : 12.44 sec

Average performance : 24.20 fps

Run Python Code ( Sync Mode )





Video Test   : 960x540 pixels

Total frame  : 301 frames

Total Inference time   : 24.96 sec

Average performance : 12.06 fps


OpenVINO Toolkit

Now We try to use OpenVINO 2020.3 compare with OpenVINO 2019 R3.

OpenVINO 2020.3 frame rate is a little bit lower than OpenVINO 2019 R3.



Comparison

Async vs Sync Mode














This is my experiment may something was wrong.









YouTube Video

Raspberry pi Object Detection with Intel Neural Compute Stick and OpenVINO ( 2020.3 )

Compare Raspberry pi Object Detection Intel NCS ( Async vs. Sync mode )

Raspberry pi Object Detection with Intel Neural Compute Stick ( Sync mode )

Raspberry pi Object Detection with Intel Neural Compute Stick ( Async mode )

Compare Raspberry pi Object Detection ( TensorFlow vs. TensorFlow-lite ) 

Raspberry pi Object Detection with TensorFlow-lite ( INT8 )

Raspberry pi Object Detection with TensorFlow ( FP32 )

Reference

Raspberry pi OpenVINO with Intel Movidius ( Neural Compute Stick )

 

Install OpenVINO™ toolkit for Raspbian* OS

https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_raspbian.html

Object Detection Python* Demo

https://docs.openvino.ai/latest/omz_demos_object_detection_demo_python.html

Model ( SSD MobileNet )


https://docs.openvino.ai/latest/omz_models_model_ssd_mobilenet_v1_coco.html


https://docs.openvino.ai/latest/omz_models_model_ssdlite_mobilenet_v2.html



OpenVINO Optimization


https://docs.openvino.ai/latest/openvino_docs_optimization_guide_dldt_optimization_guide.html



Adun Nantakaew อดุลย์ นันทะแก้ว 081-6452400
LINE : adunnan

    

วันเสาร์ที่ 22 กุมภาพันธ์ พ.ศ. 2563

Raspberry pi Smart cam with Intel Neural Compute Stick


Raspberry pi Smart cam with Intel Neural Compute Stick

Intel Neural Compute Stick + OpenVINO Version


System Diagram

System Requirements


Hardware
·     Raspberry Pi Board (4B , 3B+)
·     Intel Neural Compute Stick ( V1 or V2 )
·     Pi Camera ( V1 or V2 ) or USB cam
·     SD Card 32GB
·     5V DC. 2A Power Supply

Software
·     OS Raspbien 10 ( Buster )
·     Python 3.7.3
·     OpenVINO Toolkit 2019.R3
·     OpenCV 4.0.0
·     Flask 1.0.2

·
     LINE Notify 0.1.4


Detect up to 12 FPS. on Pi camara V2




Setting
















Report  ( Save to database )




LINE Notify





Raspberry pi Smart Cam AI kit. ( Include Full Source Code in SD card )

  1.       Raspberry pi 4B ( 1 GB ) + Case
  2.       SDcard 32 GB. ( Software installed )
  3.       5V DC. 2A Power Supply
Option
  • USB Webcam Model Logitech C270 
  • Intel Neural Compute Stick2 
If You want Raspberry pi AI Kit. Please contact email amphancm@gmail.com 
 


UPDATE  ( 2020 APR )

Select time to Line Notification




Reference

Install OpenVINO™ toolkit for Raspbian* OS

Object Detection SSD Python* Demo, Async API performance showcase
https://docs.openvinotoolkit.org/latest/_demos_python_demos_object_detection_demo_ssd_async_README.html