Skip to content

Instantly share code, notes, and snippets.

View TIS-Arne's full-sized avatar

Arne Caspari TIS-Arne

  • The Imaging Source Europe GmbH
View GitHub Profile
@TIS-Arne
TIS-Arne / tcam-webserver.py
Created November 8, 2022 12:31
Slightly improved tcam-webserver example
# pip3 install flask
import sys
from flask import Flask, Response
import logging
import tcam_camera
import time
app = Flask(__name__)
import usb.core
import sys
SET_CUR = 0x1
GET_CUR = 0x81
usbdev = usb.core.find(idVendor=0x199e)
def writectrl(usbdev, unit, ctrl, value):
@TIS-Arne
TIS-Arne / gpio-test.py
Created August 8, 2019 08:05
Jetson GPIO Test
import Jetson.GPIO as GPIO
import time
import os
last = time.time()
def gpio_event(channel):
global last
t = time.time()
print(t-last)
@TIS-Arne
TIS-Arne / opencv.py
Created August 10, 2018 10:30
Tiscamera OpenCV example printing the current framerate.
#!/usr/bin/env python2
# Copyright 2017 The Imaging Source Europe GmbH
#
# 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
#