Embodiments described herein relate generally to a reading system, a reading method, and a storage medium.
There is a system that reads a numerical value indicated by a round meter. It is desirable for the system to have high accuracy of reading the numerical value.
According to one embodiment, a reading system includes a calculator and a determiner. The calculator calculates a total value of luminances in at least a portion of a second direction and fluctuation of the luminances in the at least a portion of the second direction at each of a plurality of points in a first direction for at least a portion of an image subjected to a polar transformation. A meter is imaged in the image. The meter includes a pointer, a display panel, and a plurality of graduations. The pointer rotates around a rotation axis. The plurality of graduations are arranged along a circumferential direction around the rotation axis on the display panel. The polar transformation is referenced to a center of the meter. The first direction corresponds to the circumferential direction. The second direction corresponds to a diametrical direction from the center toward the graduations. The determiner uses the total value and the fluctuation to determine a position at which the pointer exists.
Various embodiments are described below with reference to the accompanying drawings.
In the specification and drawings, components similar to those described previously or illustrated in an antecedent drawing are marked with like reference numerals, and a detailed description is omitted as appropriate.
The reading system 1 according to the embodiment is used to read a numerical value indicated by a pointer in a meter from an image in which the meter is imaged. The reading system 1 according to the embodiment is used favorably for a meter including a pointer rotating around a rotation axis, and multiple graduations arranged along a circumferential direction around the rotation axis. In the meter to be read, the multiple graduations may be arranged in a circular or circular arc-like configuration. The meter further includes a display panel on which the multiple graduations are marked, and numerical values marked to correspond to at least a portion of the multiple graduations. Typically, in such a meter, the outer rim, the outer frame, and the like of the display panel are circular. In the description of the embodiments hereinafter, such a meter is called a round meter.
As illustrated in
The imager 11 acquires a static image by imaging a round meter. The imager 11 outputs the acquired image to the meter extractor 12. The imager 11 may store the image in the memory part 19. When a video image is imaged by the imager 11, a static image is cut out from the video image and output to the meter extractor 12. An object other than a round meter may be imaged in the image.
The meter extractor 12 extracts, from the image acquired by the imager 11, a portion in which the round meter is imaged. The meter extractor 12 outputs the extracted portion to the corrector 13.
As one specific example, the meter extractor 12 includes a contour extractor 12a and a selector 12b. In the description, the image that is imaged by the imager 11 and input to the meter extractor 12 is called the input image.
For example, the contour extractor 12a extracts a contour included in the input image based on a brightness difference of the input image. The contour extractor 12a may perform additional processing of the image as appropriate when extracting the contour. For example, the contour extractor 12a may convert the input image into a grayscale, subsequently binarize the image, and extract a contour of a region illustrated using white from the binary image.
The selector 12b calculates the surface area of the region surrounded with the contour. When multiple contours are extracted, the surface area of each region is calculated. The selector 12b compares each calculated surface area to a prescribed threshold and selects only the regions for which the surface area is not less than the threshold. Thereby, regions that have surface areas that are too small are excluded, and only the regions that have a high likelihood of the round meter being imaged are selected. The selector 12b extracts (cuts out), from the input image, a portion corresponding to the selected region. The selector 12b outputs the extracted portion to the corrector 13.
When the image that is input is distorted, the corrector 13 corrects the image to approach the image when viewed from the front. For example, the corrector 13 corrects the image by performing a projective transformation. In the example of the image illustrated in
The calculator 14 includes, for example, a polar coordinate converter 14a, a first calculator 14b, and a second calculator 14c.
The polar coordinate converter 14a detects the center of the round meter included in the image after the conversion.
For example, the calculator 14 detects the outer edge of the display panel of the round meter based on the luminance difference of the image. When the outer edge of the display panel is circular, the calculator 14 approximates the outer edge as a perfect circle. The calculator 14 uses the center of the perfect circle as the center of the round meter.
When the outer edge of the display panel is not circular, the calculator 14 may detect the center of the round meter by using the multiple graduations marked on the display panel. Specifically, when the graduations are linear, the calculator 14 generates a virtual straight line along each graduation. The calculator 14 detects the intersections of the straight lines and uses the position of the centroid of the multiple intersections as the center of the round meter.
The polar coordinate converter 14a performs a polar transformation of the image referenced to the detected center of the round meter. For example, the following Formula (1) and Formula (2) are used in the polar transformation. The image may be grayscaled or binarized as appropriate before performing the polar transformation. For example, the image illustrated in
X=R cos θ (1)
Y=R sin θ (2)
The angle in the round meter is calculated using a prescribed line as a reference. For example, the polar coordinate converter 14a generates a virtual ray extending rightward horizontally from the center of the round meter. When calculating the angle of a point in the image, the polar coordinate converter 14a generates another ray connecting the point and the vertex (the center of the round meter). The polar coordinate converter 14a calculates, as the angle of the point, the angle between the other ray and the ray used as the reference.
The first calculator 14b uses the result of the polar transformation to calculate the total value of the luminances in the Y-direction at each of multiple points in the X-direction. The second calculator 14c calculates the fluctuation of the luminances in the Y-direction at each of the multiple points in the X-direction. The first calculator 14b and the second calculator 14c output the calculated results to the determiner 15.
When the luminance of a pixel has 256 gradations from 0 to 255, the gradations of the luminance of all of the pixels arranged in the Y-direction are totaled, and the totaled value is used as the total value of the luminances. This is similar even when the image is binary. “0” or “1” that represents the luminance is totaled for all of the pixels arranged in the Y-direction, and the totaled value is used as the total value of the luminances. The total value increases as more bright pixels are arranged in the Y-direction.
For example, the fluctuation of the luminances is calculated by the following method. First, the average value of the luminances in the Y-direction is calculated. Then, the standard deviation of the luminances in the Y-direction is calculated using the average value. The standard deviation is used as the fluctuation of the luminances. Or, the variance, the root mean square, the contrast ratio, the interquartile range (IQR), etc., of the luminances in the Y-direction may be used as the fluctuation of the luminances.
For example, a contrast ratio CR is represented by the following Formula (3). Imax is the maximum value of the luminance in the Y-direction. Imin is the minimum value of the luminance in the Y-direction.
CR=(Imax−Imin)/(Imax+Imin) (3)
For example, the total value of the luminances and the fluctuation of the luminances are calculated at each of multiple points in the X-direction for the image illustrated in
The determiner 15 uses the total value of the luminances and the fluctuation of the luminances to determine the position in the X-direction where the pointer of the round meter exists. The position in the X-direction in the image after the polar transformation is the angle having the center of the round meter as the vertex in the image before the polar transformation. In other words, the angle at which the pointer exists is obtained by determining the position in the X-direction where the pointer exists.
As one specific example, the determiner 15 includes an extractor 15a and a discriminator 15b. A case will now be described in which the color of the display panel is relatively bright and the color of the pointer is relatively dark in the round meter to be read.
By using the calculation result of the calculator 14, the extractor 15a extracts a position in the X-direction where the luminance has a minimum in the image after the polar transformation. Multiple extracted positions may be extracted. The extracted position is a candidate of a position at which the pointer exists. This is because the total value of the luminances in the Y-direction at the position at which the pointer exists is less than that of the other positions when the color of the pointer is darker than the color of the display panel.
The discriminator 15b refers to the fluctuation of the luminances at each of the extracted positions. For example, the discriminator 15b compares the fluctuation of the luminances to a first threshold for each of the extracted positions. From the extracted positions, the discriminator 15b discriminates a position at which a fluctuation that is not more than the first threshold is obtained to be the position at which the pointer exists.
There are cases where multiple positions are included in the candidates extracted by the extractor 15a. For example, the position of one end portion of the pointer and the position of the other end portion of the pointer are included at such positions. The one end portion and the other end portion are end portions in the direction in which the pointer extends. The one end portion of the pointer is the portion indicating the region where the graduations are arranged, and the other end portion of the pointer is at an opposite position so that the rotation axis is sandwiched between the other end portion and the one end portion. The one end portion is the position more proximately to the region where the graduations are arranged than is the other end portion. The distance between the one end portion and the rotation axis is greater than the distance between the other end portion and the rotation axis. Hereinafter, the one end portion of the pointer recited above is called the “tip”, and the other end portion recited above is called the “back end”.
According to the round meter, the back end of the pointer may protrude past the center of the display panel away from the tip. In such a case, the position of the pointer tip and the position of the pointer back end may be extracted as candidates of the position at which the pointer exists.
However, in such a case as well, the distance between the center and the tip of the pointer is greater than the distance between the back end and the center. Therefore, fewer pixels of the color of the display panel exist in the Y-direction at the position at which the tip of the pointer exists than at the position at which the back end of the pointer exists. In other words, more pixels having low luminances and fewer pixels having high luminances exist at the position at which the tip of the pointer exists than at the position at which the back end of the pointer exists. As a result, the fluctuation of the luminances in the Y-direction is smaller at the position at which the tip of the pointer exists than at the position at which the back end of the pointer exists. Accordingly, the position at which the pointer exists can be discriminated by using the fluctuation of the luminances.
In the example illustrated in
In the image after the polar transformation, the position in the X-direction represents the angle having the center of the round meter as the vertex as shown in the horizontal axis of
The memory part 19 stores information relating to the graduations of the round meter. Specifically, a table of a correspondence between the angle of the pointer and the numerical value indicated by the pointer, the maximum value and the minimum value of the numerical values marked on the graduations, etc., are stored in the memory part 19. Based on the information of the memory part 19, the converter 17 converts the angle at which the pointer exists into a numerical value. The numerical value that is indicated by the pointer is obtained thereby. For example, the converter 17 outputs the converted numerical value to the outside.
The table of the memory part 19 is of a correspondence between the angle of the pointer and the numerical values in a state in which the round meter is disposed at a position having some reference. For example, there are cases where the round meter that is imaged by the imager 11 is rotated some angle with respect to the reference position. In such a case, if the angle at which the pointer exists is converted to a numerical value by referring to the table, an error of the amount of the rotated angle occurs.
Therefore, for the angles recited above, it is desirable for the angle acquired by the determiner 15 to be corrected by the relative angle calculator 16. The relative angle calculator 16 calculates a relative rotation angle (the relative angle) between the round meter that is imaged and the reference position of the round meter.
For example, the positional relationship of the graduation corresponding to the minimum value and the graduation corresponding to the maximum value of the round meter to be read are stored in the memory part 19. In a general round meter, the graduations are marked consecutively in a direction from the graduation of the minimum value toward the graduation of the maximum value. Also, in the reverse direction, the graduation of the minimum value and the graduation of the maximum value are separated from each other. The direction in which the graduation of the minimum value and the graduation of the maximum value are separated and the distance between the graduations are stored as the information of the positional relationship in the memory part 19. The relative angle calculator 16 detects the positional relationship between the graduation of the minimum value and the graduation of the maximum value from the corrected image. The relative angle calculator 16 calculates the relative angle by comparing the detected positional relationship to the positional relationship stored in the memory part 19.
Or, the relative angle calculator 16 may calculate the relative angle from the corrected image. For example, the relative angle calculator 16 recognizes the multiple numerical values marked on the display panel by using technology such as OCR (Optical Character Recognition), pattern matching, etc. Then, the relative angle calculator 16 detects the tilts of the recognized multiple numerical values and uses the average of the tilts as the tilt (the relative angle) of the round meter.
The relative angle calculator 16 adds or subtracts the calculated rotation angle to or from the angle acquired by the determiner 15. The converter 17 converts the angle calculated by the relative angle calculator 16 into a numerical value. The reading accuracy of the numerical value is increased thereby.
First, the imager 11 acquires an image by imaging a round meter (step S11). Then, the contour extractor 12a extracts a contour of the image (step S12a). The selector 12b selects a contour that has not less than a prescribed surface area (step S12b). When the image corresponding to the selected contour is distorted, the corrector 13 corrects the distortion (step S13). The polar coordinate converter 14a performs a polar transformation of the corrected image (step S14a). The first calculator 14b calculates the total value of the luminances in the Y-direction for each of multiple points in the X-direction (step S14b). The second calculator 14c calculates the fluctuation of the luminances in the Y-direction for each of the multiple points in the X-direction (step S14c).
The extractor 15a extracts the positions in the X-direction where the total value of the luminances has a minimum (step S15a). The discriminator 15b compares the fluctuation of the luminances to the first threshold at each of the extracted positions. A position at which the fluctuation is not more than the first threshold is discriminated thereby (step S15b). The relative angle calculator 16 calculates the relative angle between the round meter that is imaged and the state of the round meter stored in the memory part 19 (step S16). The converter 17 uses the calculated relative angle to convert the angle corresponding to the discriminated position into a numerical value (step S17).
The sequence of the steps described above is modifiable as appropriate. For example, the calculation of the fluctuation of the luminances (step S14c) may be performed after the extraction of the position (step S15a). The calculation of the relative angle (step S16) may be performed before the polar transformation of the image (step S14a) or before the extraction of the position (step S15a). When calculating the relative angle from the tilts of the multiple numerical values, the calculation of the tilts may be performed before the polar transformation of the image (step S14a).
Effects of the embodiments will now be described.
Initially, a reading system according to a reference example will be described. In the reading system according to the reference example, a polar transformation is performed for an image in which a round meter is imaged. The total value of the luminances in the Y-direction is calculated for each of multiple points in the X-direction. The pointer is detected based on the total values. According to this method, the pointer can be detected with high accuracy even when the image is unclear. The pointer can be detected with high accuracy even when a seal or the like is adhered to the round meter and a portion of the pointer cannot be viewed.
However, as described above, there are cases where it is difficult to discriminate between the tip and the back end of the pointer in the detection based on the total value of the luminances. If the tip and the back end of the pointer cannot be discriminated when the rotation range of the pointer is 180 degrees or more, the numerical value that is indicated by the pointer cannot be read.
Therefore, in the reading system 1 according to the embodiment, the position at which the pointer exists is discriminated using the fluctuation of the luminances as well. As described above, the fluctuations of the luminances are different between the position at which the tip of the pointer exists and the position at which the back end of the pointer exists. By using the fluctuation of the luminances, the tip of the pointer can be discriminated with high accuracy.
Accordingly, according to the reading system 1 according to the embodiment, the accuracy of the reading of the indicated numerical value can be increased particularly for a round meter in which the rotation range of the pointer is 180 degrees or more.
There are cases where many dark pixels are included in the rotation axis portion or the graduation portion of the pointer according to the shape of the pointer, the resolution of the image that is imaged, etc. In such a case, the calculator 14 may calculate the total value of the luminances or the fluctuation of the luminances in the Y-direction after excluding such portions.
For example, the first calculator 14b calculates the total value of the luminances in the Y-direction after excluding at least one of the portion including the rotation axis or the portion including the graduations of the pointer from the image having undergone the polar transformation. The second calculator 14c calculates the fluctuation of the luminances in the Y-direction after excluding at least one of the portion including the rotation axis or the portion including the graduations of the pointer from the image having undergone the polar transformation.
Or, the polar coordinate converter 14a may perform the polar transformation of the image after excluding at least one of the portion including the rotation axis or the portion including the graduations of the pointer. However, the processing can be fast in the image having undergone the polar transformation because the portions to be excluded are rectangular. For faster processing, it is desirable for the rotation axis portion and the graduation portion to be excluded from the calculations of the first calculator 14b and the second calculator 14c described above.
There are cases where a seal or the like is adhered to the front surface of the round meter. There is a possibility of erroneous detection of the position of the pointer when calculating the total value of the luminances and the fluctuation of the luminances if the luminance of the portion where the seal is adhered is included in the calculation. In particular, the likelihood of an erroneous detection becomes high when the color of the seal has low reflectance such as black, red, etc. Accordingly, when a seal is adhered to the round meter, the calculator 14 may calculate the total value of the luminances or the fluctuation of the luminances in the Y-direction after excluding the portion of the seal from the image.
For example, the polar coordinate converter 14a performs the polar transformation of the image after excluding the portion where the seal is adhered. The portion where the seal is adhered is prestored in the memory part 19. The first calculator 14b and the second calculator 14c calculate the total value of the luminances and the fluctuation of the luminances after excluding the seal from the image having undergone the polar transformation.
Or, the first calculator 14b and the second calculator 14c may calculate the total value of the luminances and the fluctuation of the luminances after excluding the portion including the seal from the image having undergone the polar transformation. However, for faster processing, it is desirable to perform the polar transformation of the image after excluding the seal. Typically, the exterior form of such a seal is rectangular. Therefore, if the polar transformation is performed for the portion including the seal, the portion no longer is rectangular, and the processing becomes complex.
In the description of the example described above, the color of the display panel is relatively bright, and the colors of the pointer and the graduations are relatively dark; however, the round meter that is readable by the reading system 1 according to the embodiment is not limited to the example. In the round meter to be read, the color of the display panel may be relatively dark, and the colors of the pointer and the graduations may be relatively bright. In such a case, compared to the other positions, many bright pixels exist at the position at which the pointer exists in the image after the polar transformation. Accordingly, the extractor 15a extracts the position at which the total value of the luminances in the Y-direction has a maximum. The discriminator 15b extracts the position at which the pointer exists by using the fluctuation of the luminances in the Y-direction from the extracted position.
When multiple positions are extracted by the extractor 15a, the discriminator 15b may discriminate the position at which the pointer exists by the following processing. The discriminator 15b verifies whether or not two positions corresponding to diagonal in the meter are included in the multiple positions. Two positions that correspond to diagonal in the meter refer to when the difference between the angle corresponding to one position and the angle corresponding to the other position is substantially 180 degrees. A tolerable difference may be set for such an angle difference based on the performance of the imager 11, the resolution of the image, etc. When two positions corresponding to diagonal exist, the tip and the back end of the pointer exist at these positions. The discriminator 15b compares the fluctuations of the luminances between these positions, and discriminates that the pointer exists where the fluctuation is smaller.
In the description described above, the determiner 15 includes the extractor 15a and the discriminator 15b. The processing of the determiner 15 is not limited to the example. For example, the determiner 15 may perform, in parallel, the extraction of the position at which the total value of the luminances has an extremum and the extraction of the position at which the fluctuation of the luminances is not more than the first threshold. The determiner 15 determines the position that satisfies both conditions to be the position at which the pointer exists. Or, the determiner 15 may extract the range of the positions at which the fluctuation of the luminances is not more than the first threshold and may perform the discrimination for the positions in the range at which the total values of the luminances have extrema. In other words, the specific processing of the determiner 15 is modifiable as appropriate as long as a position can be found at which the total value of the luminances has a minimum value or a maximum value and the fluctuation of the luminances is not more than the first threshold.
In the example of the description described above, the reading system 1 includes the imager 11, the meter extractor 12, and the corrector 13; however, the reading system 1 may not include these components. For example, these components are unnecessary when an image for which the distortion is corrected is input to the reading system 1.
Desirable forms and modifications of the reading system 1 according to the embodiment will now be described. The forms that include the modifications described below can be implemented in combination with each other as appropriate.
The graphs of
The total value of the intensity of black corresponds to the total value of the luminances. The total value of the intensity of black is calculated by the following method. First, the total of the maximum values of the luminance in the Y-direction is calculated. For example, when the luminance has 256 gradations, 255 is the maximum value of the luminance. The value of the number of pixels in the Y-direction multiplied by 255 is the total of the maximum values of the luminance. Then, the total value of the luminances in the Y-direction is calculated. The value of the total value of the luminances subtracted from the total of the maximum values is the total value of the intensity of black.
As illustrated in
When many positions are extracted by the extractor 15a, there is a possibility that the discriminator 15b cannot discriminate only one position. For example, when the first threshold th1 is set as illustrated in
However, by narrowing down the extracted positions, it is easier for the discriminator 15b to discriminate only one position. For example, because only the ranges Ra1 and Ra2 are searched as illustrated in
Accordingly, according to the method recited above, the accuracy of the reading of the numerical value can be increased further.
The first threshold th1 and the second threshold th2 may be preset by the user or may be set based on the calculation results of the total value of the intensity of black and the fluctuation of the luminances. For example, the extractor 15a uses 70% of the maximum value of the total values of the luminances as the second threshold th2. The discriminator 15b uses 70% of the maximum value of the fluctuations of the luminances as the first threshold th1. By setting the thresholds based on the calculation result, the position at which the pointer exists can be discriminated with higher accuracy compared to when the thresholds are prefixed. As a result, the accuracy of the reading of the numerical value can be increased further.
Here, a case is described where the total value of the luminances that is calculated is converted into the total value of the intensity of black, and the first threshold th1 is set for the total value of the intensity of black. The first threshold may be set for the calculation result of the total value of the luminances as illustrated in
In the example described above, the position at which the total value of the intensity of black has a maximum is extracted by using the total value of the intensity of black that corresponds to the total value of the luminances. Thus, other numerical values that correspond to the total value of the luminances may be used for the candidates of the positions of the pointer. Such methods can be considered to substantially extract the position at which the total value of the luminances has a minimum.
The extractor 15a compares the total value of the luminances to the second threshold at each of multiple points in the X-direction and extracts a range in the X-direction where the total values are not more than the second threshold (step S15a1). The extractor 15a extracts the positions at which the total values of the luminances have minima in the extracted range (step S15a2). From the extracted positions, the discriminator 15b discriminates the position at which the fluctuation of the luminances is not more than the first threshold (step S15b).
When the corrected image is input, the polar coordinate converter 14a extracts only the pixels having low luminances and performs a polar transformation of the extracted pixels. For example, when the luminance has 256 gradations, the polar transformation is performed for only the pixels having luminances of a gradation of 127 or less. When the luminance is binary, the polar transformation is performed for only the black pixels.
Based on the result of the polar transformation, the first calculator 14b calculates the total value of the luminances in the Y-direction at each of multiple points in the X-direction. In the case of the modification, only the luminances of the pixels having undergone the polar transformation are used in the calculation.
The extractor 15a extracts the position in the X-direction where the total value of the luminances has a minimum. The extractor 15a outputs the extraction result to the second calculator 14c. The second calculator 14c calculates the fluctuation of the luminances at the extracted position for the result of the polar transformation.
In the modification, the polar transformation is performed for only the pixels having low luminances; therefore, the information of the luminance exists for only a portion of the Y-direction. Therefore, for example, the second calculator 14c calculates the fluctuation of the luminances by considering the luminance to be the maximum (white) for the points where the information of the luminance does not exist. The second calculator 14c outputs the calculation result to the discriminator 15b.
From the positions extracted by the extractor 15a, the discriminator 15b discriminates the position at which the fluctuation of the luminances is smallest as the position at which the pointer exists.
According to the reading system 1a according to the modification, the polar transformation is performed for only the pixels having low luminances. Based on the extraction result of the extractor 15a, the fluctuation of the luminances is calculated for only the designated positions. Therefore, compared to the reading system 1, the calculation amount can be reduced, and the reading speed of the numerical value can be increased.
The processing by the imager 11, the meter extractor 12, the corrector 13, and the calculator 14 in the reading system 1b is similar to that of the reading system 1. For example, the image illustrated in
The first calculator 14b and the second calculator 14c respectively calculate the total value of the luminances and the fluctuation of the luminances for the image after the polar transformation.
Based on the calculation result of the first calculator 14b, the extractor 15a extracts the positions in the X-direction where the total values of the luminances in the Y-direction have minima. For example, the positions P0 to P9 are extracted as illustrated in
For example, the angle ranges where the pointers 91 and 92 exist are stored in the memory part 19 for the round meter 90. In the example illustrated in
The discriminator 15b refers to the information stored in the memory part 19 recited above and discriminates the positions at which the fluctuation of the luminances is less than the first threshold th1 in the ranges where the pointers exist. In the example illustrated in
Thereafter, the processing for the discriminated positions (angles) is similar to that of the reading system 1. The relative angle calculator 16 detects the rotation angle of the round meter of the image and appropriately adds or subtracts relative angles to or from the angles. The converter 17 converts the corrected angles into numerical values.
The round meter has two pointers in the example described in
According to the modification, for a round meter that includes multiple pointers, the numerical values that are indicated by the pointers can be read with higher accuracy.
For example, the round meter 90 is a temperature gauge. The pointer BL shows the current temperature. The pointer GR shows the maximum temperature recorded when measuring. The pointer RD shows the temperature at which an alarm is emitted. An alarm is emitted when the numerical value indicated by the pointer BL exceeds the numerical value indicated by the pointer RD.
In the reading system 1c according to the third modification, the calculator 14 further includes a pointer separator 14d. When the image is input from the corrector 13, the pointer separator 14d extracts the pixels that have colors in a designated hue range. The hue range is set so that the color of the pointer is included. For example, the colors of the pixels that are not extracted are set to white. A color space or a color-difference plane can be generated for each of the pointers by performing this processing for each of the colors of the pointers.
A color space is a space defined by RGB (Red Green Blue) components or HSV (Hue Saturation Value) components. A color-difference plane is, for example, a plane obtained by subtracting between the R plane, the G plane, or the B plane for the RGB color space. In such a case, six types of color-difference planes are generated. The angles of the pointers are determined by assigning the color-difference plane that has the highest sensitivity to each pointer to be read.
For example, as illustrated in
When generating the color space or the color-difference plane for each pointer, the pointer separator 14d may perform HSV conversion or the like of the input image. By performing HSV conversion, for example, the image data of only red can be generated by determining the color from the hue (Hue) and by extracting the luminance (Value) in the region where the hue is red. The detection accuracy of the pointers can be increased by performing HSV processing of the image according to each of the colors of the pointers.
Processing similar to those of the reading systems 1 and 1a or 1b are performed on the image when the pointer separator 14d generates the image for each pointer. According to the modification, even when the round meter includes multiple pointers and the indication ranges of the multiple pointers are the same, the numerical values that are indicated by each of the pointers can be read.
Instead of the relative angle calculator 16 and the memory part 19, the reading system 1d according to the fourth modification includes a recognizer 18. The recognizer 18 recognizes a relationship between the graduations and the numerical values of the round meter from the image corrected by the corrector 13. Specifically, the recognizer 18 includes a subdivider 18a, a graduation recognizer 18b, a numeral recognizer 18c, and a graduation joiner 18d.
For example, an image A of the round meter illustrated in
For example, the graduation recognizer 18b recognizes graduations C of the display panel as illustrated in
When the deviation amount is less than the threshold, the processing continues to read the round meter. By performing the determination recited above, the read processing can be performed for only the display panel regions B having small distortions, and the reading accuracy of the value indicated by the round meter can be increased.
When the deviation amount is not less than the threshold, the graduation recognizer 18b outputs the determination result to the corrector 13. When the determination result is input, the corrector 13 modifies the condition for correcting the image and generates another corrected image. The processing by the subdivider 18a is re-performed for the other image.
For example, the generation of the other image by the corrector 13 is repeated until the deviation amount recited above becomes less than the threshold. Or, there are cases where no deviation amount will be less than the threshold even when multiple other images are generated. In such a case, the recognizer 18 performs the processing for the image A for which the minimum deviation amount is obtained.
When the graduation recognizer 18b determines that the deviation amount is less than the threshold, the numeral recognizer 18c cuts out numerals from the numeral region B2. For example, as illustrated in
As illustrated in
When the position at which the pointer output from the determiner 15 exists is converted into an angle, the converter 17 converts the angle into a numerical value by using the information acquired by the recognizer 18.
According to the modification, the numerical value that is indicated by the pointer can be read even when the positions of the graduations and the relationship between the positions of the graduations and the numerical values are not stored in the memory part 19. In the case of the modification, the image that is used in the recognition of the graduations and the numerical values and the image that is used in the angle calculation of the pointer are the same. Accordingly, the relative angle calculator 16 is unnecessary.
For example, the reading systems according to the embodiments include a reading device 5 and an imaging device 6 illustrated in
The ROM 51 stores programs controlling the operations of the computer. The ROM 51 stores programs necessary for causing the computer to function as the meter extractor 12, the corrector 13, the calculator 14, the determiner 15, the relative angle calculator 16, the converter 17, the recognizer 18, etc., of the embodiments described above.
The RAM 52 functions as a memory region where the programs stored in the ROM 51 are loaded. The CPU 53 reads a control program stored in the ROM 51 and controls the operation of the computer according to the control program. The CPU 53 loads various data obtained by the operation of the computer into the RAM 52. The HDD 54 stores information necessary for reading and information obtained in the reading process.
Instead of the HDD 54, the reading device 5 may include another non-transitory computer-readable storage medium such as eMMC (embedded Multi Media Card), a SSD (Solid State Drive), a SSHD (Solid State Hybrid Drive), etc.
The imaging device 6 images the subject (the round meter) and transmits the acquired image to the reading device 5. The imaging device 6 is, for example, a camera.
An output device 7 outputs the data (the indicated value of the round meter that is read) output from the reading device 5 so that the user can recognize the data. The output device 7 is, for example, a monitor, a printer, a speaker, etc.
For example, the reading device 5, the imaging device 6, and the output device 7 are connected to each other by a wired or wireless technique. Or, these devices may be connected to each other via a network. Or, at least two of the reading device 5, the imaging device 6, or the output device 7 may be embedded in one device. For example, the reading device 5 may be embedded in an integral body with an image processor of the imaging device 6, etc.
By using the reading systems and the reading methods according to the embodiments described above, a numerical value that is indicated by a round meter can be read with higher accuracy. Similarly, a numerical value that is indicated by a round meter can be read by a computer with higher accuracy by using a program for causing the computer to operate as the reading system.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the invention. The above embodiments can be practiced in combination with each other.
Number | Date | Country | Kind |
---|---|---|---|
2018-087716 | Apr 2018 | JP | national |
This is a continuation application of International Patent Application PCT/JP2019/011727, filed on Mar. 20, 2019. This application also claims priority to Japanese Patent Application No. 2018-087716, filed on Apr. 27, 2018. The entire contents of each are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
8594365 | Derkalousdian | Nov 2013 | B2 |
10354137 | Russell | Jul 2019 | B2 |
20010055425 | Chiu | Dec 2001 | A1 |
20050219632 | Maki et al. | Oct 2005 | A1 |
20060268359 | Maki et al. | Nov 2006 | A1 |
20120201423 | Onai et al. | Aug 2012 | A1 |
20160109263 | Dubs | Apr 2016 | A1 |
20180089811 | Shin | Mar 2018 | A1 |
20210043072 | Kusaka et al. | Feb 2021 | A1 |
Number | Date | Country |
---|---|---|
3-100424 | Apr 1991 | JP |
7-19814 | Jan 1995 | JP |
2002-288777 | Oct 2002 | JP |
2004-133560 | Apr 2004 | JP |
2005-32028 | Feb 2005 | JP |
2005-267365 | Sep 2005 | JP |
2005-341452 | Dec 2005 | JP |
2006-120133 | May 2006 | JP |
2007-114828 | May 2007 | JP |
2008-243103 | Oct 2008 | JP |
2009-75848 | Apr 2009 | JP |
2011-90374 | May 2011 | JP |
2012-104032 | May 2012 | JP |
5712801 | May 2015 | JP |
2016-162412 | Sep 2016 | JP |
2017-126187 | Jul 2017 | JP |
2018-1013 | Jan 2018 | JP |
2018-56702 | Apr 2018 | JP |
2019-169116 | Oct 2019 | JP |
6609345 | Nov 2019 | JP |
2020-95467 | Jun 2020 | JP |
6763060 | Sep 2020 | JP |
Entry |
---|
International Search Report dated Apr. 23, 2019 in PCT/JP2019/011727 filed Mar. 20, 2019, 1 page. |
Number | Date | Country | |
---|---|---|---|
20210043072 A1 | Feb 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2019/011727 | Mar 2019 | WO |
Child | 17078336 | US |