BmpToText/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „== Description ==“)
 
(Není zobrazeno 29 mezilehlých verzí od 2 dalších uživatelů.)
Řádek 7: Řádek 7:
 
'''Alias: BTT'''
 
'''Alias: BTT'''
  
'''Převede bitmapu na text'''
+
'''Converts the bitmap to text.'''
  
Pokusí se rozpoznat text vykreslený v bitmapě [[#bitmap-| Bitmap]] a převést jej na řetězec, který uloží do výstupního parametru [[#text-| Text]]. Je-li nastavena maska (parametr [[#masked-| Masked]]=1), provádí se detekce textu na základě barvy určené parametrem [[#maskcolor-| MaskColor]]. Pro detekci textu je nutné zadat cestu k databázi fontů parametrem [[#fontdb-| FontDB]], kterou je možné vygenerovat prostřednictvím nástrojů aplikace GuiMaster Editor.
+
Attempts to recognize the text rendered in the [[#bitmap-| Bitmap]] and convert it to a string, which is stored in the [[#text-| Text]] output parameter. If a mask is set ([[#masked-| Masked]]=1), it detects the text based on the color specified by the [[#maskcolor-| MaskColor]] parameter. To detect the text, it is necessary to enter the font database file name with the [[#fontdb-| FontDB]] parameter, which can be generated using GuiMaster Editor tools.
  
== Vstupní parametry ==
+
== Input parameters ==
  
 
<span id="bitmap-"></span>
 
<span id="bitmap-"></span>
 
=== Bitmap ===
 
=== Bitmap ===
  
Typ [[Special:MyLanguage/Datové typy#Bitmap | Bitmap]]
+
[[Special:MyLanguage/Datové typy#Bitmap | Bitmap]] type
  
Bitmapa s textem.
+
Bitmap containing text.
  
 
<span id="fontdb-"></span>
 
<span id="fontdb-"></span>
 
=== FontDB ===
 
=== FontDB ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
[[Special:MyLanguage/Datové typy#String | String]] type
  
Název souboru s databází fontů.
+
Font database file name.
  
 
<span id="masked-"></span>
 
<span id="masked-"></span>
 
=== Masked ===
 
=== Masked ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Při hodnotě 1 se z bitmapy vytvoří maska podle parametru [[#maskcolor-| MaskColor]].
+
The mask is created from the bitmap using the [[#maskcolor-| MaskColor]] if Masked=1.
  
 
<span id="maskcolor-"></span>
 
<span id="maskcolor-"></span>
 
=== MaskColor ===
 
=== MaskColor ===
  
Typ [[Special:MyLanguage/Datové typy#Color | Color]]
+
[[Special:MyLanguage/Datové typy#Color | Color]] type
  
Barva písma pro masku (používá se pouze při [[#masked-| Masked]]=1).  
+
Font color for mask (used only when [[#masked-| Masked]]=1).  
  
 
=== OnlyIfNotNull ===
 
=== OnlyIfNotNull ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Pokud má hodnotu 1, pak se příkaz neprovádí v případě, kdy není zadána hodnota parametru [[#bitmap-| Bitmap]].
+
The command is not executed when the [[#bitmap-| Bitmap]] parameter value is not specified and the value of this parameter is 1.
  
 
=== Enabled ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not be executed.
  
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
[[Special:MyLanguage/Datové typy#Number | Number]] type
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds after executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
 
<span id="text-"></span>
 
<span id="text-"></span>
 
=== Text ===
 
=== Text ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
[[Special:MyLanguage/Datové typy#String | String]] type
  
Detekovaný text.
+
Detected text.
  
== Viz také ==
+
== See also ==
  
[[Special:MyLanguage/Příklady použití#BmpToText|Příklady použití]]
+
[[Special:MyLanguage/Příklady použití#BmpToText|Examples of use]]
  
[[Special:MyLanguage/Používání masky|Používání masky]]
+
[[Special:MyLanguage/Používání masky|Using a mask]]
  
[[Special:MyLanguage/Vytvoření databáze fontů|Vytvoření databáze fontů]]
+
[[Special:MyLanguage/Vytvoření databáze fontů|Creating a font database]]

Aktuální verze z 3. 2. 2021, 09:19

Jiné jazyky:
English • ‎čeština

Description

Alias: BTT

Converts the bitmap to text.

Attempts to recognize the text rendered in the Bitmap and convert it to a string, which is stored in the Text output parameter. If a mask is set ( Masked=1), it detects the text based on the color specified by the MaskColor parameter. To detect the text, it is necessary to enter the font database file name with the FontDB parameter, which can be generated using GuiMaster Editor tools.

Input parameters

Bitmap

Bitmap type

Bitmap containing text.

FontDB

String type

Font database file name.

Masked

Number type

The mask is created from the bitmap using the MaskColor if Masked=1.

MaskColor

Color type

Font color for mask (used only when Masked=1).

OnlyIfNotNull

Number type

The command is not executed when the Bitmap parameter value is not specified and the value of this parameter is 1.

Enabled

Number type

Enables or disables the command. If the value is 0, the command will not be executed.

PreWait

Number type

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

PostWait

Number type

Delay in milliseconds after executing the command. It has no effect if Enabled=0.

Output parameters

Text

String type

Detected text.

See also

Examples of use

Using a mask

Creating a font database