Pywayne Cv Geometric Hull Calculator

v0.1.0

Geometric hull calculator for 2D point sets supporting convex hull, concave hull (concave-hull, alphashape), and minimum bounding rectangle. Use when working...

0· 530·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wangyendt/geometric-hull-calculator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Pywayne Cv Geometric Hull Calculator" (wangyendt/geometric-hull-calculator) from ClawHub.
Skill page: https://clawhub.ai/wangyendt/geometric-hull-calculator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install wangyendt/geometric-hull-calculator

ClawHub CLI

Package manager switcher

npx clawhub@latest install geometric-hull-calculator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name, description, and SKILL.md all describe a 2D geometric-hull calculator using numpy, OpenCV, scipy, alphashape/concave_hull, and shapely — the requested libraries are appropriate for that functionality.
Instruction Scope
SKILL.md only shows Python usage examples and visualization calls; it does not instruct the agent to read arbitrary files, access environment variables, or send data to external endpoints. It remains within the stated purpose.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing will be written to disk or downloaded by the skill itself.
Credentials
No environment variables, secrets, or config paths are requested; the listed Python packages are proportional to the described capabilities.
Persistence & Privilege
always is false and the skill is user-invocable. Autonomous invocation is allowed by default but is not combined here with any broad credential requests or persistent installation.
Assessment
This skill is internally consistent, but note that SKILL.md refers to a Python module (pywayne.cv.geometric_hull_calculator) that is not included here and the skill has no homepage or source listed. Before running: (1) verify you have the listed Python packages installed from trusted sources (numpy, OpenCV, scipy, alphashape/concave_hull, shapely, matplotlib); (2) confirm the pywayne module's provenance or inspect its code if you obtain it — importing unknown packages can run arbitrary code; (3) be aware visualization calls may open windows or require a GUI/backend; and (4) if you plan to supply sensitive data, remember the skill only handles point sets but always validate where data may be logged or transmitted by your runtime environment.

Like a lobster shell, security has layers — review code before you run it.

latestvk97f4ktd7t2txe5b8vdhet1vv1816r7e
530downloads
0stars
1versions
Updated 2mo ago
v0.1.0
MIT-0

Pywayne Geometric Hull Calculator

This module computes geometric hulls (convex and concave) for 2D point sets.

Quick Start

from pywayne.cv.geometric_hull_calculator import GeometricHullCalculator
import numpy as np

# Create calculator with random points
points = GeometricHullCalculator.generate_random_points(num_points=50)
calculator = GeometricHullCalculator(points, algorithm='concave-hull')

# Get results
print(f"MBR: {calculator.get_mbr()}")
print(f"Convex Hull: {calculator.get_convex_hull()}")
print(f"Concave Hull: {calculator.get_concave_hull()}")

# Visualize with matplotlib
calculator.visualize_matplotlib()

Initialization

# algorithm options: 'concave-hull' or 'alphashape'
# use_filtered_pts: Enable point filtering based on radius
calculator = GeometricHullCalculator(
    points=your_points,
    algorithm='alphashape',
    use_filtered_pts=True
)

Supported Algorithms

AlgorithmDescription
concave-hullConcave hull using concave_hull library
alphashapeConcave hull using alphashape library

Hull Types

TypeMethodDescription
Convex Hullget_convex_hull()Outer hull containing all points
Concave Hullget_concave_hull()Inner concave boundary

Properties

PropertyDescription
pointsInput 2D points (N×2 numpy array)
algorithmAlgorithm used for concave hull
use_filtered_ptsWhether filtered points were used
boxMinimum Bounding Rectangle corners
centerCenter point of input points
filter_radiusRadius used for point filtering
concave_hull_resultConcave hull points or polygons

Visualization

OpenCV Visualization

calculator.visualize_opencv()

Displays: All input points, MBR, center, filter circle (if enabled), concave hull (green), convex hull (red).

Matplotlib Visualization

calculator.visualize_matplotlib()

Displays: All input points (red), MBR (blue), center, filter radius circle (if enabled), concave hull (orange), convex hull (purple).

Requirements

  • numpy - Array operations
  • cv2 (OpenCV) - For OpenCV visualization and MBR computation
  • matplotlib - For matplotlib visualization
  • scipy - For convex hull computation
  • concave_hull - Concave hull algorithm
  • alphashape - Alphashape algorithm
  • shapely - Polygon operations for area calculation

Notes

  • Point filtering uses radius = 30% of shorter MBR edge length
  • MBR computed using OpenCV's minAreaRect
  • Convex hull uses scipy's ConvexHull
  • Supports both single Polygon and MultiPolygon from alphashape results

Comments

Loading comments...