DEV Community

Discussion on: Social Distancing Analyzer using OpenCV and YOLO

Collapse
hemantsain55 profile image
Hemant Kumar Sain
    writer = cv2.VideoWriter(OUTPUT_PATH, fourcc, 30,(frame.shape[1], frame.shape[0]), True)
Enter fullscreen mode Exit fullscreen mode

throwing error on google colab

'NoneType' object has no attribute 'shape'

kindly help

Collapse
sherwyn11 profile image
Sherwyn D'souza Author

Hey! I ran the code on Google Colab and the code ran without any error. I think something went wrong while processing the frame.

Collapse
drk_babu profile image
DRK BABU👑

hey plz send that code i need it

Thread Thread
sherwyn11 profile image
Sherwyn D'souza Author