cleverdoc.schemas package#

Submodules#

cleverdoc.schemas.Box module#

class cleverdoc.schemas.Box.Box(text: str, score: float, x: int, y: int, width: int, height: int)#

Bases: object

static getSchema()#
height: int#
json()#
scale(factor)#
score: float#
shape()#
text: str#
toString()#
width: int#
x: int#
y: int#

cleverdoc.schemas.Dicom module#

class cleverdoc.schemas.Dicom.Dicom(origin: str, data: cleverdoc.utils.auxiliary.BinaryT, exception: str = '')#

Bases: object

data: BinaryT#
exception: str = ''#
static getSchema()#
origin: str#

cleverdoc.schemas.Entity module#

class cleverdoc.schemas.Entity.Entity(entity_group: str, score: float, word: str, start: int, end: int, boxes: list[cleverdoc.schemas.Box.Box])#

Bases: object

boxes: list[Box]#
end: int#
entity_group: str#
static getSchema()#
score: float#
start: int#
word: str#

cleverdoc.schemas.Image module#

class cleverdoc.schemas.Image.Image(origin, imageType='file', data=b'', height=0, width=0, resolution=0, exception='')#

Bases: object

static fromBinary(data, origin, imageType, resolution=None, width=None, height=None)#
static fromPil(data, origin, imageType, resolution)#
static getSchema()#
toIOSteam()#
toOpencv()#
toPIL()#
toWebp()#

cleverdoc.schemas.NerOutput module#

class cleverdoc.schemas.NerOutput.NerOutput(origin: str, entities: list[cleverdoc.schemas.Entity.Entity], exception: str, json: str = None)#

Bases: object

entities: list[Entity]#
exception: str#
static getSchema()#
json: str = None#
origin: str#

cleverdoc.schemas.OcrOutput module#

class cleverdoc.schemas.OcrOutput.OcrOutput(origin: str, text: str, type: str, bboxes: list[cleverdoc.schemas.Box.Box], exception: str = '')#

Bases: object

bboxes: list[Box]#
exception: str = ''#
static getSchema()#
origin: str#
text: str#
type: str#

cleverdoc.schemas.PdfDocument module#

class cleverdoc.schemas.PdfDocument.PdfDocument(origin: str, data: cleverdoc.utils.auxiliary.BinaryT, width: int = None, height: int = None, exception: str = '')#

Bases: object

data: BinaryT#
exception: str = ''#
static getSchema()#
height: int = None#
origin: str#
width: int = None#

Module contents#