rects = detector(img_gray,0) 这句老是报错:
TypeError: 'NoneType' object is not callable
img_gray 这个变量是空的,没有数据