ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
#!/bin/bash | |
cwd="$(realpath $( cd "$(dirname "$0")" ; pwd -P )/.. )" | |
cd $cwd | |
function usage() { | |
echo "usage: [PATH FOR BUILD FOLDER] [GSTREAMER VERSION] [INSTALLATION_PATH] [PATH TO NVIDIA LIBRARIES]" | |
} |
[application] | |
enable-perf-measurement=1 | |
perf-measurement-interval-sec=1 | |
[source0] | |
enable=1 | |
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP | |
type=3 | |
uri=file://../data/towncentre.mp4 | |
num-sources=1 |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-60
ffmpeg - is the default standard for video operations of all kind
If you just want to update some text on the screen the easiest method is to use the drawtext filter with the textfile and reload options.
ffmpeg -i input -vf "drawtext=textfile=songs.txt:reload=1" output songs.txt will be reloaded once per frame. Be sure to update it atomically, or it may be read partially, or even fail.
// Inside the file libavformat/utils.c is the routine "int av_read_frame(AVFormatContext *s, AVPacket *pkt)", one of the key routines | |
// used to play video streams through FFMPEG's libav. This routine does not handle the situation when a live stream terminates | |
// unexpectedly, such as the unplugging of a network connection, power loss to a camera, or other reasons an established connection | |
// would unexpectedly stop delivering packets. | |
// Below is the beginning of av_read_frame() up to and a bit past the three added lines necessary to support calling of the installed | |
// avformat interrupt callback. The conventional libav behavior is to call the avformat interrupt callback while establishing a new | |
// connection with a live stream. It is not called while the stream is playing, therefore no opportunity is provided to the client | |
// software to recognise unexpected stream termination. | |
// The three lines are added to the code pasted below. They should be easy to identify: |
#!/usr/bin/env python | |
import cv2 | |
import gi | |
import numpy as np | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst | |
#!/usr/bin/env python3 | |
# https://gist.github.com/EONRaider/3b7a8ca433538dc52b09099c0ea92745 | |
__author__ = 'EONRaider, keybase.io/eonraider' | |
import fcntl | |
import socket | |
import struct | |
try: | |
from netifaces import AF_INET, ifaddresses |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
""" | |
Script contains functions to process the lines in polar coordinate system | |
returned by the HoughLines function in OpenCV | |
Line equation from polar to cartesian coordinates | |
x = rho * cos(theta) | |
y = rho * sin(theta) | |
x, y are at a distance of rho from 0,0 at an angle of theta |