WebcamTexture_v3 Op

WebcamTexture

Use your webcam camera as a texture


<ul> <li>you need https for webcam to work on many browsers</li> </ul>


Full Name
  • Ops.Gl.Textures.WebcamTexture_v3
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch Webcam texture

Turn the webcam output into a texture which can be processed.

Open In Editor

INPUT PORTS


Render (Trigger)

<p>update the output texture with the current webcam picture</p>

Active (Number:

<i>boolean</i>

)

Generate Texture (Number:

<i>boolean</i>

)

<p>activate / inactivate genration of the output texture</p>

Camera

Webcam Input index (Number:

<i>integer</i>

)

<p>index of webcam to use from available cameras</p>

Requested Width (Number:

<i>integer</i>

)

<p>request width from webcam</p>

Requested Height (Number:

<i>integer</i>

)

<p>request height from webcam</p>

Texture

Flip X (Number:

<i>boolean</i>

)

Flip Y (Number:

<i>boolean</i>

)

Video Element

Show HTML Element (Number:

<i>boolean</i>

)

<p>display the html video element</p>

CSS (String)

<p>css styles for the html video element</p>

Element Flip X (Number:

<i>boolean</i>

)

Element Flip Y (Number:

<i>boolean</i>

)

OUTPUT PORTS


Next (Trigger)
Texture (Object)

<p>texture output</p>

Ratio (Number)

<p>aspect ratio</p>

Available (

<i>boolean</i>

Number)

<p>webcam ready</p>

Size Width (Number)

<p>output size</p>

Size Height (Number)

<p>output height</p>

Error (String)
HTML Element (Object)

<p>the video element</p>

Available devices (Array)

<p>array of available devices</p>

Active device (String)
Texture updated (Trigger)

<p>output trigger on updated texture</p>


Patches using WebcamTexture_v3

  • Examples
  • Public
  • My Patches

Changelog


improvementnow only asks for permission if "active"-port is enablesuser avatarpandur - 2022-12-14 17:19
improvementFixed problem with loading status not finishing the loadinguser avatarpandur - 2024-05-16 07:53
improvementSet parentelement to non canvas so popout/external canvas can continue to workuser avatarpandur - 2024-05-27 18:15