Skip to content

mikehemberger/medicinal-plant-identification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medicinal Plants Visual Search Demo

Quickstart:

  1. Ensure Python 3.10+ is available. This environment uses Python 3.13.
  2. Install dependencies:
python3 -m pip install --break-system-packages -q datasets pillow numpy imagehash gradio tqdm rapidocr-onnxruntime onnxruntime
  1. Build the index (first run will download ~304 images from the Hugging Face dataset):
python3 -m app.visual_search --out /workspace/app/index.npz
  1. Launch the Gradio app:
python3 /workspace/app/app.py
  1. Open the app in your browser at http://localhost:7860/ and upload a plant image.

Notes:

  • The dataset (mikehemberger/medicinal-plants) has plant names printed at the bottom center. The app attempts to OCR this label crop using rapidocr-onnxruntime if available. It's optional.
  • The visual search uses a lightweight pHash + HSV histogram index to avoid heavy ML dependencies; swap in CLIP embeddings later if desired.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •