示例#1
0
 def __init__(self, filter_list):
     super().__init__()
     self._fps = fps.FPS()
     self._run_flag = True
     self.filter_list = filter_list
     self.cap = cv2.VideoCapture(0)
     self._ind = 0
     self.video_loop = VideoLoopBack()
示例#2
0
    def iniciar_interface(self, ancho, alto):
        self.painter = QtGui.QPainter()
        self.setMouseTracking(True)
        self.mouse_x = 0
        self.mouse_y = 0

        self.original_width = ancho
        self.original_height = alto
        self.escala = 1

        self.fps = fps.FPS(60)  # 60 Cuadros por segundo.
        self.timer_id = self.startTimer(1000 / 100.0)
示例#3
0
    def __init__(self):
        # Initiallize ROS node 'camera'
        rospy.init_node('camera')
        
        # Initialize the video camera steam and read the first frame from the stream
        self.camera = cv2.VideoCapture(SRC)

        # Initiallize the variable used to indicate if the thread should be stopped
        self.stopped = False

        # initiallize publisher to publish images from camera
        self.image_pub = rospy.Publisher('/image', Image, queue_size=1)

        # Initiallize instance of CvBridge
        self.bridge = CvBridge()

        # Initallize FPS counter to keep track of the frame rate
        self.fps = fps.FPS()

        self.id = 0
示例#4
0
文件: biolock.py 项目: yonsch/biolock
import GUI
import vault_manager
import fps

# creates main vault and main device as global variables, so that they could be used by the entire program
main_vault = vault_manager.Vault([], "s")
main_device = fps.FPS()

# sets up GUI
gui = GUI.GUI(main_vault, main_device)
gui.mainloop()