<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2023.118008</article-id><article-id pub-id-type="publisher-id">JCC-127223</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Sectional Dimensions Identification of Metal Profile by Image Processing
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>&amp;Idot;lhami</surname><given-names>M. Orak</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>&amp;Scedil;aban</surname><given-names>&amp;Scedil;eker</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Computer Engineering Department, Karab&amp;amp;uuml;k &amp;amp;Uuml;niversitesi, Karab&amp;amp;uuml;k, T&amp;amp;uuml;rkiye</addr-line></aff><pub-date pub-type="epub"><day>03</day><month>08</month><year>2023</year></pub-date><volume>11</volume><issue>08</issue><fpage>107</fpage><lpage>120</lpage><history><date date-type="received"><day>20,</day>	<month>July</month>	<year>2023</year></date><date date-type="rev-recd"><day>22,</day>	<month>August</month>	<year>2023</year>	</date><date date-type="accepted"><day>25,</day>	<month>August</month>	<year>2023</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In steel plants, estimation of the production system characteristic is highly critical to adjust the system parameters for best efficiency. Although the system parameters may be tuned very well, due to the machine and human factors involved in the production line some deficiencies may occur in product. It is important to detect such problems as early as possible. Surface defects and dimensional deviations are the most important quality problems. In this study, it is aimed to develop an approach to measure the dimensions of metal profiles by obtaining images of them. This will be of use in detecting the deviations in dimensions. A platform was introduced to simulate the real-time environment and images were taken from the metal profile using 4 laser light sources. The shape of the material is generated by combining the images taken from different cameras. Real dimensions were obtained by using image processing and mathematical conversion operations on the images. The results obtained with small deviations from the real values showed that this method can be applied in a real-time production line.
 
