[Python] How to Cut an Image Vertically into Two Equal Sized Images

Discussão em 'Python' iniciado por Stack, Julho 22, 2025.

  1. Stack

    Stack Membro Participativo

    So I have an 800 x 600 image that I want to cut vertically into two equally sized pictures using OpenCV 3.1.0. This means that at the end of the cut, I should have two images that are 400 x 600 each and are stored in their own PIL variables.

    Here's an illustration:

    [​IMG]

    Thank you.

    EDIT: I want the most efficient solution so if that solution is using numpy splicing or something like that then go for it.

    Continue reading...

Compartilhe esta Página