Changes for page AI Image Sensor Calibration
Last modified by Karry Zhuang on 2025/07/03 11:59
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,22 +12,29 @@ 12 12 13 13 = 1. Overview = 14 14 15 + 15 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. 16 16 18 + 17 17 = 2. Calibrate Digits Readings = 18 18 21 + 19 19 According to the requirements to upgrade the firmware to correct the reading, respectively:[[Digital wheel dial firmware>>url:https://www.dropbox.com/scl/fi/nxa0nw0k2qhbpcxzfsz03/Digital-table-wheel-firmware.rar?rlkey=u9wqmilfwu899fhc9i2jfcwou&st=ftsl46f5&dl=0]],[[Pointer dial firmware>>url:https://www.dropbox.com/scl/fi/y03feisk7ztq1ey6pmhqb/Pointer-dial-firmware.rar?rlkey=knlx67m1g26xukrthcum1kk23&st=5m196s89&dl=0]]. 20 20 21 21 Firmware upgrade Reference:[[Update Firmware for the AI Sensors>>http://wiki.dragino.com/xwiki/bin/view/Main/Update%20Firmware%20for%20AI%20Sensor/]]. 22 22 26 + 23 23 == 2.1 Calibrate a Water Meter == 24 24 25 25 === 2.1.1 Introduce === 26 26 31 + 27 27 This water meter is designed in accordance with the Chinese standard for drinking cold water meters and hot water meters, GB/T 778.1-2007. It features five dial numbers for measurement accuracy. 28 28 34 + 29 29 === 2.1.2 Fix Sensor to a Water Meter === 30 30 37 + 31 31 The assembly necessitates the use of two screws, two spacers, and this specific device. 32 32 33 33 Additionally, there are AIS Sensors available along with AUC USB TTL adapters for AIS Sensors. ... ... @@ -42,23 +42,25 @@ 42 42 43 43 [[image:image-20240428165320-4.gif]] 44 44 52 + 45 45 2. Proceed by fastening the device using the previously prepared screws and gaskets. 46 46 47 47 [[image:image-20240428165354-5.gif]] 48 48 57 + 49 49 3. Finally, nestle the device onto your water meter, ensuring that it can be adjusted to meet your specific needs while guaranteeing that the camera is directed towards the digital wheel face. 50 50 51 51 [[image:image-20240428165412-6.gif]]. 52 52 62 + 53 53 The AI Sensors and AUC USB TTL Adapter for AIS Sensors are connected and then connected to the PC. 54 54 55 55 [[image:image-20240428165634-7.gif]][[image:image-20240428165645-8.jpeg||height="332" width="443"]] 56 56 57 57 58 - 59 - 60 60 === 2.1.3 Calibration === 61 61 70 + 62 62 Open the software [[HMX_FT4222H_GUI.exe>>https://www.dropbox.com/scl/fi/yktibns4o33oh0lqitqjl/HIMAX_AMR_PC_Tool.7z?rlkey=94d637ntx152idhw8vij39icv&st=4lsq8xf9&dl=0]]. Please ensure that the firmware upgrade software ota.exe is closed before opening HMX_FT4222H_GUI.exe. 63 63 64 64 For example, Select the corresponding serial port number, here 14. ... ... @@ -68,14 +68,18 @@ 68 68 (% class="mark" %)Note: before you start the software (%%)HMX_FT4222H_GUI.exe(% class="mark" %). you must pre-install the [[visualcppredist_aio_x6_x64_v42.exe>>https://www.dropbox.com/scl/fi/mzqx6ld5a4zkcecntqjjg/VisualCppRedist_AIO_x86_x64_v42.rar?rlkey=9fuzodmed1fg9ulquh22h0dtr&st=ph6ozi4d&dl=0]] configuration environment. Otherwise, an error pop-up window occurs when running software. 69 69 ))) 70 70 71 -(% aria-label="1713519971789-213.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713519971789-213.png||data-widget="image"]] (% title="Click and drag to resize" %)80 +(% aria-label="1713519971789-213.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713519971789-213.png||data-widget="image"]] 72 72 73 - Next,selecta Baud rateof 921600 and clickon "start". Then,click on "show full image"todisplay the camerascreen.82 +(% title="Click and drag to resize" %) 74 74 75 - (% 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="Clickanddrag to move"width="15"]](% title="Click and drag toresize" %)(% aria-label="image-20240419175103-7.pngimagewidget"contenteditable="false" role="region"tabindex="-1" %)[[image:image-20240419175103-7.png||data-widget="image"height="489" width="632"]](% title="Clickand dragtoresize" %)84 +Next, select a Baud rate of **921600** and click on **"start"**. Then, click on **"show full image" **to display the camera screen. 76 76 77 - Click"enableRaw" andsaveheBMPimage inthe"Save" folder.Thisstep iscessarytoobtain therdinate points ofthewatch face.86 +(% 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.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240419175103-7.png||data-widget="image" height="489" width="632"]] 78 78 88 +(% title="Click and drag to resize" %) 89 + 90 +Click **"enable Raw" **and save the BMP image in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face. 91 + 79 79 (% 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"]](% title="Click and drag to resize" %) 80 80 81 81 (% 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"]](% title="Click and drag to resize" %) ... ... @@ -88,8 +88,10 @@ 88 88 89 89 The computer's drawing tool can be used to open the latest bmp image and get the coordinates of the digital wheel dial, as shown below. Based on the format of the digital wheel dial, we can obtain each coordinate point of the current use dial. The (x,y) coordinate on the image is located at the bottom left corner. 90 90 91 -(% aria-label="1713574859715-722.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713574859715-722.png||data-widget="image" height="481" width="576"]] (% title="Click and drag to resize" %)104 +(% aria-label="1713574859715-722.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713574859715-722.png||data-widget="image" height="481" width="576"]] 92 92 106 +(% title="Click and drag to resize" %) 107 + 93 93 Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up 94 94 95 95 The "Long dial" option is the long hand dial. ... ... @@ -131,16 +131,23 @@ 131 131 132 132 === 2.2.1 Introduce === 133 133 149 + 134 134 This power meter is designed in accordance with the Chinese standard for Electricity metering equipment, GB/T 17215.321-2008. It features six dial numbers for measurement accuracy. 135 135 136 -=== 2.2.2 Fix Sensor to a Power Meter(% title="Click and drag to resize" %)(%%) === 137 137 153 +=== 2.2.2 Fix Sensor to a Power Meter === 154 + 155 +(% class="wikigeneratedid" %) 156 +(% title="Click and drag to resize" %) 157 + 138 138 You can utilize a couple of pea clips or other suitable fixtures to securely fasten the AIS sensor and ensure precise alignment of the camera with the digital watch wheel. 139 139 140 140 [[image:image-20240429091325-1.png||height="706" width="535"]] 141 141 162 + 142 142 === 2.2.3 Calibration === 143 143 165 + 144 144 Open the software [[HMX_FT4222H_GUI.exe>>https://www.dropbox.com/scl/fi/yktibns4o33oh0lqitqjl/HIMAX_AMR_PC_Tool.7z?rlkey=94d637ntx152idhw8vij39icv&st=4lsq8xf9&dl=0]]. Please ensure that the firmware upgrade software ota.exe is closed before opening HMX_FT4222H_GUI.exe. 145 145 146 146 For example, Select the corresponding serial port number, here 14. ... ... @@ -150,14 +150,17 @@ 150 150 (% class="mark" %)Note: before you start the software (%%)HMX_FT4222H_GUI.exe(% class="mark" %). you must pre-install the [[visualcppredist_aio_x6_x64_v42.exe>>https://www.dropbox.com/scl/fi/mzqx6ld5a4zkcecntqjjg/VisualCppRedist_AIO_x86_x64_v42.rar?rlkey=9fuzodmed1fg9ulquh22h0dtr&st=ph6ozi4d&dl=0]] configuration environment. Otherwise, an error pop-up window occurs when running software. 151 151 ))) 152 152 153 -(% aria-label="1713519971789-213.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713519971789-213.png||data-widget="image"]] (% title="Click and drag to resize" %)175 +(% aria-label="1713519971789-213.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1713519971789-213.png||data-widget="image"]] 154 154 155 - Next,selecta Baud rateof 921600 and clickon "start". Then,click on "show full image"todisplay the camerascreen.177 +(% title="Click and drag to resize" %) 156 156 179 +Next, select a Baud rate of **921600** and click on **"start"**. Then, click on **"show full image"** to display the camera screen. 180 + 157 157 (% 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"]][[image:image-20240420135207-3.png||height="485" width="706"]] 158 158 159 -Click "enable Raw" and save the BMP image in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face. 160 160 184 +Click **"enable Raw"** and save the BMP image in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face. 185 + 161 161 [[image:1713592384928-500.png||height="494" width="266"]][[image:image-20240420141955-4.png||height="492" width="782"]] 162 162 163 163 This power meter has only six fields, and the coordinates of the digital roulette wheel are shown in the figure. ... ... @@ -170,6 +170,7 @@ 170 170 171 171 [[image:image-20240420153316-11.png||height="569" width="755"]] 172 172 198 + 173 173 (% id="cke_bm_67462S" style="display:none" %) (%%)Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up 174 174 175 175 The "Long dial" option is the long hand dial. ... ... @@ -209,10 +209,13 @@ 209 209 210 210 === 2.3.1 Introduce === 211 211 238 + 212 212 This gas meter uses G2.5 membrane gas meter. It features eight dial numbers for measurement accuracy. 213 213 241 + 214 214 === 2.3.2 Fix Sensor to a Gas Meter === 215 215 244 + 216 216 You can utilize a couple of pea clips or other suitable fixtures to securely fasten the AIS sensor and ensure precise alignment of the camera with the digital watch wheel. 217 217 218 218 [[image:image-20240429092436-2.png||height="676" width="519"]] ... ... @@ -220,6 +220,7 @@ 220 220 221 221 === 2.3.3 Calibration === 222 222 252 + 223 223 Open the software [[HMX_FT4222H_GUI.exe>>https://www.dropbox.com/scl/fi/yktibns4o33oh0lqitqjl/HIMAX_AMR_PC_Tool.7z?rlkey=94d637ntx152idhw8vij39icv&st=4lsq8xf9&dl=0]]. Please ensure that the firmware upgrade software ota.exe is closed before opening HMX_FT4222H_GUI.exe. 224 224 225 225 For example, Select the corresponding serial port number, here 14. ... ... @@ -283,8 +283,10 @@ 283 283 284 284 [[image:1714358288601-933.png]] 285 285 316 + 286 286 == 2.4 Digital wheel dial take point coordinate diagram == 287 287 319 + 288 288 4 numbers: 289 289 290 290 (% 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" %) ... ... @@ -311,16 +311,21 @@ 311 311 312 312 === 2.5.1 Introduce === 313 313 346 + 314 314 The pressure pointer meter of the example is 1.6MPa range 315 315 349 + 316 316 === 2.5.2 Fix Sensor to a Power Meter === 317 317 352 + 318 318 You can utilize a couple of pea clips or other suitable fixtures to securely fasten the AIS sensor and ensure precise alignment of the camera with the pressure pointer meter. 319 319 320 320 [[image:image-20240516163229-1.jpeg||height="595" width="446"]] 321 321 357 + 322 322 === 2.5.3 Calibration === 323 323 360 + 324 324 Open the software [[HMX_FT4222H_GUI.exe>>https://www.dropbox.com/scl/fi/yktibns4o33oh0lqitqjl/HIMAX_AMR_PC_Tool.7z?rlkey=94d637ntx152idhw8vij39icv&st=4lsq8xf9&dl=0]]. Please ensure that the firmware upgrade software ota.exe is closed before opening HMX_FT4222H_GUI.exe. 325 325 326 326 For example, Select the corresponding serial port number, here 14. ... ... @@ -338,7 +338,7 @@ 338 338 [[image:image-20240516163423-3.png]] 339 339 340 340 341 -Click "enable Raw" and save the BMP image in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face. 378 +Click **"enable Raw"** and save the BMP image in the "Save" folder. This step is necessary to obtain the coordinate points of the watch face. 342 342 343 343 [[image:image-20240516163501-4.png||height="482" width="694"]] 344 344 ... ... @@ -385,17 +385,17 @@ 385 385 [[image:image-20240516164153-14.png]] 386 386 387 387 388 - 389 389 = (% title="Click and drag to resize" %)3. Get Sensor Data.(%%) = 390 390 391 - 392 392 == (% title="Click and drag to resize" %)3.1 Get Image and show in PC(%%) == 393 393 429 + 394 394 To get the AIS current image on the PC, you can connect AIS to your PC with TTL to send commands through the serial port to obtain relevant data packets. 395 395 396 396 397 397 === (% style="color:inherit; font-family:inherit; font-size:23px" %)3.1.1 The image date are obtained by serial port(%%) === 398 398 435 + 399 399 Select the corresponding baud rate and serial port number through the serial port tool, select HEX display and HEX send, and continuously receive data from the AIS Sensor 400 400 401 401 [[image:image-20240514161623-2.png||height="541" width="1439"]] ... ... @@ -407,6 +407,7 @@ 407 407 408 408 === 3.1.2 Combined image === 409 409 447 + 410 410 Once all the data has been uploaded to the TTN platform, the subsequent step involves concatenating each packet in sequential order and saving it into a new TXT file. It is important to note that the first 8 bytes of each packet should be removed before concatenation. 411 411 412 412 When you combine all the packets, you need to convert the data inside to binary. Here the conversion is demonstrated using the [[WinHex>>http://www.x-ways.net/winhex/index-m.html]] software. ... ... @@ -415,22 +415,27 @@ 415 415 416 416 [[image:1714467040612-103.png||height="134" width="649"]] 417 417 418 -Click on the edit option to choose and convert. 419 419 457 +Click on the **edit** option to choose and **convert**. 458 + 420 420 [[image:1714467065723-178.png||height="349" width="762"]] 421 421 422 -Choose the Hex ASCII->Binary option and then click OK. 423 423 462 +Choose the **Hex ASCII->Binary** option and then click OK. 463 + 424 424 [[image:1714467089355-837.png||height="366" width="336"]] 425 425 426 -After the conversion is finished, click on "File" and choose "Save As". 427 427 467 +After the conversion is finished, click on **"File"** and choose **"Save As"**. 468 + 428 428 [[image:1714467112365-676.png]] 429 429 430 -Save as a.jpg file and click OK to generate a JPG file. 431 431 472 +Save as **a.jpg file** and click OK to generate a JPG file. 473 + 432 432 [[image:1714467126476-110.png]] 433 433 476 + 434 434 Open the saved JPG file to display the image transmitted by the AIS Sensor through the serial port. 435 435 436 436 [[image:1714467134950-189.png]]