mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-06-09 20:29:57 +02:00
🐛 read from image_path, not image
This commit is contained in:
parent
84d6b1f693
commit
71b2801183
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class SbbBinarizer:
|
||||||
(image is None and image_path is None):
|
(image is None and image_path is None):
|
||||||
raise ValueError("Must pass either a opencv2 image or an image_path")
|
raise ValueError("Must pass either a opencv2 image or an image_path")
|
||||||
if image_path is not None:
|
if image_path is not None:
|
||||||
image = cv2.imread(image)
|
image = cv2.imread(image_path)
|
||||||
self.start_new_session()
|
self.start_new_session()
|
||||||
list_of_model_files = listdir(self.model_dir)
|
list_of_model_files = listdir(self.model_dir)
|
||||||
img_last = 0
|
img_last = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue