[Python] How to capture a webcam photo in Python using ctypes on windows?

Discussão em 'Python' iniciado por Stack, Janeiro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I do not want to use OpenCV, Pygame or ImageIO because all three are HUGE, and I want to compile my program into a binary, using any of these libraries is causing the output to be 100MB or more when I am only using one functionality of those libraries.

    I know that it is possible to capture a photo using c/++ but I do not know a single thing about low-level programming languages. So I was hoping for help.

    NOTE: If anyone knows how to do this in C/++ but not ctypes, no problem, just post it here and I can modify it into python ctypes syntax.

    Continue reading...

Compartilhe esta Página