robotframework-doctestlibrary 0.23.0.dev2__tar.gz → 0.24.0rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotframework_doctestlibrary-0.23.0.dev2/DocTest/CompareImage.py → robotframework_doctestlibrary-0.24.0rc1/DocTest/CompareImage_legacy.py +1 -22
- robotframework_doctestlibrary-0.24.0rc1/DocTest/DocumentRepresentation.py +744 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/Downloader.py +3 -4
- robotframework_doctestlibrary-0.24.0rc1/DocTest/IgnoreAreaManager.py +129 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/Ocr.py +25 -9
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PdfTest.py +10 -11
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PrintJobTests.py +10 -11
- robotframework_doctestlibrary-0.24.0rc1/DocTest/VisualTest.py +1144 -0
- robotframework_doctestlibrary-0.23.0.dev2/DocTest/VisualTest.py → robotframework_doctestlibrary-0.24.0rc1/DocTest/VisualTest_legacy.py +32 -32
- robotframework_doctestlibrary-0.24.0rc1/DocTest/config.py +9 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/PKG-INFO +8 -7
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/pyproject.toml +8 -6
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/setup.py +12 -11
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PrintJob.py +0 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/__init__.py +0 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/LICENSE +0 -0
- {robotframework_doctestlibrary-0.23.0.dev2 → robotframework_doctestlibrary-0.24.0rc1}/README.md +0 -0
|
@@ -431,31 +431,10 @@ class CompareImage(object):
|
|
|
431
431
|
|
|
432
432
|
return cv2.resize(image, dim, interpolation=inter)
|
|
433
433
|
|
|
434
|
-
def
|
|
435
|
-
"""
|
|
436
|
-
Return a list of tuples with the dimensions of the images
|
|
437
|
-
Tuples shall be in format (width, height)
|
|
438
|
-
"""
|
|
439
|
-
dimensions = []
|
|
440
|
-
for i in range(len(self.opencv_images)):
|
|
441
|
-
dimensions.append((self.opencv_images[i].shape[1], self.opencv_images[i].shape[0]))
|
|
442
|
-
return dimensions
|
|
443
|
-
|
|
444
|
-
def get_image_with_placeholders(self, placeholders=None, resize=False, dimensions=None, blur=False):
|
|
434
|
+
def get_image_with_placeholders(self, placeholders=None):
|
|
445
435
|
if placeholders is None:
|
|
446
436
|
placeholders = self.placeholders
|
|
447
437
|
images_with_placeholders = self.opencv_images
|
|
448
|
-
if resize or blur:
|
|
449
|
-
for i in range(len(images_with_placeholders)):
|
|
450
|
-
if resize:
|
|
451
|
-
if dimensions is None:
|
|
452
|
-
raise AssertionError("Dimensions must be defined for resizing")
|
|
453
|
-
images_with_placeholders[i] = cv2.resize(images_with_placeholders[i], dimensions[i])
|
|
454
|
-
if blur:
|
|
455
|
-
kernel_size = int(images_with_placeholders[i].shape[1]/50)
|
|
456
|
-
# must be odd if median
|
|
457
|
-
kernel_size += kernel_size%2-1
|
|
458
|
-
images_with_placeholders[i] = cv2.GaussianBlur(images_with_placeholders[i], (kernel_size, kernel_size), 1.5)
|
|
459
438
|
for placeholder in placeholders:
|
|
460
439
|
if placeholder['page'] == 'all':
|
|
461
440
|
for i in range(len(images_with_placeholders)):
|