

Our iOS application will display the output image frames of the output_video stream. The second node, SobelEdgesCalculator applies edge detection to incoming packets in the luma_video stream and outputs results in output_video output stream. The resulting image frame is sent to the luma_video output stream. The first node in the graph, LuminanceCalculator, takes a single packet (image frame) and applies a change in luminance using an OpenGL shader. This graph has a single input stream named input_video for all incoming frames that will be provided by your device’s camera. # Applies the Sobel filter to luminance images stored in RGB format.Ī visualization of the graph is shown below: # Converts RGB images into luminance images, still stored in RGB format. # Images coming into and out of the graph. # mediapipe/examples/android/src/java/com/google/mediapipe/apps/basic:helloworld # MediaPipe graph that performs GPU Sobel edge detection on a live video stream. This site uses Just the Docs, a documentation theme for Jekyll.


But that’s an advanced topic, we’ll talk about modules in another part of the tutorial.

Now, it can be used for JavaScript modules. Also, the modern HTML standard totally changed the meaning of this attribute. The old HTML standard, HTML4, required a script to have a type. The tag has a few attributes that are rarely used nowadays but can still be found in old code: The type attribute: The tag contains JavaScript code which is automatically executed when the browser processes the tag. You can run the example by clicking the “Play” button in the right-top corner of the box above.
