Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

opencv3 Expectation Maximization Python getCovs

$
0
0
How do I use the `em.getCovs()` function in python with opencv3? def dictionary(descriptors, N): em = cv2.ml.EM_create() em.setClustersNumber(N) em.trainEM(descriptors) means = em.getMeans() covs = em.getCovs() weights = em.getWeights() return np.float32(means), np.float32(covs), np.float32(weights) I keep getting a `AttributeError: 'cv2.ml_EM' object has no attribute 'getCovs'`

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>