Skip to content

Instantly share code, notes, and snippets.

View knowblesse's full-sized avatar
🙄
love vim

Ji Hoon. Jeong knowblesse

🙄
love vim
View GitHub Profile
/*
chasingbot.ino
22FEB07
---------------------------------
Required Librarys
---------------------------------
SoftwareSerial - Default
SD - Defulat
TMRpcm - Install from library manager
"""
VideoProcessor.py
@Knowblesse 2021
21 AUG 31
Process new video and return row,col coordinates with head direction
- Inputs
-video_path : path to the to-be-labeled video
- Outputs
- row, col, degree 2D np matrix
"""
// TRPG Die simulation program
// @2021 Knowblesse
#include <TM1637.h>
#define CLK 6
#define DIO 5
#define L_button 3
#define R_button 2
#define Top_button 4
@knowblesse
knowblesse / VideoStreamTest.py
Created May 3, 2022 04:30
Testing code for sequentially reading a frame from a video.
from time import time
import cv2 as cv
import numpy as np
from pathlib import Path
videoPath = Path('/home/knowblesse/VCF/butter/Sample/TestVideo_Blinking.avi')
# Option 1 : OpenCV calling all frames
cap = cv.VideoCapture(str(videoPath))
import cv2 as cv
import requests
import numpy as np
import serial
import time
URL = r'http://choilab409.iptime.org:12345/'
THRESHOLD = 180
ANIMAL_SIZE = 1000
sr = serial.Serial("COM3", 57600, timeout=0, rtscts=False)