bloombase/plants/tests
Stephan Kerkman ba0ca6b169 feat: card scanning, OCR improvements, crop thumbnail, VPC enrichment
- Add scan-to-plant flow: upload card photos, OCR, VPC match on confirm form
- OpenCV CLAHE + adaptive threshold preprocessing; dual psm 6/11 OCR pass
- Regex fixes for OCR misreads: height (s→5), frost (=,„,i,l,G), density, bloom months (E→I)
- Scientific name extraction: passport section + cultivar quote strategy
- Last-wins merge so back card data overrides front card garbage
- Crop thumbnail tool with Cropper.js; cropped image shown in list and detail
- VPC image always supersedes user thumbnail on detail page
- VPC sunlight mapping: zon→full_sun, halfschaduw→part_sun, schaduw→full_shade
- Auto-set thumbnail on plant created from scan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 21:54:59 +02:00
..
__init__.py feat: add Species, Plant, PruningLog models 2026-05-27 19:51:11 +02:00
test_card_ocr.py feat: card scanning, OCR improvements, crop thumbnail, VPC enrichment 2026-05-29 21:54:59 +02:00
test_models.py style: move PlantCardPhoto import to module level in test_models 2026-05-28 21:42:49 +02:00
test_perenual.py fix: surface Perenual API errors instead of silently returning no results 2026-05-28 10:37:30 +02:00
test_pruning.py feat: location FK, multi-photo gallery, hide pruning history 2026-05-28 18:27:45 +02:00
test_views.py feat: show plant card button on detail page when card photos exist 2026-05-28 21:59:04 +02:00