Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
objects = img.find_features(face_cascade, threshold=0.75, scale_factor=1.25) 上列代码是搜索与Haar Cascade匹配的所有区域的图像,并返回一个关于这些特征的边界矩形元组(x, y, w, h ). objects不可以做ROI吗?为什么下面的这行代码会出现长度不够4个的错误 d0 = img.find_lbp(objects)
你可以理解为objects是多个ROI。
所以
d0 = img.find_lbp(objects[0])