A computer vision software to automatically meassure dimensions of flat surfaces in a photograph

The objective of this project is to develop a useful program with Computer Vision to automatically measure the lengths of the perimeters and the areas of the surfaces on a planar surface. However, there are certain challenges faced such as the existence of radial and perspective distortion as well a...

Full description

Saved in:
Bibliographic Details
Main Author: Wang, Lianjian
Other Authors: Lee Yong Tsui
Format: Final Year Project
Language:English
Published: Nanyang Technological University 2021
Subjects:
Online Access:https://hdl.handle.net/10356/149188
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-149188
record_format dspace
spelling sg-ntu-dr.10356-1491882023-03-04T19:30:15Z A computer vision software to automatically meassure dimensions of flat surfaces in a photograph Wang, Lianjian Lee Yong Tsui School of Mechanical and Aerospace Engineering MYTLEE@ntu.edu.sg Engineering::Mechanical engineering The objective of this project is to develop a useful program with Computer Vision to automatically measure the lengths of the perimeters and the areas of the surfaces on a planar surface. However, there are certain challenges faced such as the existence of radial and perspective distortion as well as photographs not having scales which will hinder an accurate measurement. The methodology adopted can be divided into pre-processing phase, processing phase as well as measurement phase. Distortions exist in photographs caused by imperfect lenses, and they need to be corrected as part of the pre-processing phase before we even move on to edge detection. In the processing phase, the OpenCV library was used as the primary tool for image processing. Lastly, in the measurement phase, a reference object with known dimensions is required to determine the dimensions of other objects in the photograph to overcome the challenge of photograph for not having scales. The program is tested on numerous objects with different shapes and sizes and the results show that the program can detect any polygon shape object. The problems encountered were unable to detect certain edges due to similar pixels intensity between the background and the object. The threshold used in HoughLinesP function was unable to cater to every image perfectly. Therefore, more lenient threshold is used to enable straight line detection along shorter sides of the polygon, but this inevitably reduced the criteria to be considered a straight line hence producing undesirable “straight lines”. The future work includes a more user-friendly way to filter the desired object especially objects with multiple contours within it. Additional pre-processing step to help differentiate objects that have the same pixel intensity as the background to enable the detection of the edges of these objects. Bachelor of Engineering (Mechanical Engineering) 2021-05-18T06:44:13Z 2021-05-18T06:44:13Z 2021 Final Year Project (FYP) Wang, L. (2021). A computer vision software to automatically meassure dimensions of flat surfaces in a photograph. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/149188 https://hdl.handle.net/10356/149188 en C012 application/pdf Nanyang Technological University
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Engineering::Mechanical engineering
spellingShingle Engineering::Mechanical engineering
Wang, Lianjian
A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
description The objective of this project is to develop a useful program with Computer Vision to automatically measure the lengths of the perimeters and the areas of the surfaces on a planar surface. However, there are certain challenges faced such as the existence of radial and perspective distortion as well as photographs not having scales which will hinder an accurate measurement. The methodology adopted can be divided into pre-processing phase, processing phase as well as measurement phase. Distortions exist in photographs caused by imperfect lenses, and they need to be corrected as part of the pre-processing phase before we even move on to edge detection. In the processing phase, the OpenCV library was used as the primary tool for image processing. Lastly, in the measurement phase, a reference object with known dimensions is required to determine the dimensions of other objects in the photograph to overcome the challenge of photograph for not having scales. The program is tested on numerous objects with different shapes and sizes and the results show that the program can detect any polygon shape object. The problems encountered were unable to detect certain edges due to similar pixels intensity between the background and the object. The threshold used in HoughLinesP function was unable to cater to every image perfectly. Therefore, more lenient threshold is used to enable straight line detection along shorter sides of the polygon, but this inevitably reduced the criteria to be considered a straight line hence producing undesirable “straight lines”. The future work includes a more user-friendly way to filter the desired object especially objects with multiple contours within it. Additional pre-processing step to help differentiate objects that have the same pixel intensity as the background to enable the detection of the edges of these objects.
author2 Lee Yong Tsui
author_facet Lee Yong Tsui
Wang, Lianjian
format Final Year Project
author Wang, Lianjian
author_sort Wang, Lianjian
title A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
title_short A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
title_full A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
title_fullStr A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
title_full_unstemmed A computer vision software to automatically meassure dimensions of flat surfaces in a photograph
title_sort computer vision software to automatically meassure dimensions of flat surfaces in a photograph
publisher Nanyang Technological University
publishDate 2021
url https://hdl.handle.net/10356/149188
_version_ 1759856366146551808