unresolved references

code-suggestions
cneud 1 week ago
parent 881f6f37c1
commit 284c2aed7f

@ -1,8 +1,9 @@
import os
import sys
import click
from ocrd_utils import initLogging, setOverrideLogLevel
from eynollah.eynollah import Eynollah, EynollahOcr
from eynollah.binarize import Binarizer
from ocrd_utils import initLogging, setOverrideLogLevel, getLogger, getLevelName
from .eynollah import Eynollah, EynollahOcr
from .binarize import Binarizer
@click.group()

@ -2718,6 +2718,7 @@ class Eynollah:
image_revised_last[box_ys, box_xs] = image_box
else:
image_revised_last = np.zeros((image_regions_eraly_p.shape[0], image_regions_eraly_p.shape[1], 3))
for i in range(len(boxes)):
box_ys = slice(*boxes[i][2:4])
box_xs = slice(*boxes[i][0:2])

@ -1,5 +1,5 @@
from tests.base import main
from eynollah.utils.counter import EynollahIdCounter
from src.eynollah.utils.counter import EynollahIdCounter
def test_counter_string():

@ -1,6 +1,6 @@
import cv2
from pathlib import Path
from eynollah.utils.pil_cv2 import check_dpi
from src.eynollah.utils.pil_cv2 import check_dpi
from tests.base import main

@ -2,7 +2,7 @@ from os import environ
from pathlib import Path
from ocrd_utils import pushd_popd
from tests.base import CapturingTestCase as TestCase, main
from eynollah.cli import layout as eynollah_cli
from src.eynollah.cli import layout as eynollah_cli
testdir = Path(__file__).parent.resolve()

@ -1,7 +1,7 @@
def test_utils_import():
import eynollah.utils
import eynollah.utils.contour
import eynollah.utils.drop_capitals
import eynollah.utils.drop_capitals
import eynollah.utils.is_nan
import eynollah.utils.rotate
import src.eynollah.utils
import src.eynollah.utils.contour
import src.eynollah.utils.drop_capitals
import src.eynollah.utils.drop_capitals
import src.eynollah.utils.is_nan
import src.eynollah.utils.rotate

@ -1,5 +1,5 @@
from pytest import main
from eynollah.utils.xml import create_page_xml
from src.eynollah.utils.xml import create_page_xml
from ocrd_models.ocrd_page import to_xml
PAGE_2019 = 'http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15'

Loading…
Cancel
Save