mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-11-17 01:44:14 +01:00
fix typos found by ruff
This commit is contained in:
parent
72d059f3c9
commit
49ab269e08
2 changed files with 2 additions and 2 deletions
|
|
@ -328,7 +328,7 @@ class SbbBinarizer:
|
||||||
print(input_path, 'image_name')
|
print(input_path, 'image_name')
|
||||||
if os.path.exists(output_path):
|
if os.path.exists(output_path):
|
||||||
if overwrite:
|
if overwrite:
|
||||||
self.logger.warning("will overwrite existing output file '%s'", output_ptah)
|
self.logger.warning("will overwrite existing output file '%s'", output_path)
|
||||||
else:
|
else:
|
||||||
self.logger.warning("will skip input for existing output file '%s'", output_path)
|
self.logger.warning("will skip input for existing output file '%s'", output_path)
|
||||||
image = cv2.imread(input_path)
|
image = cv2.imread(input_path)
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ def return_multicol_separators_x_start_end(
|
||||||
args_emptysep.add(i)
|
args_emptysep.add(i)
|
||||||
# print(j, i, "%d:%d" % (y_mid[j], y_mid[i]), "%d:%d" % (x_start[i], x_end[i]), "empty next sep")
|
# print(j, i, "%d:%d" % (y_mid[j], y_mid[i]), "%d:%d" % (x_start[i], x_end[i]), "empty next sep")
|
||||||
args_to_be_kept = [arg for arg in args_ysorted
|
args_to_be_kept = [arg for arg in args_ysorted
|
||||||
if not arg in args_emptysep]
|
if arg not in args_emptysep]
|
||||||
x_start = x_start[args_to_be_kept]
|
x_start = x_start[args_to_be_kept]
|
||||||
x_end = x_end[args_to_be_kept]
|
x_end = x_end[args_to_be_kept]
|
||||||
y_min = y_min[args_to_be_kept]
|
y_min = y_min[args_to_be_kept]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue