コード例 #1
0
def web_cam_thread():
    for cv_array in get_cv_img_from_ip_cam():
        _handle_frame(cv_array, WINDOW1)
コード例 #2
0
def web_cam_thread():
    # TODO: this function doesnt seem to work when sleeping longer than 0
    for cv_array in get_cv_img_from_ip_cam():
        _handle_frame(cv_array, WINDOW1)
        gevent.sleep(0.3)  # yield to other thread