WO2021190640A1 - 指针定位方法、装置及仪表 - Google Patents
指针定位方法、装置及仪表 Download PDFInfo
- Publication number
- WO2021190640A1 WO2021190640A1 PCT/CN2021/083331 CN2021083331W WO2021190640A1 WO 2021190640 A1 WO2021190640 A1 WO 2021190640A1 CN 2021083331 W CN2021083331 W CN 2021083331W WO 2021190640 A1 WO2021190640 A1 WO 2021190640A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pointer
- target
- value
- angle value
- dial
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000012545 processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 4
- 238000005259 measurement Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 8
- 238000003860 storage Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009776 industrial production Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012271 agricultural production Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/0304—Detection arrangements using opto-electronic means
- G06F3/0312—Detection arrangements using opto-electronic means for tracking the rotation of a spherical or circular member, e.g. optical rotary encoders used in mice or trackballs using a tracking ball or in mouse scroll wheels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/20—Scenes; Scene-specific elements in augmented reality scenes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/02—Recognising information on displays, dials, clocks
Definitions
- the present disclosure relates to the field of instrument technology, and in particular to a pointer positioning method, device and instrument.
- meters are widely used in industrial and agricultural production, science and technology, electricity measurement, daily life and other aspects, such as barometers and thermometers in industrial production equipment, as well as voltmeters in scientific experiments. , Ammeter, etc.
- the positioning method of the pointer in the meter dial of the meter is usually to first collect the dial image of the meter, then identify the circle where the meter dial in the dial image is located, and finally, identify the lines in the circle, such as using Hough transform recognition The line in the circle to get the position of the pointer.
- the present disclosure provides a pointer positioning method, device and meter.
- the present disclosure discloses a pointer positioning method, including:
- the target scale value corresponding to the target pointer is searched from the preset corresponding relationship between the angle value and the scale value.
- the present disclosure also discloses a pointer positioning device, including:
- the first detection module is configured to detect the number of first pixels corresponding to the multiple first rotation positions when the virtual pointer rotates according to a first preset angle in the first dial image;
- the first target position determining module is configured to determine the first target position where the virtual pointer is located according to the number of first pixels corresponding to each of the first rotational positions;
- the target angle value determining module is configured to determine, according to the first target position, a target angle value between a target pointer and a reference position in the meter dial corresponding to the first dial image;
- the target scale value searching module is configured to find the target scale value corresponding to the target pointer from the preset corresponding relationship between the angle value and the scale value according to the target angle value.
- the present disclosure also discloses an instrument including the pointer positioning device described above.
- the present disclosure also provides a computing processing device, including:
- a memory in which computer readable codes are stored
- One or more processors when the computer-readable code is executed by the one or more processors, the computing processing device executes the pointer positioning method described above.
- the present disclosure also provides a computer program, including computer readable code, which when the computer readable code runs on a computing processing device, causes the computing processing device to execute the pointer positioning method described above.
- the present disclosure also provides a computer-readable medium in which the above-mentioned computer program is stored.
- Fig. 1 shows a flowchart of a pointer positioning method according to an embodiment of the present disclosure
- Fig. 2 shows a schematic diagram of a meter dial and a virtual pointer of an embodiment of the present disclosure
- FIG. 3 shows a specific flowchart of a pointer positioning method according to an embodiment of the present disclosure
- FIG. 4 shows a flowchart of constructing a virtual pointer according to an embodiment of the present disclosure
- FIG. 5 shows a schematic diagram of a fine scan of a virtual pointer according to an embodiment of the present disclosure
- FIG. 6 shows a flow chart of generating the corresponding relationship between the preset angle value and the scale value according to an embodiment of the present disclosure
- Fig. 7 shows a structural block diagram of a pointer positioning device according to an embodiment of the present disclosure
- FIG. 8 shows a composition structure diagram of a meter according to an embodiment of the present disclosure
- FIG. 9 schematically shows a block diagram of a computing processing device for executing the method according to the present disclosure.
- Fig. 10 schematically shows a storage unit for holding or carrying program codes for implementing the method according to the present disclosure.
- FIG. 1 a flowchart of a pointer positioning method according to an embodiment of the present disclosure is shown, which may specifically include the following steps:
- Step 101 When the virtual pointer rotates according to a first preset angle in the first dial image, detect the number of first pixels corresponding to the multiple first rotation positions, respectively.
- the virtual pointer can be constructed in advance, and the pointer length of the constructed virtual pointer is 70% to 90% of the pointer length of the target pointer in the instrument dial, so that the position of the subsequent target pointer can be determined more accurately. The value can be read more accurately.
- the specific reason is that one end of the target pointer in the instrument dial will coincide with the scale line and value area in the instrument dial. If the pointer length of the constructed virtual pointer is the same as the target in the instrument dial If the pointers of the pointer are of equal length, when the virtual pointer subsequently rotates and scans in the first dial image, the scale lines and value areas in the meter dial will affect the scan result (that is, the number of first pixels or the first number of pixels at each rotation position). In order to ensure that most of the scan results are pixels included in the target pointer, the pointer length of the constructed virtual pointer needs to be set to 70% to 90% of the pointer length of the target pointer in the instrument dial. %.
- the target pointer is fixed in the instrument dial by the pointer circle center, the two ends of the target pointer are located on both sides of the pointer circle center, one end of the target pointer is used to point to the scale, and the other end of the target pointer is not used to specify the scale.
- the pointer length of the target pointer in the embodiments of the present disclosure refers to the length from the center of the pointer of the instrument dial to the end of the target pointer pointing to the scale, rather than the total length of the target pointer; correspondingly, the pointer length of the virtual pointer also refers to The length from the center of the pointer of the instrument dial to the end of the scale where the virtual pointer points to the scale.
- the pointer width of the constructed virtual pointer is smaller than the pointer width of the target pointer in the instrument dial.
- the target pointer has a larger width, and there may be deviations when determining the position of the target pointer.
- the pointer width of the pointer is more accurate when locating the position of the target pointer according to the virtual pointer. Therefore, in the embodiment of the present disclosure, the virtual pointer is used to perform rotation scanning to determine the position of the target pointer, which can avoid the deviation in reading the target scale value caused by the positioning deviation of the coarse pointer.
- the camera when it is necessary to obtain the target scale value corresponding to the target pointer in the meter dial, control the camera to collect the third dial image corresponding to the meter dial, and then obtain the third dial image collected by the camera.
- the third dial image is a color image
- the third dial image is binarized to obtain the first dial image.
- a pre-built virtual pointer is used to perform rotation scanning in the first dial image, and the number of first pixels corresponding to each first rotation position of the virtual pointer in the first dial image is detected.
- the virtual pointer rotates once at an interval of a first preset angle from the reference position, and each time it rotates by the first preset angle, the position of the virtual pointer in the first dial image is the first rotation position.
- the target pointer in the instrument dial 20 is 21, the virtual pointer is 22, and 23 is the reference position 0°.
- the virtual pointer 22 starts from the reference position 23 and moves clockwise. Or counterclockwise, one rotation at the interval of the first preset angle of 1°, and for each rotation of the first preset angle of 1°, the first pixel of the virtual pointer at the first rotation position in the first dial image at this time is detected
- the number of points Specifically, starting from the reference position, it is rotated by a first preset angle of 1°. At this time, the number of first pixels at the first first rotation position is detected, and then, the angle from the reference position is 1°. Start to rotate another first preset angle of 1°.
- the number of first pixels at the second first rotation position is detected, and then, the first rotation starts from the position with an angle of 2° from the reference position.
- the number of first pixels at the third first rotation position is detected at this time, and so on, a total of 360 number of first pixels at the first rotation position can be obtained.
- the number of the first pixel is associated with the degree of overlap between the virtual pointer and the target pointer.
- the first number of pixels refers to the number of pixels with a gray value of 255 or a gray value of 0 at the first rotation position.
- the number of first pixels can be pixels with a gray value of 255 at the first rotation position.
- the first pixel number can be the gray value at the first rotation position is 0 The number of pixels. In this way, the greater the number of first pixels, the higher the degree of overlap between the virtual pointer and the target pointer.
- the value of the first preset angle can be set smaller, for example, the first preset angle is set to 0.5°, 0.2°, or 0.1°.
- the specific orientation of the reference position can be manually designated, and is not limited to the reference position 23 shown in FIG. 2.
- Step 102 Determine the first target position where the virtual pointer is located according to the number of first pixels corresponding to each of the first rotational positions.
- the first target position where the virtual pointer is located is determined according to the number of detected first pixels of the virtual pointer at each first rotation position in the first dial image.
- the number of first pixels at the corresponding first rotation position is greater. Therefore, it can be determined according to the maximum value of the number of first pixels at each first rotation position The first target location.
- the 185th first rotation position is determined as the first target position.
- Step 103 Determine, according to the first target position, a target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position.
- the target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position is determined.
- step 103 may include the following sub-steps:
- Sub-step 1031 determining the first number of rotations of the virtual pointer from the reference position to the first target position, and calculating a first product value of the first number of rotations and the first preset angle;
- Sub-step 1032 determining the first product value as the first angle value
- Sub-step 1033 Determine the first angle value as the target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position.
- the first target position and the reference The first angle value between the positions is the first product value of the first number of rotations and the first preset angle, that is, N*M, then the target between the target pointer and the reference position in the instrument dial corresponding to the first dial image
- the angle value is also N*M.
- the second case if the first preset angle is greater than the preset threshold, that is, the selected value of the first preset angle is larger, then the number of first pixels at each first rotation position obtained in step 101 is the rough scan result
- the rotation range of the virtual pointer for re-scanning the virtual pointer according to the first target position.
- the virtual pointer performs a fine scan within the rotation range, and the second target position is determined according to the result of the fine scan. , Determining the target angle value between the target pointer and the reference position in the meter dial corresponding to the first dial image according to the second target position.
- the second case has a smaller amount of calculation compared to the first case.
- Step 104 Find the target scale value corresponding to the target pointer from the preset corresponding relationship between the angle value and the scale value according to the target angle value.
- the corresponding relationship between the preset angle value and the scale value is established in advance, and the target angle value between the target pointer and the reference position is determined from the preset angle value and the scale value.
- the target scale value corresponding to the target angle value is searched to obtain the target scale value corresponding to the target pointer.
- the target scale value can be sent to the designated device in a wireless or wired manner.
- the scale value monitors the equipment monitored by the meter corresponding to the meter dial.
- the existing pointer positioning method usually collects the dial image of the instrument first, then recognizes the circle in the dial image, and finally, recognizes the lines in the circle, but the circle in which the instrument dial is located.
- the lines in the circle and the circle are often inaccurately recognized during the recognition process. There are many reasons. For example, the inaccurate positioning of the center of the circle during the image recognition process and the reflection of light when collecting the dial image will cause the recognition inaccuracy.
- Accurate; and the embodiment of the present disclosure locates the position of the target pointer according to the number of first pixels at each first rotation position, and does not need to identify the center of the circle where the meter dial is located.
- the line formed by the reflection in the image of the first dial basically does not completely coincide with the first rotation position corresponding to the virtual pointer, so when the number of first pixels at the first rotation position is counted, the reflection caused by the light is very small , So that the position of the target pointer is located according to the number of first pixels at each first rotation position, and the position of the target pointer can also be accurately identified.
- the virtual pointer is constructed in advance, and the virtual pointer is used to perform rotation scanning in the first dial image, and the number of first pixels at each first rotation position is compared to detect the position of the target pointer, and Determine the scale value of the target pointer through the correspondence between the preset angle value and the scale value. Since the position of the target pointer is located by the number of first pixels at each first rotation position, the target can be accurately identified The position of the pointer makes the reading of the target pointer more accurate.
- FIG. 3 a specific flowchart of a pointer positioning method according to an embodiment of the present disclosure is shown, which may specifically include the following steps:
- Step 301 When the virtual pointer rotates according to a first preset angle in the first dial image, detect the number of first pixels corresponding to the multiple first rotation positions.
- a virtual pointer is constructed in advance, and the pre-built virtual pointer is used to perform rotation scanning in the first dial image, and the first pixel point of the virtual pointer at each first rotation position in the first dial image is detected
- the virtual pointer starts from the reference position and rotates one circle at the interval of 1° at the first preset angle.
- the first preset angle is rotated by 1°, it is detected that the virtual pointer is in the first position at this time.
- the number of first pixels at the first rotation position in the dial image therefore, the number of first pixels at 360 first rotation positions can be obtained.
- step 301 it further includes steps 401 to 407:
- Step 401 Obtain a second dial image collected by the camera
- Step 402 Control the touch screen to display the second dial image
- Step 403 In the case of receiving the circle center coordinates input by the user on the touch screen, control the touch screen to display the position of the circle center coordinates in a preset circular pattern;
- Step 404 In the case of receiving the user's first determining operation of the center coordinates, determine the position where the center coordinates are located as the pointer center of the virtual pointer;
- Step 405 In the case of receiving the pointer length input by the user on the touch screen, control the touch screen to display the pointer length in a preset linear pattern; one end of the linear pattern and the pointer The center of the circle coincides;
- Step 406 In the case of receiving a second determination operation of the pointer length by the user, determine the pointer length as the pointer length of the virtual pointer;
- Step 407 Construct the virtual pointer according to the pointer center of the virtual pointer and the pointer length of the virtual pointer.
- the camera in order to construct a virtual pointer, first, it is necessary to control the camera to collect the second dial image corresponding to the instrument dial, and obtain the second dial image collected by the camera.
- the second dial image is a color image; After the second dial image is binarized, the subsequent touch screen displays the second dial image after the binarization process.
- the user can input the center coordinates in the center coordinate input box on the touch screen, then the touch screen Receive the center coordinates entered by the user on the touch screen, and then control the touch screen to display the position of the center coordinates in the second dial image in a preset circular pattern, for example, display the center coordinates in a green circular pattern Location, and display a confirm option and a cancel option on the touch screen.
- the processor in the instrument controls the touch screen to redisplay the input box of the center of the circle, so that the user can input the center of the circle again.
- the touch screen can be controlled to display the pointer length input box.
- the user can enter the pointer length in the pointer length input box on the touch screen, and the touch screen receives the user’s touch The pointer length entered on the screen, and then control the touch screen to display the pointer length in the second dial image with a preset linear pattern, and one end of the preset linear pattern coincides with the center of the pointer.
- the touch A confirmation option and a cancellation option are displayed on the screen.
- the processor in the meter determines the input pointer length as the pointer length of the virtual pointer; when the user observes that the length of the preset linear pattern is not between 70% and 90% of the pointer length of the target pointer, the user can touch If the cancel option is canceled, the touch screen receives the second cancel operation of the pointer length from the user, and the processor in the meter controls the touch screen to redisplay the pointer length input box for the user to input the pointer length again.
- a virtual pointer is constructed according to the determined pointer center of the virtual pointer and the pointer length of the virtual pointer.
- the user manually inputs the coordinates of the center of the circle and the length of the pointer to construct a virtual pointer, which reduces the amount of calculation of the processor in the instrument, reduces the difficulty of the algorithm, and improves the stability of the processor.
- Step 302 Determine the first target position where the virtual pointer is located according to the number of first pixels corresponding to each of the first rotational positions.
- the first target position where the virtual pointer is located is determined according to the number of detected first pixels of the virtual pointer at each first rotation position in the first dial image.
- step 302 may include sub-step S11, sub-step S12, and sub-step S13:
- Sub-step S11 when the first maximum value among the number of first pixel points corresponding to each of the first rotation positions is one, the first rotation position corresponding to the first maximum value is determined as the first target Location;
- Sub-step S12 when there are multiple first maximum values in the number of first pixel points corresponding to each of the first rotational positions, determine the center positions of the first rotational positions corresponding to the multiple first maximum values;
- the center position of the first rotation position corresponding to the plurality of first maximum values is determined as the first target position.
- the first maximum value among the number of first pixels at each first rotation position may be one or more.
- the first rotation position corresponding to the first maximum value is determined as the first target position;
- the center positions of the first rotational positions corresponding to the multiple first maximum values determine the center positions of the first rotational positions corresponding to the multiple first maximum values Is the first target location.
- the first rotation positions corresponding to the multiple first maximum values need to be continuous.
- the number of first pixels at the first rotational position 1, the first rotational position 2, and the first rotational position 3 are all the first maximum
- the first preset angle is 1°
- the first rotational position 1 is the reference position
- the angle between is 184°
- the angle between the first rotation position 2 and the reference position is 185°
- the angle between the first rotation position 3 and the reference position is 186°.
- the average value of the three angles is calculated to obtain
- the average angle is 185°, that is, the center positions of the first rotational position 1, the first rotational position 2, and the first rotational position 3 are the first rotational position 2, and the first rotational position 2 is determined as the first target position.
- Step 303 Determine the rotation range of the virtual pointer in the first dial image according to the first target position.
- the selected value of the first preset angle is relatively large, that is, the number of first pixels at each first rotation position obtained in step 301 is the result of the rough scan.
- the rotation range for the virtual pointer it is also necessary to determine the rotation range for the virtual pointer to perform rotation scanning in the first dial image again according to the first target position.
- step 303 may include sub-step S21, sub-step S22, sub-step S23, and sub-step S24:
- Sub-step S21 determining a first angle value between the first target position and the reference position
- Sub-step S22 determining the sum of the first angle value and the first preset value as the maximum value of the rotation range of the virtual pointer in the first dial image
- Sub-step S23 determining the difference between the first angle value and the second preset value as the minimum value of the rotation range of the virtual pointer in the first dial image
- Sub-step S24 determining the rotation range of the virtual pointer in the first dial image according to the maximum value of the rotation range and the minimum value of the rotation range.
- the first angle value between the first target position and the reference position is determined. Assuming that the virtual pointer has rotated N first preset angles from the reference position to reach the first target position, and the first preset angle is M, the first angle value between the first target position and the reference position is N*M .
- the first preset value is added to the first angle value, and the sum of the first angle value and the first preset value is determined as the maximum value of the rotation range of the virtual pointer in the first dial image;
- the second preset value is subtracted from the first angle value, and the difference between the first angle value and the second preset value is determined as the minimum value of the rotation range of the virtual pointer in the first dial image.
- the first preset value and the second preset value can be artificially set based on experience.
- the rotation range of the virtual pointer in the first dial image is determined.
- the first preset angle M is 1° and N is 185, that is, the virtual pointer rotates 185 first preset angles from the reference position before reaching the first target position, then the first target position between the first target position and the reference position
- An angle value is 185°, assuming that the first preset value and the second preset value are both 3°, the maximum value of the rotation range of the virtual pointer in the first dial image is 188°, and the virtual pointer is on the first dial image
- the minimum value of the rotation range in is 182°.
- Step 304 When the virtual pointer rotates according to a second preset angle within the rotation range, detect the number of second pixels corresponding to the multiple second rotation positions.
- the virtual pointer performs a rotation scan again within the rotation range of the first dial image to detect the number of second pixels at each second rotation position of the virtual pointer in the rotation range, and each second The number of second pixels at the rotated position is the result of the fine scan.
- the virtual pointer starts from the minimum value of the rotation range to the maximum value of the rotation range, and rotates at intervals of a second preset angle. Each time the second preset angle is rotated, the position of the virtual pointer in the first dial image is the first 2. Rotation position.
- the target pointer 21 is located within the rotation range determined according to the first target position.
- the second preset angle is set to 0.1°. Starting from the minimum value to the maximum value of the rotation range, rotate at a second preset angle of 0.1°, and every time you rotate a second preset angle of 0.1°, detect that the virtual pointer is at the second rotation position in the first dial image at this time.
- the position of the scan that is, the position corresponding to the maximum value of the rotation range.
- the rotation range starts from the position of the minimum value of the rotation range 182° to a second preset angle of 0.1° At this time, the number of second pixels at the first second rotation position is detected. Then, the second preset angle of 0.1° is rotated from the position where the angle between the reference position is 182.1°, and the second preset angle is detected at this time.
- the number of second pixels at the two second rotation positions, and then, starting from the position where the angle between the reference position is 182.2° and a second preset angle, the third second rotation position is detected at this time The number of second pixels, and so on, can reach the number of second pixels at 60 second rotation positions in total.
- the second number of pixels refers to the number of pixels with a gray value of 255 or a gray value of 0 at the second rotation position.
- the specific statistics are the number of pixels with a gray value of 255 or a gray value of 0, which is determined according to the background color of the meter dial in the first dial image and the color of the target pointer.
- the rotation direction of the virtual pointer 22 is shown by the arrow in FIG. 5, that is, the virtual pointer 22 starts from the minimum value of the rotation range to the maximum value of the rotation range; of course, the rotation direction of the virtual pointer 22 can also be Start from the maximum value of the rotation range to the minimum value of the rotation range.
- Step 305 Determine the second target position where the virtual pointer is located according to the number of second pixels at each of the second rotational positions.
- the second target position is determined according to the detected second pixel number of the virtual pointer at each second rotation position within the rotation range.
- step 305 may include sub-step S31, sub-step S32, and sub-step S33:
- Sub-step S31 when the second maximum value among the number of second pixel points corresponding to each of the second rotation positions is one, the second rotation position corresponding to the second maximum value is determined as the second target Location;
- Sub-step S32 when there are multiple second maximum values among the number of second pixel points corresponding to each of the second rotational positions, determine the center positions of the second rotational positions corresponding to the multiple second maximum values;
- sub-step S33 the center position of the second rotation position corresponding to the plurality of second maximum values is determined as the second target position.
- the second maximum value among the number of second pixel points at each second rotation position may be one or more.
- the second rotation position corresponding to the second maximum value is determined as the second target position; when the second maximum value is When there are multiple second maximum values in the number of second pixel points, determine the center positions of the second rotational positions corresponding to the multiple second maximum values, and determine the center positions of the second rotational positions corresponding to the multiple second maximum values Is the second target location.
- the maximum value of the rotation range is 188°
- the minimum value of the rotation range is 182°
- the second preset angle is 0.1°
- the second rotation position 1, the second rotation position 2, and the second rotation are detected within the rotation range
- the number of second pixels at position 3 is the second maximum
- the angle between the second rotation position 1 and the reference position is 185°
- the angle between the second rotation position 2 and the reference position is 185.1°
- the second The angle between the rotation position 3 and the reference position is 185.2°.
- Calculate the average of these three angles, and the average angle is 185.1°, which is the center of the second rotation position 1, the second rotation position 2 and the second rotation position 3.
- the position is the second rotational position 2, and the second rotational position 2 is determined as the second target position.
- Step 306 Determine, according to the second target position, a target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position.
- the target angle value between the target pointer and the reference position in the instrument dial corresponding to the first dial image is determined, and the second target position is the corresponding value of the first dial image.
- the position of the target pointer in the instrument dial is determined, and the second target position is the corresponding value of the first dial image.
- step 306 may include sub-step S41 and sub-step S42:
- Sub-step S41 determining a second angle value between the second target position and the reference position
- Sub-step S42 determining the second angle value as the target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position.
- sub-step S41 may include sub-step S411 and sub-step S412:
- Sub-step S411 determining a second number of rotations of the virtual pointer from the minimum value of the rotation range to the second target position, and calculating a second product of the second number of rotations and the second preset angle value;
- the virtual pointer in the first dial image is L
- the virtual pointer has rotated X second preset angles from the minimum value of the rotation range before reaching the second target position, that is, the second rotation
- the number of times is X
- the second preset angle is Y
- the second product value is X*Y.
- the second angle value between the second target position and the reference position is the sum of the minimum value of the rotation range and the second product value The value is L+X*Y.
- the second angle value between the second target position and the reference position is determined as the target angle value between the target pointer and the reference position on the meter dial corresponding to the first dial image.
- the target angle value between the target pointer and the reference position is 185.1°.
- Step 307 Find the target scale value corresponding to the target pointer from the preset corresponding relationship between the angle value and the scale value according to the target angle value.
- the corresponding relationship between the preset angle value and the scale value is established in advance, and the target angle value between the target pointer and the reference position is determined from the preset angle value and the scale value.
- the target scale value corresponding to the target angle value is searched to obtain the target scale value corresponding to the target pointer.
- step 307 it further includes step 601 to step 605:
- Step 601 When a third angle value between the virtual pointer and the reference position input by the user on the touch screen is received, control the touch screen to display that the virtual pointer is at the second The first position in the dial image;
- Step 602 In the case of receiving a third determination operation of the third angle value by the user, determine the third angle value as the start-of-scale angle value;
- Step 603 When receiving a fourth angle value between the virtual pointer and the reference position input by the user on the touch screen, control the touch screen to display that the virtual pointer is at the second The second position in the dial image;
- Step 604 In the case of receiving a user's fourth determining operation on the fourth angle value, determine the fourth angle value as the end-of-range angle value;
- Step 605 according to the range value input by the user on the touch screen, the start-of-range angle value, and the end-of-range angle value, determine the correspondence between a preset angle value and a scale value;
- the value includes the minimum measurement value and the maximum measurement value.
- the touch screen in order to determine the corresponding relationship between the preset angle value and the scale value, first, it is necessary to control the touch screen to display the second dial image corresponding to the meter dial, and control the touch screen to display the start-of-scale angle Value input box, the user can enter the third angle value in the input box of the start-of-scale angle value on the touch screen, and the touch screen receives the difference between the virtual pointer input by the user on the touch screen and the reference position The third angle value, and then control the touch screen to display the first position of the virtual pointer in the second dial image. At this time, the angle between the first position and the reference position is the third angle value, and the touch screen An OK option and a cancel option are displayed on the screen.
- the processor in the meter determines the third angle value as the start-of-scale angle value; when the user observes the first position of the virtual pointer in the second dial image, the scale corresponding to the smallest measured value in the range value
- the processor in the instrument controls the touch screen to redisplay the input box of the start-of-scale angle value. For the user to input the third angle value again.
- the user can input the fourth angle value in the input box of the end angle value of the range on the touch screen, and the touch screen receives the user’s input on the touch screen.
- the touch screen receives the user’s input on the touch screen.
- Enter the fourth angle value between the virtual pointer and the reference position and then control the touch screen to display the second position of the virtual pointer in the second dial image.
- the angle between the second position and the reference position is the first Four angle values, and a confirmation option and a cancellation option are displayed on the touch screen.
- the processor in the meter determines the fourth angle value as the end-of-range angle value; when the user observes the second position of the virtual pointer in the second dial image, the scale corresponding to the largest measurement value in the range value is not When overlapped, the user can touch the cancel option, and the touch screen receives the user's fourth cancel operation on the fourth angle value, and the processor in the meter controls the touch screen to redisplay the input box of the range end angle value for the user Enter the fourth angle value again.
- the touch screen determines the corresponding relationship between the preset angle value and the scale value according to the range value input by the user on the touch screen, the determined start-of-range angle value and the end-of-range angle value.
- the scale corresponding to each measurement value in the range value is evenly distributed in the meter dial, there is a linear relationship between the angle value and the scale value corresponding to the scale, as shown in Figure 2, the smallest measurement in the known range value After the value is 0, the maximum measurement value is 1.6, and the range start angle value and range end angle value, the angle value and scale can be determined directly according to the minimum measurement value, maximum measurement value, range start angle value and range end angle value Correspondence between values.
- the pointer length of the virtual pointer used can be consistent with the pointer length of the target pointer, so that the user can observe whether the virtual pointer is with the minimum measurement value.
- the corresponding scale and the scale corresponding to the maximum measurement value coincide; and when the target scale value pointed by the target pointer is actually detected, the pointer length of the virtual pointer needs to be set to 70% to 90% of the pointer length of the target pointer.
- the user manually enters the minimum measurement value, maximum measurement value, start-of-range angle value, and end-of-range angle value to generate the corresponding relationship between the angle value and the scale value, which reduces the calculation amount of the processor in the instrument and reduces the algorithm Difficulty, improve the stability of processor operation.
- the second dial image in the embodiment of the present disclosure refers to the dial image collected by the camera when the virtual pointer is constructed and the corresponding relationship between the angle value and the scale value is generated
- the first dial image refers to When measuring the scale value of the target pointer, the dial image collected by the camera.
- the virtual pointer is constructed in advance, and the virtual pointer is used to perform a rough scan in the first dial image to obtain the number of first pixels at each first rotation position to determine the first target position.
- a target position determines the rotation range of the virtual pointer during a fine scan in the first dial image, and the virtual pointer is used to perform a fine scan within the rotation range to obtain the number of second pixels at each second rotation position within the rotation range.
- the second target position is determined, and then the target angle value between the target pointer and the reference position is further determined, and finally the scale value of the target pointer is determined through the correspondence between the preset angle value and the scale value.
- the position of the target pointer is located by the number of first pixels at each first rotation position and the number of second pixels at each second rotation position, the position of the target pointer can be accurately identified, so that the target pointer’s The reading is more accurate; and, through the coarse scan first and then the fine scan, the processor's calculation amount can be effectively reduced.
- FIG. 7 a structural block diagram of a pointer positioning device according to an embodiment of the present disclosure is shown.
- the pointer positioning device 700 includes:
- the first detection module 701 is configured to detect the number of first pixels corresponding to the multiple first rotation positions when the virtual pointer rotates according to a first preset angle in the first dial image;
- the first target position determining module 702 is configured to determine the first target position where the virtual pointer is located according to the number of first pixels corresponding to each of the first rotational positions;
- the target angle value determining module 703 is configured to determine, according to the first target position, a target angle value between a target pointer and a reference position in the meter dial corresponding to the first dial image;
- the target scale value searching module 704 is configured to find the target scale value corresponding to the target pointer from the preset corresponding relationship between the angle value and the scale value according to the target angle value.
- the target angle value determining module 703 includes:
- a rotation range determining sub-module configured to determine the rotation range of the virtual pointer in the first dial image according to the first target position
- the detection sub-module is configured to detect the number of second pixels corresponding to the multiple second rotation positions when the virtual pointer rotates according to a second preset angle within the rotation range;
- the second target position determining sub-module is configured to determine the second target position where the virtual pointer is located according to the number of second pixels corresponding to each of the second rotational positions;
- the target angle value determining sub-module is configured to determine the target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position according to the second target position.
- the first target position determining module 702 includes:
- the target position first determining sub-module is configured to, when the first maximum value among the number of first pixel points at each of the first rotational positions is one, calculate the first rotational position corresponding to the first maximum value Determined as the first target location;
- the center position determining sub-module is configured to determine the center of the first rotation position corresponding to the multiple first maximum values when the first maximum value in the number of first pixel points at each of the first rotation positions is multiple Location;
- the second target position determining sub-module is configured to determine the center position of the first rotational position corresponding to the plurality of first maximum values as the first target position.
- the rotation range determining sub-module includes:
- a first angle value determining unit configured to determine a first angle value between the first target position and the reference position
- the maximum value determining unit is configured to determine the sum of the first angle value and the first preset value as the maximum value of the rotation range of the virtual pointer in the first dial image;
- the minimum value determining unit is configured to determine the difference between the first angle value and the second preset value as the minimum value of the rotation range of the virtual pointer in the first dial image;
- the rotation range determining unit is configured to determine the rotation range of the virtual pointer in the first dial image according to the maximum value of the rotation range and the minimum value of the rotation range.
- the second target position determining submodule includes:
- the target position first determining unit is configured to determine the second rotation position corresponding to the second maximum value when the second maximum value among the number of second pixel points at each of the second rotation positions is one Is the second target position;
- the center position determining unit is configured to determine the center position of the second rotation position corresponding to the plurality of second maximum values when the second maximum value in the number of second pixel points at each of the second rotation positions is multiple ;
- the second target position determining unit is configured to determine the center position of the second rotational position corresponding to the plurality of second maximum values as the second target position.
- the target angle value determining sub-module includes:
- a second angle value determining unit configured to determine a second angle value between the second target position and the reference position
- the target angle value determining unit is configured to determine the second angle value as a target angle value between the target pointer on the meter dial corresponding to the first dial image and the reference position.
- the pointer positioning device 700 further includes:
- the second dial image acquisition module is configured to acquire the second dial image collected by the camera
- the second dial image display module is configured to control the touch screen to display the second dial image
- a circle center coordinate display module configured to control the touch screen to display the position of the circle center coordinates in a preset circular pattern when receiving the circle center coordinates input by the user on the touch screen;
- the pointer center determination module is configured to determine the position where the center coordinates are located as the pointer center of the virtual pointer when the user's first determination operation on the center coordinates is received;
- the pointer length display module is configured to, upon receiving the pointer length input by the user on the touch screen, control the touch screen to display the pointer length in a preset linear pattern; One end coincides with the center of the pointer;
- a pointer length determining module configured to determine the pointer length as the pointer length of the virtual pointer in the case of receiving a second determination operation of the pointer length by the user;
- the virtual pointer construction module is configured to construct the virtual pointer according to the pointer center of the virtual pointer and the pointer length of the virtual pointer.
- the pointer positioning device 700 further includes:
- the first position display module is configured to control the touch screen to display the virtual The pointer is at the first position in the second dial image
- the start-of-scale angle value determination module is configured to determine the third angle value as the start-of-scale angle value in the case of receiving a third determination operation of the third angle value by the user;
- the second position display module is configured to, when receiving a fourth angle value between the virtual pointer and the reference position input by the user on the touch screen, control the touch screen to display the virtual The pointer is at the second position in the second dial image;
- the measuring range end angle value determining module is configured to determine the fourth angle value as the measuring range end angle value in the case of receiving a user's fourth determining operation on the fourth angle value;
- the corresponding relationship determination module is configured to determine the correspondence between the preset angle value and the scale value according to the range value, the start-of-range angle value, and the end-of-range angle value input by the user on the touch screen Relationship; the range value includes the minimum measurement value and the maximum measurement value.
- the pointer length of the virtual pointer is 70% to 90% of the pointer length of the target pointer.
- the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
- the virtual pointer is constructed in advance, and the virtual pointer is used to perform rotation scanning in the first dial image, and the number of first pixels at each first rotation position is compared to detect the position of the target pointer, and Determine the scale value of the target pointer through the correspondence between the preset angle value and the scale value. Since the position of the target pointer is located by the number of first pixels at each first rotation position, the target can be accurately identified The position of the pointer makes the reading of the target pointer more accurate.
- composition structure diagram of a meter according to an embodiment of the present disclosure.
- the embodiment of the present disclosure also provides a meter 800, which includes the pointer positioning device 700 described above.
- the meter 800 further includes a meter body 801, a camera 802, and a touch screen 803.
- the meter body 801 includes a meter dial 20 and a target pointer 21.
- the camera 802 is configured to capture the first dial image (actually the third dial image is captured, but after the capture, the third dial image needs to be binarized to obtain the first dial image) and the second dial Image;
- the touch screen 803 is configured to receive the center coordinates, pointer length, third angle value, fourth angle value, and range value input by the user, and to display the second dial image.
- the touch screen 803 can also receive the user's first confirm operation, first cancel operation, second confirm operation, second cancel operation, third confirm operation, third cancel operation, fourth confirm operation, and fourth cancel operation. .
- the pointer positioning device 700 may be a processor in the meter 800, and the pointer positioning function is implemented by the processor in the meter 800.
- the virtual pointer is constructed in advance, and the virtual pointer is used to perform rotation scanning in the first dial image, and the number of first pixels at each first rotation position is compared to detect the position of the target pointer, and Determine the scale value of the target pointer through the correspondence between the preset angle value and the scale value. Since the position of the target pointer is located by the number of first pixels at each first rotation position, the target can be accurately identified The position of the pointer makes the reading of the target pointer more accurate.
- the device embodiments described above are merely illustrative.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units.
- Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
- the various component embodiments of the present disclosure may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them.
- a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the computing processing device according to the embodiments of the present disclosure.
- DSP digital signal processor
- the present disclosure can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
- Such a program for realizing the present disclosure may be stored on a computer-readable medium, or may have the form of one or more signals.
- Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
- FIG. 9 shows a computing processing device that can implement the method according to the present disclosure.
- the computing processing device traditionally includes a processor 1010 and a computer program product in the form of a memory 1020 or a computer readable medium.
- the memory 1020 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the memory 1020 has a storage space 1030 for executing program codes 1031 of any method steps in the above methods.
- the storage space 1030 for program codes may include various program codes 1031 respectively used to implement various steps in the above method. These program codes can be read from or written into one or more computer program products.
- These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards, or floppy disks.
- Such a computer program product is usually a portable or fixed storage unit as described with reference to FIG. 10.
- the storage unit may have storage segments, storage spaces, etc. arranged similarly to the memory 1020 in the computing processing device of FIG. 9.
- the program code can be compressed in an appropriate form, for example.
- the storage unit includes computer-readable codes 1031', that is, codes that can be read by, for example, a processor such as 1010. These codes, when run by a computing processing device, cause the computing processing device to execute the method described above. The various steps.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Image Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
Claims (23)
- 一种指针定位方法,包括:在虚拟指针在第一表盘图像中按照第一预设角度旋转的情况下,检测多个第一旋转位置分别对应的第一像素点数量;根据各个所述第一旋转位置对应的第一像素点数量,确定所述虚拟指针所在的第一目标位置;根据所述第一目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与基准位置之间的目标角度值;根据所述目标角度值,从预设的角度值与刻度值之间的对应关系中,查找所述目标指针对应的目标刻度值。
- 根据权利要求1所述的方法,所述第一预设角度大于预设阈值,所述根据所述第一目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与基准位置之间的目标角度值的步骤,包括:根据所述第一目标位置,确定所述虚拟指针在所述第一表盘图像中的旋转范围;在所述虚拟指针在所述旋转范围内按照第二预设角度旋转的情况下,检测多个第二旋转位置分别对应的第二像素点数量;根据各个所述第二旋转位置对应的第二像素点数量,确定所述虚拟指针所在的第二目标位置;根据所述第二目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与所述基准位置之间的目标角度值。
- 根据权利要求1所述的方法,所述根据各个所述第一旋转位置对应的第一像素点数量,确定所述虚拟指针所在的第一目标位置的步骤,包括:当各个所述第一旋转位置对应的第一像素点数量中的第一最大值为一个时,将所述第一最大值所对应的第一旋转位置确定为所述第一目标位置;当各个所述第一旋转位置对应的第一像素点数量中的第一最大值为多个时,确定多个第一最大值对应的第一旋转位置的中心位置;将所述多个第一最大值对应的第一旋转位置的中心位置确定为所述第一目标位置。
- 根据权利要求2所述的方法,所述根据所述第一目标位置,确定所述虚拟指针在所述第一表盘图像中的旋转范围的步骤,包括:确定所述第一目标位置与所述基准位置之间的第一角度值;将所述第一角度值与第一预设值的和值,确定为所述虚拟指针在所述第一表盘图像中的旋转范围的最大值;将所述第一角度值与第二预设值的差值,确定为所述虚拟指针在所述第一表盘图像中的旋转范围的最小值;根据所述旋转范围的最大值和所述旋转范围的最小值,确定所述虚拟指针在所述第一表盘图像中的旋转范围。
- 根据权利要求2所述的方法,所述根据各个所述第二旋转位置对应的第二像素点数量,确定第二目标位置的步骤,包括:当各个所述第二旋转位置对应的第二像素点数量中的第二最大值为一个时,将所述第二最大值所对应的第二旋转位置确定为所述第二目标位置;当各个所述第二旋转位置对应的第二像素点数量中的第二最大值为多个时,确定多个第二最大值对应的第二旋转位置的中心位置;将所述多个第二最大值对应的第二旋转位置的中心位置确定为所述第二目标位置。
- 根据权利要求2所述的方法,根据所述第二目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与所述基准位置之间的目标角度值的步骤,包括:确定所述第二目标位置与所述基准位置之间的第二角度值;将所述第二角度值确定为所述第一表盘图像对应的仪表表盘中的目标指针与所述基准位置之间的目标角度值。
- 根据权利要求6所述的方法,所述确定所述第二目标位置与所述基准位置之间的第二角度值的步骤,包括:确定所述虚拟指针从所述旋转范围的最小值旋转至所述第二目标位置的第二旋转次数,计算所述第二旋转次数与所述第二预设角度的第二乘积值;将所述第二乘积值与所述旋转范围的最小值的和值,确定为所述第二角度值。
- 根据权利要求1所述的方法,所述第一预设角度小于预设阈值,所述根据所述第一目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与所述基准位置之间的目标角度值的步骤,包括:确定所述第一目标位置与所述基准位置之间的第一角度值;将所述第一角度值确定为所述第一表盘图像对应的仪表表盘中的目标指针与所述基准位置之间的目标角度值。
- 根据权利要求8所述的方法,所述确定所述第一目标位置与所述基准位置之间的第一角度值的步骤,包括:确定所述虚拟指针从所述基准位置旋转至所述第一目标位置的第一旋转次数,计算所述第一旋转次数与所述第一预设角度的第一乘积值;将所述第一乘积值确定为所述第一角度值。
- 根据权利要求1所述的方法,所述在虚拟指针在第一表盘图像中按照第一预设角度旋转的情况下,检测多个第一旋转位置分别对应的第一像素点数量的步骤之前,还包括:获取摄像头采集的第二表盘图像;控制触控屏显示所述第二表盘图像;在接收到用户在所述触控屏上输入的圆心坐标的情况下,控制所述触控屏以预设的圆形图案显示所述圆心坐标所在的位置;在接收到用户对所述圆心坐标的第一确定操作的情况下,将所述圆心坐标所在的位置确定为所述虚拟指针的指针圆心;在接收到用户在所述触控屏上输入的指针长度的情况下,控制所述触控屏以预设的直线图案显示所述指针长度;所述直线图案的一端与所述指针圆心重合;在接收到用户对所述指针长度的第二确定操作的情况下,将所述指针长度确定为所述虚拟指针的指针长度;根据所述虚拟指针的指针圆心和所述虚拟指针的指针长度,构建所述虚拟指针。
- 根据权利要求1所述的方法,在所述根据所述目标角度值,从预设的角度值与刻度值之间的对应关系中,查找所述目标指针对应的目标刻度值的步骤之前,还包括:在接收到用户在所述触控屏上输入的所述虚拟指针与所述基准位置之间的第三角度值时,控制所述触控屏显示所述虚拟指针在所述第二表盘图像中的第一位置;在接收到用户对所述第三角度值的第三确定操作的情况下,将所述第三角度值确定为量程起始角度值;在接收到用户在所述触控屏上输入的所述虚拟指针与所述基准位置之间的第四角度值时,控制所述触控屏显示所述虚拟指针在所述第二表盘图像中的第二位置;在接收到用户对所述第四角度值的第四确定操作的情况下,将所述第四角度值确定为量程终止角度值;根据用户在所述触控屏上输入的量程值、所述量程起始角度值和所述量程终止角度值,确定预设的角度值与刻度值之间的对应关系;所述量程值包括最小测量值和最大测量值。
- 根据权利要求1所述的方法,所述虚拟指针从所述基准位置开始以所述第一预设角度为间隔旋转,每旋转所述第一预设角度,所述虚拟指针在所述第一表盘图像中的位置为所述第一旋转位置。
- 根据权利要求1至12中任一项所述的方法,所述虚拟指针的指针长度为所述目标指针的指针长度的70%至90%。
- 根据权利要求1至12中任一项所述的方法,所述虚拟指针的指针宽度小于所述目标指针的指针宽度。
- 根据权利要求1所述的方法,所述第一像素点的数量为所述第一旋转位置对应的灰度值为255或灰度值为0的像素点的数量。
- 一种指针定位装置,包括:第一检测模块,被配置为在虚拟指针在第一表盘图像中按照第一预设角度旋转的情况下,检测多个第一旋转位置分别对应的第一像素点数量;第一目标位置确定模块,被配置为根据各个所述第一旋转位置对应的第一像素点数量,确定所述虚拟指针所在的第一目标位置;目标角度值确定模块,被配置为根据所述第一目标位置,确定所述第一表盘图像对应的仪表表盘中的目标指针与基准位置之间的目标角度值;目标刻度值查找模块,被配置为根据所述目标角度值,从预设的角度值与刻度值之间的对应关系中,查找所述目标指针对应的目标刻度值。
- 一种仪表,包括如权利要求16所述的指针定位装置。
- 根据权利要求17所述的仪表,所述仪表还包括仪表本体、摄像头和触控屏;所述仪表本体包括仪表表盘和目标指针;所述摄像头,被配置为采集第一表盘图像和第二表盘图像;所述触控屏,被配置为接收用户输入的圆心坐标、指针长度、第三角度值、第四角度值和量程值,以及显示所述第二表盘图像。
- 根据权利要求18所述的仪表,所述第一表盘图像为对所述摄像头采集的第三表盘图像进行二值化处理得到的图像;其中,所述第三表盘图像为所述摄像头采集的所述仪表表盘对应的彩色图像。
- 根据权利要求18所述的仪表,所述触控屏,还被配置为接收用户的第一确定操作、第一取消操作、第二确定操作、第二取消操作、第三确定操作、第四确定操作以及第四取消操作。
- 一种计算处理设备,其中,包括:存储器,其中存储有计算机可读代码;以及一个或多个处理器,当所述计算机可读代码被所述一个或多个处理器执行时,所述计算处理设备执行如权利要求1-15中任一项所述的指针定位方法。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据权利要求1-15中任一项所述的指针定位方法。
- 一种计算机可读介质,其中存储了如权利要求22所述的计算机程序。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/628,162 US20240036658A1 (en) | 2020-03-27 | 2021-03-26 | Pointer positioning method and apparatus, and instrument |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010232222.1A CN111428659A (zh) | 2020-03-27 | 2020-03-27 | 一种指针定位方法、装置及仪表 |
CN202010232222.1 | 2020-03-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021190640A1 true WO2021190640A1 (zh) | 2021-09-30 |
Family
ID=71549106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/083331 WO2021190640A1 (zh) | 2020-03-27 | 2021-03-26 | 指针定位方法、装置及仪表 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20240036658A1 (zh) |
CN (1) | CN111428659A (zh) |
WO (1) | WO2021190640A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114371897A (zh) * | 2021-12-30 | 2022-04-19 | 歌尔科技有限公司 | 一种表盘界面显示方法、装置、设备及介质 |
CN116012828A (zh) * | 2022-12-02 | 2023-04-25 | 长扬科技(北京)股份有限公司 | 指针式仪表识别方法、装置、电子设备及存储介质 |
CN116071604A (zh) * | 2023-03-03 | 2023-05-05 | 北京尚优力达科技有限公司 | 一种基于图像的指针表识别方法及装置 |
CN117372937A (zh) * | 2023-12-07 | 2024-01-09 | 江西理工大学南昌校区 | 一种基于指针仪表的数据读取方法 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111428659A (zh) * | 2020-03-27 | 2020-07-17 | 京东方科技集团股份有限公司 | 一种指针定位方法、装置及仪表 |
CN111860464B (zh) * | 2020-08-07 | 2021-12-07 | 成都交大光芒科技股份有限公司 | 变电所辅助监控系统指针读数识别补偿方法及装置 |
CN112307887B (zh) * | 2020-09-02 | 2023-04-21 | 国网浙江省电力有限公司嘉兴供电公司 | 一种sf6气体压力智能在线监测预警方法及系统 |
CN113269193A (zh) * | 2021-06-08 | 2021-08-17 | 上海高德威智能交通系统有限公司 | 指针式表计的示数读取方法、装置及存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1789923A (zh) * | 2004-12-16 | 2006-06-21 | 赵建洋 | 一种指针表自动认读方法 |
JP2011196713A (ja) * | 2010-03-17 | 2011-10-06 | Fujitsu Ltd | 算出装置、プログラム及び算出方法 |
CN103714329A (zh) * | 2013-12-31 | 2014-04-09 | 长安大学 | 一种仪表指针识别的检测算法 |
CN110111387A (zh) * | 2019-04-19 | 2019-08-09 | 南京大学 | 一种基于表盘特征的指针表定位及读数算法 |
CN111428659A (zh) * | 2020-03-27 | 2020-07-17 | 京东方科技集团股份有限公司 | 一种指针定位方法、装置及仪表 |
CN112258379A (zh) * | 2020-10-22 | 2021-01-22 | 京东方科技集团股份有限公司 | 图像处理方法、装置、设备及存储介质 |
CN112347877A (zh) * | 2020-10-27 | 2021-02-09 | 京东方科技集团股份有限公司 | 仪表识别方法及系统、电子设备和可读存储介质 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105091922B (zh) * | 2014-05-04 | 2019-09-20 | 广东工业大学 | 一种基于虚拟表盘的指针表读数识别方法 |
CN104484857B (zh) * | 2014-12-26 | 2017-08-18 | 国网重庆市电力公司电力科学研究院 | 一种仪表数据读取方法及系统 |
US10108874B2 (en) * | 2017-03-06 | 2018-10-23 | Intelligent Security Systems Corporation | Systems and methods for evaluating readings of gauge dials |
CN110245654B (zh) * | 2018-11-20 | 2024-06-07 | 浙江大华技术股份有限公司 | 指针读数识别方法及装置、计算机装置及可读存储介质 |
CN110059622A (zh) * | 2019-04-18 | 2019-07-26 | 华北电力大学(保定) | 一种基于无线传感器网络的指针式仪表示值识别系统 |
CN110633679B (zh) * | 2019-09-19 | 2022-04-08 | 湘潭大学 | 一种基于遗传算法的指针式仪表示数自动识别方法及系统 |
US11443133B2 (en) * | 2019-12-10 | 2022-09-13 | Ricoh Company, Ltd. | Computer vision system for industrial equipment gauge digitization and alarms |
-
2020
- 2020-03-27 CN CN202010232222.1A patent/CN111428659A/zh active Pending
-
2021
- 2021-03-26 US US17/628,162 patent/US20240036658A1/en active Pending
- 2021-03-26 WO PCT/CN2021/083331 patent/WO2021190640A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1789923A (zh) * | 2004-12-16 | 2006-06-21 | 赵建洋 | 一种指针表自动认读方法 |
JP2011196713A (ja) * | 2010-03-17 | 2011-10-06 | Fujitsu Ltd | 算出装置、プログラム及び算出方法 |
CN103714329A (zh) * | 2013-12-31 | 2014-04-09 | 长安大学 | 一种仪表指针识别的检测算法 |
CN110111387A (zh) * | 2019-04-19 | 2019-08-09 | 南京大学 | 一种基于表盘特征的指针表定位及读数算法 |
CN111428659A (zh) * | 2020-03-27 | 2020-07-17 | 京东方科技集团股份有限公司 | 一种指针定位方法、装置及仪表 |
CN112258379A (zh) * | 2020-10-22 | 2021-01-22 | 京东方科技集团股份有限公司 | 图像处理方法、装置、设备及存储介质 |
CN112347877A (zh) * | 2020-10-27 | 2021-02-09 | 京东方科技集团股份有限公司 | 仪表识别方法及系统、电子设备和可读存储介质 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114371897A (zh) * | 2021-12-30 | 2022-04-19 | 歌尔科技有限公司 | 一种表盘界面显示方法、装置、设备及介质 |
CN116012828A (zh) * | 2022-12-02 | 2023-04-25 | 长扬科技(北京)股份有限公司 | 指针式仪表识别方法、装置、电子设备及存储介质 |
CN116071604A (zh) * | 2023-03-03 | 2023-05-05 | 北京尚优力达科技有限公司 | 一种基于图像的指针表识别方法及装置 |
CN117372937A (zh) * | 2023-12-07 | 2024-01-09 | 江西理工大学南昌校区 | 一种基于指针仪表的数据读取方法 |
CN117372937B (zh) * | 2023-12-07 | 2024-03-29 | 江西理工大学南昌校区 | 一种基于指针仪表的数据读取方法 |
Also Published As
Publication number | Publication date |
---|---|
US20240036658A1 (en) | 2024-02-01 |
CN111428659A (zh) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021190640A1 (zh) | 指针定位方法、装置及仪表 | |
CN110363076B (zh) | 人员信息关联方法、装置及终端设备 | |
CN110659636B (zh) | 基于深度学习的指针式仪表读数识别方法 | |
JP2021184307A (ja) | ビジョンシステムでラインを検出するためのシステム及び方法 | |
CN109656408B (zh) | 基于区域镜像的触控坐标计算方法、触控装置及移动终端 | |
CN109165657A (zh) | 一种基于改进sift的图像特征检测方法及装置 | |
CN110852954B (zh) | 指针式仪表的图像倾斜校正方法及系统 | |
Mai et al. | An automatic meter reading method based on one-dimensional measuring curve mapping | |
CN109634460B (zh) | 一种基于区域镜像的触控识别方法、装置及触控显示装置 | |
CN116051600A (zh) | 产品检测轨迹的优化方法和装置 | |
CN111950553A (zh) | 一种指针式仪表自动对准方法及装置 | |
JP2017068465A (ja) | 情報処理装置、制御方法、及びプログラム | |
CN109241892B (zh) | 一种仪表盘读取方法、仪表盘读取装置及电子设备 | |
CN113050022B (zh) | 一种基于旋转天线的图像定位方法、装置及终端设备 | |
CN110446256B (zh) | 一种基于超宽带的基站实现定位的方法及设备 | |
CN110196422B (zh) | 激光测距的测试方法、测试装置及移动终端 | |
Wu et al. | Lens distortion correction based on one chessboard pattern image | |
CN109444905B (zh) | 一种基于激光的动态物体检测方法、装置及终端设备 | |
CN108564571B (zh) | 图像区域选取方法及终端设备 | |
CN111598094B (zh) | 基于深度学习的角度回归仪表读数识别方法、设备和系统 | |
CN108898632B (zh) | 一种仪表指针的旋转角度确定方法及装置 | |
CN108985160B (zh) | 一种确定指针式仪表读数的方法和装置 | |
CN112906681A (zh) | 一种仪表读数方法、装置、电子设备及存储介质 | |
CN115565164B (zh) | 仪表盘数值识别方法、装置、设备及存储介质 | |
CN116907498A (zh) | 一种可见光通信地图生成方法、装置、终端及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21774178 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 17628162 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21774178 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.05.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21774178 Country of ref document: EP Kind code of ref document: A1 |