Ask Your Question

Scaning work place

asked 2019-09-19 10:46:07 -0600

saurabh162 gravatar image

updated 2019-09-24 01:56:29 -0600

Witek gravatar image

Dear Developers,

I am trying to scan working area in my Project, which is in form of chess board. In order to do it I have taken following steps as also mentioned in following website

  1. Detect Edges
  2. Use the edges in the image to find the contour representing boundary of Workplace
  3. Apply a perspective transform to obtain top-down view of the workplace

But result I am getting is in distorted form and it is due to noise in original picture I have taken from camera.

So, whether there is any way to remove noise in original picture due to camera so that I get undistorted output in the end.

By undistorted output I mean workplace in form of black and white boxes as we have in chess board.

For your consideration I am also attaching following things

a) Original image I have used for processing

image description b) Output image I get after complete processing image description

Please inform me if you need any other information.

Many thanks :)

edit retag flag offensive close merge delete


Please edit your question and add the input image like I added the output image.

Witek gravatar imageWitek ( 2019-09-20 03:30:03 -0600 )edit

hello Witek thank you very ,much for your fast reply ..I have edited my question as you mentioned. Please inform me if I need to do anything else..Thank you very much :)

saurabh162 gravatar imagesaurabh162 ( 2019-09-23 03:59:47 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-09-24 02:16:48 -0600

Witek gravatar image
  1. Calibrate your camera and undistort the image - your chessboard looks slightly rounded and so your final image is rounded too.
  2. You do't need to threshold the warped image - just leave as it is and the result will look better.

I am not sure if the Canny detector can successfully get the chessboard corners. It would be much easier if the edge of your chessboard was solid white.

edit flag offensive delete link more


Many thanks @Witek for your fast reply and help. Can you please tell me little bit about calibration of camera. How can I calibrate my camera ? I am using (FLIR Grasshopper 3 GS3-U3-41C6C) camera for this project.

Addtionally @Witek I have removed thresholding and result looks better to me. Moreover i have also used "cv.fastNlMeansDenoising()" function to further remove noise from output picture. I will again update one I will have chessboard with solid white edge.

saurabh162 gravatar imagesaurabh162 ( 2019-09-24 06:26:31 -0600 )edit

Question Tools

1 follower


Asked: 2019-09-19 10:44:15 -0600

Seen: 275 times

Last updated: Sep 24 '19