apockill / uArmCreatorStudio

uArm Creator Studio is a Visual Programming Language for robot arms, with a heavy emphasis on computer vision and usability for both low experience and high experience programmers. It's written entirely in Python, and supports python scripting within the application.
82 stars 39 forks source link

Increase camera resolution for better recognition #23

Open joihn opened 7 years ago

joihn commented 7 years ago

Hi,

I have a pretty decent camera (latest logitec c922, which is capable of outputing full hd) and a very big and very detailed marker, but the program can't detect more than ∼490 points, which isn't enough for accuracy.

I have tried : update camera driver ( I'm on window 10, so it should be okay), bigger and more detailed marker, better lighting, manual focus, zooming the camera via the logitech interface (which by the way reduce my FOV) but no success ...)

Any idea ?

The solution might be to increase the video input resolution (my computer is probably capable of processing bigger image).

Is the input resolution hardcoded anywhere ? I can't find it.

Thanks for your increadible work ! Is it a good idea to add color to the marker ?

apockill commented 7 years ago

Hi Joihn,

Currently the camera resolution is set to 640x480 regardless of the maximum capability of the camera. The reasons for this (which I agree aren't good enough reasons) are because: different camera aspect ratios might not be tested for, higher resolution will almost for sure lag the system heavily, lower resolution can actually be a good thing for computer vision as it gets rid of detail that might not be relevant, and finally, I never designed the interface to handle bigger resolutions.

So, to solve this; -I need some kind of interface that allows the user to select different resolutions. -There needs to be a way to scale the CameraView widget regardless of the true HD of the camera -There needs to be a way to alert the user that HD might not be a good idea.

Thoughts?