Plate Evaluation
A tool to measure model precision, recall, and OCR accuracy, providing actionable feedback.
Install
mkdir -p .claude/skills/plate-evaluation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13915" && unzip -o skill.zip -d .claude/skills/plate-evaluation && rm skill.zipInstalls to .claude/skills/plate-evaluation
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Runs current model against validation set and returns JSON metrics with automated recommendationsKey capabilities
- →Evaluate license plate detection model performance
- →Generate JSON metrics for detection and OCR
- →Compare current model metrics against a baseline
- →Provide automated recommendations for model improvement
- →Diagnose performance bottlenecks in OCR or detection stages
- →Suggest changes to training parameters or model architecture
How it works
The skill runs an evaluation script on a validation dataset using a specified model, generating JSON metrics for detection and OCR. It then compares these metrics against a baseline and provides automated recommendations based on predefined thresholds.
Inputs & outputs
When to use Plate Evaluation
- →Measuring model precision and recall
- →Comparing new model versions against baselines
- →Automating OCR accuracy reporting
About this skill
Plate Evaluation Skill
Quick evaluation utility for assessing license plate detection model performance and providing actionable recommendations.
Usage
cd /home/lol/Downloads/autotoll-ai/backend
python scripts/evaluate.py --data ../data.yaml --model specialized_plate_detector.pt
Workflow
1. Execute Evaluation
Run the evaluation script on the validation dataset:
python scripts/evaluate.py \
--data ./data.yaml \
--model specialized_plate_detector.pt \
--output current_metrics.json
Output format:
{
"model_path": "specialized_plate_detector.pt",
"timestamp": "2026-01-31T11:30:00",
"detection_metrics": {
"precision": 0.891,
"recall": 0.911,
"mAP50": 0.906,
"mAP50_95": 0.631
},
"ocr_metrics": {
"character_accuracy": 0.94,
"exact_match_rate": 0.82,
"avg_confidence": 0.87
},
"performance": {
"avg_inference_time_ms": 145,
"device": "cuda:0"
}
}
2. Compare Against Baseline
Load baseline metrics and calculate deltas:
python -c "
import json
with open('baseline.json') as f:
baseline = json.load(f)
with open('current_metrics.json') as f:
current = json.load(f)
print('Performance Comparison:')
print(f\"mAP50: {baseline['detection_metrics']['mAP50']:.3f} → {current['detection_metrics']['mAP50']:.3f} ({((current['detection_metrics']['mAP50']/baseline['detection_metrics']['mAP50']-1)*100):+.1f}%)\")
print(f\"OCR Accuracy: {baseline['ocr_metrics']['exact_match_rate']:.3f} → {current['ocr_metrics']['exact_match_rate']:.3f} ({((current['ocr_metrics']['exact_match_rate']/baseline['ocr_metrics']['exact_match_rate']-1)*100):+.1f}%)\")
"
3. Automated Decision Logic
The skill analyzes metrics and provides recommendations:
If OCR Accuracy < 95%
Diagnosis: OCR stage is the bottleneck
Recommendations:
-
Increase EasyOCR magnification ratio:
- Edit
backend/main.pyline 934, 984 - Change
mag_ratio=1.5tomag_ratio=2.0or higher - Trade-off: Slower inference (+20-40ms) for better accuracy
- Edit
-
Implement TrOCR (ViT-based OCR):
- Install:
pip install transformers torch - Add TrOCR inference as fallback for low-confidence detections
- Expected: +10-15% OCR accuracy improvement
- Install:
-
Enhance preprocessing:
- Add bilateral filter before CLAHE
- Implement adaptive thresholding for varied lighting
- Use unsharp masking to sharpen text edges
If mAP50 < 0.85
Diagnosis: Detection stage missing plates or producing false positives
Recommendations:
-
Increase training epochs:
- Current model may be undertrained
- Re-run training with
--epochs 150or--epochs 200
-
Improve data augmentation:
- Add perspective transforms for skewed angles
- Increase HSV variation for lighting robustness
- Enable mosaic augmentation (multi-scale)
-
Upgrade model architecture:
- Switch from YOLOv8n (nano) to YOLOv8s (small)
- Consider YOLOv11 with OBB for rotation handling
- Trade-off: Higher accuracy but slower inference
If Recall < 0.90
Diagnosis: Model missing valid plates (false negatives)
Recommendations:
-
Lower confidence threshold:
- Edit detection confidence in
backend/main.py - Default YOLO confidence is 0.25, try 0.15-0.20
- Increases detections but may add false positives
- Edit detection confidence in
-
Check for dataset imbalance:
- Verify validation set has diverse scenarios
- Inspect missed detections for patterns (angles, lighting)
- Add more training data for underrepresented cases
-
Enable specialized plate model:
- Train custom detector:
python train.py --data ../data.yaml --epochs 100 - Specialist model focuses only on plates, not general vehicles
- Train custom detector:
If Precision < 0.85
Diagnosis: Too many false positives (non-plates detected)
Recommendations:
-
Raise confidence threshold:
- Increase from default 0.25 to 0.35-0.40
- Reduces false alarms at cost of some missed plates
-
Improve regex filtering:
- Strengthen validation in
score_plate()function - Add more brand names to blacklist
- Require minimum alphanumeric mix
- Strengthen validation in
-
Add negative samples to training:
- Include images without plates
- Train model to recognize "background" class
- Reduces false positives on signage, text
Output Summary
The skill returns a JSON summary with actionable items:
{
"evaluation_date": "2026-01-31",
"overall_grade": "B+",
"bottleneck": "OCR accuracy",
"recommendations": [
{
"priority": "HIGH",
"action": "Increase mag_ratio to 2.5",
"expected_improvement": "+8% OCR accuracy",
"implementation_time": "5 minutes"
},
{
"priority": "MEDIUM",
"action": "Add bilateral filter preprocessing",
"expected_improvement": "+3% mAP, +5% OCR in low light",
"implementation_time": "15 minutes"
}
],
"deploy_decision": "RECOMMEND_IMPROVEMENTS_FIRST"
}
Integration with ALPR Optimizer
This skill is designed to be called within the ALPR Optimizer workflow:
- Pre-training: Baseline evaluation
- Post-training: Improved model evaluation
- Decision point: Auto-approve deployment if metrics meet thresholds
When not to use it
- →When evaluating models other than license plate detection
- →When detailed manual analysis of model performance is preferred
- →When the model does not have detection and OCR metrics
Limitations
- →The skill is specific to license plate detection models
- →Recommendations are based on predefined OCR accuracy and mAP50 thresholds
- →The output format is a specific JSON structure
How it compares
This skill automates the process of evaluating model performance, comparing it to a baseline, and generating actionable recommendations, which is faster than manual analysis and decision-making.
Compared to similar skills
Plate Evaluation side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| Plate Evaluation (this skill) | 0 | 6mo | Review | Intermediate |
| llm-evaluation | 0 | 3mo | No flags | Intermediate |
| model-change | 0 | 5mo | Review | Intermediate |
| llm-evaluation | 6 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
llm-evaluation
H4D3ZS
Implement comprehensive evaluation strategies for LLM applications using automated metrics, human feedback, and benchmarking. Use when testing LLM performance, measuring AI application quality, or establishing evaluation frameworks.
model-change
connorkitchings
Use for prediction logic, feature usage, backtests, or metrics changes.
llm-evaluation
wshobson
Implement comprehensive evaluation strategies for LLM applications using automated metrics, human feedback, and benchmarking. Use when testing LLM performance, measuring AI application quality, or establishing evaluation frameworks.
evaluating-llms-harness
davila7
Evaluates LLMs across 60+ academic benchmarks (MMLU, HumanEval, GSM8K, TruthfulQA, HellaSwag). Use when benchmarking model quality, comparing models, reporting academic results, or tracking training progress. Industry standard used by EleutherAI, HuggingFace, and major labs. Supports HuggingFace, vLLM, APIs.
evaluating-machine-learning-models
jeremylongshore
Build this skill allows AI assistant to evaluate machine learning models using a comprehensive suite of metrics. it should be used when the user requests model performance analysis, validation, or testing. AI assistant can use this skill to assess model accuracy, p... Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.
openjudge
agentscope-ai
>