bloombase/plants/migrations/0010_add_frost_density_to_species.py
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

23 lines
614 B
Python

# Generated by Django 5.2.1 on 2026-05-29 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plants', '0009_update_watering_sunlight_choices'),
]
operations = [
migrations.AddField(
model_name='species',
name='frost_hardiness_c',
field=models.SmallIntegerField(blank=True, null=True),
),
migrations.AddField(
model_name='species',
name='planting_density_m2',
field=models.PositiveSmallIntegerField(blank=True, null=True),
),
]