Skip to content

Instantly share code, notes, and snippets.

@skypanther
skypanther / slider.py
Created October 17, 2018 00:56
Trackbars (sliders) in OpenCV
'''
slider.py - Demonstrating a user of trackbars on OpenCV windows
Author: Tim Poulsen, github.com/skypanther
License: MIT
2018-10-15
Example usage:
python3 slider.py -i path/to/image.jpg
'''
@skypanther
skypanther / jetson_test.py
Created January 17, 2019 01:07
Test camera access on Jetson TX2
import cv2
def main():
cam = open_cam_usb(1, 1024, 768)
# cam = open_cam_onboard(1024, 768) # Use Jetson onboard camera
if cam.isOpened() is False:
print('failed to open camera')
exit()
while True:
@skypanther
skypanther / CIFilter+Extension.swift
Created April 8, 2019 20:28 — forked from ha1f/CIFilter+Extension.swift
CIFilter+Extension.swift
//
// Created by はるふ on 2017/12/11.
// Copyright © 2017年 ha1f. All rights reserved.
//
import Foundation
import CoreImage
import AVFoundation
extension CIFilter {
@skypanther
skypanther / LimeLight.java
Last active January 12, 2020 17:48
LimeLight wrapper class
package frc.robot.components;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
/**
LimeLight wrapper class
*/