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).
while(1): img = sensor.snapshot() objects = img.find_features(face_cascade, threshold=0.4, scale=1.4) for r in objects: img.draw_rectangle(r) a-=1 print(objects[0][0])
输出ROI区域的x坐标,但是出现List index out of range错误
如果找不到,objects就是空列表[],就会报错