View Code? Open in Web Editor
NEW
This project forked from sparkfish/augraphy
Augmentation pipeline for rendering synthetic paper printing, faxing, scanning and copy machine processes
License: MIT License
Python 99.57%
Makefile 0.20%
Batchfile 0.24%
augraphy's Issues
In OverlayBuilder
, this code:
# resize new_foreground to cropped background size
if self.overlay_types != "mix":
new_foreground = cv2.resize(new_foreground, (base_x, base_y), interpolation=cv2.INTER_AREA)
can throw the following errors:
E cv2.error: OpenCV(4.5.5) /io/opencv/modules/imgproc/src/resize.cpp:4055:
error: (-215:Assertion failed
inv_scale_x > 0 in function 'resize'
or
E cv2.error: OpenCV(4.5.5) /io/opencv/modules/imgproc/src/resize.cpp:4052:
error: (-215:Assertion failed)
!ssize.empty() in function 'resize'
@kwcckw Can you check on this?