pipeline-generate

Generate OCR nodes and scan ROI values for MaaFramework pipelines.

59|27|Updated Apr 15, 2025
One-click install
npx skills add https://github.com/KhazixW2/MaaGumballs --skill pipeline-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pipeline-generate
Source: https://github.com/KhazixW2/MaaGumballs/tree/main/.claude/skills/pipeline-generate
Command: npx skills add https://github.com/KhazixW2/MaaGumballs --skill pipeline-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of generating and optimizing OCR nodes within MaaFramework pipelines, streamlining OCR integration for complex tasks.

Core Features & Use Cases

  • Single Node Generation: Create OCR nodes for individual text recognition tasks and integrate them into existing pipelines.
  • ROI Sweep: Automatically scan different expansion values to determine the optimal ROI for better OCR performance.
  • Use Case: Need to automate character recognition in a mobile game. Use this Skill to generate the OCR node with the best ROI and merge it into your existing pipeline for accurate recognition.

Quick Start

Generate an OCR node for the word "role" in the UI_RoleListPage and add it to the main_ui.json pipeline. Expand ROI to 20 pixels.

python .claude/skills/pipeline-generate/generate_node.py "role" UI_RoleListPage main_ui.json --expand 20

Frequently Asked Questions about pipeline-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate OCR nodes for MaaFramework pipelines?

You can generate OCR nodes for MaaFramework pipelines by running a Python script that creates individual text recognition tasks and merges them directly into your existing JSON pipeline files.

How do I find the optimal ROI for text recognition in MaaFramework?

To find the optimal ROI for text recognition, you can use an automated ROI sweep script that scans different pixel expansion values to determine the best recognition area for your OCR nodes.

What do I need to set up before adding OCR nodes to my MaaFramework pipeline?

You need a Python environment and an existing MaaFramework integration with JSON pipeline files to run the OCR node generation scripts and merge the text recognition tasks.

Why does my MaaFramework OCR node fail to recognize text accurately?

OCR nodes fail to recognize text accurately when the ROI is misaligned; running an automated ROI sweep to test various pixel expansion values helps determine the optimal recognition area.

Can I add a single OCR node to an existing MaaFramework JSON pipeline?

Yes, you can add a single OCR node to an existing MaaFramework JSON pipeline by executing a command-line Python script with the target text, page name, and JSON file as arguments.

What is the best way to automate text recognition in mobile games using MaaFramework?

The best way to automate text recognition in mobile games using MaaFramework is generating optimized OCR nodes with automatically swept ROI values and integrating them into your pipeline.