MCPcopy Index your code
hub / github.com/makelove/OpenCV-Python-Tutorial / preprocess

Method preprocess

官方samples/digits_adjust.py:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 self._samples, self._labels = self.preprocess()
56
57 def preprocess(self):
58 digits, labels = load_digits(DIGITS_FN)
59 shuffle = np.random.permutation(len(digits))
60 digits, labels = digits[shuffle], labels[shuffle]
61 digits2 = list(map(deskew, digits))
62 samples = preprocess_hog(digits2)
63 return samples, labels
64
65 def get_dataset(self):
66 return self._samples, self._labels

Callers 1

__init__Method · 0.95

Calls 2

load_digitsFunction · 0.85
preprocess_hogFunction · 0.85

Tested by

no test coverage detected