EFM Series: Using MiNiFi Agents on Raspberry Pi 4 with Intel Movidius Neural Compute Stick 2, Apache NiFi and AI
EFM Series: Using MiNiFi Agents on Raspberry Pi 4 with Intel Movidius Neural Compute Stick 2, Apache NiFi and AI
The good news is Raspberry Pi 4 can run MiNiFi Java Agents, Intel Movidius Neural Compute Stick 2 and AI libraries. You can now use this 4GB of RAM device to run IoT with AI on the edge.
Flow From MiNiFi Agent Running OpenVino, SysLog Tail and Grabbing WebCam Images
Events Returning from Raspberry Pi 4
Models Used
Download model using downloader.Github
https://github.com/tspannhw/minifi-rpi4-ncc2
DATE=$(date +"%Y-%m-%d_%H%M")
fswebcam -q -r 1280x720 --no-banner /opt/demo/images/$DATE.jpg
python3 /opt/intel/openvino/build/test.py /opt/demo/images/$DATE.jpg
Software
- Apache NiFi
- Apache NiFi - MiNiFi Agents
- TensorFlow
- OpenVino
- Python 3
- FSWEBCAM
- OpenCV DNN
- PSUTIL
Python Libraries
pip3 install getmac
pip3 install psutil
pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --upgrade setuptools
- Intel Movidius Neural Compute Stick 2
- Raspberry Pi 4 with 4GB RAM
Hosting
We can run On-Premise on VMs, Containers, K8 or Bare metal. Or on own of the clouds such as Google.Resources
- https://github.com/movidius/ncappzoo
- https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html
- https://github.com/movidius/ncappzoo/blob/master/tensorflow/README.md
- https://software.intel.com/en-us/articles/python3-sbc-and-ncs2
- https://github.com/opencv/open_model_zoo
- https://download.01.org/opencv/2019/open_model_zoo/R2/20190628_180000_models_bin/
- https://docs.openvinotoolkit.org/latest/_intel_models_index.html
- https://docs.openvinotoolkit.org/latest/_intel_models_person_detection_retail_0013_description_person_detection_retail_0013.html
- https://docs.openvinotoolkit.org/latest/_intel_models_person_detection_action_recognition_0006_description_person_detection_action_recognition_0006.html
- https://docs.openvinotoolkit.org/latest/_intel_models_pedestrian_and_vehicle_detector_adas_0001_description_pedestrian_and_vehicle_detector_adas_0001.html
- https://github.com/opencv/open_model_zoo/blob/master/tools/downloader/README.md
- https://github.com/opencv/open_model_zoo/blob/master/demos/README.md
- https://github.com/opencv/open_model_zoo/blob/master/demos/gaze_estimation_demo/README.md
- https://github.com/opencv/open_model_zoo/blob/master/demos/security_barrier_camera_demo/README.md
- https://github.com/opencv/open_model_zoo/blob/master/demos/pedestrian_tracker_demo/README.md
- https://github.com/opencv/open_model_zoo/blob/master/demos/text_detection_demo/README.md
- https://github.com/movidius/ncappzoo/tree/master/apps/simple_classifier_py
- https://download.01.org/openvinotoolkit/2018_R5/open_model_zoo/text-detection-0001/FP32/
- http://docs.openvinotoolkit.org/latest/_inference_engine_samples_object_detection_sample_ssd_README.html
- https://software.intel.com/en-us/articles/get-started-with-neural-compute-stick
- https://apps.apple.com/us/app/pihelper/id1369930932
Directories
-
/root/inference_engine_samples_build/armv7l/Release
- /opt/intel/openvino