Table of Contents:

1. Overview

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.  

2. Calibrate Digits Readings

The AI Sensors and AUC USB TTL Adapter for AIS Sensors are connected and then connected to the PC.

 image-20240428155254-1.png

image-20240424163158-2.gifimage-20240424163213-3.jpeg

2.1 Calibrate a Water Meter

2.1.1 Introduce

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.

2.1.2 Fix Sensor to a Water Meter

The AI Sensors are fixed in the device, and then the water meter is embedded and the Angle is adjusted.

The fixture below is just a demo, user might adjust it with their water meter. Here is the STEP file for the fixture as below: Water Meter Fixture Demo.

image-20240428155835-2.png

2.1.3 Calibration

Revised sentence: Launch HMX_FT4222H_GUI.exe. Please ensure that the firmware upgrade software ota.exe is closed before opening HMX_FT4222H_GUI.exe.

Choose the largest number of serial port, for example, here shows 13 and 14, then choose 14.

Note: before you start the software HMX_FT4222H_GUI.exe. you must pre-install the visualcppredist_aio_x6_x64_v42.exe configuration environment. Otherwise, an error pop-up window occurs when running software.

1713519971789-213.png

Next, select a Baud rate of 921600 and click on "start". Then, click on "show full image" to display the camera screen.

image-20240419174908-5.pngData URI imageimage-20240419175103-7.png

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.

image-20240419175324-8.png

image-20240419175324-9.png

This water meter has only five fields, and the coordinates of the digital roulette wheel are shown in the figure.

If your device's digital scroll wheel dial does not match these five fields, you can try the other field dial coordinate dot plots in 2.4.

1713573839396-314.png

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.

1713574859715-722.png

Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up

The "Long dial" option is the long hand dial.

The "Short dial" option is the short pointer and digital wheel dial.

The "Digit wheel" option is the digital wheel dial.

Now we are calibrating the digital wheel face of the water meter. Here we select "digit wheel".

1713576691266-408.png

1:Fill in the coordinates you just got; it's best to get a coordinate and fill in a coordinate.

2: Fill in the number of number wheel on their dial,fi;

3: Select the number of short Pointers (currently we don't use short Pointers, the "digit wheelu" option defaults to 0);

4: Preview whether the setting of their coordinates is accurate;

5: Click to write all configuration to AIS;

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.

1713576930301-479.png

The effect can be previewed by clicking the "Preview correction" button as shown below.

1713577029535-253.pngData URI image

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.

1713577072196-132.png

2.2 Calibration Power Meter

2.2.1 Introduce

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.

2.2.2 Fix Sensor to a Power Meter

Do the following with EVB_Board
Debug Board SW12=[off on] : FT4222H SPI Slave mode
AIoT Board SW123456=[off off off off off off]

Data URI image 

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 power meter.

image-20240422092350-2.png

2.2.3 Calibration

Perform a power reset on the EVB board, making sure to close the ota.exe program before opening HMX_FT4222H_GUI.exe.

Choose the largest number of serial port, for example, here shows 13 and 14, then choose 14.

Note: before you start the software HMX_FT4222H_GUI.exe. you must pre-install the visualcppredist_aio_x6_x64_v42.exe configuration environment. Otherwise, an error pop-up window occurs when running software.

1713519971789-213.png

Next, select a Baud rate of 921600 and click on "start". Then, click on "show full image" to display the camera screen.

image-20240419174908-5.pngimage-20240420135207-3.png

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.

1713592384928-500.pngimage-20240420141955-4.png

This power meter has only six fields, and the coordinates of the digital roulette wheel are shown in the figure.

If your device's digital scroll wheel dial does not match these six fields, you can try the other field dial coordinate dot plots in 2.4.

image-20240420094632-13.png

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.

image-20240420153316-11.png

Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up

The "Long dial" option is the long hand dial.

The "Short dial" option is the short pointer and digital wheel dial.

The "Digit wheel" option is the digital wheel dial.

Now we are calibrating the digital wheel face of the power meter. Here we select "digit wheel".

1713576691266-408.png

1: Fill in the coordinates you just got; it's best to get a coordinate and fill in a coordinate.

2: Fill in the number of number wheel on their dial,six;

3: Select the number of short Pointers (currently we don't use short Pointers, the "digit wheelu" option defaults to 0);

4: Preview whether the setting of their coordinates is accurate;

5: Click to write all configuration to AIS;

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.

image-20240420143939-6.png

The effect can be previewed by clicking the "Preview correction" button as shown below.

image-20240420144154-7.png

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.

1713595371004-125.png

2.3 Calibration Gas Meter

2.3.1 Introduce

This gas meter uses G2.5 membrane gas meter. It features eight dial numbers for measurement accuracy.

2.3.2 Fix Sensor to a Gas Meter

Do the following with EVB_Board
Debug Board SW12=[off on] : FT4222H SPI Slave mode
AIoT Board SW123456=[off off off off off off]

Data URI image 

Use a hot glue gun and several sticks to attach  for stabilizing the AIS. Adjust the height of the sticks so that the AIS can clearly view the numbers on the gas meter.

image-20240422092731-2.png

2.3.3 Calibration

Perform a power reset on the EVB board, making sure to close the ota.exe program before opening HMX_FT4222H_GUI.exe.

Choose the largest number of serial port, for example, here shows 13 and 14, then choose 14.

Note: before you start the software HMX_FT4222H_GUI.exe. you must pre-install the visualcppredist_aio_x6_x64_v42.exe configuration environment. Otherwise, an error pop-up window occurs when running software.

1713519971789-213.png

Next, select a Baud rate of 921600 and click on "start". Then, click on "show full image" to display the camera screen.

image-20240419174908-5.png1713598021017-402.png

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.

1713592384928-500.png1713598094208-496.png

This gas meter has eight fields, and the coordinates of the digital roulette wheel are shown in the figure.

If your device's digital scroll wheel dial does not match these eight fields, you can try the other field dial coordinate dot plots in 2.4.

image-20240420094632-15.png

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.

image-20240420153139-10.png

Click the "ROI setting" button in "HIMAX_AMR_PC_Tool" and three options will pop up

The "Long dial" option is the long hand dial.

The "Short dial" option is the short pointer and digital wheel dial.

The "Digit wheel" option is the digital wheel dial.

Now we are calibrating the digital wheel face of the gas meter. Here we select "digit wheel".

1713576691266-408.png

1: Fill in the coordinates you just got; it's best to get a coordinate and fill in a coordinate.

2: Fill in the number of number wheel on their dial,eight;

3: Select the number of short Pointers (currently we don't use short Pointers, the "digit wheelu" option defaults to 0);

4: Preview whether the setting of their coordinates is accurate;

5: Click to write all configuration to AIS;

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.

image-20240420154023-12.png

The effect can be previewed by clicking the "Preview correction" button as shown below.

1713598855240-454.png

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.

2.4 Digital wheel dial take point coordinate diagram

4  numbers:

image-20240420094632-11.pngData URI image

5 numbers:

image-20240420094632-12.pngData URI image

6 numbers:

image-20240420094632-13.pngData URI image

7 numbers:

image-20240420094632-14.pngData URI image

8 numbers:

image-20240420094632-15.pngData URI image

3. Get Sensor Data.

3.1 Get Digital Reading After Calibration

3.2 Get Image and show in PC

 

Tags:
    
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0