[SOLVED] convert numpy.ndarray into video

Issue In my code i’m looping over frames of a video, and trying to generate another mp4 video. This is my code: cap = cv2.VideoCapture(args.video) frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) fps = int(cap.get(cv2.CAP_PROP_FPS)) fourcc = cv2.VideoWriter_fourcc(*’mp4v’) out = cv2.VideoWriter(‘output_video.mp4’,

Continue reading

[SOLVED] How to recalculate the coordinates of a point after scaling and rotation?

Issue I have the coordinates of 6 points in an image (170.01954650878906, 216.98866271972656) (201.3812255859375, 109.42137145996094) (115.70114135742188, 210.4272918701172) (45.42426300048828, 97.89037322998047) (167.0367889404297, 208.9329833984375) (70.13690185546875, 140.90538024902344) I have a point as center [89.2458, 121.0896]. I am trying to re-calculate the position of points

Continue reading

[SOLVED] How to recalculate the coordinates of a point after scaling and rotation?

Issue I have the coordinates of 6 points in an image (170.01954650878906, 216.98866271972656) (201.3812255859375, 109.42137145996094) (115.70114135742188, 210.4272918701172) (45.42426300048828, 97.89037322998047) (167.0367889404297, 208.9329833984375) (70.13690185546875, 140.90538024902344) I have a point as center [89.2458, 121.0896]. I am trying to re-calculate the position of points

Continue reading