OCRGLM / README.md
Bancu's picture
Upload 9 files
1010bd7 verified
|
Raw History Blame Contribute Delete
2.54 kB
---
language:
- en
- zh
license: apache-2.0
tags:
- onnx
- ocr
- multimodal
- glm
- document-intelligence
- agriculture
- precision-farming
- farmerstoday
base_model: zai-org/GLM-OCR
pipeline_tag: image-to-text
---
# FarmersToday GLM-OCR (ONNX Optimized)
Official ONNX release of **GLM-OCR** tailored for agricultural document understanding, statutory chemical container labels, weighbridge grain scale tickets, veterinary prescriptions, soil fertility laboratory reports, and supply-chain logistics delivery invoices.
Converted and quantized by the **FarmersToday Open AgTech Initiative** from upstream [zai-org/GLM-OCR](https://huggingface.co/zai-org/GLM-OCR).
## Model Architecture
- **Vision Backbone**: CogViT Visual Transformer (`glm_ocr_vision.onnx` / `glm_ocr_vision_int8.onnx`), 896x896 input resolution.
- **Language Decoder**: GLM-0.5B Autoregressive Transformer (`glm_ocr_decoder.onnx` / `glm_ocr_decoder_int8.onnx`).
- **Precision**: Full Precision (FP32) and Dynamic Quantized (INT8) for edge farm servers and mobile field tablets.
## Key Capabilities & Supported Documents
1. **Agrochemical Container Labels**:
- Regulatory Registration Numbers (EPA, PCP, BVL, MAPA)
- Active Ingredients & Formulations (e.g. Chlorothalonil 720 SC)
- Statutory Pre-Harvest Interval (PHI) & Worker Re-Entry Interval (REI)
- Buffer Zones for Waterways & Sensitive Habitats
2. **Weighbridge Grain Scale Tickets**:
- Gross, Tare, and Net Metric Weights
- Moisture %, Test Weight (kg/hL), Protein %, Foreign Matter %
- Vehicle License & Silo Bin Routing
3. **Veterinary Prescriptions**:
- Livestock Ear Tag IDs, Herd Cohorts
- Active Pharmaceuticals, Dosage Rates, Milk & Meat Withdrawal Days
4. **Soil & Tissue Laboratory Reports**:
- pH, Organic Matter (SOM %), CEC
- Macro/Micro Nutrients (N, P, K, Ca, Mg, S, Zn, B)
5. **Vendor Invoices & Delivery Dockets**:
- Chemical/Fertilizer/Seed itemized line tables, batch codes, tax breakdowns.
## Accompanying Models in the FarmersToday Suite
- Crop Disease Pathology: [`farmerstoday/plant-disease-recognition-onnx`](https://huggingface.co/farmerstoday/plant-disease-recognition-onnx)
- Weed Leaf Segmentation: [`farmerstoday/weed-segmentation-yolov8-onnx`](https://huggingface.co/farmerstoday/weed-segmentation-yolov8-onnx)
- Livestock Body Condition: [`farmerstoday/livestock-bcs-onnx`](https://huggingface.co/farmerstoday/livestock-bcs-onnx)
## License
Apache 2.0 (Inherited from upstream GLM-OCR).