[Python] convert image from CV_64F to CV_8U

Discussão em 'Python' iniciado por Stack, Dezembro 17, 2024.

  1. Stack

    Stack Membro Participativo

    I want to convert an image of type CV_64FC1 to CV_8UC1 in Python using OpenCV.

    In C++, using convertTo function, we can easily convert image type using following code snippet:

    image.convertTo(image, CV_8UC1);


    I have searched on Internet but unable to find any solution without errors. Any function in Python OpenCV to convert this?

    Continue reading...

Compartilhe esta Página