# Send Pywayne Cv Camera Model to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "camera-model",
    "name": "Pywayne Cv Camera Model",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/wangyendt/camera-model",
    "canonicalUrl": "https://clawhub.ai/wangyendt/camera-model",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/camera-model",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=camera-model",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "camera-model",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T07:40:21.713Z",
      "expiresAt": "2026-05-10T07:40:21.713Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=camera-model",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=camera-model",
        "contentDisposition": "attachment; filename=\"camera-model-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "camera-model"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/camera-model"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/camera-model",
    "downloadUrl": "https://openagent3.xyz/downloads/camera-model",
    "agentUrl": "https://openagent3.xyz/skills/camera-model/agent",
    "manifestUrl": "https://openagent3.xyz/skills/camera-model/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/camera-model/agent.md"
  }
}
```
## Documentation

### Pywayne Camera Model

This module wraps the camera_models C++ library via pybind11, providing a Python interface for camera operations.

### Quick Start

from pywayne.cv.camera_model import CameraModel
from pywayne.cv.tools import write_cv_yaml
import numpy as np

# Create camera model
camera = CameraModel()

# Load from YAML file
camera.load_from_yaml('camera_config.yaml')

# Access properties
print(f"Model: {camera.model_type}")
print(f"Size: {camera.image_width}x{camera.image_height}")

### Loading from YAML

from pathlib import Path

# Sample YAML configuration
yaml_data = {
    "model_type": "PINHOLE",
    "camera_name": "my_camera",
    "image_width": 1280,
    "image_height": 720,
    "distortion_parameters": {"k1": 0.0, "k2": 0.0},
    "projection_parameters": {"fx": 600.0, "fy": 600.0, "cx": 640.0, "cy": 360.0}
}

# Write YAML file
write_cv_yaml('camera_config.yaml', yaml_data)

# Load model
camera.load_from_yaml('camera_config.yaml')

### Supported Camera Models

Model TypeDescriptionPINHOLEStandard pinhole camera with radial distortionPINHOLE_FULLFull pinhole model with all distortion parametersCATACatadioptric camera modelEQUIDISTANTEquidistant camera modelOCAMUnified camera model

### lift_projective()

Lifts a 2D image point to a 3D projective ray:

# Input can be tuple, list, or numpy array
ray_3d = camera.lift_projective([u, v])  # Returns np.ndarray (x, y, z)

### space_to_plane()

Projects a 3D point onto the 2D image plane:

# Input can be tuple, list, or numpy array
uv = camera.space_to_plane([x, y, z])  # Returns np.ndarray (u, v)

### Properties

PropertyDescriptionmodel_typeCamera model type (enum)camera_nameName of the loaded cameraimage_widthImage width in pixelsimage_heightImage height in pixels

### Parameters Dictionary

Export all camera parameters as a dictionary:

params = camera.get_parameters_as_dict()
print(params)

Includes model-specific parameters:

Pinhole: k1, k2, p1, p2, fx, fy, cx, cy
Pinhole Full: k1-k6, p1-p2, fx, fy, cx, cy
CATA: xi, k1-k2, p1-p2, gamma1-2, u0, v0
Equidistant: k2-k5, mu, mv, u0, v0
OCAM: C, D, E, center_x, center_y, poly, inv_poly

### Requirements

camera_models - C++ library (auto-downloaded via gettool if missing)
numpy - Array operations
pywayne.cv.tools.write_cv_yaml - For writing YAML files

### Notes

Library is automatically checked and downloaded via gettool if not found
Supports both tuple/list and numpy array inputs for projection methods
Output from projection methods is always np.ndarray with dtype=np.float64
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: wangyendt
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T07:40:21.713Z
- Expires at: 2026-05-10T07:40:21.713Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/camera-model)
- [Send to Agent page](https://openagent3.xyz/skills/camera-model/agent)
- [JSON manifest](https://openagent3.xyz/skills/camera-model/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/camera-model/agent.md)
- [Download page](https://openagent3.xyz/downloads/camera-model)