Skip to content

Instantly share code, notes, and snippets.

@sjaustirni
sjaustirni / proxy_time.py
Last active May 15, 2024 07:15
OpenVibe to NiDAQ proxy
import socket
import time
import datetime
from daqmx import NIDAQmxInstrument
# Proxy server that triggers a NiDAQ stimulation based on a label sent from OpenVibe over a TCP connection. The
# stimulation mechanism is time-based, no more than stimulation can occur in every rolling STIMULATION_WINDOW_SECONDS
# Tested with OpenVibe 2.2.0
@sjaustirni
sjaustirni / new_ml.ipynb
Created December 6, 2022 11:00
new_ml.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sjaustirni
sjaustirni / main.py
Created September 11, 2019 08:56
MED3 Point Processing
import cv2
import numpy as np
# The RGB image array
input_image = cv2.imread('lion.jpg')
def show_image(image, source):
cv2.imshow(source, image)