gelsightinc / gsrobotics

GelSight SDK for robotic sensors
GNU General Public License v3.0
80 stars 24 forks source link

[Feature request] Reduce stream resolution to achieve max fps #6

Closed joaromi closed 1 year ago

joaromi commented 1 year ago

Hello, the sensor datasheet shows that the maximum framerate for the GelSight Mini sensor is 25fps. However, I only get around 15fps in my computer. Using the Digit sensor and the same code I obtain 30fps. I believe that being able to reduce the size of the streamed images directly in the sensor would increase these values (Digit libraries already have this feature).

debrashure commented 1 year ago

joaromi, Thank you so much for the feedback. We have added the request to our feature request backlog. Much appreciated, Debbie

duyipai commented 1 year ago

Hello, the sensor datasheet shows that the maximum framerate for the GelSight Mini sensor is 25fps. However, I only get around 15fps in my computer. Using the Digit sensor and the same code I obtain 30fps. I believe that being able to reduce the size of the streamed images directly in the sensor would increase these values (Digit libraries already have this feature).

I am having similar problem on my Ubuntu20 computer. I found it was because on Linux OpenCV used v4l2 backend to capture the stream and it was slower than MSMF, the default one on Windows. I tested on both OS. On Windows it gets 25FPS but on Ubuntu it is only 18FPS at most. Hope this problem can be fixed.

duyipai commented 1 year ago

Dear GelSight developer, I am grateful to see the new frame rate example with recent commits. However, I will always get a printout around 24~25 from that example, but the actual frame rate is only around 18FPS. I think the current frame rate example is not calculating the correct one. Would you please fix it and see if the frame rate can be increased to 25FPS on Ubuntu? Thank you.

Mingrui-Yu commented 8 months ago

I am facing the same issue as @duyipai .