Frequently Asked Question

How to enable text rule & extract rule
最後更新 4 days ago

To enable Text Rule

1.Go to settings

image

2.Enable "Text Rule"

image

3.Enable "MGI" & "MGI2"

image

4. And the back to Action Mode

image

5.Click "Real-Time"

image

6.And then we can try Image2Text again

image


To set up "Extract Rule"

If you want to filter the extract and the we will need do this

For example : 1024kg => 1024

1.Enable "Extract Text Rule"

image

2.Go Setting and then enable the setting file

image

3. Have a try now

image


Explanation for text rule & extract text rule:

Image2Text supports the use of Regular Expressions (Regex) to define:

  • Text Rule: Specifies the pattern that determines which types of characters (e.g., numbers or letters) should be recognized from the image.

  • Extract Text Rule: Filters or extracts a specific part of the recognized result based on your criteria.

By combining these two rules, you can precisely control both what gets recognized and what gets extracted from the recognized content.


Text Rule:

MGI:(To capture digits only):

^: Start from

[0-9]: Any 0-9

{2,}: At least 2 digits

image

MGI2 (To capture digits + Charterers):

^:Must start from

\:Any

d+:Any digits

\:Any

s:space

[a-zA-Z]+:All Lower or Capital characters allow filed

$:End with

image

Extract Text Rule:

MGI (To filter the final data we need)

1.Condition:(In what kind of condition we extract data)

^:Must start from

\:Any

d+:Any digits

\:Any

s:space

[a-zA-Z]+:All Lower or Capital characters allow filed

$:End with


2.Extract: What data we need

\d+: All digits we needs but no others 

image

請稍後!

請稍後幾分鐘!