Cartucho / OpenLabeling

Label images and video for Computer Vision applications
Apache License 2.0
926 stars 265 forks source link

Mouse cursor delay #30

Closed seanthegreat7 closed 5 years ago

seanthegreat7 commented 5 years ago

is there a way to decrease the mouse cursor delay?

Cartucho commented 5 years ago

Hey, I just added a parameter for the delay.

I reduced the default delay from 50 to 20 milliseconds.

ehsanfathi77 commented 5 years ago

As far as I see what you changed is not the delay for the mouse cursor, its for the pressed key. It is related to the keyboard function. Did it change the speed of the the crossing line that follow the mouse cursor in your case?

Cartucho commented 5 years ago

In my case it did. So there are two sources of delay:

  1. The wait for the keyboard (this one we can just tune it as we want)
  2. The processing it takes to load the image, draw the lines and the boxes.

Images are getting re-drawn every single time, so with large images (high resolution), this can cause a significant delay.