FloCafe
FloCafe is the free, local-first restaurant POS in the FloPOS ecosystem. Run orders, tables, kitchen display, and local data without a software subscription.
商品写真の仕分け(見本):Python・FastAPI・画像認識(ONNX Runtime)・PostgreSQL・Docker
Translation pending
CommercePython · HTMLGitHub @willllc0511-satoOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗写真を1枚上げると、何が写っているかを画像認識で判定し、ネットショップの仕分け先(衣類・靴・電子機器・台所用品・食品・家具など)を返すウェブアプリです。 応募用に作った見本です。お客さまの案件ではありません。
| 役割 | 使ったもの |
|---|---|
| API・画面 | Python 3.12 / FastAPI / 素の HTML と JavaScript |
| 画像認識 | ONNX Runtime(CPU)で MobileNetV2(ImageNet 1000分類)を動かす |
| データベース | PostgreSQL 16 / SQLAlchemy 2(テストは SQLite) |
| 実行環境 | Docker / Docker Compose、手前に nginx(HTTPS) |
| テスト | pytest(正常な場合・壊れた入力・攻撃を想定した入力) |
外部の AI サービスは呼ばず、サーバーの CPU だけで判定します。1枚あたりの利用料はかからず、判定は1枚20〜30ミリ秒です(3コア・メモリ2GBの小さなサーバーで実測)。
ブラウザ ──HTTPS──> nginx ──> app(FastAPI・画像認識) ──> db(PostgreSQL)
│ └ 学習済みモデル(作るときに照合値を確かめて取り込む)
└ 10MB を超える送信はここで止める
deploy/make_secrets.sh # データベースのパスワードを作って secrets/ に置く(画面には出さない)
docker compose up -d --build # http://127.0.0.1:8610/
テスト:
docker build --build-arg DEV=1 -t gazou-shiwake:dev .
docker run --rm gazou-shiwake:dev python -m pytest -q
Claude Code(生成 AI のコーディングツール)を使って、設計・実装・テスト・公開までを進めました。 テストは、正常な場合に加えて、壊れた入力や攻撃を想定した入力も用意し、そのうえで攻める側からの検査(ペネトレーションテスト)もしています。