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
#!/usr/bin/python3 | |
import cv2 | |
import numpy as np | |
def transformBound(rect,xs,ys): | |
x,y,w,h = rect | |
xt = int(round(x + (w-w*xs)/2)) | |
wt = int(round(w*xs)) | |
yt = int(round(y + (h-h*ys)/2)) | |
ht = int(round(h*ys)) |
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
#define greenLed 4 //this lights up when a registered user places their thumb | |
#define redLed 3 //this is on until a registerd user places their thumb | |
#define relay 2 //this pin goes HIGH when the registered thumb is placed | |
#define rxPin 0 //this goes to the TX pin of the FP sensor | |
#define txPin 1 //this goes to the RX pin of the FP sensor | |
#include <SoftwareSerial.h>; | |
SoftwareSerial mySerial(rxPin, txPin); | |
byte zero = 0; |