这个问题应该如何解决,在ubuntu环境下

Processing file: all-face.jpg
Traceback (most recent call last):
File "/home/zhy/PycharmProjects/untitled1/python facerec_68point.py", line 43, in
dets = detector(img, 1)
RuntimeError: Unsupported image type, must be 8bit gray or RGB image.

图片不符合要求,要求图片必须是8bit的灰度位图,你可以先转化下