WebcamTexture_v3 Op

WebcamTexture

Use your webcam camera as a texture


  • you need https for webcam to work on many browsers

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)

update the output texture with the current webcam picture

Active (Number:boolean )
Generate Texture (Number:boolean )

activate / inactivate genration of the output texture

Camera

Webcam Input index (Number:integer )

index of webcam to use from available cameras

Requested Width (Number:integer )

request width from webcam

Requested Height (Number:integer )

request height from webcam

Texture

Flip X (Number:boolean )
Flip Y (Number:boolean )

Video Element

Show HTML Element (Number:boolean )

display the html video element

CSS (String)

css styles for the html video element

Element Flip X (Number:boolean )
Element Flip Y (Number:boolean )

OUTPUT PORTS


Next (Trigger)
Texture (Object)

texture output

Ratio (Number)

aspect ratio

Available (boolean Number)

webcam ready

Size Width (Number)

output size

Size Height (Number)

output height

Error (String)
HTML Element (Object)

the video element

Available devices (Array)

array of available devices

Active device (String)
Texture updated (Trigger)

output trigger on updated texture


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