Facing issue with How to apply Transform Perspective blog https://blog.roboflow.com/estimate-speed-computer-vision/ on my video

Hello. I hope you are doing well. I am facing an issue with How to apply Transform Perspective How to Estimate Speed with Computer Vision on my video.

import cv2
file_path = “/content/pexels-zero-:heart:-��-12914057 (2160p).mp4” # change to your own video path
vid = cv2.VideoCapture(file_path)
height = vid.get(cv2.CAP_PROP_FRAME_HEIGHT)
width = vid.get(cv2.CAP_PROP_FRAME_WIDTH)

The size of input frame of video is 2160.0 3840.0

The Polygon is draw like this which is incorrect . i want to change it please help me in doing that.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.