Example #1
0
    def __init__(self):
        config = Configuration.Configurations()
        self.timer = 0.1
        self.path = "camera"
        self.cap = cv2.VideoCapture(0)
        self.cap.set(3, config.resolution()[0])
        self.cap.set(4, config.resolution()[1])

        self.NewestFrame = cv2.resize(cv2.imread(AppPath.path("NoImage.png")),
                                      (1280, 720))
 def __init__(self, Selector, YtUploader, FbUploader):
     print("file manager intilialized")
     self.config = Configuration.Configurations()
     self.YtUploader=YtUploader
     self.FbUploader=FbUploader
     self.Settings = self.config.fileSettings
     self.MaxDirSize = int(self.Settings['max_space'])
     self.DeleteH= self.Settings.getboolean('delete_high_res_files')
     self.Dir = self.config.folderPath()
     self.DirEvent = threading.Event()
     self.selector = Selector
     self.deleteRetryCounter=0
Example #3
0
 def __init__(self, master, view_frame):
     self.view_frame= view_frame
     self.config = Configuration.Configurations()
     self.UIsettings = self.config.con['UISettings']
     self.thumnail_time=self.UIsettings['thumbnail_time']
     self.selector_frame= tk.Frame(master=master, bg='black')
     self.files =[]
     self.thumnails=[]
     self.current_pos = [0, 1, 2]
     
     for i in range(3):
         thumbnail = Thumbnail(self.selector_frame, self.view_frame)
         self.thumnails.append(thumbnail)
     self.thumnails.reverse()
     self.selector_frame.config(height='200', width='200')
     self.selector_frame.pack(expand='true', fill='both', ipadx='0', padx='0', pady='0', side='left')
     self.RefreshList()
     self.UpdateThumbnails()
Example #4
0

class Writers():
    def __init__(self):

        out, current_recording_path = VideoWriter(str(datetime.date.today()))
        self.out = out
        print("starting recording: " + current_recording_path)
        self.current_recording_path = current_recording_path
        self.small_out = SmallerResWriter(str(datetime.date.today()))


if __name__ == "__main__":

    os.chdir(os.path.dirname(os.path.abspath(__file__)))
    config = Configuration.Configurations()
    gui_thread = tk.Tk()
    Cam = Camera()

    VideoProcessor1 = CamProcessor(Cam)
    videoStreamer = TimelapseStream()
    VideoProcessor2 = FrameProcessor(videoStreamer)
    Cam.run()

    View_window = GUI.VideoView(gui_thread, videoStreamer, VideoProcessor2,
                                VideoProcessor1, config)
    VideoProcessor1.run()
    videoStreamer.run()
    VideoProcessor2.run()

    stopRec = threading.Event()