Baidu Image Classification for Openclaw

A powerful image recognition skill that enables AI agents to identify general objects, retail products, and environmental scenes with high precision.

maple-8899
v1.0.0
Apr 11, 2026
0
599
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install baidu-image-classify

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install baidu-image-classify using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Baidu Image Classification?

The Baidu Image Classification skill is a robust integration for Openclaw Skills that leverages Baidu's advanced deep learning models to interpret visual data. It provides developers with the ability to transform raw images—whether from a local path or a URL—into structured data containing object labels, confidence scores, and even Baidu Baike (encyclopedia) information.

This skill is designed for high-throughput applications, offering a generous free tier and specialized endpoints for different visual tasks. By integrating this into your workflow, your AI agents gain the 'eyes' necessary to understand the physical world, making it an essential component of the Openclaw Skills ecosystem.

Baidu Image Classification Use Cases

  • Automated Product Sourcing: Identify items from photos to retrieve names, estimated pricing, and direct purchase links.
  • Visual Content Analysis: Automatically tag and describe the contents of image libraries or social media uploads.
  • Context-Aware Recommendations: Detect environmental scenes (like a beach or office) to provide relevant suggestions or localized content.
  • Smart Inventory Management: Recognize and catalog physical objects within a workspace or warehouse setting.

How Baidu Image Classification Works

  1. Authentication: The skill initiates an OAuth 2.0 handshake with Baidu BCE to retrieve a temporary access token.
  2. Image Processing: Input images are converted into Base64 encoding to meet API requirements.
  3. Task Routing: Depending on the function called (General, Shopping, or Scene), the data is sent to the specific Baidu REST endpoint.
  4. Data Enrichment: The skill parses the JSON response, extracting key metadata like confidence scores and encyclopedia links.
  5. Result Delivery: Structured information is returned to the agent for further decision-making or user display.

Baidu Image Classification Setup

To deploy this skill within your environment, ensure you have your Baidu Cloud credentials ready and follow these steps:

# Navigate to your Openclaw skills directory
cd ~/.openclaw/skills/baidu-image-classify

# Install required dependencies
pip install requests

Configure your API_KEY and SECRET_KEY within the skill configuration to enable OAuth 2.0 authentication.

Baidu Image Classification Data Schema & Taxonomy

The skill returns structured data tailored to the specific recognition task. Below is the schema for general object identification:

Field Type Description
name String The identified object or scene name
score Float Confidence level (0.0 to 1.0)
baike_info Object Linked Baidu Baike title and URL
price String (Product Only) Identified market price
shops Array (Product Only) List of retailers and purchase links

Baidu Image Classification Advanced Features

  • Multi-Task Recognition: Support for general classification, specialized retail product detection, and environmental scene recognition.
  • Encyclopedia Integration: Automatically fetches Baidu Baike metadata to provide rich context for identified objects.
  • High-Volume Processing: Optimized for up to 50,000 requests per month, supporting large-scale automation projects.
  • Flexible Input Handling: Seamlessly switches between local file system paths and remote web URLs for image sourcing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*