Skip to content

'NoneType' object has no attribute 'shape' #1

@Deven2705

Description

@Deven2705

Traceback (most recent call last):
File "c:\Users\Downloads\weapon-detection-python-opencv-withyolov5--main\weapon-detection-python-opencv-withyolov5--main\weapon_detection.py", line 18, in
height, width, channels = img.shape
AttributeError: 'NoneType' object has no attribute 'shape'

juat try to solve this problem

and why we have to pip install requirement -r if there is not ,and there is only two module installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions