Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- time.sleep(5)
- import libmarsv5camera_py as lc
- lc.find("192.168.0.10")
- import thread
- def acquire_and_get_image(loop_times):
- for i in range(loop_times):
- lc.acquire(5)
- lc.getImage()
- th1 = thread.start_new_thread(acquire_and_get_image, (1000,))
- th2 = thread.start_new_thread(acquire_and_get_image, (1000,))
- th1.join()
- th2.join()
- lc.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement