<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Compensation of the complex geometric distortions induced by a car digital video recording equipment</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">E</forename><forename type="middle">V</forename><surname>Myasnikov</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">IV International Conference on &quot;Information Technology and Nanotechnology&quot; (ITNT</orgName>
								<address>
									<postCode>2018</postCode>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">Samara National Research University</orgName>
								<address>
									<addrLine>Moskovskoe Shosse 34</addrLine>
									<postCode>443086</postCode>
									<settlement>Samara</settlement>
									<country key="RU">Russia</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Compensation of the complex geometric distortions induced by a car digital video recording equipment</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">4DF500D1577E8E6C8EA5ADB95DC8DD1D</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T04:15+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In connection with the wide spread of mobile video recording equipment such as dashcam (car DVR), the restoration of distortions introduced by such equipment is of particular interest.Unfortunately, the nature of the geometric distortions introduced by such equipment is sometimescomplex, and cannot be described using the classical radial models. For this reason, in order to compensate for geometric distortions, an original method for compensating the geometric distortions was developed in this paper.The advantage of the proposed approach is, on the one hand, the possibility of a compact parametric description of the introduced distortions, and on the other hand obtaining at the final stage an improved correction field that takes into account the local inhomogeneities of distortions that occur when inexpensive systems are used.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>A number of models for estimating and compensating a radial distortion are described in the literature.These models include polynomial models, rational models, fisheye models and so on.In general, we consider the problem of correcting the radial distortion at the present time as an engineering problem. Nowadays this problem can be solved using calibration patterns and existing software tools (see, for example, <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>).</p><p>In connection with the wide spread of mobile video recording equipment such as dashcam(car DVR) [3], the compensation of distortions introduced by such equipment is of particular interest. These systems often aim to expand the field of view of the camera in the horizontal direction, which allows recording information related to the area of interest (road, room, etc.), limiting the amount of unnecessary information outside the area of interest. This approach allows reducing both the amount of stored video information and the computational load on processors of mobile devices.</p><p>Unfortunately, the nature of the geometric distortions introduced by such equipment is sometimes complex, andcannot be described using the classical radial models. For this reason, in order to compensate for complex geometric distortions, an original method for compensating the geometric distortions was developed in this paper. The developed method is based on polynomial models and takes into account geometric distortions in general, regardless of their nature (whether they were induced by an optical system, hard-or software).</p><p>Thispaperisorganizedasfollows. The next section briefly reviews classical distortion models. The proposed approach for compensating the distortion induced by the considered mobile video recording equipment is described in Section 3. An experimental study of the proposed approach is given in Section 3. The paper ends up with the Conclusion and Refences.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Distortion models</head><p>The optical system of a modern camera, like many other optical systems, introduces nonlinear distortions <ref type="bibr">[4]</ref>. It is accepted to distinguish the radial distortion associated with lens curvature and the tangential distortion associated with the inclination of the lens optical system with respect to the photosensitive sensor.</p><p>Radial distortion consists in shifting a point on the captured image towards or away from the optical axis with respect to its true position. If the displacement is directed towards the optical axis, the resulting distortion is called barrel-like distortion (Fig. <ref type="figure" target="#fig_1">2a</ref>). Otherwise it is called pillow-like distortion (Fig. <ref type="figure" target="#fig_1">2b</ref>). The tangential distortion associated with the inclination of the sensor plane is expressed in projection distortions of the acquired image (Fig. <ref type="figure" target="#fig_1">2c</ref>).</p><p>The presence of distortion not only leads to the curvature of straight lines, but also leads to gross errors in measurements taken with the captured image.</p><p>Elimination of distortion is usually performed in several stages: 1. The choice of a parametric distortion model, 2. Estimation of the parameters of the model, 3. Compensation of geometric distortions in accordance with the found parameters of the model. It is essential that special calibration patterns with known parameters are used to estimate model parameters. Such patterns can contain a chessboard pattern, a uniform grid of lines, and so on (see Fig. <ref type="figure" target="#fig_4">3</ref>). It is usually necessary to perform a series of shots of the calibration pattern to calibrate the camera using existing algorithms and software. The literature describes a number of models used in the evaluation and compensation of radial distortion. Before proceeding to the description of models, let us introduce the following notations:</p><p>x=(x,y,z) is the point of the object in the coordinate system associated with the object; u=(u,v) is the point on the image in the coordinate system associated with the image. The point of the object is to be projected to this point (ideal position);</p><formula xml:id="formula_0">u d =(u d ,v d )</formula><p>is the point on the image in the coordinate system associated with the image. The point of the object is projected to this point due to geometrical distortions (real position).</p><p>Assuming that the center of distortion coincides with the origin, let us also introduce:</p><formula xml:id="formula_1">2 2 v u r   , 2 2 d d d v u r  </formula><p>, where r is a distance from the origin to an ideally located point (u,v), r d is a distance from the origin to the real point (u d ,v d ).</p><p>A quite complete review of models of radial distortion is given in <ref type="bibr">[7]</ref>. The most well-known polynomial model of radial distortion (1) [8] is considered among the existing polynomial models. A special case of this model is a model with two coefficients (2</p><formula xml:id="formula_2">) [9]. ...) 1 ( 6 3 4 2 2 1      r k r k r k r r d (1) ) 1 ( 4 2 2 1 r k r k r r d   </formula><p>(2) For the latter model (2), the solution of the inverse problem is found in the form of an iterative scheme.</p><p>The model of a more general form (3) [10] and its particular case (4) <ref type="bibr">[11]</ref> are also considered.</p><formula xml:id="formula_3">...) 1 ( 3 3 2 2 1      r k r k r k r r d , (<label>3</label></formula><formula xml:id="formula_4">) ) 1 ( 2 2 1 r k r k r r d    .</formula><p>(4) For the latter model (4), the solution of the inverse problem is obtained, both with the use of approximating functions, and in the analytical form <ref type="bibr">[7]</ref>.</p><p>In rational models, the radial function has the form of a relation. Among the rational models, we can mention model (5) <ref type="bibr">[12]</ref>, and also a rational model based on the ratio of simple polynomials (6), proposed in <ref type="bibr">[7]</ref>.</p><formula xml:id="formula_5">kr kr r d 2 1 4 1 2    (5) 3 5 2 4 3 2 2 1 1 1 r k r k r k r k r k r r d      (6)</formula><p>Other models of radial distortion (for example, the fish-eye model) were proposed in the literature. Tangential distortion is described using a model:</p><formula xml:id="formula_6">) 2 ( 2 2 2 2 1 u r p uv p u d    ) 2 ( 2 2 2 1 2 v r p uv p v d    (7)</formula><p>It should be noted that methods for blind identification of radial distortion exist. A number of works related to the evaluation of the quality of the above models are known from the literature. From the analysis of such literature, it can be concluded (in particular, in <ref type="bibr">[7]</ref>) that the use of models containing more degrees of freedom (polynomial and rational models containing polynomial functions of higher orders) makes it possible to obtain more accurate results in the sense of the approximation quality. On the other hand, it was noted that using more degrees of freedom (functions of higher orders) can lead to instability when using numerical methods to estimate the coefficients.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Methods</head><p>As it was outlined in the Introduction, in this paper we propose a technique for correction of the complex geometric distortion induced by the considered mobile registration device.The developed method is based on the use of the video recording of the calibration pattern (uniform grid with a sufficient size). The developed method consists in the estimation of the field of correction of geometric distortions using a frame with the subsequent aggregation over all evaluated frames. Actually, the estimation of the field of correction of geometric distortions consists of the following steps:</p><p>-Filtering the horizontal lines of the calibration grid using the Gabor filter bank; -Search for the spanning lines of the calibration grid in the horizontal direction; -Approximation of horizontal lines of the calibration grid using polynomials; -Construction of the field of correction based on horizontal lines by interpolation of the received polynomials;</p><p>-Filtering the vertical lines with the subsequent search for the spanning lines, and approximation of vertical lines of the calibration grid using polynomials; -Evaluation of the correction field for the frame by interpolation of the received polynomials. An example of the distorted calibration grid is shown in Figure <ref type="figure" target="#fig_4">3</ref> (a). The image is slightly cut from below to exclude the influence of auxiliary inscriptions. As it can be observed, the distortion has quite a complex nature. Horizontal lines are substantially convexwith relation to the center of the image(barrel-like), while vertical lines change from slightly concave (pillow-like) to almost straight. In addition, local non-uniformities of the lines are noticeable.</p><p>At the first step of the method, for the input grayscale image I(x,y), we obtain filtered images by using Gabor filter banks, which are tuned to distinguish horizontal lines (with orientation equal to 45, 67.5, 90, 112.5, and 135 degrees), and vertical lines (with orientation equal to -10, 0, 10 degrees). The examples of the filtered images are shown in Figure <ref type="figure" target="#fig_4">3 (b,c</ref>).</p><p>At the second step of the method, we perform the search of the local maxima of filtered images, which may correspond to the spanning lines of the calibration grid:</p><formula xml:id="formula_7">                     otherwise t y x I and i y x I y x I if y x I y x I H H h h i H H H , 0 ) , ( ) , ( max ) , ( ), , ( ) , ( 1 1 .. 1 1 2 ,                      otherwise t y x I and y i x I y x I if y x I y x I V V w w i V V V , 0 ) , ( ) , ( max ) , ( ), , ( ) , ( 1 1 .. 1 1 2</formula><p>Then the tracing of horizontal and vertical lines is performed, and the sets </p><formula xml:id="formula_8">    H n j H j i H j i H i N i y x L h i .. 1 , , .. 1 , ,    and     V n j V j i V j i V i N i y x L v i .. 1 , , .. 1 , ,  </formula><formula xml:id="formula_9">      H k i H i p L y x H i y x P , i = 1..N H     min , ) , ( 2       V k i V i p L y x V i x y P , i = 1..N V</formula><p>The examples of the approximation by polynomials are shown in Figure <ref type="figure" target="#fig_4">3 (d, e</ref>). After construction of the distortion model, the correction of an input frame can be performed using the interpolation of the coefficients of the polynomials of the constructed model. For example, in the case of linear interpolation, the interpolated polynomial P() has the coefficients</p><formula xml:id="formula_10">k i k i k p p p , 1 , ) 1 (      </formula><p>, k=1..K. Here polynomial P i () correspond to the bottom (left) edge of the considered cell, and polynomial P i+1 () correspond to the top (right), λ=(S-d)/S, where S is a linear size of the grid cell, and d is the distance to the bottom (left) edge of the cell.</p><p>It is worth noting that horizontal and vertical lines do not necessary have to be approximated by the polynomials of the same order.</p><p>Here we suppose that the optical axis is approximately orthogonal to the plane of the grid pattern and the orientation of the camera and pattern is approximately known.</p><p>The advantage of the proposed approach is, on the one hand, the possibility of a compact parametric description of the introduced distortions in the form of the coefficients of polynomials, and on the other hand obtaining at the final stage an improved correction field that takes into account, among other things, the local in homogeneities of distortions that occur when inexpensive systems are used. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Experiments</head><p>In this section we provide experimental results of the developed technique. The experimental setup contained the car digital video recorded system equipped with a wide-angle camera. The characteristics of the equipment are as the following: 1920×1080 pixelsresolution, 30 frames per second, 170 degreesview angle (diagonal, as stated by the manufacturer), MOV / H.264codec.</p><p>To evaluate the developed technique, we used 20 frames of the video, which were taken with 10 frames interval (total approximately 7 seconds of the observation of the grid pattern). For each frame we performed the following operations:</p><p>-Undistortion of the image according to the technique described in the previous section; -Filtering the horizontal and vertical lines of the calibration grid separately using the Gabor filter bank;</p><p>-Searching for the spanning lines of the calibration grid using the correlation approach separately in the horizontal and vertical directions;</p><p>-Search for the crosses of the vertical and horizontal lines; -Evaluation of the projective transformation that compensates for the mutual mismatch between the recording device and the calibration pattern;</p><p>-Transformation of all the points of the vertical and horizontal lines using the projective transformation found at the previous step;</p><p>-Evaluation of the mean squared error over all the projected points with respect to their ideal positions.</p><p>The dependence of the average reconstruction error evaluated using the above scheme on the degree of the polynomials is shown in Figure <ref type="figure" target="#fig_5">4</ref>. The estimated error in restoring geometric distortions is approximately 0.7 pixels. The best value was obtained for the polynomials of the 10 degree. The reported results were obtained for the model estimated using only one frame without aggregation. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>A new technique is proposed in this paper for the correction of the complex geometric distortion introduced by the mobile video registration device.</p><p>For the model constructed using only one frame, the estimated reconstruction error is approximately 0.7 pixels. The advantage of the proposed approach is, on the one hand, the possibility of a compact parametric description of the induced distortions in the form of the coefficients of polynomials, and on the other hand obtaining at the final stage an improved correction field that takes into account, among other things, the local inhomogeneities of distortions that occur when inexpensive optical systems are used.</p><p>The future directions of research include the experiments with different mobile video recording equipment, increasing the efficacy of the developed method, and the use of dynamic targets for the evaluation of geometric distortions.</p><p>It is assumed that the results of research can be used potentially to improve the recognition of vehicles and road signs <ref type="bibr" target="#b0">[13]</ref>, as well as to improve the quality of road assessment and traffic planning <ref type="bibr" target="#b1">[14]</ref>.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 1 .</head><label>1</label><figDesc>Image distortion: (a) radial pillow-like distortion; (b) radialbarrel-like distortion; (c) tangential distortion second picture.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Figure 2 .</head><label>2</label><figDesc>Calibration patterns often used for camera calibration: (a) uniform grid; (b) chessboard pattern [5]; (c) asymmetric circles pattern [6].</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>,</head><label></label><figDesc>of the pixels corresponding to the vertical and horizontal lines are formed. Here N H is the number of horizontal lines, N V is the number of vertical lines, h i n is the number of pixels in the horizontal line H i L , and v i n is the number of pixels in the vertical line V i L . Approximation of the horizontal H i L and vertical V i L lines is performed by the polynomials of degree k: , k=1..Kof the polynomials are optimal in a least squares sense:</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Figure 3 .</head><label>3</label><figDesc>An example of the distorted calibration grid (a); the results of the Gabor filtering (b, c); the approximation of lines by polynomials (d, e).</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Figure 4 .</head><label>4</label><figDesc>Figure 4. The dependence of the reconstruction error on the degree of the polynomials.</figDesc><graphic coords="6,98.15,99.25,398.86,116.20" type="bitmap" /></figure>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgments</head><p>The reported study was funded by RFBR according to the research project №17-29-03190.</p></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Tracking traffic signs in video sequences based on a vehicle velocity</title>
		<author>
			<persName><forename type="first">P</forename><surname>Yakimov</surname></persName>
		</author>
		<idno type="DOI">10.18287/0134-2452-2015-39-5-795-800</idno>
	</analytic>
	<monogr>
		<title level="j">Computer Optics</title>
		<imprint>
			<biblScope unit="volume">39</biblScope>
			<biblScope unit="issue">5</biblScope>
			<biblScope unit="page" from="795" to="800" />
			<date type="published" when="2015">2015</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Method for the reliable shortest path search in timedependent stochastic networks and its application to GIS-based traffic control</title>
		<author>
			<persName><forename type="first">A A</forename><surname>Agafonov</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V V</forename><surname>Myasnikov</surname></persName>
		</author>
		<idno type="DOI">10.18287/2412-6179-2016-40-2-275-283</idno>
	</analytic>
	<monogr>
		<title level="j">Computer Optics</title>
		<imprint>
			<biblScope unit="volume">40</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="275" to="283" />
			<date type="published" when="2016">2016</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
