How to display a video stream as a texture fast? (Using Godot Python and OpenCV)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fuderiki

I am using Godot Python on Windows 10 64 and I manage to run Open CV in Godot.
I manage to call my webcam and capture frames from it.
However when I try to convert the OpenCV frame to a Godot Image … the process is timed at about 1 entire SECOND … to do so I make it a ByteArray and do a Image.Create_From_Data ()
Should I use a streamTexture ? Is it possible to attribute it from code instead of a file?
Should I rather write the byte array into the properties of a shader to run faster (use of graphics card)?

Best regards,