YoloKerasFaceDetection icon indicating copy to clipboard operation
YoloKerasFaceDetection copied to clipboard

'NoneType' object is not subscriptable

Open antoniosap opened this issue 6 years ago • 1 comments

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

antoniosap avatar Feb 04 '19 06:02 antoniosap

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

lf-openthos avatar Mar 25 '19 09:03 lf-openthos