Open richard-xx opened 2 years ago
Hello @richard-xx , from quick calculation this looks like USB2 speed limit (480mbps) - do you get USB speed: SUPER
log on both Windows and Ubuntu?
Thanks, Erik
I get USB speed: SUPER
log on both Windows and Ubuntu
@Erol444 are you able to reproduce?
@richard-xx what are the specifications of your host machine? Which CPU in particular? (and amount of total and free memory preferably) Can you try commenting out the following and retest:
while True:
inDisparity = q.get() # blocking call, will wait until a new data has arrived
fps_handler.tick("Frame")
fps_handler.printStatus()
# frame = inDisparity.getFrame()
# # Normalization for better visualization
# frame = (frame * (255 / depth.initialConfig.getMaxDisparity())).astype(np.uint8)
# fps_handler.drawFps(frame,"Frame")
# cv2.imshow("disparity", frame)
# # Available color maps: https://docs.opencv.org/3.4/d3/d50/group__imgproc__colormap.html
# frame = cv2.applyColorMap(frame, cv2.COLORMAP_JET)
# fps_handler.drawFps(frame,"Frame")
# cv2.imshow("disparity_color", frame)
if cv2.waitKey(1) == ord('q'):
break
Available devices:
[0] 14442C1051B83BD400 [X_LINK_UNBOOTED]
MxId: 14442C1051B83BD400
[14442C1051B83BD400] [47.728] [system] [warning] MonoCamera OV9282: capping FPS for selected resolution to 120
USB speed: UsbSpeed.SUPER
Connected cameras: [<CameraBoardSocket.RGB: 0>, <CameraBoardSocket.LEFT: 1>, <CameraBoardSocket.RIGHT: 2>]
=== TOTAL FPS ===
[Frame]: 0.0
=== TOTAL FPS ===
[Frame]: 66.7
=== TOTAL FPS ===
[Frame]: 133.3
=== TOTAL FPS ===
[Frame]: 63.8
=== TOTAL FPS ===
[Frame]: 85.1
=== TOTAL FPS ===
[Frame]: 64.1
=== TOTAL FPS ===
[Frame]: 76.9
=== TOTAL FPS ===
[Frame]: 74.5
=== TOTAL FPS ===
[Frame]: 73.4
=== TOTAL FPS ===
[Frame]: 72.0
=== TOTAL FPS ===
[Frame]: 80.0
=== TOTAL FPS ===
[Frame]: 78.6
=== TOTAL FPS ===
[Frame]: 76.9
=== TOTAL FPS ===
[Frame]: 75.6
=== TOTAL FPS ===
[Frame]: 74.9
=== TOTAL FPS ===
[Frame]: 73.9
=== TOTAL FPS ===
[Frame]: 78.8
=== TOTAL FPS ===
[Frame]: 77.6
=== TOTAL FPS ===
[Frame]: 76.9
=== TOTAL FPS ===
[Frame]: 76.0
=== TOTAL FPS ===
[Frame]: 75.5
=== TOTAL FPS ===
[Frame]: 74.7
=== TOTAL FPS ===
[Frame]: 74.1
=== TOTAL FPS ===
[Frame]: 73.7
=== TOTAL FPS ===
[Frame]: 76.9
=== TOTAL FPS ===
[Frame]: 76.2
=== TOTAL FPS ===
[Frame]: 75.6
...
@themarpe I wasn't able to reproduce the issue, I usually get about 100-120 FPS on both Ubuntu and Windows, but it's changing quate a bit, I assume due to FPS calculation logic.
@richard-xx Only thing that come to think of is either a consumed bandwidth by some other USB devices? Does same happen on some other root USB port? Eg. make sure you are not connected to a USB hub with ethernet port or video output running alongside, etc...
Otherwise you may try xlink_device_search_improvements
, but currently the prebuilt wheels aren't available. You'd have to compile from source
With the same device and the same type-c cable, running depth camera with the following code gives almost 120 FPS on ubuntu but only about 60 FPS on Windows 10.
Can you provide some advice? Under what conditions does OAK-D's depth camera get 120 FPS on Windows platform?