July 2017
Intermediate to advanced
382 pages
9h 13m
English
We can set up and train an MLP in OpenCV with the following recipe:
In [9]: import cv2 ... mlp = cv2.ml.ANN_MLP_create()
In [10]: mlp.setLayerSizes(np.array([784, 512, 512, 10]))
In [11]: mlp.setActivationFunction(cv2.ml.ANN_MLP_SIGMOID_SYM, ... 2.5, 1.0)
Read now
Unlock full access