[Python] OpenCV-python and GPU

Discussão em 'Python' iniciado por Stack, Junho 20, 2025.

  1. Stack

    Stack Membro Participativo

    Is it possible (up today) to use OpenCV-Python with GPU? I'm trying to implement an opencv based script for image processing using a GPU on AWS Sagemaker, but there seems to be a problem on compatibility. I already checked some sources on this topic:

    Use GPU with opencv-python

    https://forum.opencv.org/t/can-i-use-opencv-python-with-gpu/8947/2

    But they are a bit old, and would like to know if there is an update on this compatibility. From previous projects on Windows, I used this Torchvision adapted version cvtorchvision and it worked good, but now it's too old and has no maintenance.

    EDIT: Adding used versions (using AWS Sagemaker and Jupyter Labs):

    • opencv-python-headless-4.11.0.86
    • Cuda compilation tools, release 12.6, V12.6.85 Build cuda_12.6.r12.6/compiler.35059454_0
    • torch version: 2.5.1

    Continue reading...

Compartilhe esta Página