rollingshutter.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:rollingshutterpy 作者: alexd3rsan 项目源码 文件源码
def start(self) -> None:
        rs = self.rolling_shutter = RollingShutter(self.files,
                                                   self.tk_speed_val.get(),
                                                   self.file_output)

        lines_covered = rs.frame_count * self.tk_speed_val.get()

        if lines_covered < rs.height:
            m = ('The number of iterations ({}) is lower than the height'
                 ' of the resulting image ({}px).\n\nMissing spots ({} lines)'
                 ' will be filled with black.\n\n'
                 'Do you want to continue?')
            message = m.format(lines_covered,
                               rs.height,
                               rs.height-lines_covered)
            choice = askyesno('Proceed?', message)

            if not choice:
                return None

        self.disable_buttons()
        self.progress_bar.config(maximum=lines_covered)
        self.progress_bar.state(['!disabled'])

        t1 = Thread(target=rs.thread, args=(self,))
        t1.setDaemon(True)
        t1.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号