Skip to content

Object detection project for identifying good and defective submersible pump impellers with Edge Impulse

License

Notifications You must be signed in to change notification settings

SolomonGithu/cast_manufactured_product_inspection_with_Edge_Impulse-submersible_pump_impeller

Repository files navigation

Monitoring manufactured defects with Edge Impulse and Renesas RZ/V2L 🔩

Cover Image

Quick start 💻

You can find the public Edge Impulse project here Submersible pump impeller defect detection

Please read up on the project's documentation on Edge Impulse's page to help you get started on your own creation.

Ensure you have a recent version of Python then install the Edge-Impulse Linux Python SDK :

 pip3 install edge_impulse_linux -i https://pypi.python.org/simple

Next, install Flask which is required to run the application.

pip3 install flask

Clone the repository to your target board

git clone https://github.com/SolomonGithu/manufacturing_process_monitoring-submersible-pump-impeller-_with_Edge_Impulse.git

Navigate to the repository

cd manufacturing_process_monitoring-submersible-pump-impeller-_with_Edge_Impulse

Start the application by running the following command while in the root directory of this repo:

python3 app.py

Alternatively, this Flask application has also been built as an executable for aarch64 (or amd64) Linux platforms using PyInstaller. This executable is in the dist folder. Run the commands below to start the executable:

cd dist && \ 
chmod u+x app && \
./app

Application running

Inference

Rebuilding the executable 🔨

If you want to update the application and rebuild the executable ensure PyInstaller is installed.

Since the RZ/V2L is of the AARCH64 platform, we need to ensure this is the target for the built executable. By default, the PyInstaller's bootloaders architecture defaults to the installed machine’s platform. If you want to cross compile on a host computer you can do it by building the bootloader for AARCH64.

Ensure that a terminal is open in the parent directory of this repository and build the application with the command:

pyinstaller -w -F --add-data "templates:templates" --add-data "static:static" --add-data "modelfile:modelfile" app.py

If you see some warnings when looking for dynamic libraries in the build process, first run the command sudo ldconfig and build the application again.

Lastly start the application with the command :

cd dist && ./app

Renesas RZ/V2L and Google Coral camera holder - 3D models ⬇️

Renesas RZ/V2L Evaluation Board Kit holder

A great fit for supporting the Renesas RZ/V2L Evaluation Board Kit components! The camera can be mounted upright or facing downwards through the provided slots.

The Renesas RZ/V2L board is placed on the base support model. The model, base support raiser, is placed below the base support to increase the height of the Renesas board and camera.

The 3D models are available to be downloaded on printables.com or thingiverse.com

About

Object detection project for identifying good and defective submersible pump impellers with Edge Impulse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published