-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying ocr character whitelist and blacklist (tessedit_char…
…_whitelist and tessedit_char_blacklist)
- Loading branch information
1 parent
84efb17
commit 88c3491
Showing
7 changed files
with
308 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>CharacterListDialog</class> | ||
<widget class="QDialog" name="CharacterListDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>427</width> | ||
<height>160</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Character whitelist / blacklist</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QRadioButton" name="radioButtonBlacklist"> | ||
<property name="text"> | ||
<string>Exclude these characters from being recognized (blacklist):</string> | ||
</property> | ||
<attribute name="buttonGroup"> | ||
<string notr="true">buttonGroup</string> | ||
</attribute> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="lineEditBlacklist"> | ||
<property name="enabled"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="placeholderText"> | ||
<string>Enter a string of characters...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QRadioButton" name="radioButtonWhitelist"> | ||
<property name="text"> | ||
<string>Only allow the following characters to be recognized (whitelist):</string> | ||
</property> | ||
<attribute name="buttonGroup"> | ||
<string notr="true">buttonGroup</string> | ||
</attribute> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="lineEditWhitelist"> | ||
<property name="enabled"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="placeholderText"> | ||
<string>Enter a string of characters...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Close</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>CharacterListDialog</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>CharacterListDialog</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
<buttongroups> | ||
<buttongroup name="buttonGroup"> | ||
<property name="exclusive"> | ||
<bool>true</bool> | ||
</property> | ||
</buttongroup> | ||
</buttongroups> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.