sparknlp_jsl.utils.ocr_utils#

Module Contents#

Functions#

draw_boxes_on_image_handwritten_region(image_data, ...)

get_handwritten_regions(result)

Attributes#

colors

colors_rgb

label2color

label2rgb

pretrained_model

draw_boxes_on_image_handwritten_region(image_data, regions, style, outline_width, outline_color, text_band)#
get_handwritten_regions(result)#
colors = ['aqua', 'aquamarine', 'black', 'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood',...#
colors_rgb = [(0, 255, 255), (127, 255, 212), (0, 0, 0), (255, 235, 205), (0, 0, 255), (138, 43, 226), (165,...#
label2color#
label2rgb#
pretrained_model = ('image_handwritten_detector_gsa0803', 'en', 'public/ocr/models')#