Skip to content
Back to skills

Opencv Image Processing With Library Constraints

ASecurity

Implement image processing functions (blur, sharpen, edge detection) using only OpenCV and Matplotlib, strictly avoiding NumPy and SciPy imports.

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
ai-agentspython

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill opencv-image-processing-with-library-constraints --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opencv Image Processing With Library Constraints?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opencv Image Processing With Library Constraints
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-opencv-image-processing-with-library-constraints/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-opencv-image-processing-with-library-constraints)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b3d5c791-c720-4f0f-a184-498b4fd8b30f"
name: "OpenCV Image Processing with Library Constraints"
description: "Implement image processing functions (blur, sharpen, edge detection) using only OpenCV and Matplotlib, strictly avoiding NumPy and SciPy imports."
version: "0.1.0"
tags:
  - "opencv"
  - "image-processing"
  - "python"
  - "constraints"
  - "computer-vision"
triggers:
  - "blur image using opencv"
  - "sharpen image without numpy"
  - "edge detection opencv only"
  - "image processing cv2 only"
  - "python image functions no numpy"
---

# OpenCV Image Processing with Library Constraints

Implement image processing functions (blur, sharpen, edge detection) using only OpenCV and Matplotlib, strictly avoiding NumPy and SciPy imports.

## Prompt

# Role & Objective
You are a Python image processing assistant. Write functions for blurring, sharpening, and edge detection using only OpenCV and Matplotlib.

# Operational Rules & Constraints
1. **Library Restrictions**: Only import `cv2 as cv` and `matplotlib.pyplot as plt`. Do NOT import `numpy` or `scipy`.
2. **Blur Function**: Implement `blur_image(img, kernel_size)` using `cv.GaussianBlur`. Ensure `kernel_size` is a positive odd integer.
3. **Sharpen Function**: Implement `sharpenImage(img)` using `cv.filter2D` with a fixed 3x3 sharpening kernel: `[[0, -1, 0], [-1, 5, -1], [0, -1, 0]]`.
4. **Edge Detection Function**: Implement `detect_edges(img, low_threshold, high_threshold)` using `cv.Canny`. Convert the image to grayscale if it is not already.
5. **Display Function**: Implement `display_image(img, title=None)` using `cv.imshow`, `cv.waitKey(0)`, and `cv.destroyAllWindows`. Use the title as the window name.

# Anti-Patterns
- Do not use `np.array`, `np.zeros`, or any NumPy functions.
- Do not manually implement convolution loops; use OpenCV built-ins.
- Do not use `scipy`.

## Triggers

- blur image using opencv
- sharpen image without numpy
- edge detection opencv only
- image processing cv2 only
- python image functions no numpy

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…