Implementation of the smartphone camera in the measures of narrow street facades

    Mohammed Aldelgawy   Affiliation


This paper aims to perform metric measurements of narrow street façades using single image captured by smartphone’s camera. Since tight area accompanied by narrow street limits object to camera distance, object lines perpendicular to façade do not appear in image and consequently their vanishing point (VP) is hard to detect. Accordingly, semi-automated MATLAB® application was designed depending only on two orthogonal VPs. Novelty of work comes from using smartphone as a cost and time efficient tool for measurements, depending only on two VPs, and applying image line refinement approach exploiting detected VPs. Three single images were captured by three different smartphones. Then, undistorted single images were formed after calibrating cameras. Image lines for horizontal and vertical object lines were extracted semi-automatically. Two VPs were detected applying two models: Model-I solves for vanishing points’ Cartesian coordinates, whereas Model-II solves for angle coordinate peaks of histogram. Image line refinement approach was applied before applying cross-ratio using one horizontal and one vertical reference lines to calculate object lengths of 46 check lines (horizontal and vertical). Proposed models provided reliable and comparable results. Applying line refinement approach improved solution with best overall accuracy of 0.010 m and 0.011 m for Model-I and Model-II, respectively.

Keyword : single image, metric measurements, façade observation, vanishing point, cross-ratio, smartphone’s camera, semi-automated line extraction

How to Cite
Aldelgawy, M. (2023). Implementation of the smartphone camera in the measures of narrow street facades. Geodesy and Cartography, 49(1), 25–36.
Published in Issue
Mar 13, 2023
Abstract Views
PDF Downloads
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.


Aguilera, D. G., Lahoz, J. G., & Codes, J. F. (2005). A new method for vanishing points detection in 3D reconstruction from a single view. In Proceedings of ISPRS Comission (pp. 197–210).

Aldelgawy, M., & Abu-Qasmieh, I. (2021a). Calibration of smartphone’s rear dual camera system. Geodesy & Cartography, 47(4), 162–169.

Aldelgawy, M., & Abu-Qasmieh, I. (2021b). Semi-automatic reconstruction of object lines using a smartphone’s dual camera. The Photogrammetric Record, 36(176), 381–401.

Arslan, O. (2018). Accuracy assessment of single viewing techniques for metric measurements on single images. IET Computer Vision, 12(5), 693–701.

Burger, W. (2019). Zhang’s camera calibration algorithm: In-depth tutorial and implementation (Technical Report HGB16-05). Department of Digital Media, University of Applied Sciences Upper Austria, School of Informatics, Communications and Media.

Burger, W., & Burge, M. J. (2016). Digital image processing: An algorithmic introduction using Java (2nd ed.). Springer.

Canny, J. (1986). A computational approach to edge detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8(6), 679–698.

Caprile, B., & Torre, V. (1990). Using vanishing points for camera calibration. The International Journal of Computer Vision, 4(2), 127–140.

Chuang, J.-H., Kao, J.-H., Lin, H.-H., & Chiu, Y.-T. (2007). Practical error analysis of cross-ratio-based planar localization. In Pacific-Rim Symposium on Image and Video Technology (pp. 727–736). Springer.

Debevec, P., Taylor, C., & Malik, J. (1996). Modeling and rendering architecture from photographs: A hybrid geometry- and image-based approach. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques (pp. 11–20).

Di, H., Wang, L., & Xu, G. (2003). A three-step technique of robust line detection with modified Hough transform. In Proceedings of the SPIE (Vol. 5286, pp. 835–838).

Erdnüß, B. (2018). Measuring in images with projective geometry. In International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences (Vol. XLII-1, pp. 141–148).

Fischler, M. A., & Bolles, R. C. (1981). Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24(6), 381–395.

Hassanein, A., Mohammad, S., Sameer, M., & Ragab, M. (2015). A survey on hough transform, theory, techniques and applications. International Journal of Computer Science Issues, 12(1), 139–156.

Hough, P. (1962). Method and means for recognizing complex (US Patent 3,069,654, Ser. No. 17,7156 Claims).

Lee, S. C., & Nevatia, R. (2003). Interactive 3D building modeling using a hierarchical representation. In First IEEE International Workshop on Higher-Level Knowledge in 3D Modeling and Motion Analysis (pp. 58–65). IEEE.

Li, B., Peng, K., Ying, X., & Zha, H. (2010). Simultaneous vanishing point detection and camera calibration from single images. In International Symposium on Visual Computing (pp. 151–160). Springer.

Liu, J.-S., & Chuang, J.-H. (2002). A geometry-based error estimation for cross-ratios. Pattern Recognition, 35(1), 155–167.

Mikhail, E. M., & Ackermann, F. E. (1982). Observations and least squares (2nd ed.). University Press of America.

Oh, S. H., & Jung, S. K. (2012). Ransac-based or thogonal vanishing point estimation in the equirectangular images. Journal of Korea Multimedia Society, 15(12), 1430–1441.

Rong, W., Li, Z., Zhang, W., & Sun, L. (2014). An improved Canny edge detection algorithm. In 2014 IEEE International Conference on Mechatronics and Automation (pp. 577–582), Tianjin, China.

Vouzounaras, G., Daras, P., & Strintzis, M. (2014). Automatic generation of 3D outdoor and indoor building scenes from a single image. Multimedia Tools and Applications, 70(1), 361–378.

Wang, J., Shi, F., Zhang, J., & Liu, Y. (2006). A new calibration model and method of camera lens distortion. In 2006 IEEE/RSJ International Conference on Intelligent Robots and Systems (pp. 5713–5718), Beijing, China.

Wang, M., Liu, X., Zhen, Y., & Lu, Y. (2010). Plane geometric information extraction from single image based on cross ratio. 18th International Conference on Geoinformatics (pp. 1–5), Beijing, China.

Wildenauer, H., & Hanbury, A. (2012). Robust camera self-calibration from monocular images of Manhattan worlds. In 2012 IEEE Conference on Computer Vision and Pattern Recognition (pp. 2831–2838). IEEE.

Wong, T., Tao, C., Cheng, Y., Wong, K., & Tam, C. (2014). Application of cross-ratio in traffic accident reconstruction. Forensic Science International, 235, 19–23.

Zhang, G., He, J., & Yang, X. (2003). Calibrating camera radial distortion with cross-ratio invariability. Optics & Laser Technology, 35(6), 457–461.

Zhang, Z. (2000). A flexible new technique for camera calibration. IEEE Transactions on Pattern Analysis & Machine Intelligence, 22(11), 1330–1334.