File size: 2,540 Bytes
1010bd7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---

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).