我在编写检测简单几何形状的Java应用程序。 以下Python代码作为参考:How to detect simple geometric shapes using OpenCV 这是一些代码[Python中]: contours,h = cv2.findContours(thresholdedImage,1,2)
for cnt in contours:
approx = cv2.a
我想在Python中运行一些示例OpenCV3神经网络代码。 import cv2
model = cv2.ml.ANN_MLP()
model.load('mlp.xml')
但是,这给我的错误: module 'cv2.ml' has no attribute 'ANN_MLP'
但是,有在OpenCV3发布这样的类钞·http://docs.opencv.org/3.2.0/d0