Xpersona
T

Tomoviee Image Recognition

CLAWHUB · Unverified

Auto-generate masks for objects/regions in images. Use when users request image_recognition operations or related tasks. Skill: Tomoviee Image Recognition Owner: wondershare-boop Summary: Auto-generate masks for objects/regions in images. Use when users request image_recognition operations or related tasks. Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-27T14:37:53.602Z | user - Added _meta.json for improved metadata management. - Included compiled Python cache file scripts/__pycache__/tomoviee_recognition_client.cpython-312.pyc.

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1707d6v06e1pv7bbn814sjdq583gtne:tomoviee-image-recognition
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wondershare-boop-tomoviee-image-recognition/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

86,917 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: tomoviee-recognition
description: Auto-generate masks for objects/regions in images. Use when users request image_recognition operations or related tasks.
---

# Tomoviee AI - 图像识别 (Image Recognition)

## Overview

Auto-generate masks for objects/regions in images.

**API**: `tm_reference_img2mask`

## Quick Start

### Authentication

```bash
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
```

### Python Client

```python
from scripts.tomoviee_image_recognition_client import TomovieeClient

client = TomovieeClient("app_key", "app_secret")
```

## API Usage

### Basic Example

```python
task_id = client._make_request({
    image='https://example.com/photo.jpg'
    control_type='2'  # subject/default
})

result = client.poll_until_complete(task_id)
import json
output = json.loads(result['result'])
```

### Parameters

- `image` (required): Image URL to analyze
- `control_type`: 0=edge, 1=pose, 2=subject, 3=depth

## Async Workflow

1. **Create task**: Get `task_id` from API call
2. **Poll for completion**: Use `poll_until_complete(task_id)`
3. **Extract result**: Parse returned JSON for output URLs

**Status codes**:
- 1 = Queued
- 2 = Processing
- 3 = Success (ready)
- 4 = Failed
- 5 = Cancelled
- 6 = Timeout

## Resources

### scripts/
- `tomoviee_image_recognition_client.py` - API client
- `generate_auth_token.py` - Auth token generator

### references/
See bundled reference documents for detailed API documentation and examples.

## External Resources

- **Developer Portal**: https://www.tomoviee.ai/developers.html
- **API Documentation**: https://www.tomoviee.ai/doc/
- **Get API Credentials**: Register at developer portal

_meta.json

{
  "ownerId": "kn7bn8fv79mjtchs17087tdtsx82fc86",
  "slug": "tomoviee-image-recognition",
  "version": "1.0.2",
  "publishedAt": 1774622273602
}

references/image_apis.md

# Tomoviee Image Generation APIs

## Overview
Tomoviee provides three image generation APIs for reference-based generation, localized editing, and intelligent segmentation.

## API Endpoints

### 1. Image-to-Image (tm_reference_img2img)
**Generate new image based on reference image**

**Endpoint**: `https://openapi.wondershare.cc/v1/open/capacity/application/tm_reference_img2img`

**Parameters**:
- `prompt` (required): Text description (reference + preserve + modify/add)
- `image` (required): Reference image URL (JPG/JPEG/PNG/WEBP, <200M)
- `resolution`: Image resolution - `512*512` (default), `768*768`, `1024*1024`
- `aspect_ratio`: Image aspect ratio - `1:1` (default), `16:9`, `9:16`, `4:3`, `3:4`
- `image_num`: Number of images to generate - 1 to 4 (default: 1)
- `callback`: Optional callback URL for async notification
- `params`: Optional transparent parameters passed back in callback

**Use Cases**:
- Reimagine existing images with modifications
- Generate variations while preserving style/composition
- Change specific elements (clothing, background, objects)
- Maintain overall structure while altering details

**Prompt Structure**:
```
[Reference description] + [Elements to preserve] + [Modifications/additions]
```

**Example**:
```python
task_id = client.image_to_image(
    prompt="A woman in business attire, preserve facial features and pose, change background to modern office with floor-to-ceiling windows",
    image="https://example.com/portrait.jpg",
    resolution="1024*1024",
    aspect_ratio="3:4",
    image_num=2  # Generate 2 variations
)
```

**Important Notes**:
- The reference image guides style, composition, and structure
- Prompt should explicitly state what to preserve vs. modify
- Higher resolution = better detail but slower generation
- Multiple images (image_num > 1) generate variations with same prompt

---

### 2. Image Redrawing (tm_redrawing)
**Redraw specific region of image using mask**

**Endpoint**: `https://openapi.wondershare.cc/v1/open/capacity/application/tm_redrawing`

**Parameters**:
- `prompt` (required): Description of what to redraw in masked area
- `image` (required): Original image URL (JPG/JPEG/PNG/WEBP, <200M)
- `mask` (required): Mask image URL (white = redraw area, black = preserve area)
- `resolution`: Image resolution - `512*512` (default), `768*768`, `1024*1024`
- `aspect_ratio`: Image aspect ratio - `1:1` (default), `16:9`, `9:16`, `4:3`, `3:4`
- `image_num`: Number of images to generate - 1 to 4 (default: 1)
- `callback`: Optional callback URL for async notification
- `params`: Optional transparent parameters passed back in callback

