added cv webcam pubsub stuff

This commit is contained in:
SimLeek
2017-12-24 20:27:04 -07:00
parent 4fcadaee4f
commit 1b11751629

View File

@ -79,11 +79,11 @@ def init_cv_cam_pub_handler(camId, # type: Union[int, str]
frameHandler # type: Callable[[int, np.ndarray], Any]
):
# type: (...) -> threading.Thread
t = threading.Thread(target=pub_cv_cam_thread, args = (camId, frameHandler))
t = threading.Thread(target=cv_cam_pub_handler, args = (camId, frameHandler))
t.start()
return t
if __name__ == '__main__':
if __name__ == '__main__': # todo: add to tests
i = 0
def testFrameHandler(frame, camId):
global i