MIT License

项目介绍

karakurai/visual_inspection 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 53 个 Star、18 次 Fork。

仓库全名
karakurai/visual_inspection
开源许可证
MIT License
Star 数
53
Fork 数
18

README 摘要

The Japanese ReadMe is described in the second half. (後半に日本語のReadMeを記載) Visual Inspection Application This application can easily automate visual inspections and foreign matter inspections in factories. All you have to do is prepare an inexpensive web camera and a PC (no GPU required) and you can start inspection immediately. Because MIT license, you can use it for commercial purposes and modify the source code. The…

完整内容见 GitHub 原始 README 或本页 。

常见问题

visual_inspection 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 53 个 Star。

visual_inspection 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 visual_inspection 的源码?

可以直接克隆仓库:git clone https://github.com/karakurai/visual_inspection.git;安装与运行步骤见仓库 README。

visual_inspection 最近还在维护吗?

仓库最近一次更新为 2月7日,当前没有未关闭的 Issue;Star 数为 53,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

An application for visual inspection written in Python, running on Windows, Linux, and macOS. This software enables high-performance visual inspection even with an inexpensive web camera. No GPU machine required. It is possible to automate the inspection in a factory.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
142
价值分
42
活跃状态
活跃

语言占比

Python
kvlang

Release

贡献者

README

The Japanese ReadMe is described in the second half. (後半に日本語のReadMeを記載)

Visual Inspection Application

This application can easily automate visual inspections and foreign matter inspections in factories. All you have to do is prepare an inexpensive web camera and a PC (no GPU required) and you can start inspection immediately. Because MIT license, you can use it for commercial purposes and modify the source code.

The following images are application screens and a camera installation example. app screens

Application features

  • Works on a PC without GPU.
  • Works with an inexpensive webcam (no need for expensive camera).
  • You can specify the area to inspect in the image.
  • Inspection supports both conventional AI and deep-learning-based AI.
  • AI model creation with no-code is realized by using ADFI.
  • Capable of pre-processing more than 10 types of images (Grayscaling, edge extraction, mask processing, etc.).
  • Multiple AIs can simultaneously inspect (double check).
  • By using multiple cameras, the top and sides of an object can be inspected simultaneously.

Quick & easy start

1) Install

Clone this repository and install the libraries(numpy, opencv-python, Pillow, kivy, kivymd) in Python 3.8 or Python 3.9 environment. If you have a different version of Python, you may not be able to install these libraries. (The verified version of this source code is Python 3.9.13.)

git clone https://github.com/karakurai/visual_inspection.git
cd visual_inspection
pip install -r requirements.txt

2) Application launch

Start the application by running main.py.

python main.py

3) Set display scaling

If the layout of the application is broken, set the display scaling (display settings in your OS) to 100%.

User manual

The user manual can be downloaded below. User Manual

To Manufacturing Companies

By modifying the file below, you can change the initial values of the application, such as camera FPS and resolution. However, if the camera cannot be change the settings, the value will not be reflected.

conf.ini

Training images for creating an AI model are saved in the following directory.

dataset

The inspected images are saved in the following directory.

inspection_image

Result images and result CSV are saved in the following directory.

result

If you want to run an AI model in a local environment, place the module downloaded from ADFI in the following directory.

adfi_local

To Software Developers

This software is MIT licensed, so you can use it commercially. You may also modify the source code and provide it to your customers.

You can change the logo of the application by replacing the image file below.

adfi_client_app_data/logo/adfi.png
adfi_client_app_data/logo/logo.png

You can change the copyright by modifying the value of “label_copyright” in the file below.

text.ini

If you want to run an AI model of Anomaly Detection in a local environment, place the module downloaded from ADFI Anomaly Detection in the following directory.

adfi_local

If you want to run an AI model of Image Recognition in a local environment, place the module downloaded from ADFI Image Recognition in the following directory.

adfi_vit_local

画像検査アプリケーション

工場での外観検査や異物検査を簡単に自動化できるアプリケーションです。表示言語は英語と日本語を選択できます。 安価なWEBカメラとPC(GPU不要)を用意するだけで、すぐに検査を開始できます。 MITライセンスのため、商用利用やソースコードの改変が可能です。

アプリケーションの特徴

  • 一般的な(GPU無しの)PCで動作します。
  • 安価なウェブカメラで動作します (高価なカメラは必要ありません)。
  • 画像内の検査する領域を指定できます。
  • 従来の AI 、ディープラーニングベースの AI のどちらも対応しています。
  • ADFIを利用することでノーコードでのAIモデル作成を実現しています。
  • 10種類以上の画像の前処理(グレースケール化、エッジ抽出、マスク処理など)が利用できます。
  • 複数のAIによる同時検査(ダブルチェック)が可能です。
  • 複数のカメラを使用することで、対象物の上面と側面を同時に検査することも可能です。 ka

開始手順

WindowsPC用の簡単セットアップ手順

WindowsPCの場合は簡単にセットアップできる便利ツールを用意しています。 こちらのページの手順をご参照ください。

WindowsPC以外の場合(通常のセットアップ方法)は以降の手順に従って実施してください。

通常(WindowsPC以外)のセットアップ手順

1) インストール

このリポジトリをクローンし、Python 3.8 または Python 3.9の環境でライブラリ(numpy, opencv-python, Pillow, kivy, kivymd)をインストールしてください。Pythonのバージョンが異なると、これらのライブラリをインストールできない場合があります。(動作確認済みバージョンは Python 3.9.13 です。)

git clone https://github.com/karakurai/visual_inspection.git
cd visual_inspection
pip install -r requirements.txt

2) アプリケーション起動

main.pyを実行して、アプリケーションを起動してください。

python main.py

3) ディスプレイのスケーリング設定

アプリケーションのレイアウトが崩れていた場合、OSのディスプレイ設定の拡大率を100%に設定してください。

操作マニュアル

下記から操作マニュアルをダウンロードできます。 操作マニュアル

製造業向け情報

下記ファイルを修正することで、カメラのFPSや解像度など、アプリケーションの初期値を変更できます。 ただし、設定変更できないカメラの場合、値は反映されません。

conf.ini

AIモデル作成のための学習画像は下記ディレクトリに保存されます。

dataset

検査した画像は下記ディレクトリに保存されます。

inspection_image

結果画像と結果CSVは下記ディレクトリに保存されます。

result

ローカル環境で異常検知のAIモデルを実行する場合は、ADFI異常検知からダウンロードしたモジュールを下記ディレクトリに配置してください。

adfi_local

ローカル環境で画像認識のAIモデルを実行する場合は、ADFI画像認識からダウンロードしたモジュールを下記ディレクトリに配置してください。

adfi_vit_local

ソフトウェア開発企業向け情報

このソフトウェアはMITライセンスのため、商用利用が可能です。 ソースコードを修正して、顧客に提供することができます。

下記画像ファイルを差し替えることで、アプリケーションのロゴを変更することができます。

adfi_client_app_data/logo/adfi.png
adfi_client_app_data/logo/logo.png

下記ファイルの「label_copyright」の値を修正することで、著作権表示を変更することができます。

text.ini

ローカル環境で異常検知のAIモデルを実行する場合は、ADFI異常検知からダウンロードしたモジュールを下記ディレクトリに配置してください。

adfi_local

ローカル環境で画像認識のAIモデルを実行する場合は、ADFI画像認識からダウンロードしたモジュールを下記ディレクトリに配置してください。

adfi_vit_local

评论

暂无评论