{"id":10976,"date":"2022-11-01T01:33:17","date_gmt":"2022-11-01T01:33:17","guid":{"rendered":"https:\/\/www.szlaser.com\/?page_id=10976"},"modified":"2022-11-01T04:00:01","modified_gmt":"2022-11-01T04:00:01","slug":"optical-height-measurement-system","status":"publish","type":"page","link":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/","title":{"rendered":"Optical Height Measurement System Based on Binocular Camera"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1331.2px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-sep-none fusion-title-text fusion-title-size-one\"><h1 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:32;line-height:1.3;\"><h1>Optical Height Measurement System Based on Binocular Camera<\/h1><\/h1><\/div><div class=\"fusion-text fusion-text-1\"><p>According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system. By using the Matlab toolbox to calibrate the binocular camera to obtain many parameters required by the experiment, the paper establishes the relationship equation between the corrected world coordinates and the pixel coordinates through image correction technology. Under the programming environment of VS2015 combined with OpenCV, the stereo matching algorithm and the parallax theory are used to obtain the three-dimensional spatial information of the target surface. Finally, the space coordinates of the same target are obtained by selecting two characteristic points to achieve the purpose of height measurement. The experimental results show that the system can achieve 3D information measurement of real scenes well.<\/p>\n<\/div><div class=\"fusion-text fusion-text-2\"><h3>Key words<\/h3>\n<p>binocular stereo vision; camera calibration; disparity map; height measurement<\/p>\n<\/div><div class=\"fusion-title title fusion-title-2 fusion-sep-none fusion-title-text fusion-title-size-three\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.3;\"><h3>Introduction<\/h3><\/h3><\/div><div class=\"fusion-text fusion-text-3\"><p>Since ancient times, human beings have been trying to use tools to describe everything they see. With the continuous development of modern technology, new height measurement technologies are constantly being proposed. For colleges and universities, obtaining the size of surrounding objects more accurately and quickly in the laboratory is helpful to verify the experimental results in stages. Compared with ordinary measurement methods that are time-consuming, laborious and inefficient, binocular vision height measurement technology has Multi-target simultaneous detection, non-contact, high-precision, high-efficiency advantages.<\/p>\n<p>In the field of binocular vision measurement, many scholars at home and abroad have done a lot of research and practice. In 1966, the least squares method was first used by Hallert in the processing of calibrating observation data, and the application in the field stereo coordinate measuring instrument achieved breakthrough and accurate results. Zhou Kejie et al. introduced a 3D measurement system using a binocular camera combined with encoded structured light. The system can obtain a 3D point cloud matrix by moving the measuring instrument, and then complete the measurement of large curved surfaces. Although the current theoretical research on stereo vision technology has gradually improved, the requirements in different scenarios are also different, which puts forward higher requirements for the robustness and stability of the entire stereo vision system.<\/p>\n<p>In order to improve the accuracy of the obtained camera-related parameters, the calibration method of binocular vision is mainly improved, and the method of pre-calibration + single-target + dual-target calibration is pioneered for stereo calibration, and the experimental results are finally demonstrated. This method works.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-3 fusion-sep-none fusion-title-text fusion-title-size-three\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.3;\"><h3>1. The principle of binocular height measurement<\/h3><\/h3><\/div><div class=\"fusion-text fusion-text-4\"><p>As an important branch of machine vision, binocular vision measurement technology uses a pair of binocular modules to simulate the visual mechanism of the human eye, so as to obtain two images of the same scene from two different perspectives, and then establish a corresponding mathematical model based on the principle of parallax. To restore the depth information in the scene, and finally use the similarity principle to calculate the spatial three-dimensional coordinates of the highest and lowest points on the same surface of the target object.<\/p>\n<p>The binocular stereo vision model is shown in Figure 1. In Figure 1, P<sub>L<\/sub> and P<sub>R<\/sub> are the projections of the point P (x, y, z) on the imaging planes of the left and right cameras respectively, O<sub>R<\/sub> and O<sub>L<\/sub> are the optical centers of the left and right cameras, n is the principal optical axis vector of the camera, and \u0192 is the focal length of the camera. . If the projection coordinates P<sub>L<\/sub> and P<sub>R<\/sub> of the spatial point P on the left and right image planes and the camera calibration parameters are known, the three-dimensional spatial coordinates of the point P can be calculated.<\/p>\n<div id=\"attachment_10978\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10978\" class=\"lazyload wp-image-10978 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png\" alt=\"\" width=\"800\" height=\"441\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27441%27%20viewBox%3D%270%200%20800%20441%27%3E%3Crect%20width%3D%27800%27%20height%3D%27441%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--200x110.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--300x165.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--400x220.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--600x331.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--768x423.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--1024x564.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--1200x661.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model-.png 1278w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10978\" class=\"wp-caption-text\">Fig.1 Binocular stereo vision model<\/p><\/div>\n<\/div><div class=\"fusion-title title fusion-title-4 fusion-sep-none fusion-title-text fusion-title-size-four\"><h4 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:22;--minFontSize:22;line-height:1.34;\"><h4>1.1 Dual goal setting<\/h4><\/h4><\/div><div class=\"fusion-text fusion-text-5\"><p>Binocular camera calibration requires the determination of the position of each feature point on the reference object relative to the world coordinate system (X<sub>W<\/sub>, Y<sub>W<\/sub>, Z<sub>W<\/sub>), and the corresponding relationship between the image plane coordinates and the three-dimensional space coordinates. This mapping relationship is mainly determined by the binocular camera. , the external parameters are determined. In other words, the main purpose of binocular camera calibration is to obtain the internal and external parameters of the camera and the corresponding distortion coefficients, because this will directly affect the results of binocular measurement.<\/p>\n<p>The calibration method adopts the single-plane checkerboard method proposed by Professor Zhang Zhengyou, hereinafter referred to as Zhang&#8217;s calibration method, and the calibration board is shown in Figure 2. Zhang&#8217;s calibration method directly fuses the world coordinate system with the calibration plate plane, that is, Z<sub>W<\/sub> = 0, the homogeneous coordinates of any point P on the calibration plate plane are (X<sub>W<\/sub>, Y<sub>W<\/sub>, 0, 1), which is expressed in the image pixel coordinate system as (u, \u03bd, 1 ), image physical coordinate system (x, y, 1 ), camera coordinate system (X<sub>C<\/sub>, Y<sub>C<\/sub>, Z<sub>C<\/sub>), expressed in matrix form as:<\/p>\n<p><img decoding=\"async\" class=\"lazyload aligncenter wp-image-10979 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-800x900.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-800x900.png\" alt=\"\" width=\"800\" height=\"900\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27900%27%20viewBox%3D%270%200%20800%20900%27%3E%3Crect%20width%3D%27800%27%20height%3D%27900%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-200x225.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-267x300.png 267w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-400x450.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-600x675.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-768x864.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-800x900.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-911x1024.png 911w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC-1200x1349.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/camera-coordinate-system-XC-YC-ZC.png 1254w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<\/div><div class=\"fusion-text fusion-text-6\"><p>Among them, M<sub>1<\/sub> represents the built-in parameter matrix of the camera, which is determined by f<sub>x<\/sub>, f<sub>y<\/sub>, u<sub>0<\/sub>, \u03bd<sub>0<\/sub>, and \u03b3, but \u03b3 is generally regarded as 0 and used. These five parameters are only related to the internal structure of the camera, and M<sub>2<\/sub> contains the rotation matrix M<sub>R<\/sub> and translation matrix M<sub>T<\/sub>. .<\/p>\n<div id=\"attachment_10980\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10980\" class=\"lazyload wp-image-10980 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--800x354.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--800x354.png\" alt=\"\" width=\"800\" height=\"354\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27354%27%20viewBox%3D%270%200%20800%20354%27%3E%3Crect%20width%3D%27800%27%20height%3D%27354%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--200x88.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--300x133.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--400x177.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--600x265.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--768x339.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--800x354.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--1024x453.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board--1200x530.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-2-Calibration-board-.png 1276w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10980\" class=\"wp-caption-text\">Fig. 2 Calibration board<\/p><\/div>\n<p>Since many parameters are obtained in the calibration stage, in order to make the calibration result more accurate, the method of pre-calibration + single-target calibration + dual-target calibration is creatively used.<\/p>\n<p>The pre-calibration is shown in Figure 3. In the pre-calibration stage, Matlab&#8217;s automatic calibration toolbox-Stereo Camera Calibrator was used to screen and calibrate the collected 24 sets of checkerboard images, and then the image pairs with large errors in the calibration process were eliminated according to the Mean Error Pixels index.<\/p>\n<div id=\"attachment_10981\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10981\" class=\"lazyload wp-image-10981 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-800x675.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-800x675.png\" alt=\"\" width=\"800\" height=\"675\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27675%27%20viewBox%3D%270%200%20800%20675%27%3E%3Crect%20width%3D%27800%27%20height%3D%27675%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-200x169.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-300x253.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-400x338.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-600x506.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-768x648.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-800x675.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-1024x864.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration-1200x1013.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-3-Pre-calibration.png 1280w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10981\" class=\"wp-caption-text\">Fig. 3 Pre-calibration<\/p><\/div>\n<p>The single target setting is shown in Figure 4. The corner selection is shown in Figure 4(a). In the second stage, use the calib toolbox to manually calibrate the filtered left and right views respectively. This process mainly includes manually setting the corner points and automatically extracting the corner points, thereby obtaining two sets of parameters for single-object calibration, see Table 1.<\/p>\n<p style=\"text-align: center;\"><strong>Table 1 Build-in parameters of left and right camera<\/strong><\/p>\n\n<div class=\"wpdt-c wdt-skin-material\">\n    \n<input type=\"hidden\" id=\"wdtNonceFrontendEdit_411\" name=\"wdtNonceFrontendEdit_411\" value=\"4c10f7c9f9\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/10976\" \/>    <input type=\"hidden\" id=\"table_1_desc\" value='{\"tableId\":\"table_1\",\"tableType\":\"manual\",\"selector\":\"#table_1\",\"responsive\":false,\"responsiveAction\":\"icon\",\"editable\":false,\"inlineEditing\":false,\"infoBlock\":false,\"pagination\":0,\"paginationAlign\":\"right\",\"paginationLayout\":\"full_numbers\",\"file_location\":\"\",\"tableSkin\":\"material\",\"globalSearch\":false,\"showRowsPerPage\":false,\"popoverTools\":false,\"hideBeforeLoad\":false,\"number_format\":2,\"decimalPlaces\":2,\"spinnerSrc\":\"https:\\\/\\\/www.szlaser.com\\\/wp-content\\\/plugins\\\/wpdatatables\\\/assets\\\/\\\/img\\\/spinner.gif\",\"groupingEnabled\":false,\"tableWpId\":\"411\",\"dataTableParams\":{\"sDom\":\"BT\\u003C\\u0027clear\\u0027\\u003Et\",\"bSortCellsTop\":false,\"bFilter\":true,\"aLengthMenu\":[[1,5,10,25,50,100,-1],[1,5,10,25,50,100,\"All\"]],\"iDisplayLength\":10,\"columnDefs\":[{\"sType\":\"formatted-num\",\"wdtType\":\"int\",\"bVisible\":false,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"wdt_ID\",\"origHeader\":\"wdt_ID\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\"numdata integer  column-wdt_id\",\"aTargets\":[0]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"attributes\",\"origHeader\":\"attributes\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-attributes\",\"aTargets\":[1]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"leftcamera\",\"origHeader\":\"leftcamera\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-leftcamera\",\"aTargets\":[2]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"rightcamera\",\"origHeader\":\"rightcamera\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-rightcamera\",\"aTargets\":[3]}],\"bAutoWidth\":false,\"order\":[[0,\"asc\"]],\"ordering\":false,\"oLanguage\":{\"sSearchPlaceholder\":\"\"},\"buttons\":[],\"bProcessing\":false,\"serverSide\":true,\"ajax\":{\"url\":\"https:\\\/\\\/www.szlaser.com\\\/wp-admin\\\/admin-ajax.php?action=get_wdtable&table_id=411\",\"type\":\"POST\"},\"oSearch\":{\"bSmart\":false,\"bRegex\":false,\"sSearch\":\"\"}},\"tabletWidth\":\"1024\",\"mobileWidth\":\"480\",\"advancedFilterEnabled\":false,\"serverSide\":true,\"autoRefreshInterval\":0,\"processing\":true,\"fnServerData\":true,\"columnsFixed\":0,\"sumFunctionsLabel\":\"\",\"avgFunctionsLabel\":\"\",\"minFunctionsLabel\":\"\",\"maxFunctionsLabel\":\"szlasers@gmail.com\",\"columnsDecimalPlaces\":{\"wdt_ID\":-1,\"attributes\":-1,\"leftcamera\":-1,\"rightcamera\":-1},\"columnsThousandsSeparator\":{\"wdt_ID\":0},\"sumColumns\":[],\"avgColumns\":[],\"sumAvgColumns\":[],\"timeFormat\":\"h:i A\",\"datepickFormat\":\"dd\\\/mm\\\/yy\"}'\/>\n\n    <table id=\"table_1\"\n           class=\"  display nowrap data-t data-t wpDataTable wpDataTableID-411\"\n           style=\"\"\n           data-described-by='table_1_desc'\n           data-wpdatatable_id=\"411\">\n        \n        <!-- Table header -->\n        \n<thead>\n<tr>\n                    <th\n                        class=\" wdtheader sort numdata integer \"\n        style=\"\">wdt_ID<\/th>        <th\n        data-class=\"expand\"                class=\" wdtheader sort \"\n        style=\"\">Attributes<\/th>        <th\n                        class=\" wdtheader sort \"\n        style=\"\">Left Camera<\/th>        <th\n                        class=\" wdtheader sort \"\n        style=\"\">Right Camera<\/th>    <\/tr>\n<\/thead>\n        <!-- \/Table header -->\n\n        <!-- Table body -->\n        \n<tbody>\n            <tr id=\"table_411_row_0\">\n                            <td style=\"\">1<\/td>\n                            <td style=\"\">Focal Length<\/td>\n                            <td style=\"\">[1 230.788 42   1 244.18806] \u00b1 [2.853 18   2.978 42]<\/td>\n                            <td style=\"\">[1 247.161 89   1 234.775 46] \u00b1 [2.395 85  2.711 14]<\/td>\n                    <\/tr>\n                <tr id=\"table_411_row_1\">\n                            <td style=\"\">2<\/td>\n                            <td style=\"\">Main Point<\/td>\n                            <td style=\"\">[608.242 70   257.838 62] \u00b1 [4.342 02  4.447 98]<\/td>\n                            <td style=\"\">[589.279 35  272.085 24] \u00b1 [4.626 46  4.436 35]<\/td>\n                    <\/tr>\n                <tr id=\"table_411_row_2\">\n                            <td style=\"\">3<\/td>\n                            <td style=\"\">Distortion Coefficient<\/td>\n                            <td style=\"\">[0.253 87  -0.506 67  -0.052 99  -0.012 18  0.000 00] \u00b1 \n[0.075 60  0.582 88  0.009 54   0.003 38    0.000 00]\n<\/td>\n                            <td style=\"\">[0.239 34  -0.186 53  -0.059 75  -0.021 71  0.000 00]\u00b1\n[0.071 40  0.285 46   0.010 34   0.004 28   0.000 00] \n<\/td>\n                    <\/tr>\n    <\/tbody>        <!-- \/Table body -->\n\n        <!-- Table footer -->\n        \n        <!-- \/Table footer -->\n\n    <\/table>\n\n<\/div><style>\ntable.wpDataTable { table-layout: fixed !important; }\ntable.wpDataTable td, table.wpDataTable th { white-space: normal !important; }\ntable.wpDataTable td.numdata { text-align: right !important; }\n<\/style>\n<style>\n\n\/* table font color *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-family: Lucida Console, Monaco, monospace !important;\n}\n\/* table font size *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-size:12px !important;\n}\n \n<\/style>\n<style>\n<\/style>\n<style>\n                            \n                                \/* table font color *\/\n    .wpdt-c.wpDataTablesWrapper table#wpdtSimpleTable-411,\n    .wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-411 {\n        font-family: Lucida Console, Monaco, monospace !important;\n    }\n                \n                <\/style>\n\n<p>Figure 4(b) shows the relative three-dimensional space diagram between the monocular lens and the calibration board.<\/p>\n<div id=\"attachment_10982\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10982\" class=\"lazyload wp-image-10982 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-800x1197.jpg\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-800x1197.jpg\" alt=\"\" width=\"800\" height=\"1197\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%271197%27%20viewBox%3D%270%200%20800%201197%27%3E%3Crect%20width%3D%27800%27%20height%3D%271197%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-200x299.jpg 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-201x300.jpg 201w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-400x598.jpg 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-600x898.jpg 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-684x1024.jpg 684w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-768x1149.jpg 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-800x1197.jpg 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-1027x1536.jpg 1027w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration-1200x1795.jpg 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-4-Monocular-calibration.jpg 1282w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10982\" class=\"wp-caption-text\">Fig. 4 Monocular calibration<\/p><\/div>\n<\/div><div class=\"fusion-text fusion-text-7\"><p>Next, in the third stage, the Stereo Calibration toolbox is used to integrate the results of the single-objective targeting by importing the results of the second stage. The three-dimensional space map of the two-target fixed is shown in Figure 5. The spatial configuration and calibration plane of the two cameras are displayed in the form of a 3D map. After the global stereo optimization, the parameter matrices M<sup>r<\/sup><sub>1<\/sub> and M<sup>l<\/sup><sub>1<\/sub> of the left and right cameras, as well as the rotation matrix M<sub>R<\/sub> and the translation matrix M<sub>T<\/sub> are finally obtained. The calculated results obtained by the study are:<\/p>\n<p><img decoding=\"async\" class=\"lazyload aligncenter wp-image-10984 size-fusion-600\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-600x551.jpg\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-600x551.jpg\" alt=\"\" width=\"600\" height=\"551\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27600%27%20height%3D%27551%27%20viewBox%3D%270%200%20600%20551%27%3E%3Crect%20width%3D%27600%27%20height%3D%27551%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-200x184.jpg 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-300x276.jpg 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-400x367.jpg 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-600x551.jpg 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-768x705.jpg 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-800x735.jpg 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1-1024x941.jpg 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/parameter-matrices-M-r-1-and-M-l-1.jpg 1080w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<div id=\"attachment_10985\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10985\" class=\"lazyload wp-image-10985 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-800x602.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-800x602.png\" alt=\"\" width=\"800\" height=\"602\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27602%27%20viewBox%3D%270%200%20800%20602%27%3E%3Crect%20width%3D%27800%27%20height%3D%27602%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-200x151.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-300x226.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-400x301.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-600x452.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-768x578.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-800x602.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-1024x771.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration-1200x903.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-5-Three-dimensional-space-map-of-binocular-calibration.png 1278w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10985\" class=\"wp-caption-text\">Fig. 5 Three-dimensional space map of binocular calibration<\/p><\/div>\n<\/div><div class=\"fusion-title title fusion-title-5 fusion-sep-none fusion-title-text fusion-title-size-four\"><h4 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:22;--minFontSize:22;line-height:1.34;\"><h4>1.2 Stereo correction<\/h4><\/h4><\/div><div class=\"fusion-text fusion-text-8\"><p>In order to estimate the depth information of a point through two images, it is necessary to strictly ensure that the point can be matched in the two images. At the same time, in order to improve the matching efficiency, the imaging planes of the left and right cameras should be on the same plane. However, in practice, it is not possible to keep the optical centers O<sub>R<\/sub> and O<sub>L<\/sub> on the same axis only by laying the camera flat, see Figure 1. At this time, it is necessary to use the image stereo correction technology to re-project two different image planes onto the same plane, so that the two images meet the matching conditions.<\/p>\n<p>The corrected binocular stereo vision model is shown in Figure 6. It can be seen from Figure 6 that after stereo correction, the image distortion is eliminated, the X-axis of the two cameras are coincident, the optical centers O<sub>R<\/sub> and O<sub>L<\/sub> of the left and right cameras are the baseline B, the optical axis is perpendicular to the camera imaging plane, and the left and right imaging planes are Each row is strictly horizontally aligned, satisfying the epipolar constraints, and the search range of matching points is also reduced from two-dimensional to one-dimensional. Under this structure, it is very convenient to find the matching relationship between the projections u<sub>L<\/sub> and u<sub>R<\/sub> of point P on the left and right imaging planes.<\/p>\n<div id=\"attachment_10986\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10986\" class=\"lazyload wp-image-10986 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-800x500.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-800x500.png\" alt=\"\" width=\"800\" height=\"500\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27500%27%20viewBox%3D%270%200%20800%20500%27%3E%3Crect%20width%3D%27800%27%20height%3D%27500%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-200x125.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-300x187.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-400x250.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-600x375.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-768x480.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-800x500.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-1024x639.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction-1200x749.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-6-Binocular-stereo-vision-model-after-stereo-correction.png 1278w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10986\" class=\"wp-caption-text\">Fig. 6 Binocular stereo vision model after stereo correction<\/p><\/div>\n<\/div><div class=\"fusion-title title fusion-title-6 fusion-sep-none fusion-title-text fusion-title-size-four\"><h4 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:22;--minFontSize:22;line-height:1.34;\"><h4>1.3 Stereo matching<\/h4><\/h4><\/div><div class=\"fusion-text fusion-text-9\"><p>Stereo matching is the core process of binocular stereo measurement. According to the input reference image R and target image T, the disparity map corresponding to the reference image R can be obtained, and then the three-dimensional space information of the target can be more accurately calculated, which is the process of binocular matching.<\/p>\n<p>After the stereo correction, the imaging planes of the left and right cameras are coincident, so for the convenience of explanation, Fig 6. The left and right image pairs after stereo correction are shown in Figure 7.<\/p>\n<div id=\"attachment_10990\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10990\" class=\"lazyload wp-image-10990 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-800x296.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-800x296.png\" alt=\"\" width=\"800\" height=\"296\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27296%27%20viewBox%3D%270%200%20800%20296%27%3E%3Crect%20width%3D%27800%27%20height%3D%27296%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-200x74.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-300x111.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-400x148.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-600x222.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-768x284.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-800x296.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-1024x379.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction-1200x444.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.7-Left-and-right-image-pairs-after-stereo-correction.png 1276w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10990\" class=\"wp-caption-text\">Fig.7 Left and right image pairs after stereo correction<\/p><\/div>\n<p>The principle of triangulation is shown in Fig 8. It can be seen from Figure 8 that under the condition that the optical axis is parallel to the focal length f of the camera lens, B is the baseline length, the Y axis is perpendicular to the screen and points inward, and the target point P (x, y, z) is imaged on the left and right camera imaging planes.<\/p>\n<div id=\"attachment_10991\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10991\" class=\"lazyload wp-image-10991 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--800x413.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--800x413.png\" alt=\"\" width=\"800\" height=\"413\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27413%27%20viewBox%3D%270%200%20800%20413%27%3E%3Crect%20width%3D%27800%27%20height%3D%27413%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--200x103.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--300x155.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--400x206.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--600x309.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--768x396.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--800x413.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--1024x528.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle--1200x619.png 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-8-Triangulation-principle-.png 1280w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10991\" class=\"wp-caption-text\">Fig. 8 Triangulation principle<\/p><\/div>\n<p>The coordinates are P<sub>L<\/sub> and P<sub>R<\/sub> respectively, \u03b1 is the width of the camera lens, the distance from the center of the left and right lenses to P<sub>L<\/sub>, P<sub>R<\/sub> is m, n, according to the principle of triangulation, it can be deduced:<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"lazyload aligncenter wp-image-10987 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-800x344.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-800x344.png\" alt=\"\" width=\"800\" height=\"344\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27344%27%20viewBox%3D%270%200%20800%20344%27%3E%3Crect%20width%3D%27800%27%20height%3D%27344%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-200x86.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-300x129.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-400x172.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-600x258.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-768x330.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-800x344.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively-1024x441.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/PL-and-PR-respectively.png 1162w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>From the above formula, we can get:<\/p>\n<p><img decoding=\"async\" class=\"lazyload aligncenter size-fusion-800 wp-image-10988\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-800x145.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-800x145.png\" alt=\"\" width=\"800\" height=\"145\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27145%27%20viewBox%3D%270%200%20800%20145%27%3E%3Crect%20width%3D%27800%27%20height%3D%27145%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-200x36.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-300x54.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-400x73.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-600x109.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-768x139.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-800x145.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz-1024x186.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/formula-z-fz.png 1080w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The same can be obtained:<\/p>\n<p><img decoding=\"async\" class=\"lazyload aligncenter size-fusion-800 wp-image-10989\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-800x146.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-800x146.png\" alt=\"\" width=\"800\" height=\"146\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27146%27%20viewBox%3D%270%200%20800%20146%27%3E%3Crect%20width%3D%27800%27%20height%3D%27146%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-200x37.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-300x55.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-400x73.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-600x110.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-768x140.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-800x146.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x-1024x187.png 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/obtained-x.png 1040w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<\/div><div class=\"fusion-text fusion-text-10\"><p>The obtained (x, y, z) at this time is the coordinates of the target in the world coordinate system (X<sub>W<\/sub>, Y<sub>W<\/sub>, Z<sub>W<\/sub>), where the left and right camera focal length \u0192 and baseline length B are constants obtained before matching, and the parallax dis, that is, the correspondence between the left and right camera pixels, is the core element to obtain the depth z.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-7 fusion-sep-none fusion-title-text fusion-title-size-three\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.3;\"><h3>2. Experiment and result analysis<\/h3><\/h3><\/div><div class=\"fusion-title title fusion-title-8 fusion-sep-none fusion-title-text fusion-title-size-four\"><h4 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:22;--minFontSize:22;line-height:1.34;\"><h4>2.1 Construction of experimental platform<\/h4><\/h4><\/div><div class=\"fusion-text fusion-text-11\"><p>One of the characteristics of the binocular stereo vision system used in the laboratory is low cost and simple operation. Its core components are a binocular vision module, a special bracket and a computer. Use a USB data cable to connect the computer and the binocular camera. The physical map of the binocular vision module is shown in Figure 9, and the main parameters are shown in Table 2.<\/p>\n<div id=\"attachment_10992\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10992\" class=\"lazyload wp-image-10992 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--800x271.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--800x271.png\" alt=\"\" width=\"800\" height=\"271\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27271%27%20viewBox%3D%270%200%20800%20271%27%3E%3Crect%20width%3D%27800%27%20height%3D%27271%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--200x68.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--300x102.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--400x136.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--600x204.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--768x261.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map--800x271.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.9-Binocular-camera-physical-map-.png 890w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10992\" class=\"wp-caption-text\">Fig.9 Binocular camera physical map<\/p><\/div>\n<p style=\"text-align: center;\"><strong>Table 2 Binocular camera parameters<\/strong><\/p>\n\n<div class=\"wpdt-c wdt-skin-material\">\n    \n<input type=\"hidden\" id=\"wdtNonceFrontendEdit_412\" name=\"wdtNonceFrontendEdit_412\" value=\"195b75334d\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/10976\" \/>    <input type=\"hidden\" id=\"table_2_desc\" value='{\"tableId\":\"table_2\",\"tableType\":\"manual\",\"selector\":\"#table_2\",\"responsive\":true,\"responsiveAction\":\"icon\",\"editable\":false,\"inlineEditing\":false,\"infoBlock\":false,\"pagination\":0,\"paginationAlign\":\"right\",\"paginationLayout\":\"full_numbers\",\"file_location\":\"\",\"tableSkin\":\"material\",\"globalSearch\":false,\"showRowsPerPage\":false,\"popoverTools\":false,\"hideBeforeLoad\":false,\"number_format\":2,\"decimalPlaces\":2,\"spinnerSrc\":\"https:\\\/\\\/www.szlaser.com\\\/wp-content\\\/plugins\\\/wpdatatables\\\/assets\\\/\\\/img\\\/spinner.gif\",\"groupingEnabled\":false,\"tableWpId\":\"412\",\"dataTableParams\":{\"sDom\":\"BT\\u003C\\u0027clear\\u0027\\u003Et\",\"bSortCellsTop\":false,\"bFilter\":true,\"aLengthMenu\":[[1,5,10,25,50,100,-1],[1,5,10,25,50,100,\"All\"]],\"iDisplayLength\":10,\"columnDefs\":[{\"sType\":\"formatted-num\",\"wdtType\":\"int\",\"bVisible\":false,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"wdt_ID\",\"origHeader\":\"wdt_ID\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\"numdata integer  column-wdt_id\",\"aTargets\":[0]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"parametertype\",\"origHeader\":\"parametertype\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-parametertype\",\"aTargets\":[1]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"specificconfiguration\",\"origHeader\":\"specificconfiguration\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-specificconfiguration\",\"aTargets\":[2]}],\"bAutoWidth\":false,\"order\":[[0,\"asc\"]],\"ordering\":false,\"oLanguage\":{\"sSearchPlaceholder\":\"\"},\"buttons\":[],\"bProcessing\":false,\"serverSide\":true,\"ajax\":{\"url\":\"https:\\\/\\\/www.szlaser.com\\\/wp-admin\\\/admin-ajax.php?action=get_wdtable&table_id=412\",\"type\":\"POST\"},\"oSearch\":{\"bSmart\":false,\"bRegex\":false,\"sSearch\":\"\"}},\"tabletWidth\":\"1024\",\"mobileWidth\":\"480\",\"advancedFilterEnabled\":false,\"serverSide\":true,\"autoRefreshInterval\":0,\"processing\":true,\"fnServerData\":true,\"columnsFixed\":0,\"sumFunctionsLabel\":\"\",\"avgFunctionsLabel\":\"\",\"minFunctionsLabel\":\"\",\"maxFunctionsLabel\":\"szlasers@gmail.com\",\"columnsDecimalPlaces\":{\"wdt_ID\":-1,\"parametertype\":-1,\"specificconfiguration\":-1},\"columnsThousandsSeparator\":{\"wdt_ID\":0},\"sumColumns\":[],\"avgColumns\":[],\"sumAvgColumns\":[],\"timeFormat\":\"h:i A\",\"datepickFormat\":\"dd\\\/mm\\\/yy\"}'\/>\n\n    <table id=\"table_2\"\n           class=\" responsive display nowrap data-t data-t wpDataTable wpDataTableID-412\"\n           style=\"\"\n           data-described-by='table_2_desc'\n           data-wpdatatable_id=\"412\">\n        \n        <!-- Table header -->\n        \n<thead>\n<tr>\n                    <th\n                        class=\" wdtheader sort numdata integer \"\n        style=\"\">wdt_ID<\/th>        <th\n        data-class=\"expand\"                class=\" wdtheader sort \"\n        style=\"\">Parameter Type<\/th>        <th\n                        class=\" wdtheader sort \"\n        style=\"\">Specific configuration<\/th>    <\/tr>\n<\/thead>\n        <!-- \/Table header -->\n\n        <!-- Table body -->\n        \n<tbody>\n            <tr id=\"table_412_row_0\">\n                            <td style=\"\">1<\/td>\n                            <td style=\"\">Interface<\/td>\n                            <td style=\"\">USB3.0 (compatible USB2.0)<\/td>\n                    <\/tr>\n                <tr id=\"table_412_row_1\">\n                            <td style=\"\">2<\/td>\n                            <td style=\"\">Transfer speed\/(MB\u00b7S^-1)<\/td>\n                            <td style=\"\">\u2265 100<\/td>\n                    <\/tr>\n                <tr id=\"table_412_row_2\">\n                            <td style=\"\">3<\/td>\n                            <td style=\"\">Resolution<\/td>\n                            <td style=\"\">1280\u00d7480<\/td>\n                    <\/tr>\n                <tr id=\"table_412_row_3\">\n                            <td style=\"\">4<\/td>\n                            <td style=\"\">Frame rate\/fps<\/td>\n                            <td style=\"\">30<\/td>\n                    <\/tr>\n                <tr id=\"table_412_row_4\">\n                            <td style=\"\">5<\/td>\n                            <td style=\"\">Interface Protocol<\/td>\n                            <td style=\"\">UVC protocol<\/td>\n                    <\/tr>\n                <tr id=\"table_412_row_5\">\n                            <td style=\"\">6<\/td>\n                            <td style=\"\">Size\/(mm*mm)<\/td>\n                            <td style=\"\">74\u00d723<\/td>\n                    <\/tr>\n    <\/tbody>        <!-- \/Table body -->\n\n        <!-- Table footer -->\n        \n        <!-- \/Table footer -->\n\n    <\/table>\n\n<\/div><style>\ntable.wpDataTable { table-layout: fixed !important; }\ntable.wpDataTable td, table.wpDataTable th { white-space: normal !important; }\ntable.wpDataTable td.numdata { text-align: right !important; }\n<\/style>\n<style>\n\n\/* table font color *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-family: Lucida Console, Monaco, monospace !important;\n}\n\/* table font size *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-size:12px !important;\n}\n \n<\/style>\n<style>\n<\/style>\n<style>\n                            \n                                \/* table font color *\/\n    .wpdt-c.wpDataTablesWrapper table#wpdtSimpleTable-412,\n    .wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-412 {\n        font-family: Lucida Console, Monaco, monospace !important;\n    }\n                \n                <\/style>\n\n<p>The construction of the platform is also very fast, just fix the binocular camera on the bracket, then fix the bracket on the laboratory table, and finally use the USB data cable to connect with the notebook to complete. The software platform of the entire binocular ranging system is based on the Win10 desktop operating system, the calibration box tool of Matlab2010b is used for camera calibration, and the operating environment of the stereo matching algorithm is Microsoft Visual Studio 2013. The specific operation process of the whole system is shown in Figure 10.<\/p>\n<div id=\"attachment_10996\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10996\" class=\"lazyload wp-image-10996 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-800x475.jpg\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-800x475.jpg\" alt=\"\" width=\"800\" height=\"475\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27475%27%20viewBox%3D%270%200%20800%20475%27%3E%3Crect%20width%3D%27800%27%20height%3D%27475%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-200x119.jpg 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-300x178.jpg 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-400x237.jpg 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-600x356.jpg 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-768x456.jpg 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-800x475.jpg 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-1024x608.jpg 1024w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process-1200x712.jpg 1200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-10-Binocular-stereo-vision-ranging-process.jpg 1284w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10996\" class=\"wp-caption-text\">Fig. 10 Binocular stereo vision ranging process<\/p><\/div>\n<\/div><div class=\"fusion-title title fusion-title-9 fusion-sep-none fusion-title-text fusion-title-size-four\"><h4 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:22;--minFontSize:22;line-height:1.34;\"><h4>2.2 Experimental results<\/h4><\/h4><\/div><div class=\"fusion-text fusion-text-12\"><p style=\"text-align: left;\">The SGBM algorithm in the semi-global matching algorithm is used to compare with the BM (Block Matching) algorithm in the local stereo matching algorithm. Figure 11 shows the output disparity map after performing stereo matching on Figure 7 using the BM algorithm. It can be seen from the disparity map that the general outline of the entire scene is basically restored, but due to the large number of incorrect matching points, the information loss is very serious, and the overall recognition of the disparity map is relatively poor, so it has no reference value<\/p>\n<div id=\"attachment_10993\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10993\" class=\"lazyload wp-image-10993 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-800x475.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-800x475.png\" alt=\"\" width=\"800\" height=\"475\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27475%27%20viewBox%3D%270%200%20800%20475%27%3E%3Crect%20width%3D%27800%27%20height%3D%27475%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-200x119.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-300x178.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-400x238.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-600x357.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-768x456.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map-800x475.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-11-BM-algorithm-output-disparity-map.png 966w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10993\" class=\"wp-caption-text\">Fig. 11 BM algorithm output disparity map<\/p><\/div>\n<p>Figure 12 shows the output disparity map after stereo matching of Figure 7 using the SGBM algorithm. Although the information is also missing, the overall contour is more complete, the resolution is higher, and there are fewer incorrect matching points than the results of the BM algorithm.<\/p>\n<div id=\"attachment_10994\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10994\" class=\"lazyload wp-image-10994 size-fusion-800\" src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-800x449.png\" data-orig-src=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-800x449.png\" alt=\"\" width=\"800\" height=\"449\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%27449%27%20viewBox%3D%270%200%20800%20449%27%3E%3Crect%20width%3D%27800%27%20height%3D%27449%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-200x112.png 200w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-300x168.png 300w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-400x224.png 400w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-600x337.png 600w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-768x431.png 768w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map-800x449.png 800w, https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.-12-SGBM-algorithm-output-disparity-map.png 966w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-10994\" class=\"wp-caption-text\">Fig. 12 SGBM algorithm output disparity map<\/p><\/div>\n<\/div><div class=\"fusion-text fusion-text-13\"><p>Due to the limited experimental conditions, only two matching algorithms are used temporarily. The error results are shown in Table 3. The measurement results of this system are relatively accurate, and the error is controlled at about 1%.<\/p>\n<p style=\"text-align: center;\"><strong>Table 3 Experimental data and error analysis<\/strong><\/p>\n\n<div class=\"wpdt-c wdt-skin-material\">\n    \n<input type=\"hidden\" id=\"wdtNonceFrontendEdit_413\" name=\"wdtNonceFrontendEdit_413\" value=\"a10d5ce65b\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/10976\" \/>    <input type=\"hidden\" id=\"table_3_desc\" value='{\"tableId\":\"table_3\",\"tableType\":\"manual\",\"selector\":\"#table_3\",\"responsive\":true,\"responsiveAction\":\"icon\",\"editable\":false,\"inlineEditing\":false,\"infoBlock\":false,\"pagination\":0,\"paginationAlign\":\"right\",\"paginationLayout\":\"full_numbers\",\"file_location\":\"\",\"tableSkin\":\"material\",\"globalSearch\":false,\"showRowsPerPage\":false,\"popoverTools\":false,\"hideBeforeLoad\":false,\"number_format\":2,\"decimalPlaces\":2,\"spinnerSrc\":\"https:\\\/\\\/www.szlaser.com\\\/wp-content\\\/plugins\\\/wpdatatables\\\/assets\\\/\\\/img\\\/spinner.gif\",\"groupingEnabled\":false,\"tableWpId\":\"413\",\"dataTableParams\":{\"sDom\":\"BT\\u003C\\u0027clear\\u0027\\u003Et\",\"bSortCellsTop\":false,\"bFilter\":true,\"aLengthMenu\":[[1,5,10,25,50,100,-1],[1,5,10,25,50,100,\"All\"]],\"iDisplayLength\":10,\"columnDefs\":[{\"sType\":\"formatted-num\",\"wdtType\":\"int\",\"bVisible\":false,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"wdt_ID\",\"origHeader\":\"wdt_ID\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\"numdata integer  column-wdt_id\",\"aTargets\":[0]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"systemmeasurementheightamm\",\"origHeader\":\"systemmeasurementheightamm\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-systemmeasurementheightamm\",\"aTargets\":[1]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"actualheightbmm\",\"origHeader\":\"actualheightbmm\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-actualheightbmm\",\"aTargets\":[2]},{\"sType\":\"string\",\"wdtType\":\"string\",\"bVisible\":true,\"orderable\":true,\"searchable\":true,\"InputType\":\"text\",\"name\":\"deviationbaa\",\"origHeader\":\"deviationbaa\",\"notNull\":false,\"conditionalFormattingRules\":[],\"className\":\" column-deviationbaa\",\"aTargets\":[3]}],\"bAutoWidth\":false,\"order\":[[0,\"asc\"]],\"ordering\":false,\"oLanguage\":{\"sSearchPlaceholder\":\"\"},\"buttons\":[],\"bProcessing\":false,\"serverSide\":true,\"ajax\":{\"url\":\"https:\\\/\\\/www.szlaser.com\\\/wp-admin\\\/admin-ajax.php?action=get_wdtable&table_id=413\",\"type\":\"POST\"},\"oSearch\":{\"bSmart\":false,\"bRegex\":false,\"sSearch\":\"\"}},\"tabletWidth\":\"1024\",\"mobileWidth\":\"480\",\"advancedFilterEnabled\":false,\"serverSide\":true,\"autoRefreshInterval\":0,\"processing\":true,\"fnServerData\":true,\"columnsFixed\":0,\"sumFunctionsLabel\":\"\",\"avgFunctionsLabel\":\"\",\"minFunctionsLabel\":\"\",\"maxFunctionsLabel\":\"szlasers@gmail.com\",\"columnsDecimalPlaces\":{\"wdt_ID\":-1,\"systemmeasurementheightamm\":-1,\"actualheightbmm\":-1,\"deviationbaa\":-1},\"columnsThousandsSeparator\":{\"wdt_ID\":0},\"sumColumns\":[],\"avgColumns\":[],\"sumAvgColumns\":[],\"timeFormat\":\"h:i A\",\"datepickFormat\":\"dd\\\/mm\\\/yy\"}'\/>\n\n    <table id=\"table_3\"\n           class=\" responsive display nowrap data-t data-t wpDataTable wpDataTableID-413\"\n           style=\"\"\n           data-described-by='table_3_desc'\n           data-wpdatatable_id=\"413\">\n        \n        <!-- Table header -->\n        \n<thead>\n<tr>\n                    <th\n                        class=\" wdtheader sort numdata integer \"\n        style=\"\">wdt_ID<\/th>        <th\n        data-class=\"expand\"                class=\" wdtheader sort \"\n        style=\"\">System measurement height a \/mm<\/th>        <th\n                        class=\" wdtheader sort \"\n        style=\"\">Actual height b \/mm<\/th>        <th\n                        class=\" wdtheader sort \"\n        style=\"\">Deviation ((b-a) \/ a) \/%<\/th>    <\/tr>\n<\/thead>\n        <!-- \/Table header -->\n\n        <!-- Table body -->\n        \n<tbody>\n            <tr id=\"table_413_row_0\">\n                            <td style=\"\">1<\/td>\n                            <td style=\"\">134.892<\/td>\n                            <td style=\"\">136.4<\/td>\n                            <td style=\"\">1.105<\/td>\n                    <\/tr>\n                <tr id=\"table_413_row_1\">\n                            <td style=\"\">2<\/td>\n                            <td style=\"\">229.524<\/td>\n                            <td style=\"\">231.8<\/td>\n                            <td style=\"\">0.009<\/td>\n                    <\/tr>\n                <tr id=\"table_413_row_2\">\n                            <td style=\"\">3<\/td>\n                            <td style=\"\">486.829<\/td>\n                            <td style=\"\">491.3<\/td>\n                            <td style=\"\">1.009<\/td>\n                    <\/tr>\n    <\/tbody>        <!-- \/Table body -->\n\n        <!-- Table footer -->\n        \n        <!-- \/Table footer -->\n\n    <\/table>\n\n<\/div><style>\ntable.wpDataTable { table-layout: fixed !important; }\ntable.wpDataTable td, table.wpDataTable th { white-space: normal !important; }\ntable.wpDataTable td.numdata { text-align: right !important; }\n<\/style>\n<style>\n\n\/* table font color *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-family: Lucida Console, Monaco, monospace !important;\n}\n\/* table font size *\/\n.wpdt-c.wpDataTablesWrapper table.wpdtSimpleTable,\n.wpdt-c .wpDataTablesWrapper table.wpDataTable {\n    font-size:12px !important;\n}\n \n<\/style>\n<style>\n<\/style>\n<style>\n                            \n                                \/* table font color *\/\n    .wpdt-c.wpDataTablesWrapper table#wpdtSimpleTable-413,\n    .wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-413 {\n        font-family: Lucida Console, Monaco, monospace !important;\n    }\n                \n                <\/style>\n\n<\/div><div class=\"fusion-title title fusion-title-10 fusion-sep-none fusion-title-text fusion-title-size-three\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.3;\"><h3>3. Conclusion<\/h3><\/h3><\/div><div class=\"fusion-text fusion-text-14\"><p>Matlab is used to develop the acquisition of real scene image pairs and the calibration of the binocular camera used in the experiment, and a variety of calibration methods are combined in the stage of binocular calibration, thus ensuring the accuracy of the built-in and external parameters of the obtained camera. Combined with OpenCV in the VS2013 programming environment, the correction of the binocular image is completed, and the disparity maps generated by the BM and SGBM algorithms are compared in the binocular matching stage. The final experimental results show that the system can well realize the 3D height measurement of real scenes.<\/p>\n<\/div><div style=\"text-align:right;\"><a class=\"fusion-button button-flat fusion-button-default-size button-default fusion-button-default button-1 fusion-button-default-span fusion-button-default-type\" target=\"_self\" href=\"https:\/\/www.szlaser.com\/index.php\/wiki\/measurement-based-on-opencv\/\"><span class=\"fusion-button-text awb-button__text awb-button__text--default\">Object Outline Size Measurement Based on OpenCV &gt;<\/span><\/a><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":7,"featured_media":0,"parent":8230,"menu_order":149,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-10976","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.7 (Yoast SEO v25.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Optical Height Measurement System Based on Binocular Camera - SZLASER<\/title>\n<meta name=\"description\" content=\"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optical Height Measurement System Based on Binocular Camera\" \/>\n<meta property=\"og:description\" content=\"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/\" \/>\n<meta property=\"og:site_name\" content=\"SZLASER\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-01T04:00:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"20 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/\",\"url\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/\",\"name\":\"Optical Height Measurement System Based on Binocular Camera - SZLASER\",\"isPartOf\":{\"@id\":\"https:\/\/www.szlaser.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png\",\"datePublished\":\"2022-11-01T01:33:17+00:00\",\"dateModified\":\"2022-11-01T04:00:01+00:00\",\"description\":\"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage\",\"url\":\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model-.png\",\"contentUrl\":\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model-.png\",\"width\":1278,\"height\":704},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.szlaser.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wiki\",\"item\":\"https:\/\/www.szlaser.com\/index.php\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Optical Height Measurement System Based on Binocular Camera\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.szlaser.com\/#website\",\"url\":\"https:\/\/www.szlaser.com\/\",\"name\":\"SZLASER\",\"description\":\"Source optical components for your next project\",\"publisher\":{\"@id\":\"https:\/\/www.szlaser.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.szlaser.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.szlaser.com\/#organization\",\"name\":\"SZLASER\",\"url\":\"https:\/\/www.szlaser.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.szlaser.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/06\/SZLASER-LOGO2.png\",\"contentUrl\":\"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/06\/SZLASER-LOGO2.png\",\"width\":250,\"height\":65,\"caption\":\"SZLASER\"},\"image\":{\"@id\":\"https:\/\/www.szlaser.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Optical Height Measurement System Based on Binocular Camera - SZLASER","description":"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/","og_locale":"en_US","og_type":"article","og_title":"Optical Height Measurement System Based on Binocular Camera","og_description":"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.","og_url":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/","og_site_name":"SZLASER","article_modified_time":"2022-11-01T04:00:01+00:00","og_image":[{"url":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"20 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/","url":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/","name":"Optical Height Measurement System Based on Binocular Camera - SZLASER","isPartOf":{"@id":"https:\/\/www.szlaser.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage"},"image":{"@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage"},"thumbnailUrl":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model--800x441.png","datePublished":"2022-11-01T01:33:17+00:00","dateModified":"2022-11-01T04:00:01+00:00","description":"According to the binocular stereo vision model, this paper builds a laboratory-specific height measurement system.","breadcrumb":{"@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#primaryimage","url":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model-.png","contentUrl":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/11\/Fig.1-Binocular-stereo-vision-model-.png","width":1278,"height":704},{"@type":"BreadcrumbList","@id":"https:\/\/www.szlaser.com\/index.php\/wiki\/optical-height-measurement-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.szlaser.com\/"},{"@type":"ListItem","position":2,"name":"Wiki","item":"https:\/\/www.szlaser.com\/index.php\/wiki\/"},{"@type":"ListItem","position":3,"name":"Optical Height Measurement System Based on Binocular Camera"}]},{"@type":"WebSite","@id":"https:\/\/www.szlaser.com\/#website","url":"https:\/\/www.szlaser.com\/","name":"SZLASER","description":"Source optical components for your next project","publisher":{"@id":"https:\/\/www.szlaser.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.szlaser.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.szlaser.com\/#organization","name":"SZLASER","url":"https:\/\/www.szlaser.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.szlaser.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/06\/SZLASER-LOGO2.png","contentUrl":"https:\/\/www.szlaser.com\/wp-content\/uploads\/2022\/06\/SZLASER-LOGO2.png","width":250,"height":65,"caption":"SZLASER"},"image":{"@id":"https:\/\/www.szlaser.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/pages\/10976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/comments?post=10976"}],"version-history":[{"count":4,"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/pages\/10976\/revisions"}],"predecessor-version":[{"id":11008,"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/pages\/10976\/revisions\/11008"}],"up":[{"embeddable":true,"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/pages\/8230"}],"wp:attachment":[{"href":"https:\/\/www.szlaser.com\/index.php\/wp-json\/wp\/v2\/media?parent=10976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}