feat: FastAPI (#9) + edge-detection vision stub (#5) + catalog (#2) - #400
Open
laurentketterle-hub wants to merge 1 commit into
Open
feat: FastAPI (#9) + edge-detection vision stub (#5) + catalog (#2)#400laurentketterle-hub wants to merge 1 commit into
laurentketterle-hub wants to merge 1 commit into
Conversation
…cies/{id}/care) + mergeos-bounties#5 (edge detection vision stub) + mergeos-bounties#2 (catalog at 160 species)
- Added FastAPI app with POST /api/identify (tags or image upload)
- Added GET /api/species/{species_id}/care with optional season watering hint
- Added GET /api/species (paginated catalog), GET /api/species/search, GET /api/species/{id}
- Added POST /api/vision/extract for leaf color/edge visual tag extraction
- Enhanced vision stub with extract_edge_tags() for Sobel-like gradient detection
- Added extract_all_visual_tags() combining color and edge heuristics
- Catalog already contains 160+ species with care cards (mergeos-bounties#2 satisfied)
- Added __main__.py for running with python -m plantguide.api
Closes mergeos-bounties#9
Closes mergeos-bounties#5
Closes mergeos-bounties#2
Author
🔄 CI Approval NeededFastAPI + edge-detection vision stub + catalog — high-value combined PR. Please approve workflow run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
#9 - FastAPI: POST /identify and GET /species/{id}/care
POST /api/identify- identify plant from tags or uploaded photoGET /api/species/{species_id}/care- full care card with optional season watering hintGET /api/species- paginated catalog listingGET /api/species/search?q=- search by id, name, tagsGET /api/species/{species_id}- get full species recordPOST /api/vision/extract- extract visual tags from leaf photopython -m plantguide.api#5 - Vision stub: extract color/edge tags
extract_edge_tags()with Sobel-like gradient magnitudeextract_all_visual_tags()combining color + edge heuristics#2 - Houseplant catalog
Closes #2
Closes #5
Closes #9