</p></abstract><kwd-group><kwd>Image Processing</kwd><kwd> Image Recognition</kwd><kwd> Profile</kwd><kwd> Section Measurement</kwd><kwd> Straight Lines Geometry</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>One of the most important goals is to produce quality products in all sectors involving manufacturing. Depending on the material used in production, the production environment, the systems controlling the production, and the human factors involved in the production, situations may occur where the desired quality cannot be achieved. Although taking measures to prevent such situations from occurring is the main objective, it is equally important to make early detection in cases where they do occur.</p><p>Studies are carried out in all these areas in the iron and steel industry, like other sectors. To prevent deviation in production stage, mathematical models or artificial intelligence techniques are utilized for correct determination of production parameters. Povorov and Semenov tried to build a mathematical model for predicting material shape in profile rolling. [<xref ref-type="bibr" rid="scirp.127223-ref1">1</xref>] Analyzing the effect of the profile of the hot-rolled sheet on cold-rolling, Ma et al. developed the ANN model [<xref ref-type="bibr" rid="scirp.127223-ref2">2</xref>] .</p><p>In addition to obtaining the models that best describe the process, studies have also been carried out to determine the defects that occurred on products. Detecting surface defects, measuring surface roughness and dimensions, identifying the shape of the product are some of the studies for determining quality-related problems. In such studies, especially image processing-based systems are used.</p><p>In the profile or pipe production, the measurement of dimensions is mostly done manually by the operators. While it is easy for operators to take measurements in profiles produced by cold rolling, they cannot take measurements in hot rolled profiles due to high-temperature. For this reason, the use of automatic measurement systems in hot-rolling production environments will increase the quality of production. Real-time measurement will provide the opportunity to detect problems that may arise during the production phase as soon as possible.</p><p>A measuring system was developed by Kawasaki Steel for the recognition of profile sections using two laser light sources [<xref ref-type="bibr" rid="scirp.127223-ref3">3</xref>] . It is seen that TBK Automatisierung und Messtechnik GmbH has developed a system that makes measurements using laser light sources (TBK Automatisierung und Messtechnik). No detailed information could be obtained about the details of the related system.</p><p>In dimensioning, extraction of the information from an image is as important as taking it. Wang et al. carried out a study on estimating the dimensions by taking images with the help of a thermal camera and detecting the edges [<xref ref-type="bibr" rid="scirp.127223-ref4">4</xref>] . This method will be a more costly solution compared to other measurement systems. Studies are carried out for the processing and interpretation of the captured images. In the project “Plate Localization Using an Alternative Morphological Method”, the parallelism of the two lines found as a result of the Hough transform was used to flatten the perspective image, starting from the lines that are certain to be rectangular. [<xref ref-type="bibr" rid="scirp.127223-ref5">5</xref>] . In another similar project, image smoothing was applied using affine transform [<xref ref-type="bibr" rid="scirp.127223-ref6">6</xref>] . Lin has developed the “Top-View Transformation Model” by taking advantage of the camera’s mounting height and perspective view so that vehicles can park comfortably [<xref ref-type="bibr" rid="scirp.127223-ref7">7</xref>] . &#197;gren used the Hough Transform to detect the lines on the road in the algorithm he developed to find the position of the car on the road [<xref ref-type="bibr" rid="scirp.127223-ref8">8</xref>] . No studies are known by the authors for the identification of metal profiles’ shapes in the literature.</p><p>In this study, it is aimed to obtain images by using 4 laser light sources and to reveal the dimensions of a profile from the images obtained. Using laser light source and oordinary camara will be a much cheaper solution compared with thermal camera application. Since we do not have the opportunity to test hot-rolled profiles in real-time, sample pieces from the profiles produced were used. Profile sizing was done by processing the images obtained in the prototype environment introduced. We use morphological operations similar to the ones used by others in the literature to process images. Conversion of the perspective view is also considered in our study since the images are gathered from the cameras mounted in different height positions.</p></sec><sec id="s2"><title>2. Material and Method</title><p>The model to be developed requires the implementation of more than one step. These steps are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><sec id="s2_1"><title>2.1. Simulation Platform</title><p>Cameras and laser light sources were placed 75 cm from the center of the table at four corners of the table having 200 &#215; 200 mm measurement area. The laser light sources were located 15 mm above the table surface and were used as the measuring plane.</p><p>It is aimed to determine the edges of the rectangular profile placed in the center of the simulation environment by taking images from the cameras placed at the 4 corners around the profile (<xref ref-type="fig" rid="fig2">Figure 2</xref>). Then, the dimensions will be determined based on the edges.</p><p>Perspective photography was taken from all four sides of the profile. The red laser line in each image was detected and thinned. The processed image is converted from perspective format to vertical view format. Lines and shapes are identified by the Hough Transform. For scaling, a calibration procedure was created and reference points and calibration coefficients for measurement were determined. The cross-sectional dimensions of the profile are calculated using reference points and calibration coefficients.</p><p>For the measurement, firstly, a calibration method was determined. A 200 &#215; 200 mm table is used for calibration. To detect the edges, the red line laser light from the four corners is projected onto the profile to be parallel to the table. To detect the reflection of the table in the plane where the laser light is emitted, a 45 &#215; 45 mm profile was placed on each corner of the table, respectively, and images were taken from the cameras. In this way, the size of the table in the plane where the laser light is generated will be determined. A total of 16 images were taken from 4 cameras, one for each corner of the measuring table.</p><p>White pixels on the image are found by applying laser light detection, binary conversion, and morphological refinement processes on each image, respectively. Each pixel of the edge in the image is located on the x and y axes in the new image.</p><p>The new image in the vertical coordinate plane is rotated 90˚ and the same process is applied to the image of the next camera. At the end of the process for each camera, the image in the vertical plane is rotated 90˚. The parallel and vertical edges in the image are obtained in the vertical coordinate plane Finally, the profile size is determined by calculating the lengths between the parallel edges.</p></sec><sec id="s2_2"><title>2.2. Image Processing</title><p>An image can be defined as a two-dimensional function f(x, y), where x and y are the plane coordinates and f is the amplitude in the (x, y) coordinate of the image at that point, referring to the gray level or darkness. If the amplitude values of x, y, and f are finite values, that is, discrete values, we call the image a digital image. An image transferred to a computer cannot go beyond a raw photograph. Image processing will be necessary to determine and extract the areas of interest in the photograph [<xref ref-type="bibr" rid="scirp.127223-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.127223-ref10">10</xref>] .</p></sec><sec id="s2_3"><title>2.3. Morphological Operations</title><p>Mathematical morphology is a powerful image-processing tool in nonlinear neighborhood operations and is used to distinguish objects that we want to remove or distinguish from other regions in an image [<xref ref-type="bibr" rid="scirp.127223-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.127223-ref12">12</xref>] . Two morphological operators, erosion and dilation, are the basis of mathematical morphology. The application is made by sequentially moving the structuring element over the image matrix. The image is first converted to a “binary” format to be able to make dilation or erosion on the image by applying a structural filter.</p><p>Structuring element includes structures in the form of a matrix prepared in the desired dimensions and the desired shape. The structuring element can be one of several geometric shapes. The most used structuring elements are square, rectangular, and circular. Examples of structuring elements are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>There may be breaks or gaps in the lines in the images obtained. To correct these errors, morphological dilation, in which enlargement or thickening operations are performed, is applied to the digital image (<xref ref-type="fig" rid="fig4">Figure 4</xref>). How the dilation will be done is determined by the structuring elements.</p><p>In the images obtained, small protrusions on the lines or the borders of two different shapes may be mixed with each other. To correct these defects, morphological erosion is applied to the image, where reduction or thinning operations are performed (<xref ref-type="fig" rid="fig5">Figure 5</xref>). The erosion process is somewhat the reverse of the dilation process.</p><p>As a result of the dilation and erosion morphological processes, the original image is deformed. Opening and closing morphological processes are used to minimize damage traces.</p><p>If the dilation and erosion operations are applied sequentially to a digital image, the opening process occurs in the image. In the opening process, two objects close to each other are separated without causing much change in the image. Contrary to the opening, the closing process occurs through the sequential application of the erosion and dilation operations on the digital image. Therefore, two objects that are close to each other are connected without much change in the image. The mathematical representations of these operations are as follows.</p><p>1) Dilation: A ⊕ B</p><p>2) Erosion: A Θ B</p><p>3) Opening: A  B = (A Θ B) ⊕ B</p><p>4) Closing: A ● B = (A ⊕ B) Θ B</p><p>To reveal the laser light line formed on the profile, morphological operations are applied to improve the non-overlapping edges, and the edges in the image are sharpened.</p></sec><sec id="s2_4"><title>2.4. Edge Detection with Hough Transform</title><p>Hough transform is an approximation method used to detect regular geometric shapes that can be expressed mathematically such as lines, circles, and ellipses, in image [<xref ref-type="bibr" rid="scirp.127223-ref13">13</xref>] . The basic principle is to use the analytical expression of the geometric location of the points forming the edge of the shape [<xref ref-type="bibr" rid="scirp.127223-ref14">14</xref>] . With this technique, shapes such as lines, circles, and ellipses that can be expressed mathematically can be detected.</p><p>One of the difficulties faced in image processing is detecting groups of points with the same linearity. All straight lines in the image form a two-parameter array (<xref ref-type="fig" rid="fig6">Figure 6</xref>). If a parameter is specified for this sequence, any straight line can be represented by a single point in the parameter space and represented in the normal parameter space [<xref ref-type="bibr" rid="scirp.127223-ref15">15</xref>] . The definition is given in Equation (1).</p><p>ρ = x cos θ + y sin θ (1)</p><p>Hough transform was used to detect the laser light line in the obtained image by identifying the point groups with the same linearity after morphological operations.</p></sec><sec id="s2_5"><title>2.5. Desargues Theorem</title><p>Desargues theorem is a mathematical expression that helps to understand perceptiveness in the image (<xref ref-type="fig" rid="fig7">Figure 7</xref>). According to this theorem, two triangles (ABC and A'B'C') in three-dimensional space can be seen in perspective by viewers if the parallel lines AA', BB' and CC' all intersect at a single point. [<xref ref-type="bibr" rid="scirp.127223-ref16">16</xref>]</p><p>According to Desargues Theorem, the edges, and vertices forming similar geometric shapes in different planes are parallel to each other. Interplanetary lines connecting conjugate edges and vertices converge at a perspective (vanishing) point. Then, looking from the vanishing point, we can move a shape or pixel in any plane to another plane whose properties we know.</p></sec><sec id="s2_6"><title>2.6. Conversion of Perspective Image to Vertical Plane</title><p>A camera view of a scene is essentially a 2D representation projection of a 3D scene. When an object or scene is lighted by a light source, some of the light will be reflected toward the camera and captured as a digital image. The light reaching the lens is reflected on the camera image plane based on the camera projection model. The camera projection model changes the 3-dimensional coordinates</p><p>(x, y, z) and converts them to 2-dimensional (x, y) coordinates in the camera image plane. The spatial quantization of the image plane, in which the pixels are displayed as a grid, is the transformation of the 2D image coordinates in the image plane to a pixel (c, r) position [<xref ref-type="bibr" rid="scirp.127223-ref17">17</xref>] .</p><p>The scene image we are considering will be captured using perspective camera projection. In this study, the Desargues Theorem is used to transform the lines detected in the perspective image into the top view.</p><p>The perspective image formed in the camera can be symbolized as shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>. The image formed by the camera that shoots from the horizontal plane at a certain angle is the image on the horizontal plane transferred to a plane with the same angle as the camera viewpoint. Shots taken with the camera can be interpreted as transferring the image from one plane to another plane.</p><p>According to Desargues Theorem, we can move a shape or pixel in any plane to another plane whose properties we know, by looking from the vanishing point. For this conversion, it is necessary to look at an object with known properties from the same vanishing point. It is sufficient to produce a reference value by obtaining the reflection of this object in the plane whose properties are known. Unknown pixels can be moved to a known plane when viewed from the vanishing point using the reference value (<xref ref-type="fig" rid="fig9">Figure 9</xref>).</p><p>It is certain that corresponding sides in the camera perspective image of a reference rectangle shape will converge at a vanishing point (Vp1, Vp2). A measurement line is drawn with the same slope as the line passing through the point Vr and passing through the points Vp1 and Vp2, from which we can reflect the perspective image backward from the points Vp1, Vp2. The sides of the rectangular shape intersect the measurement line at points Vx, Vy, and Vr. Calibration coefficients dx and dy are introduced in (mm/pixel) unit using the real dimensions of the rectangle (Equation (2), Equation (3)).</p><p>d x = RealDistance ( V x , V r ) Distance ( V x , V r ) (2)</p><p>d y = RealDistance ( V y , V r ) Distance ( V y , V r ) (3)</p><p>After this stage, a line is drawn between each point in the perspective image and the vanishing point, and the intersection points of these lines are found. The value of the x and y coordinates in the vertical coordinate plane is calculated by multiplying these points and their distance from the Vr reference point and the calibration values (Equation (4), Equation (5)).</p><p>x = d x &#215; Distance ( P x , V r ) (4)</p><p>y = d y &#215; Distance ( P y , V r ) (5)</p><p>Since the cross-sectional measurement will be made from the vertical plane image, first of all, the calibration values of the x and y axes in the vertical plane must be determined.</p><p>For this purpose, there are two groups of lines parallel to each other and vertical to each other in the image of the reference rectangle transferred to the vertical plane. By calculating the distance between parallel lines, kx and ky calibration values in terms of (mm/pixel) unit (Equation (6), Equation (7)) are calculated.</p><p>k x = RealDistance ( line1 , line2 ) Distance ( line1 , line2 ) (7)</p><p>k y = RealDistance ( line 3 , line 4 ) Distance ( line 3 , line 4 ) (8)</p><p>The kx and ky values are used for the size measurement of the profile placed on the measuring table. To obtain the view of the vertical coordinate plane, the camera images in the perspective plane are converted. In the vertical plane image, the existing parallel and vertical lines in the image are determined with the Hough algorithm. The dimensions of the profile are determined by calculating the distances between the lines parallel to each other with Equation (9) and Equation (10).</p><p>x = k x &#215; Distance ( Line 5 , Line 6 ) (9)</p><disp-formula id="scirp.127223-formula11"><label>(10)</label><graphic position="anchor" xlink:href="//html.scirp.org/file/8-1732390x22.png?20230825115830574"  xlink:type="simple"/></disp-formula></sec></sec><sec id="s3"><title>3. Results</title><p>The performance of determining the outer cross-section dimensions of rectangular profile placed in the middle of the simulation system was examined. In this study, an application has been developed to measure the dimensions of the object by distinguishing the red laser light on the object (<xref ref-type="fig" rid="fig1">Figure 1</xref>0).</p><p>The algorithm has been tested on different sizes of rectangular profiles. The thresholding algorithm is used for the segmentation of red color. To refine the line, morphological techniques were applied. Then, the image was transformed from perspective to top-view form. Morphological processes and thinning processes were applied by combining the top-view images of the cameras. The dimensions of the object were obtained by obtaining the edge lines with the Hough algorithm.</p><p>The developed algorithms have been tested for materials of 6 different sizes. The test was conducted 5 times and statistical results were obtained. Average measurement results for each dimension and their deviations are given in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>These studies were performed on an Intel i7 1.6 GHz laptop. Processing times for each size are given in <xref ref-type="table" rid="table2">Table 2</xref>. The average processing time is 1.25 s. As the material size increases, the processing time also increases.</p></sec><sec id="s4"><title>4. Discussion</title><p>There is no similar study in the literature to compare the results. Hence, we analyzed the results in terms of accuracy and computation time to see if it can be an alternative to the manual identification of the cross-sectional dimension of profiles by operators.</p><p>When the results in <xref ref-type="table" rid="table1">Table 1</xref> are evaluated, it is seen that the material size can be measured with an average deviation of 1.04% for each size. Almost 99%</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Profile size test results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Dimension (x, y)</th><th align="center" valign="middle"  colspan="2"  >Average Measured Dimension (mm)</th><th align="center" valign="middle"  colspan="3"  >X Difference (mm)</th><th align="center" valign="middle"  colspan="3"  >Y Difference (mm)</th></tr></thead><tr><td align="center" valign="middle" >X</td><td align="center" valign="middle" >Y</td><td align="center" valign="middle" >Min.</td><td align="center" valign="middle" >Max.</td><td align="center" valign="middle" >Avg</td><td align="center" valign="middle" >Min.</td><td align="center" valign="middle" >Max.</td><td align="center" valign="middle" >Avg</td></tr><tr><td align="center" valign="middle" >100 &#215; 100</td><td align="center" valign="middle" >100.3</td><td align="center" valign="middle" >100.3</td><td align="center" valign="middle" >0.00%</td><td align="center" valign="middle" >0.70%</td><td align="center" valign="middle" >0.20%</td><td align="center" valign="middle" >0.00%</td><td align="center" valign="middle" >0.40%</td><td align="center" valign="middle" >0.20%</td></tr><tr><td align="center" valign="middle" >30 &#215; 50</td><td align="center" valign="middle" >30.2</td><td align="center" valign="middle" >50.2</td><td align="center" valign="middle" >0.33%</td><td align="center" valign="middle" >3.64%</td><td align="center" valign="middle" >2.38%</td><td align="center" valign="middle" >0.40%</td><td align="center" valign="middle" >1.00%</td><td align="center" valign="middle" >0.64%</td></tr><tr><td align="center" valign="middle" >40 &#215; 100</td><td align="center" valign="middle" >39.9</td><td align="center" valign="middle" >100.2</td><td align="center" valign="middle" >1.00%</td><td align="center" valign="middle" >2.01%</td><td align="center" valign="middle" >1.20%</td><td align="center" valign="middle" >0.10%</td><td align="center" valign="middle" >0.50%</td><td align="center" valign="middle" >0.20%</td></tr><tr><td align="center" valign="middle" >40 &#215; 40</td><td align="center" valign="middle" >40.2</td><td align="center" valign="middle" >40.3</td><td align="center" valign="middle" >0.25%</td><td align="center" valign="middle" >2.74%</td><td align="center" valign="middle" >1.09%</td><td align="center" valign="middle" >0.00%</td><td align="center" valign="middle" >2.48%</td><td align="center" valign="middle" >1.99%</td></tr><tr><td align="center" valign="middle" >40 &#215; 60</td><td align="center" valign="middle" >40.2</td><td align="center" valign="middle" >60.2</td><td align="center" valign="middle" >0.25%</td><td align="center" valign="middle" >3.73%</td><td align="center" valign="middle" >2.14%</td><td align="center" valign="middle" >0.17%</td><td align="center" valign="middle" >1.33%</td><td align="center" valign="middle" >0.60%</td></tr><tr><td align="center" valign="middle" >45 &#215; 45</td><td align="center" valign="middle" >45.4</td><td align="center" valign="middle" >45.5</td><td align="center" valign="middle" >0.22%</td><td align="center" valign="middle" >1.32%</td><td align="center" valign="middle" >0.84%</td><td align="center" valign="middle" >0.44%</td><td align="center" valign="middle" >1.76%</td><td align="center" valign="middle" >0.97%</td></tr><tr><td align="center" valign="middle"  colspan="3"  >AVERAGE</td><td align="center" valign="middle" >0.00%</td><td align="center" valign="middle" >3.73%</td><td align="center" valign="middle" >1.31%</td><td align="center" valign="middle" >0.00%</td><td align="center" valign="middle" >2.48%</td><td align="center" valign="middle" >0.77%</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Profile test processing times</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Dimension (x, y)</th><th align="center" valign="middle"  colspan="3"  >Computation Time (ms)</th></tr></thead><tr><td align="center" valign="middle" >Min.</td><td align="center" valign="middle" >Max.</td><td align="center" valign="middle" >Avg</td></tr><tr><td align="center" valign="middle" >100 &#215; 100</td><td align="center" valign="middle" >1228</td><td align="center" valign="middle" >1407</td><td align="center" valign="middle" >1349</td></tr><tr><td align="center" valign="middle" >30 &#215; 50</td><td align="center" valign="middle" >1127</td><td align="center" valign="middle" >1390</td><td align="center" valign="middle" >1199</td></tr><tr><td align="center" valign="middle" >40 &#215; 100</td><td align="center" valign="middle" >1200</td><td align="center" valign="middle" >1510</td><td align="center" valign="middle" >1302</td></tr><tr><td align="center" valign="middle" >40 &#215; 40</td><td align="center" valign="middle" >1127</td><td align="center" valign="middle" >1477</td><td align="center" valign="middle" >1245</td></tr><tr><td align="center" valign="middle" >40 &#215; 60</td><td align="center" valign="middle" >1159</td><td align="center" valign="middle" >1239</td><td align="center" valign="middle" >1194</td></tr><tr><td align="center" valign="middle" >45 &#215; 45</td><td align="center" valign="middle" >1133</td><td align="center" valign="middle" >1362</td><td align="center" valign="middle" >1212</td></tr><tr><td align="center" valign="middle" >AVERAGE</td><td align="center" valign="middle" >1127</td><td align="center" valign="middle" >1510</td><td align="center" valign="middle" >1250</td></tr></tbody></table></table-wrap><p>accuracy is an indication of the success of the method used. There is no relationship between the deviation and the size of the material.</p><p>When the size of the profile increases, mostly the computation time also increases. However, there is not so large difference between computation time of each size. In this offline simulation platform, 1.25 s is in reasonable time for obtaining dimension of profile. In real-time application depending on the line speed, much faster response may be needed. In that case, either using more powerful computer or reducing some frames from the stream of the images will be a solution.</p><p>It is obvious that the identification of the edges of the profile highly depends on the image quality. Using a better quality laser light source and a camera with high resolution and selecting a suitable filter for wavelength of laser light will help the accuracy of the result further.</p></sec><sec id="s5"><title>5. Conclusions</title><p>In this study, it has been shown that the method developed for extracting the cross-sectional dimensions of a rectangular profile can be applied in the production environment.</p><p>The program has been tested on the square and rectangular profiles. According to the measurements made in the prototype measuring system, average accuracy is achieved at around 99%. Better results can be achieved by obtaining high-quality images. This barely depends on the measurement system items.</p><p>It is planned to develop the application to include I, H, and L profiles and the rail in future studies.</p><p>To speed up the image processing time a dedicated computer with high capacity can be used. With this design real-time implementation of the method can be implemented.</p><p>On the other hand, the method introduced in this study can be utilized to develop 3-dimensional applications for calculating the volumes of objects with different geometric shapes.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Orak, İ.M. and Şeker, Ş. (2023) Sectional Dimensions Identification of Metal Profile by Image Processing. Journal of Computer and Communications, 11, 107-120. https://doi.org/10.4236/jcc.2023.118008</p></sec></body><back><ref-list><title>References</title><ref id="scirp.127223-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Povorov, S. and Semenov, I. (2018) Method for Calculating of Cross-Sectional Dimensions of Sheet Blank at Intermediate Stages of Roller Forming Process. 2018 International Russian Automation Conference (RusAutoCon), Sochi, 9-16 September 2018, 1-5. https://doi.org/10.1109/RUSAUTOCON.2018.8501838</mixed-citation></ref><ref id="scirp.127223-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Ma, X., Ma, B., Li, J., Chen, P., Peng, Y. and Ren, Z. (2023) Effect of Strip Profile of Hot-Rolled Silicon Steel on Transverse Thickness Difference of Cold-Rolled Strip. Ironmaking &amp; Steelmaking. https://doi.org/10.1080/03019233.2023.2166264</mixed-citation></ref><ref id="scirp.127223-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kawasaki Steel Corporation (1996) Method and Apparatus for Measuring Cross Sectional Dimensions of Sectional Steel. Europe Patent No. EP 0736342B1.</mixed-citation></ref><ref id="scirp.127223-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wang, P., Lin, Y., Muroiwa, R., Pike, S. and Mihaylova, L. (2019) Computer Vision Methods for Automating High Temperature Steel Section Sizing in Thermal Images. 2019 Sensor Data Fusion: Trends, Solutions, Applications (SDF), Bonn, 15-17 October 2019, 1-6. https://doi.org/10.1109/SDF.2019.8916635</mixed-citation></ref><ref id="scirp.127223-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Boztoprak, H., &amp;Ccedil;a&amp;gbreve;lar, M.F. and Merdan, M. (2007) Alternatif Morfolojik Bir Y&amp;ouml;ntemle Plaka Yerini Saptama. XII. Elektrik, Elektronik, Bilgisayar, Biyomedikal M&amp;uuml;hendisli&amp;gbreve;i Ulusal Kongresi, Eski&amp;scedil;ehir, 14-18 November 2007.</mixed-citation></ref><ref id="scirp.127223-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kahraman, F., Demir&amp;ouml;z, B., Kurt, B. and G&amp;ouml;kmen, M. (2005) View Independent Robust License Plate Recognition System. Proceedings of the IEEE 13th Signal Processing and Communications Applications Conference, Kayseri, 16-18 May 2005, 479-482.</mixed-citation></ref><ref id="scirp.127223-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Lin, C.C. and Wang, M.S. (2012) A Vision Based Top-View Transformation Model for a Vehicle Parking Assistant. Sensors, 12, 4431-4446. https://doi.org/10.3390/s120404431</mixed-citation></ref><ref id="scirp.127223-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">&amp;Aring;gren, E. (2003) Lateral Position Detection Using a Vehicle-Mounted Camera. Master’s Thesis, Link&amp;ouml;-pings Universitet, Link&amp;ouml;ping.</mixed-citation></ref><ref id="scirp.127223-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Gonzalez, R.E.R.C. (2001) Digital Image Processing. Prentice-Hall, Hoboken.</mixed-citation></ref><ref id="scirp.127223-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Gonzales, R.C., Woods, R.E. and Eddings, S.L. (2004) Digital Image Processing Using Matlab. Pearson Education, Singapore.</mixed-citation></ref><ref id="scirp.127223-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Atal&amp;imath;, G., &amp;Ouml;zkan, S. and Karayel, D. (2016) Morfolojik G&amp;ouml;r&amp;uuml;nt&amp;uuml; &amp;Idot;&amp;scedil;leme Tekni&amp;gbreve;iile Yapay Sinir A&amp;gbreve;lar&amp;imath;nda G&amp;ouml;r&amp;uuml;nt&amp;uuml; Tahribat Analizi. Academic Platform Journal of Engineering and Science, 4, 1-7. https://doi.org/10.21541/apjes.27271</mixed-citation></ref><ref id="scirp.127223-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Karhan, M., Oktay, M.O., Karhan, Z. and Demir, H. (2011) Morfolojik G&amp;ouml;r&amp;uuml;nt&amp;uuml; &amp;Idot;&amp;scedil;leme Y&amp;ouml;ntemleri ile Kay&amp;imath;s&amp;imath;larda Yaprak Delen (&amp;Ccedil;il) Hastal&amp;imath;&amp;gbreve;&amp;imath; Sonucu Olu&amp;scedil;an Lekelerin Tespiti. 6th International Advanced Technologies Symposium (IATS’11), Elaz&amp;imath;&amp;gbreve;, 16-18 May 2011, 172-176.</mixed-citation></ref><ref id="scirp.127223-ref13"><label>13</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Aydo&amp;gbreve;an</surname><given-names> D. </given-names></name>,<etal>et al</etal>. (<year>2008</year>)<article-title>Hough D&amp;ouml;n&amp;uuml;&amp;scedil;&amp;uuml;m Y&amp;ouml;ntemi &amp;Idot;le Gravite Anomali Haritalar&amp;imath;ndan &amp;Ccedil;izgiselliklerin Saptanmas&amp;imath;: Orta Anadolu Uygulamas&amp;imath;</article-title><source> E-Journal of New World Sciences Academy</source><volume> 3</volume>,<fpage> 642</fpage>-<lpage>655</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.127223-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Jain, A.K. (1989) Fundamentals of Digital Image Processing. Prentice Hall, Cliffs.</mixed-citation></ref><ref id="scirp.127223-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Duda, R.O. and Hart, P.E. (1972) Use of the Hough Transformation to Detect Lines and Curves in Pictures. Communications of the ACM, 15, 11-15. https://doi.org/10.1145/361237.361242</mixed-citation></ref><ref id="scirp.127223-ref16"><label>16</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Parlak&amp;imath;</surname><given-names> A. </given-names></name>,<etal>et al</etal>. (<year>2003</year>)<article-title>Pappus ve Desargues Teoremleri</article-title><source> Matematik D&amp;uuml;nyas&amp;imath;</source><volume> 3</volume>,<fpage> 60</fpage>-<lpage>61</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.127223-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Solomon, C. and Breckon, T. (2011) Fundamentals of Digital Image Processing. John Wiley &amp; Sons, West Sussex. https://www.tbk.at https://doi.org/10.1002/9780470689776</mixed-citation></ref></ref-list></back></article>