Prompt Guide: How to Write Highly Effective Prompts
To better accommodate long-tail non-standard gauges, the system has opened a "custom prompt" feature. This guide explains how to use external large language models (such as Qwen, Kimi, Wenxin Yiyan, etc.) to quickly generate accurate and efficient extraction instructions.
For non-standard or structurally complex gauges, unless your requirement is very simple — for example, extracting the number on the second line of a screen — manual enumeration is not recommended. Using an external large language model to assist in generating prompts is strongly recommended.
Copy the standardized template below, fill in the variables based on your actual gauge characteristics, and send it to any large language model.
LLM-Assisted Generation Template (Copy and Fill In)
[Task Context] You are now an industrial vision AI prompt engineer. Please help me write a prompt for "gauge reading extraction." This prompt will be fed to a vision large language model to guide it in accurately extracting values from images.
[Gauge Characteristics Input] Target data characteristics: [Describe the data you need to extract, e.g.: the last digit on the roller in red represents a decimal] Common interference factors (to exclude): [Describe factors in the image that may affect recognition. E.g.: the glass surface has strong reflections; the dial has two pointers for high and low pressure — ignore the red pointer; there are irrelevant English characters such as m³ nearby]
[Output Specification]
- Format requirements: [E.g.: output pure numbers only, retain two decimal places; or: output integers]
- Constraints: The instruction must be concise and logically clear, contain no explanatory filler, and be strictly limited to 50 characters or fewer in total.
Practical Application Examples
- Read the mechanical roller value: the first four digits in black are the integer part; the last digit in red is the decimal. Concatenate and output as a pure number (e.g., 1234.5).
- Extract the largest-font value from the main display area of the screen. Ignore localized glare spots and small unit characters at the edges; output the pure number directly.
- Read only the scale value on the outer ring indicated by the longer black pointer; ignore the shorter red pointer.