2020-10-28

How to tell what the size of an image is after removing seams in using OpenCV2 in Python?

I am trying to write some code to manipulate the individual images, "frames", from a live video from the webcam in Python using OpenCV2. I am able to manipulate the frames but I have this excess bit of the image along the edges.

Frame:

Image

I would like the "black areas" to not be in frame so I am wondering how to manipulate the size of the canvas to allow the black areas to not be visible.

What I would like the frame to look like:

enter image description here

Does anyone know what code I could use to crop the canvas size?



from Recent Questions - Stack Overflow https://ift.tt/2TuWjV9
https://ift.tt/35JrEZW

No comments:

Post a Comment