import cv2 import numpy as np from runBeeBo import beebo, logger logger.info('-vision.py: running...') # Set video capture to default camera cap = cv2.VideoCapture(0) # Begin vision loop while True: ret, frame = cap.read() if ret: cv2.imshow('frame',frame) key = cv2.waitKey(25) & 0xFF if key == ord('q'): break else: break
import time from runBeeBo import beebo, logger from keras.layers.core import Dense, Activation, Flatten from keras.models import Sequential from keras.layers.convolutional import Convolution2D, MaxPooling2D logger.info('-learnNewFace.py: running...') while True: time.sleep(2) # Check if beebo is alive if not beebo.brainConn.execute("SELECT * FROM status;").fetchall()[0][0]: logger.info('-learnNewFace.py: acknowlege beebo shutdown, exiting...') break