Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -57,7 +57,7 @@ def main():
|
||||
|
||||
def processImage(fn):
|
||||
print('processing %s... ' % fn)
|
||||
img = cv.imread(fn, 0)
|
||||
img = cv.imread(fn, cv.IMREAD_GRAYSCALE)
|
||||
if img is None:
|
||||
print("Failed to load", fn)
|
||||
return None
|
||||
|
||||
@@ -69,7 +69,7 @@ class App():
|
||||
if ext == "png" or ext == "jpg" or ext == "bmp" or ext == "tiff" or ext == "pbm":
|
||||
print(infile)
|
||||
|
||||
img = cv.imread(infile,1)
|
||||
img = cv.imread(infile, cv.IMREAD_COLOR)
|
||||
if img is None:
|
||||
continue
|
||||
self.sel = (0,0,0,0)
|
||||
|
||||
Reference in New Issue
Block a user