**Use Cases**:
- Remove/replace objects or people
- Edit specific image regions
- Inpainting and outpainting
- Fix or enhance localized areas
- Change backgrounds while keeping foreground

**Mask Requirements**:
- Same dimensions as input image
- White pixels (255, 255, 255) = areas to redraw
- Black pixels (0, 0, 0) = areas to preserve unchanged
- Grayscale values

references/prompt_guide.md

# Tomoviee Prompt Engineering Guide

## Overview
This guide provides structured prompt formulas and best practices for all Tomoviee AI APIs to achieve optimal generation results.

---

## Video APIs

### Text-to-Video Prompt Formula
```
主体(描述) + 运动 + 场景(描述) + (镜头语言 + 光影 + 氛围)
Subject (description) + Motion + Scene (description) + (Camera + Lighting + Atmosphere)
```

**Component Breakdown**:

1. **Subject (主体)**: Main focus of the video
   - Who/what is in the scene
   - Key characteristics, appearance
   - Position and pose

2. **Motion (运动)**: Action and movement
   - What the subject is doing
   - Speed and direction of movement
   - Dynamic elements

3. **Scene (场景)**: Environment and context
   - Location and setting
   - Background elements
   - Time of day/season

4. **Camera (镜头语言)**: Optional camera work
   - Camera angle (wide, close-up, aerial, etc.)
   - Camera movement (pan, zoom, tracking, etc.)
   - Or specify `camera_move_index` parameter

5. **Lighting (光影)**: Optional lighting style
   - Natural/artificial light
   - Time of day (golden hour, blue hour, etc.)
   - Light direction and quality

6. **Atmosphere (氛围)**: Optional mood and tone
   - Overall feeling (dramatic, peaceful, energetic)
   - Color palette/grading
   - Weather/environmental effects

**Examples**:

**Minimal** (Subject + Motion + Scene):
```
"A red sports car driving fast on a coastal highway at sunset"
```

**Standard** (+ Camera + Lighting):
```
"A red sports car speeding along a winding coastal highway at golden hour, 
camera following from the side, warm orange sunlight reflecting off the car"
```

**Detailed** (+ Atmosphere):
```
"A sleek red Ferrari speeding along a dramatic coastal highway carved into cliffs, 
camera tracking smoothly from the side at car level, 
golden hour sunset casting long shadows and warm orange glow, 
cinematic and epic atmosphere with ocean waves crashing below"
```

**More Examples by Use Case**:

**Product Showcase**:
```
"White wireless headphones slowly rotating on a minimalist white surface, 
studio lighting with soft shadows, clean and modern atmosphere"
```

**Nature/Travel**:
```
"Majestic waterfall cascading down mossy rocks in a lush rainforest, 
slow zoom in from wide to medium shot, 
dappled sunlight filtering through the canopy, 
serene and peaceful atmosphere"
```

**Action/Sports**:
```
"Professional skateboarder performing a kickflip on urban street ramp, 
slow motion capture from low angle, 
bright daylight with high contrast shadows, 
energetic and dynamic atmosphere"
```

### Image-to-Video Prompt Formula
```
主体 + 运动 + 镜头语言
Subject + Motion + Camera
```

**Why simpler?** The image already provides:
- Scene and environment
- Lighting and color palette
- Composition and framing
- Atmosphere and mood

**Your prompt should focus on**:
- Motion to add to the static image
- Camera movement to apply
- Any new dynamic elements

**Examples**:

```
"Camera slowly zooming in, subject's hair gently blowing in the wind"
``

skill-card.md

## Description:

Auto-generate masks for objects/regions in images. Use when users request image_recognition operations or related tasks.

This skill is ready for commercial/non-commercial use.

## Publisher:

[wondershare-boop](https://clawhub.ai/user/wondershare-boop)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to call Tomoviee's image recognition API for generating masks of objects or regions in supplied images. The generated masks can support downstream image editing, redrawing, and segmentation workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Image URLs and prompts are sent to a third-party Wondershare/Tomoviee API.

Mitigation: Avoid submitting sensitive images or private URLs unless the user has approved the data handling and external API use.

Risk: The documented token helper accepts reusable API credentials on the command line and prints the resulting access token.

Mitigation: Use protected environment variables or a secret manager, avoid shared terminals and CI logs, and rotate credentials that may have been exposed.

Risk: The bundled references include broader Tomoviee image generation guidance beyond the skill's stated image-mask purpose.

Mitigation: Keep agent use scoped to image recognition and mask generation unless the user explicitly asks for related Tomoviee image generation workflows.

## Reference(s):

- [Tomoviee Image APIs](references/image_apis.md)
- [Tomoviee Prompt Engineering Guide](references/prompt_guide.md)
- [Tomoviee Developer Portal](https://www.tomoviee.ai/developers.html)
- [Tomoviee API Documentation](https://www.tomoviee.ai/doc/)
- [ClawHub Skill Page](https://clawhub.ai/wondershare-boop/skills/tomoviee-image-recognition)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with Python and shell command examples; API results are JSON-like task and mask URL payloads.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Uses an asynchronous third-party API workflow with task polling and returned mask URLs.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Tomoviee Image Recognition and adjacent AI workflows.