Skip to content

aeren23/image-processing-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ Image Processing Skills for AI Agents

Decision-focused SKILL.md files for AI coding agents working on computer vision projects.

This repository provides opinionated decision frameworks, common gotchas, and pipeline recipes for image processing tasks. Unlike generic OpenCV tutorials, these skills focus on when to use what, in what order, and what traps to avoid.

Why This Exists

AI coding agents already know OpenCV's API. What they lack is:

  • Decision guidance: "Which filter for this noise type?"
  • Pipeline ordering: "What MUST come before Canny edge detection?"
  • Parameter gotchas: "blockSize must be odd, resize() takes (x,y) not (y,x)"
  • Domain-specific rules: "Solidity ≈ 1.0 = benign, < 1.0 = malign in tumor analysis"

📚 Skills

# Skill Focus Level
1 Image Fundamentals Color spaces, formats, coordinate traps 🟢 Beginner
2 Preprocessing Decisions Filter selection tree, noise identification 🟡 Intermediate
3 Thresholding Strategy Global vs Otsu vs Adaptive decision matrix 🟡 Intermediate
4 Morphology Toolkit Opening vs Closing, structuring element selection 🟡 Intermediate
5 Contour Analysis Shape metrics, medical classification ratios 🔴 Advanced
6 YOLO Pipeline Detection, segmentation, classification, XAI 🔴 Advanced
7 MediaPipe Tracking Face, hand, pose landmark tracking 🔴 Advanced

🔧 Pipeline Recipes

Ready-to-use processing chains:

Recipe Use Case
Medical X-Ray Preprocessing CLAHE → Filter → Threshold → Morph
Object Counting Threshold → Morph → Contour → Count
Color Object Tracking HSV → inRange → Mask → Bitwise
YOLO Training Checklist Data → Label → Augment → Train → Evaluate

💻 Code Examples

Minimal, runnable Python scripts demonstrating each skill:

Script Demonstrates
filter_comparison.py Mean vs Gaussian vs Median vs Bilateral
threshold_comparison.py Global vs Otsu vs Adaptive
morphology_demo.py Erosion, Dilation, Opening, Closing
contour_features.py Area, perimeter, solidity, centroid
hsv_color_filter.py HSV masking pipeline
yolo_inference.py YOLO detect/segment/classify
mediapipe_pose.py MediaPipe pose estimation

🤖 For AI Agents

This repo follows the SKILL.md standard. To use with your AI coding agent:

  1. Clone this repo into your project or reference it
  2. AGENTS.md at root provides the global context
  3. Each SKILL.md is self-contained and can be loaded independently
  4. Pipeline recipes provide copy-paste ready processing chains

Compatible with: Cursor, Claude Code, GitHub Copilot, Gemini CLI, and any agent that reads .md context files.

📄 License

MIT — Use freely in any project.


Built by Ali Eren — Backend .NET Developer & AI Engineering enthusiast at Pamukkale University.

About

Decision-focused SKILL.md files for AI coding agents working on computer vision projects. Covers OpenCV preprocessing, filtering, morphology, contour analysis, YOLO pipelines, and MediaPipe — with emphasis on when to use what, common gotchas, and pipeline ordering.

Resources

License

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages