#put_nowait, get_nowait method import queue q = queue.Queue(2) #buffer size is 2 q.put("apple") q.put("banana") #q.put("orange") # wait infinity until there is available space #q.put_nowait("orange") #error occurs # Line 187, in put_nowait return self.put(item, block=False) # line 133, in put raise Full q.get_nowait() q.get_nowait() #q.get_nowait() #error occurs #line 195, in get_nowait return self.get(block=False) #line 164, in get raise Empty q.put("AA", True, 5); q.put("AA", True, 5); #q.put("AA", True, 5); # wait 5 second until there is available space, if no space after 5 second, error occur
3/18/2014
Python Study, put_nowait(), get_nowait(), example source code
Subscribe to:
Post Comments (Atom)
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Created Date : 2011.2 Language : C/C++ Tool : Microsoft Visual C++ 2010 Library & Utilized : OpenCV 2.2 Reference : Interent Refer...
-
Created Date : 2009.10. Language : C++ Tool : Visual Studio C++ 2008 Library & Utilized : Point Grey-FlyCapture, Triclops, OpenCV...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
refer to this web page -> http://docs.opencv.org/trunk/doc/py_tutorials/py_video/py_lucas_kanade/py_lucas_kanade.html dense optical f...
-
After training SVM, we should test the trained XML data is reliable or not.. The method to extract HOG feature is refer to -> http://fe...
-
In the YUV color format, Y is bright information, U is blue color area, V is red color area. Show the below picture. The picture is u-v col...
-
Created Date : 2011.8 Language : Matlab Tool : Matlab 2010 Library & Utilized : - Reference : Multiple View Geometry (Hartly and Z...
No comments:
Post a Comment