# πΎ AI-Powered Domestic Animal & Plant Health Monitor (Amharic Response Extension)
## π Project Evolution & Name Extension
This repository is an advanced architectural extension of **`AI-powered-plant-health-analyser-Amharic-responce`**.
- **The Core Foundation:** The original project was engineered as an IoT computer vision system utilizing an ESP32-CAM microcontroller, a Flask backend, PostgreSQL database storage, and Google Gemini AI to analyze plant health and output localized diagnostics in Amharic.
- **The Extension:** This version scales that exact stateless edge-to-cloud pipeline from agronomy to veterinary health monitoring. By retaining core mechanismsβsuch as PostgreSQL `BYTEA` binary image storage, FreeRTOS background synchronization tasks, and strict JSON Amharic response parsingβthe system successfully pivots to track livestock and domestic animal behavior, visible injury symptoms, and health scoring without modifying the underlying architectural integrity.
---
## ποΈ System Architecture & Data Flow
```text
βββββββββββββββββ
β ESP32-CAM β
β β
β OV2640 Cam β
β GPIO 13 Push β
β GPIO 4 Flash β
βββββββββ¬ββββββββ
β
βββββββββββ΄ββββββββββ
β β
Live Stream Capture
β β
β β
/upload_stream SD Card
β β
β β
Flask Server queue_xxx.jpg
β β
β FreeRTOS Core 0
β β
β β
β /analyze_frame
β β
βββββββββββ¬ββββββββββ
β
Gemini Vision (Flash)
β
Structured Amharic JSON
β
PostgreSQL (BYTEA)
β
ββββββββββββ΄βββββββββββ
β β
History Cards Detail Modal
(Red UI Theme) (Full Diagnostics)
```
---
## π οΈ Tech Stack
- **Edge Hardware:** ESP32-CAM (AI-Thinker), OV2640 Camera Module, Push Button (GPIO 13), Flash LED (GPIO 4), MicroSD Card (1-Bit Mode).
- **Firmware:** Arduino C++, FreeRTOS (Core 0 task pinning), HTTPClient β¦