Changes for page AI Image Sensor Calibration
Last modified by Karry Zhuang on 2025/07/03 11:59
From version 27.1
edited by Karry Zhuang
on 2024/04/20 10:25
on 2024/04/20 10:25
Change comment:
There is no comment for this version
To version 26.1
edited by Karry Zhuang
on 2024/04/20 09:57
on 2024/04/20 09:57
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,36 +4,15 @@ 4 4 5 5 **Table of Contents:** 6 6 7 -(% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %) 8 -((( 9 -(% class="macro" data-macro="startmacro:toc|-|" data-widget="xwiki-macro" %) 10 -((( 11 -(% class="macro-placeholder hidden" %) 12 -((( 13 -macro:toc 14 -))) 7 +{{toc/}} 15 15 16 -* [[1. Overview>>doc:null||anchor="H1.Overview"]] 17 -* [[2. Calibrate Digits Readings>>doc:null||anchor="H2.CalibrateDigitsReadings"]] 18 -** [[2.1 Calibrate a Water Meter>>doc:null||anchor="H2.1CalibrateaWaterMeter"]] 19 -*** [[2.1.1 Introduce>>doc:null||anchor="H2.1.1Introduce"]] 20 -*** [[2.1.2 Fix Sensor to a Water Meter>>doc:null||anchor="H2.1.2FixSensortoaWaterMeter"]] 21 -*** [[2.1.3 校准>>doc:null||anchor="H2.1.3682151C6"]] 22 -** [[2.2 校准功率计>>doc:null||anchor="H2.2682151C6529F73878BA1"]] 23 -** [[2.3 校准燃气表>>doc:null||anchor="H2.3682151C671C36C148868"]] 24 -** [[2.4 数字轮刻度盘取点坐标图>>doc:null||anchor="H2.465705B578F6E523B5EA676D853D670B95750680756FE"]] 25 -))) 26 26 27 -(% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]] 28 -))) 29 29 30 30 31 31 32 - 33 - 34 34 = 1. Overview = 35 35 36 -AIS is a video photo recognition sensor, the sensor can be used in electricity meters, gas meters, water meters, pressure gauges and other types of meters. Accurately identify the number of the current dial or upload the picture of the current dial for comparison, which can replace people to go to the door to read the meter, and is more accurate and energy-saving than the meter. The first thing to do is to fix the AIS sensor, the end direction needs to be aligned with the object that needs to be identified, you can check whether the object all appears in the lens range through the upper computer, and then calibrate, Chapter 2 will explain the calibration method of different tables. 15 +AIS is a video photo recognition sensor, the sensor can be used in electricity meters, gas meters, water meters, pressure gauges and other types of meters. Accurately identify the number of the current dial or upload the picture of the current dial for comparison, which can replace people to go to the door to read the meter, and is more accurate and energy-saving than the meter. The first thing to do is to fix the AIS sensor, the end direction needs to be aligned with the object that needs to be identified, you can check whether the object all appears in the lens range through the upper computer, and then calibrate, Chapter 2 will explain the calibration method of different tables. 37 37 38 38 = 2. Calibrate Digits Readings = 39 39 ... ... @@ -49,99 +49,99 @@ 49 49 Debug Board SW12=[off on] : FT4222H SPI Slave mode 50 50 AIoT Board SW123456=[off off off off off off] 51 51 52 - (% aria-label="image-20240419174248-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419174248-4.png||data-widget="image"height="419" width="419"]](%style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)(%%) (% aria-label="image-20240419174159-3.pngimage widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419174159-3.png||data-widget="image"height="420" width="556"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)31 +[[image:image-20240419174248-4.png||height="419" width="419"]] [[image:image-20240419174159-3.png||height="420" width="556"]] 53 53 54 54 Use a hot glue gun and several sticks to attach a triangle for stabilizing the AIS. Adjust the height of the sticks so that the AIS can clearly view the numbers on the water meter. 55 55 56 - (% aria-label="image-20240419173432-1.jpeg image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419173432-1.jpeg||data-widget="image"height="757" width="757"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)35 +[[image:image-20240419173432-1.jpeg||height="757" width="757"]] 57 57 58 58 59 -=== 2.1.3 Calibration===38 +=== 2.1.3 校准 === 60 60 61 - Perform a power reset on theEVBboard, making sure to close the ota.exe program before openingHMX_FT4222H_GUI.exe.40 +在EVB板上执行电源复位,确保在打开HMX_FT4222H_GUI.exe之前关闭ota.exe程序。 62 62 63 63 (% class="box warningmessage" %) 64 64 ((( 65 -(% class="mark" %) Note: before you start the software hmx_ft4222h_gi.exe. you must pre-install the visualcppredist_aio_x6_x64_v42.execonfiguration environment. Otherwise, an error pop-up window occurs when running software.44 +(% class="mark" %)注意:在启动软件“HMX_FT4222H_GUI.exe”之前,必须预安装VisualCppRedist_AIO_x86_x64_v42.exe配置环境。否则将导致在运行软件时出现错误弹出窗口。 66 66 ))) 67 67 68 - (% aria-label="1713519971789-213.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713519971789-213.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)47 +[[image:1713519971789-213.png]] 69 69 70 - Next,select a Baud rate of921600and click on "start". Then, click on "show full image" to display the camera screen.49 +接下来,选择波特率 921600,然后单击“开始”。然后,单击“显示完整图像”以显示相机屏幕。 71 71 72 - (% aria-label="image-20240419174908-5.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419174908-5.png||data-widget="image"height="491" width="406"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)(% aria-label="image-20240419175103-7.pngimage widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419175103-7.png||data-widget="image"height="489" width="632"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)51 +[[image:image-20240419174908-5.png||height="491" width="406"]][[image:image-20240419175103-7.png||height="489" width="632"]] 73 73 74 - Click"enableRaw"and save theBMPimage in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face.53 +单击“启用 Raw”并将 BMP 图像保存在“保存”文件夹中。此步骤对于获取表盘的坐标点是必需的。 75 75 76 - (% aria-label="image-20240419175324-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419175324-8.png||data-widget="image"height="637" width="911"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)55 +[[image:image-20240419175324-8.png||height="637" width="911"]] 77 77 78 - (% aria-label="image-20240419175324-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419175324-9.png||data-widget="image"height="348" width="913"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)57 +[[image:image-20240419175324-9.png||height="348" width="913"]] 79 79 80 - This water meter has only five fields, and the coordinates of the digital roulette wheel are shown in the figure.59 +这款水表只有五个字段,数字轮盘的坐标点如图所示。 81 81 82 - Ifyour device's digital scroll wheel dial does not match these five fields, you can try the other field dial coordinate dot plots in2.4.61 +如果您的设备数字滚轮拨盘不符合这五个字段,您可以尝试 2.4 中的其他字段拨盘坐标点图。 83 83 84 - (% aria-label="1713573839396-314.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713573839396-314.png||data-widget="image"height="198" width="649"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)63 +[[image:1713573839396-314.png||height="198" width="649"]] 85 85 86 -The computer's drawing tool should be utilized to open the most recent bmp image and extract the coordinates of the digital wheel dial, as depicted in the accompanying illustration. Additionally, each coordinate point of the current dial should be obtained following the format specified for the digital wheel dial. 87 87 88 - (%aria-label="1713574859715-722.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713574859715-722.png||data-widget="image"height="481"width="576"]](%style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)66 +应使用计算机的绘图工具打开最新的 bmp 图像并提取数字滚轮表盘的坐标。如附图所示,当前表盘的每个坐标点都可以根据坐标点的格式获得。鼠标指针在图像上的 (X,Y) 位置对应于图像的左下角。 89 89 90 -Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up 91 -The "Long dial" option is the long hand dial. 92 -The "Short dial" option is the short pointer and digital wheel dial. 93 -The "Digit wheel" option is the digital wheel dial. 94 -Now we are calibrating the digital wheel face of the water meter. Here we select "digit wheel". 68 +[[image:1713574859715-722.png||height="481" width="576"]] 95 95 96 - (% aria-label="1713576691266-408.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713576691266-408.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag tomove" width="15"]](% title="Click and drag to resize" %)70 +点击“HIMAX_AMR_PC_Tool”中的“ROI设置”按钮,会出现三个选项。 97 97 98 - 1:Fill in the coordinates you just got; it's best to get a coordinate and fill in a coordinate.72 +名为“长表盘”的选项代表长指针表盘。 99 99 100 - 2: fill in the number of number wheel on their dial;74 +名为“短拨盘”的选项是指短指针和数字滚轮拨盘。 101 101 102 - 3: Select the number of short Pointers (currently we don't use short Pointers, the "digit wheelu" option defaults to 0);76 +标有“数字滚轮”的选项表示数字滚轮拨盘。 103 103 104 - 4: Preview whether the setting of their coordinates is accurate;78 +目前,我们正在校准水表的数字轮面,因此我们应该选择“数字轮”选项。 105 105 106 - 5: Click to writeall configurationto AIS;80 +[[image:1713576691266-408.png]] 107 107 108 -6: Click the exit configuration interface, at this time, there will be a readout. If the Reading of "reading" is consistent with the watch face, the calibration is successful. The AIS cannot move thereafter to avoid misreading. 82 +1:填写刚刚得到的坐标,最好得到一个坐标并填写一个坐标; 83 +2:填写自己表盘上的数字轮号; 84 +3:选择短指针的数量(目前我们不使用短指针,“数字轮”选项默认为 0)。 85 +4:预览其坐标设置是否准确; 86 +5:点击将所有配置写入AIS 87 +6:点击退出配置界面,此时会出现读数,如下图所示,如果读数与表盘一致,则校准成功。此后,AIS无法移动,以避免误读。 109 109 110 - (% aria-label="1713576930301-479.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713576930301-479.png||data-widget="image"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)89 +[[image:1713576930301-479.png]] 111 111 112 - The effect can be previewed by clicking the "Preview correction" button as shown below.91 +可以通过单击“预览校正”按钮来预览效果,如下所示。 113 113 114 - (% aria-label="1713577029535-253.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713577029535-253.png||data-widget="image" height="748" width="1069"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)93 +[[image:1713577029535-253.png]] 115 115 116 116 117 - After the calibration process is completed, it can be observed that the obtained reading aligns consistently with the numerical value displayed on the digital wheel dial.96 +校准过程完成后,可以观察到获得的读数与数字滚轮刻度盘上显示的数值一致。 118 118 119 - (% aria-label="1713577072196-132.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713577072196-132.png||data-widget="image" height="751" width="1073"]](% style="background:url(~"http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)98 +[[image:1713577072196-132.png]] 120 120 121 -== 2.2 Calibrationpower meter==100 +== 2.2 校准功率计 == 122 122 123 -== 2.3 Calibrationgas meter==102 +== 2.3 校准燃气表 == 124 124 125 -== 2.4 Digitalwheel dial take point coordinate diagram==104 +== 2.4 数字轮刻度盘取点坐标图 == 126 126 127 -4 numbers:106 +4 个数字: 128 128 129 - (% aria-label="image-20240420094632-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240420094632-11.png||data-widget="image"height="134" width="410"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)108 +[[image:image-20240420094632-11.png||height="134" width="410"]] 130 130 131 -5 numbers:110 +5 个数字: 132 132 133 - (% aria-label="image-20240420094632-12.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240420094632-12.png||data-widget="image"height="130" width="427"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)112 +[[image:image-20240420094632-12.png||height="130" width="427"]] 134 134 135 -6 numbers:114 +6 个数字: 136 136 137 - (% aria-label="image-20240420094632-13.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240420094632-13.png||data-widget="image"height="112" width="444"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)116 +[[image:image-20240420094632-13.png||height="112" width="444"]] 138 138 139 -7 numbers:118 +7 个数字: 140 140 141 - (% aria-label="image-20240420094632-14.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240420094632-14.png||data-widget="image"height="111" width="454"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)120 +[[image:image-20240420094632-14.png||height="111" width="454"]] 142 142 143 -8 numbers:122 +8 个数字: 144 144 145 - (% aria-label="image-20240420094632-15.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240420094632-15.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)124 +[[image:image-20240420094632-15.png]] 146 146 147 147