RoboticsTeam4904 / Vision2016

2016 Vision Code
0 stars 2 forks source link

Image distortion #22

Open oshlern opened 8 years ago

oshlern commented 8 years ago

Currently we have radial distortion on our camera, which gives us fuzzy angles at the corners of the image. There is supposed to be an opencv command to fix this. We should get that in our code.

OpenCV documentation: http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

Tutorial: http://www.technolabsz.com/2012/07/camera-calibration-using-opencv.html

Additionally, could we put a fisheye lens on our camera? This would allow for a lot more range. I'm assuming fixing the image distortion is the same process with and without a fisheye.

oldgalileo commented 8 years ago

As of 23/2/16 we will not be able to work on this until we get a working camera. The ETA of the working camera is still TBD so we are putting this on halt.

widdakay commented 8 years ago

one of the opencv examples is a camera calibration and undistortion thing

c0d3rman commented 8 years ago

@oshlern @widakay Let's start taking steps to finish this. @widakay you told me this was semi-trivial; care to elaborate? @oshlern is our midseason camera sufficient to test this?

oshlern commented 8 years ago

This is pretty trivial. There's a process (that has tutorials) for doing this (links above), we just need a running raspberry pi camera and an image of something like a chessboard. I'm assuming the two cameras are identical enough to make the inaccuracies between them negligible. We can always do this on the one on the robot too if we have a couple minutes.

widdakay commented 8 years ago

The two cameras should be similar enough that we can calibrate it with one and it will work for the other.

c0d3rman commented 8 years ago

@Shaheenthebean you mentioned you were having trouble fixing this. What was the issue?