[Server] GStreamer ---> HTML [Client]
- gstreamer-1.x
- Browser which supports video tag of HTML5
| #include "FastLED.h" | |
| // ColorWavesWithPalettes | |
| // Animated shifting color waves, with several cross-fading color palettes. | |
| // by Mark Kriegsman, August 2015 | |
| // | |
| // Color palettes courtesy of cpt-city and its contributors: | |
| // http://soliton.vm.bytemark.co.uk/pub/cpt-city/ | |
| // | |
| // Color palettes converted for FastLED using "PaletteKnife" v1: |
| /* | |
| * This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. | |
| * It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
| * | |
| * - https://github.com/adafruit/Adafruit_ADS1X15 | |
| * | |
| * designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: | |
| * | |
| * https://github.com/esp8266/Arduino | |
| * |
| ### An example of building a TensorFlow model from R using rPython ### | |
| # For this script you need to | |
| # 1. Have python 2.7 installed. | |
| # 2. Install the rPython package in R. | |
| # 3. Install Google's TensorFlow library as per these instructions: | |
| # http://www.tensorflow.org/get_started/os_setup.md#binary_installation | |
| ### Here is how to setup and run a trivial TensorFlow model ### | |
| # Load TensorFlow (I couldn't get this to work without setting sys.argv... ) |
| #!/usr/local/bin/python3 | |
| tags = { | |
| "Rechnung": "Rechnung", | |
| "Beleg": "Rechnung" | |
| } | |
| ocrLanguage = "deu" | |
| verbose = False | |
| import sys, subprocess |
| # Typical setup to include TensorFlow. | |
| import tensorflow as tf | |
| # Make a queue of file names including all the JPEG images files in the relative | |
| # image directory. | |
| filename_queue = tf.train.string_input_producer( | |
| tf.train.match_filenames_once("./images/*.jpg")) | |
| # Read an entire image file which is required since they're JPEGs, if the images | |
| # are too large they could be split in advance to smaller files or use the Fixed |
| from math import sqrt | |
| def put_kernels_on_grid (kernel, pad = 1): | |
| '''Visualize conv. filters as an image (mostly for the 1st layer). | |
| Arranges filters into a grid, with some paddings between adjacent filters. | |
| Args: | |
| kernel: tensor of shape [Y, X, NumChannels, NumKernels] | |
| pad: number of black pixels around each filter (between them) |
| # Copyright 2015 Google Inc. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
Most GStreamer examples found online are either for Linux or for gstreamer 0.10.
This particular release note seems to have covered important changes, such as:
Applying -v will print out useful information. And most importantly the negotiation results.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.