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
/* | |
chasingbot.ino | |
22FEB07 | |
--------------------------------- | |
Required Librarys | |
--------------------------------- | |
SoftwareSerial - Default | |
SD - Defulat | |
TMRpcm - Install from library manager |
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
""" | |
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 | |
""" |
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
// 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 |
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
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)) |
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 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) |
OlderNewer