コード例 #1
0
from behaviours.fastest import Fastest
import sys
from cv2 import namedWindow, waitKey, imshow
from time import sleep

# Initialize a new motion controller object
camera = CameraController()
detector = MotionDetector(camera)

# Start main output display
namedWindow('Display')
waitKey(20)
namedWindow('Debug')

# Start the dataloggers
log = Datalogger('detection_log.log')
imageprinter = Imagesave('captured_images')
plotprinter = Graphsave('captured_plots')

# Initialize output behaviours, the argument is the viewport they are going to use to display the output
handwaves = Handwave('Display')
cow = Cow('Display')
speed = Speed('Display')
coffetime = Coffee('Display')
fastest = Fastest('Display')

# List the effects, in order of precedence
effect_list = [cow, fastest, coffetime, speed, handwaves]

# Start camera controller thread
# camera.start()
コード例 #2
0
#! /usr/bin/env python
###############################################################################
##
## datalogger_test.py -- part of the bypasser program
##
## Copyright (c) 2014 Riccardo Sven Risuleo
##
## This software may be modified and distributed under the terms
## of the MIT license.  See the LICENSE file for details.
##
###############################################################################

from utilities.datalogger import Datalogger

log = Datalogger('log.txt')

log.update((1, 2, 3, 4), True)  # iscow!
log.update((5, 6, 7, 8), False)  # iscow!
コード例 #3
0
ファイル: main.py プロジェクト: rsrsl/bypasser
from behaviours.fastest import Fastest
import sys
from cv2 import namedWindow, waitKey, imshow
from time import sleep

# Initialize a new motion controller object
camera = CameraController()
detector = MotionDetector(camera)

# Start main output display
namedWindow('Display')
waitKey(20)
namedWindow('Debug')

# Start the dataloggers
log = Datalogger('detection_log.log')
imageprinter = Imagesave('captured_images')
plotprinter = Graphsave('captured_plots')

# Initialize output behaviours, the argument is the viewport they are going to use to display the output
handwaves = Handwave('Display')
cow = Cow('Display')
speed = Speed('Display')
coffetime = Coffee('Display')
fastest = Fastest('Display')

# List the effects, in order of precedence
effect_list = [cow, fastest, coffetime, speed, handwaves]

# Start camera controller thread
# camera.start()
コード例 #4
0
ファイル: datalogger_test.py プロジェクト: rsrsl/bypasser
#! /usr/bin/env python
###############################################################################
##
## datalogger_test.py -- part of the bypasser program
##
## Copyright (c) 2014 Riccardo Sven Risuleo 
##
## This software may be modified and distributed under the terms
## of the MIT license.  See the LICENSE file for details.
##
###############################################################################

from utilities.datalogger import Datalogger

log = Datalogger('log.txt')

log.update((1,2,3,4),True) # iscow!
log.update((5,6,7,8),False) # iscow!