Advertisement
Guest User

Untitled

a guest
Dec 4th, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import time
  2. time.sleep(5)
  3. import libmarsv5camera_py as lc
  4. lc.find("192.168.0.10")
  5. import thread
  6.  
  7. def acquire_and_get_image(loop_times):
  8. for i in range(loop_times):
  9. lc.acquire(5)
  10. lc.getImage()
  11.  
  12. th1 = thread.start_new_thread(acquire_and_get_image, (1000,))
  13. th2 = thread.start_new_thread(acquire_and_get_image, (1000,))
  14.  
  15. th1.join()
  16. th2.join()
  17.  
  18. lc.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement