This file contains 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
local MOUNT_STATUS = {} | |
MOUNT_STATUS.id = 158 | |
MOUNT_STATUS.fields = { | |
{ "pointing_a", "<I4" }, | |
{ "pointing_b", "<I4" }, | |
{ "pointing_c", "<I4" }, | |
{ "mount_mode", "<B" }, | |
{ "target_system", "<B" }, | |
{ "target_component", "<B" } | |
} |
This file contains 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
import gi | |
import logging | |
gi.require_version("Gst", "1.0") | |
from gi.repository import GObject, Gst | |
from threading import Thread, Event | |
from dataclasses import dataclass | |
from fastapi import FastAPI | |
log = logging.getLogger(__name__) | |
Gst.init(None) |
This file contains 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
# unbind | |
unbind C-b | |
unbind '"' | |
unbind % | |
# base1 numbering | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#bind ctrl-a as a prefix |
This file contains 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
"""install | |
python -m pip install opencv-python | |
python -m pip install pyzmq | |
""" | |
import multiprocessing | |
import cv2 | |
import numpy as np | |
import zmq | |
import time | |
import pickle |
This file contains 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
import cv2 | |
import numpy as np | |
import time | |
from timeit import default_timer as timer | |
HEIGHT=480 | |
WIDTH=640 | |
FONT=cv2.FONT_HERSHEY_SIMPLEX | |
bottomLeftCornerOfText = (100,100) |
This file contains 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
import gi | |
gi.require_version('Gst', '1.0') | |
import traceback | |
import sys | |
from gi.repository import Gst, GObject | |
import multiprocessing | |
class base(): | |
def __init__(self, name): | |
self.pipeline = None |
This file contains 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/env python3 | |
import sys | |
import os | |
import cv2 | |
import gi | |
import signal | |
import threading | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst, GObject |
This file contains 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
import socket | |
import sys | |
import struct | |
import cv2 | |
import numpy as np | |
BUFFER_SIZE = 1024 | |
ADDR = ("127.0.0.1", 5252) | |
HEADER_START = b"START" |
This file contains 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
import cv2 | |
import socket | |
import struct | |
from datetime import datetime | |
cap = cv2.VideoCapture(1) | |
fps = cap.get(cv2.CAP_PROP_FPS) | |
font = cv2.FONT_HERSHEY_SIMPLEX | |
JPEG_QUALITY = 70 | |
encode_param = [int(cv2.IMWRITE_JPEG_QUALITY), JPEG_QUALITY] |
This file contains 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
{ | |
"logging": { | |
"version": 1, | |
"disable_existing_loggers": true, | |
"formatters": { | |
"single-line": { | |
"class": "logging.Formatter", | |
"style": "{", | |
"datefmt": "%I:%M:%S", | |
"format": "{levelname:8s}; {asctime:s}; {name:<15s} {lineno:4d}; {message:s}" |
NewerOlder