Frequently Asked Question
To enable Text Rule
1.Go to settings
2.Enable "Text Rule"
3.Enable "MGI" & "MGI2"
4. And the back to Action Mode
5.Click "Real-Time"
6.And then we can try Image2Text again
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"
2.Go Setting and then enable the setting file
3. Have a try now
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
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
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