python 2.7 - cv2 window camera to improve speed -


i trying maximum amount of fps basler ace aca640. using opencv gives 5, camera should able go on 60. tried window in way shown below, not seem speed things @ all. (probably because frames still being read in fully)

            # capture frame-by-frame             ret, frame = cap.read()              # our operations on frame come here             gray = cv2.cvtcolor(frame, cv2.color_bgr2gray)[0:200, 400:600]             # display resulting frame             cv2.imshow('frame',gray)             #print(i,n)             if cv2.waitkey(1) & 0xff == ord('q'):                 break 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -