eVision Python API
Loading...
Searching...
No Matches
eVision.EOCRClass Class Reference

Allowed values for the class of pattern in EasyOCR. More...

Inheritance diagram for eVision.EOCRClass:
Collaboration diagram for eVision.EOCRClass:

Static Public Attributes

int Digit = 1
 Character belongs to class 0.
int UpperCase = 2
 Character belongs to class 1.
int LowerCase = 4
 Character belongs to class 2.
int Special = 8
 Character belongs to class 3.
int Extended = 16
 Character belongs to class 4.
int AllClasses = 2147483647
 Character belongs to all classes, from 0 to 31 included.

Static Protected Attributes

int _0 = 1
 Character belongs to class 0.
int _1 = 2
 Character belongs to class 1.
int _2 = 4
 Character belongs to class 2.
int _3 = 8
 Character belongs to class 3.
int _4 = 16
 Character belongs to class 4.
int _5 = 32
 Character belongs to class 5.
int _6 = 64
 Character belongs to class 6.
int _7 = 128
 Character belongs to class 7.
int _8 = 256
 Character belongs to class 8.
int _9 = 512
 Character belongs to class 9.
int _10 = 1024
 Character belongs to class 10.
int _11 = 2048
 Character belongs to class 11.
int _12 = 4096
 Character belongs to class 12.
int _13 = 8192
 Character belongs to class 13.
int _14 = 16384
 Character belongs to class 14.
int _15 = 32768
 Character belongs to class 15.
int _16 = 65536
 Character belongs to class 16.
int _17 = 131072
 Character belongs to class 17.
int _18 = 262144
 Character belongs to class 18.
int _19 = 524288
 Character belongs to class 19.
int _20 = 1048576
 Character belongs to class 20.
int _21 = 2097152
 Character belongs to class 21.
int _22 = 4194304
 Character belongs to class 22.
int _23 = 8388608
 Character belongs to class 23.
int _24 = 16777216
 Character belongs to class 24.
int _25 = 33554432
 Character belongs to class 25.
int _26 = 67108864
 Character belongs to class 26.
int _27 = 134217728
 Character belongs to class 27.
int _28 = 268435456
 Character belongs to class 28.
int _29 = 536870912
 Character belongs to class 29.
int _30 = 1073741824
 Character belongs to class 30.

Detailed Description

Allowed values for the class of pattern in EasyOCR.

These classes have no pre-defined meaning, the user is free to give them any meaning they like. For instance, class 0 could contains only digits, class 1 only the forward slash character, class 3 uppercase letters, etc. Any choice is allowed, as long as the correct classes are specified during the learning process. During recognition/reading, the user can specify the expected class for each character. This means that if a forward slash is expected at that position, they can say it should be class 1 (following the example from above). This will improve the recognition rate and speed because the algorithm only has to choose between characters within the specified class.

Member Data Documentation

◆ _0

int eVision.EOCRClass._0 = 1
staticprotected

Character belongs to class 0.

◆ _1

int eVision.EOCRClass._1 = 2
staticprotected

Character belongs to class 1.

◆ _10

int eVision.EOCRClass._10 = 1024
staticprotected

Character belongs to class 10.

◆ _11

int eVision.EOCRClass._11 = 2048
staticprotected

Character belongs to class 11.

◆ _12

int eVision.EOCRClass._12 = 4096
staticprotected

Character belongs to class 12.

◆ _13

int eVision.EOCRClass._13 = 8192
staticprotected

Character belongs to class 13.

◆ _14

int eVision.EOCRClass._14 = 16384
staticprotected

Character belongs to class 14.

◆ _15

int eVision.EOCRClass._15 = 32768
staticprotected

Character belongs to class 15.

◆ _16

int eVision.EOCRClass._16 = 65536
staticprotected

Character belongs to class 16.

◆ _17

int eVision.EOCRClass._17 = 131072
staticprotected

Character belongs to class 17.

◆ _18

int eVision.EOCRClass._18 = 262144
staticprotected

Character belongs to class 18.

◆ _19

int eVision.EOCRClass._19 = 524288
staticprotected

Character belongs to class 19.

◆ _2

int eVision.EOCRClass._2 = 4
staticprotected

Character belongs to class 2.

◆ _20

int eVision.EOCRClass._20 = 1048576
staticprotected

Character belongs to class 20.

◆ _21

int eVision.EOCRClass._21 = 2097152
staticprotected

Character belongs to class 21.

◆ _22

int eVision.EOCRClass._22 = 4194304
staticprotected

Character belongs to class 22.

◆ _23

int eVision.EOCRClass._23 = 8388608
staticprotected

Character belongs to class 23.

◆ _24

int eVision.EOCRClass._24 = 16777216
staticprotected

Character belongs to class 24.

◆ _25

int eVision.EOCRClass._25 = 33554432
staticprotected

Character belongs to class 25.

◆ _26

int eVision.EOCRClass._26 = 67108864
staticprotected

Character belongs to class 26.

◆ _27

int eVision.EOCRClass._27 = 134217728
staticprotected

Character belongs to class 27.

◆ _28

int eVision.EOCRClass._28 = 268435456
staticprotected

Character belongs to class 28.

◆ _29

int eVision.EOCRClass._29 = 536870912
staticprotected

Character belongs to class 29.

◆ _3

int eVision.EOCRClass._3 = 8
staticprotected

Character belongs to class 3.

◆ _30

int eVision.EOCRClass._30 = 1073741824
staticprotected

Character belongs to class 30.

◆ _4

int eVision.EOCRClass._4 = 16
staticprotected

Character belongs to class 4.

◆ _5

int eVision.EOCRClass._5 = 32
staticprotected

Character belongs to class 5.

◆ _6

int eVision.EOCRClass._6 = 64
staticprotected

Character belongs to class 6.

◆ _7

int eVision.EOCRClass._7 = 128
staticprotected

Character belongs to class 7.

◆ _8

int eVision.EOCRClass._8 = 256
staticprotected

Character belongs to class 8.

◆ _9

int eVision.EOCRClass._9 = 512
staticprotected

Character belongs to class 9.

◆ AllClasses

int eVision.EOCRClass.AllClasses = 2147483647
static

Character belongs to all classes, from 0 to 31 included.

◆ Digit

int eVision.EOCRClass.Digit = 1
static

Character belongs to class 0.

Equivalent to eVision.EOCRClass._0.

◆ Extended

int eVision.EOCRClass.Extended = 16
static

Character belongs to class 4.

Equivalent to eVision.EOCRClass._4.

◆ LowerCase

int eVision.EOCRClass.LowerCase = 4
static

Character belongs to class 2.

Equivalent to eVision.EOCRClass._2.

◆ Special

int eVision.EOCRClass.Special = 8
static

Character belongs to class 3.

Equivalent to eVision.EOCRClass._3.

◆ UpperCase

int eVision.EOCRClass.UpperCase = 2
static

Character belongs to class 1.

Equivalent to eVision.EOCRClass._1.