This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script install ROS Melodic and setup catkin workspace | |
# @author Anas Kanhouch, anas.m.kan@gmail.com | |
echo "Setup sources.list..." | |
sleep 1 | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
echo "Setup keys..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readUploadedFileAsBase64 = (inputFile) => { | |
const temporaryFileReader = new FileReader(); | |
return new Promise((resolve, reject) => { | |
temporaryFileReader.onerror = () => { | |
temporaryFileReader.abort(); | |
reject(new DOMException("Problem parsing input file.")); | |
}; | |
temporaryFileReader.onload = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#-*- coding: utf-8 -*- | |
import logging | |
import timeit | |
import traceback | |
import time | |
import gi | |
gi.require_version('Gst', '1.0') |
- Installing Gstreamer on Ubuntu 16.04
- Installing Gstreamer Python bindings
- Installing OpenCV from source with Gstreamer support
These instructions taken from this tutorial and this docker file
1.