mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
python(test): enable pylint checks for tests
This commit is contained in:
@@ -15,7 +15,7 @@ import cv2
|
||||
def make_gaussians(cluster_n, img_size):
|
||||
points = []
|
||||
ref_distrs = []
|
||||
for i in xrange(cluster_n):
|
||||
for _ in xrange(cluster_n):
|
||||
mean = (0.1 + 0.8*random.rand(2)) * img_size
|
||||
a = (random.rand(2, 2)-0.5)*img_size*0.1
|
||||
cov = np.dot(a.T, a) + img_size*0.05*np.eye(2)
|
||||
@@ -44,7 +44,7 @@ class gaussian_mix_test(NewOpenCVTests):
|
||||
em.trainEM(points)
|
||||
means = em.getMeans()
|
||||
covs = em.getCovs() # Known bug: https://github.com/opencv/opencv/pull/4232
|
||||
found_distrs = zip(means, covs)
|
||||
#found_distrs = zip(means, covs)
|
||||
|
||||
matches_count = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user