Update python samples

This commit is contained in:
Suleyman TURKMEN
2022-01-22 11:27:01 +03:00
parent f811ba8777
commit 2647902fee
7 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ def mosaic(w, imgs):
pad = np.zeros_like(img0)
imgs = it.chain([img0], imgs)
rows = grouper(w, imgs, pad)
return np.vstack(map(np.hstack, rows))
return np.vstack(list(map(np.hstack, rows)))
def getsize(img):
h, w = img.shape[:2]