MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / train

Method train

官方samples/digits.py:98–99  ·  view source on GitHub ↗
(self, samples, responses)

Source from the content-addressed store, hash-verified

96 self.model.setType(cv2.ml.SVM_C_SVC)
97
98 def train(self, samples, responses):
99 self.model.train(samples, cv2.ml.ROW_SAMPLE, responses)
100
101 def predict(self, samples):
102 return self.model.predict(samples)[1].ravel()

Callers 11

1-kNN.pyFile · 0.45
fFunction · 0.45
trainMethod · 0.45
digits.pyFile · 0.45
hogsvm.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected