mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 14:39:55 +02:00
ocr: minimal debug logging
This commit is contained in:
parent
1dcc7b5795
commit
2d14d57e4f
1 changed files with 2 additions and 1 deletions
|
@ -5442,7 +5442,7 @@ class Eynollah_ocr:
|
|||
img_crop = img_poly_on_img[y:y+h, x:x+w, :]
|
||||
img_crop[mask_poly==0] = 255
|
||||
|
||||
|
||||
self.logger.debug("processing %d lines for '%s'", len(cropped_lines), nn.attrib['id'])
|
||||
if h2w_ratio > 0.1:
|
||||
cropped_lines.append(resize_image(img_crop, tr_ocr_input_height_and_width, tr_ocr_input_height_and_width) )
|
||||
cropped_lines_meging_indexing.append(0)
|
||||
|
@ -5961,6 +5961,7 @@ class Eynollah_ocr:
|
|||
imgs_bin_ver_flipped = None
|
||||
|
||||
|
||||
self.logger.debug("processing next %d lines", len(imgs))
|
||||
preds = self.prediction_model.predict(imgs, verbose=0)
|
||||
|
||||
if len(indices_ver)>0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue