abars / YoloKerasFaceDetection

Face Detection and Gender and Age Classification using Keras
MIT License
208 stars 81 forks source link

'NoneType' object is not subscriptable #7

Open antoniosap opened 5 years ago

antoniosap commented 5 years ago
TypeError                                 Traceback (most recent call last)
/mnt/YoloKerasFaceDetection/agegender_demo.py in <module>
    377 
    378 if __name__=='__main__':
--> 379         main(sys.argv[1:])

/mnt/YoloKerasFaceDetection/agegender_demo.py in main(argv)
    357 
    358                 img=frame
--> 359                 img = img[...,::-1]  #BGR 2 RGB
    360                 inputs = img.copy() / 255.0
    361 

TypeError: 'NoneType' object is not subscriptable
lf-openthos commented 5 years ago

Please confirm the image(video) is readable, for example, check the relative path, file permission and video format or camera permission.