fix samples

This commit is contained in:
APrigarina
2021-06-29 22:15:37 +03:00
parent 8fad85edda
commit 0f24d4d2a1
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ def make_gaussians(cluster_n, img_size):
return points, ref_distrs
def draw_gaussain(img, mean, cov, color):
x, y = np.int32(mean)
x, y = mean
w, u, _vt = cv.SVDecomp(cov)
ang = np.arctan2(u[1, 0], u[0, 0])*(180/np.pi)
s1, s2 = np.sqrt(w)*3.0