Reading system, mobile body, reading method and storage medium

By extracting and comparing the readings and scores of multiple contour areas of the measuring instrument in the reading system, the problem of inaccurate readings of the measuring instrument is solved and the reliability and accuracy of the reading system are improved.

CN112001934BActive Publication Date: 2024-10-18KK TOSHIBA +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010460531.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-27
Publication Date
2024-10-18
Estimated Expiration
2040-05-27

AI Technical Summary

Technical Problem

The existing technology is difficult to improve the reliability of readings read by measuring instruments. Especially when the image resolution is low, light reflection or dirt is present, it is difficult to correctly extract the contour of the measuring instrument, resulting in inaccurate readings.

Method used

By arranging a first extraction part and a reading part in the reading system, the first area surrounded by the first contour and the second area surrounded by the second contour are respectively extracted from the image of the measuring instrument, and the readings of the two areas are calculated and compared. and scores to select more reliable readings.

Benefits of technology

It improves the reliability and accuracy of readings of measuring instruments, enables the value of measuring instruments to be accurately read under adverse conditions, and provides reliability assessment of readings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112001934B_ABST
    Figure CN112001934B_ABST
Patent Text Reader

Abstract

According to one embodiment, a reading system includes a first extraction unit and a reading unit. The first extraction unit extracts a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline from an image showing a measuring instrument. The reading unit calculates a first reading based on the first area, calculates a second reading based on the second area, calculates a first score related to the first reading based on the first area, and calculates a second score related to the second reading based on the second area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention generally relate to a reading system, a mobile object, a reading method, and a storage medium. Background Art

[0002] There is a system for reading the value (reading) shown by a measuring instrument. For this reading system, it is required to improve the reliability of the reading taken. Summary of the invention

[0003] According to one embodiment, a reading system includes: a first extraction unit and a reading unit. The first extraction unit extracts a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline from an image showing a measuring instrument. The reading unit calculates a first reading based on the first area, calculates a second reading based on the second area, calculates a first score related to the first reading based on the first area, and calculates a second score related to the second reading based on the second area.

[0004] According to the embodiments of the present invention, the reliability of the readings taken from the measuring instrument can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 It is a block diagram showing the configuration of the reading system according to the first embodiment.

[0006] Figure 2 is a schematic diagram illustrating an example measuring instrument.

[0007] Figure 3 It is a diagram for explaining the processing of the reading system according to the first embodiment.

[0008] Figure 4 It is a diagram for explaining the processing of the reading system according to the first embodiment.

[0009] Figure 5 It is a diagram for explaining the processing of the reading system according to the first embodiment.

[0010] Figure 6 It is a diagram for explaining the processing of the reading system according to the first embodiment.

[0011] Figure 7 It is a diagram for explaining the processing of the reading system according to the first embodiment.

[0012] Figure 8 This is a flowchart showing the processing of the reading system according to the first embodiment.

[0013] Fig. 9 It is a block diagram showing the configuration of a reading system according to the second embodiment.

[0014] Fig.10 It is a block diagram showing the configuration of a reading system according to a third embodiment.

[0015] Fig.11 It is a schematic diagram for explaining the operation of the reading system according to the third embodiment. DETAILED DESCRIPTION

[0016] According to one embodiment, a reading system includes: a first extraction unit and a reading unit. The first extraction unit extracts a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline from an image showing a measuring instrument. The reading unit calculates a first reading based on the first area, calculates a second reading based on the second area, calculates a first score related to the first reading based on the first area, and calculates a second score related to the second reading based on the second area.

[0017] According to the embodiments of the present invention, the reliability of the readings taken from the measuring instrument can be improved.

[0018] Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[0019] In the present specification and each drawing, the same reference numerals are given to the same elements as those already described, and detailed description thereof will be appropriately omitted.

[0020] (First Embodiment)

[0021] Figure 1 It is a block diagram showing the functional configuration of the reading system according to the first embodiment.

[0022] Figure 2 (a) to Figure 2 (d) is a schematic diagram of an exemplary measuring instrument.

[0023] Figure 3 (a) Figure 3 (b) Figure 4 (a) to Figure 4 (c) Figure 5 (a) Figure 5 (b) Figure 6 and Figure 7 (a) to Figure 7 (d) is a diagram for explaining the processing of the reading system according to the first embodiment.

[0024] The reading system 1 is used when reading a value (reading) indicated by a measuring instrument from an image including the measuring instrument. The type of the measuring instrument of the object is arbitrary. For example, the reading system 1 is used Figure 2 (a) and Figure 2(b) shows the readings of the circular measuring instruments M1 and M2. The circular measuring instrument includes: a pointer In rotating around a certain point, a plurality of scales Sc recorded around the center point, and a number Nu recorded corresponding to at least a part of the plurality of scales Sc. The scales Sc are arranged in a circle or an arc. In the circular measuring instrument, either the pointer In or the scales Sc rotates along the arrangement direction of the scales Sc, and the pointer In points to a specific scale Sc, thereby indicating a value.

[0025] The reading system 1 can also be used for Figure 2 (c) The vertical measuring instrument M3 or Figure 2 The reading in the horizontal measuring instrument M4 shown in (d) is read. The vertical measuring instrument and the horizontal measuring instrument include: a pointer In, a plurality of scales Sc arranged in one direction, and a number Nu recorded corresponding to at least a part of the plurality of scales Sc. In the vertical measuring instrument and the horizontal measuring instrument, either the pointer In or the scale Sc moves along the arrangement direction of the scale Sc, and the pointer In points to a specific scale Sc, thereby indicating a value.

[0026] like Figure 1 As shown, the reading system 1 of the first embodiment includes a processing device 10. The processing device 10 includes a receiving unit 11, a first extracting unit 12, a correcting unit 13, a second extracting unit 14, a reading unit 15, and an output unit 16.

[0027] For example, an external camera captures a measuring instrument and obtains a still image. The camera sends the image showing the measuring instrument to the processing device 10. Alternatively, the camera may store the image in the storage device 20. The processing device 10 accesses the storage device 20 to obtain the image. A dynamic image may also be captured by the camera. For example, the camera cuts out a still image from the dynamic image and sends it to the processing device 10 or the storage device 20. The captured image may also include an image other than the measuring instrument.

[0028] The receiving unit 11 receives an image input to the processing device 10 and outputs the image to the first extracting unit 12. Figure 3 (a) is an example of an image input to the processing device 10.

[0029] The first extraction unit 12 extracts a region including scales, numbers, and pointers of a measuring instrument from the input image. As a specific example, the first extraction unit 12 includes a contour extraction unit 12a, a contour selection unit 12b, and a determination unit 12c.

[0030] The contour extraction unit 12a extracts the contour (edge) included in the input image based on, for example, the brightness difference or luminance difference in the input image. When extracting the contour, the contour extraction unit 12a may also appropriately process the input image. For example, the contour extraction unit 12a converts the input image into grayscale and then binarizes it, and extracts the contour from the binary image.

[0031] The contour selection unit 12b selects a portion of the contours from the extracted contours. For example, the contour selection unit 12b compares the maximum length and area in a certain direction with a preset threshold value for the area surrounded by each contour. The contour selection unit 12b selects the area where the maximum length and area exceed the threshold value. In this way, an area with a too small area or an area with a shape that is greatly different from that of a measuring instrument is excluded. For example, Figure 3 Extract multiple contours from the input image shown in (a), and select Figure 3 (b) shows the contours e1 and e2.

[0032] The determination unit 12c determines which contour of the measuring instrument the contour of the selected area corresponds to. Figure 2 (a) to Figure 2 In the measuring instrument shown in (d), there are an inner contour E1 surrounding the display panel and an outer contour E2 than the contour E1. The determination unit 12c determines a first contour corresponding to the contour E1 and a second contour corresponding to the contour E2 based on the selected contour.

[0033] For example, Figure 4 As shown in (a), the determination unit 12c sets two regions r1 and r2 for each selected contour e. Region r1 is located inside the contour e. Region r2 is located outside the contour e. The shapes of regions r1 and r2 can be appropriately changed according to the measuring instrument of the reading object. As an example, region r1 and region r2 are set along the contour e. The width w1 and w2 of each region are determined according to the size of the contour e. For example, the ratio of width w1 to the size of the contour e and the ratio of width w2 to the size of the contour e are pre-stored in the storage device 20.

[0034] The determination unit 12c determines the relationship between the brightness of the region r1 and the brightness of the region r2 for each contour e. For example, the determination unit 12c determines which average value is larger between the average value of the brightness in the region r1 and the average value of the brightness in the region r2. When the areas of the region r1 and the region r2 are equal, the determination unit 12c may determine which total value is larger between the total value of the brightness in the region r1 and the total value of the brightness in the region r2.

[0035] In the storage device 20, a first relationship between the brightness of the area located inside the contour E1 and the brightness of the area located outside the contour E1 is stored with respect to the measuring instrument to be read. In addition, a second relationship between the brightness of the area located inside the contour E2 and the brightness of the area located outside the contour E2 is stored in the storage device 20. The determination unit 12c compares the relationship between the brightness of each contour e with the relationship between the brightness stored in the storage device 20. The determination unit 12c determines the contour e whose relationship of brightness matches the first relationship as the first contour. The determination unit 12c determines the other contours e whose relationship of brightness matches the second relationship as the second contour.

[0036] Typically, the background of the display panel of the meter is a bright color (e.g., white). The outer edge of the meter is a darker color than the display panel. The wall or the like on which the meter is mounted is a brighter color than the outer edge of the meter. In this case, the first relationship is as follows: Figure 4 As shown in (b), the brightness of the region R1 located inside the outline E1 is set to be higher than the brightness of the region R2 located outside the outline E1. Figure 4 As shown in (c), the brightness of the region R3 located inside the outline E2 is set to be lower than the brightness of the region R4 located outside the outline E2.

[0037] In addition, the contours E1 and E2 may be contours other than the contour of the display panel and the contour of the measuring instrument. For example, according to the difference in color, shape or reflectivity of each part of the measuring instrument, it is possible to extract contours other than the display panel and the measuring instrument as a result of image processing. The extracted contour may also be used as the contour corresponding to the measuring instrument. In this case, the relationship between the brightness of the area located inside the contour and the brightness of the area located outside the contour is stored in the storage device 20.

[0038] For example, Figure 3 In the measuring instrument shown in (a), there are the contour E1 of the display plate and the contour E2 of the measuring instrument. On the other hand, as a result of contour extraction based on image processing, as shown in FIG. Figure 3 As shown in (b), an outline e1 is extracted between the outline e0 corresponding to the outline E1 and the outline e2 corresponding to the outline E2. The outline e1 is extracted due to the shape of the outer edge of the measuring instrument. Figure 3 The outer edge OP of the measuring instrument shown in (a) has rounded corners, and the amount of light reflected is different on the inner side and the outer side of the outer edge. As a result, the contour e1 is extracted at the approximate center of the outer edge OP. The contour e1 can also be used as the first contour corresponding to the measuring instrument to perform the following processing.

[0039] The determination unit 12c extracts a first region surrounded by a first contour satisfying a first relationship and a second region surrounded by a second contour satisfying a second relationship from the input image. As an example, the first region includes a display panel of a measuring instrument. The second region includes the display panel and the outer edge of the measuring instrument.

[0040] The correction unit 13 performs appropriate projection transformation on the first area and the second area, respectively. Typically, the outline of the measuring instrument or the outline of the display panel of the measuring instrument is a circle or a quadrilateral. When the first outline or the second outline is a trapezoid or a parallelogram, etc., the correction unit 13 performs projection transformation on the first area or the second area so that the first outline or the second outline becomes a rectangle. When the first outline or the second outline is an ellipse or an oval, the correction unit 13 performs projection transformation on the first area or the second area so that the first outline or the second outline becomes a circle. The distortion of the first area or the second area is corrected by the projection transformation. The correction unit 13 outputs the corrected first area and the second area to the second extraction unit 14.

[0041] The second extraction unit 14 extracts the first scale area and the first digital area from the first area. In addition, the second extraction unit 14 extracts the second scale area and the second digital area from the second area. For example, the position and size of the first scale area and the first digital area are determined based on the first area. The position and size of the second scale area and the second digital area are determined based on the second area. The relationship between the first scale area and the first digital area and the relationship between the second scale area and the second digital area and the second area are pre-stored in the storage device 20. The second extraction unit 14 outputs the first scale area, the first digital area, the second scale area, and the second digital area to the reading unit 15.

[0042] The reading unit 15 calculates a first reading based on the first area and a second reading based on the second area. Also, the reading unit 15 calculates a first score related to the first reading based on the first area and a second score related to the second reading based on the second area.

[0043] Specifically, the reading section 15 includes a recognition section 15 a , a scale engaging section 15 b , a reading calculation section 15 c , a score calculation section 15 d , and a reading selection section 15 e .

[0044] The recognition unit 15a recognizes a plurality of scales recorded on the display panel based on the brightness difference in the scale area. The recognition unit 15a recognizes a plurality of numbers recorded on the display panel in the digital area. For example, the recognition unit 15a cuts out numbers from the display panel one by one, and compares the cut out numbers with the pre-registered numbers to determine the numbers. In addition, the recognition unit 15a recognizes the position and angle of the pointer based on the distribution of brightness in the digital area. The recognition unit 15a can also recognize the position and angle of the pointer based on the distribution of brightness in the digital area and the scale area. The recognition unit 15a can also recognize the shape of the pointer.

[0045] When the measuring instrument to be read is circular, the recognition unit 15a may perform polar coordinate conversion on the scale area and the number area. For example, the recognition unit 15a recognizes the scale and the pointer from the scale area and the number area after polar coordinate conversion, and recognizes the numbers from the number area not subjected to polar coordinate conversion.

[0046] Figure 5 (a) shows the first scale area Sr1 and the first digital area Nr1 set based on the first contour e1. Figure 5 As shown in (a), a plurality of scales Sc1 (first scale group) and a pointer In1 (first pointer) are recognized based on the first scale region Sr1 and the first number region Nr1. Furthermore, a plurality of numbers (first number group) are recognized based on the first number region Nr1.

[0047] Figure 5 (b) shows the second scale area Sr2 and the second digital area Nr2 set based on the second contour e2. Figure 5 As shown in (b), based on the second scale area Sr2 and the second number area Nr2, a plurality of scales Sc2 (second scale group) and a pointer In2 (second pointer) are identified. Furthermore, based on the second number area Nr2, a plurality of numbers (second number group) are identified.

[0048] In this example, the position and size of each scale area and each number area are set based on the extracted contour. Figure 5 As shown in (b), the scale area and number area set based on one outline sometimes deviate from the area where the scale and number are actually recorded. Figure 5 As shown in (b), sometimes the position or angle of the pointer is also recognized as different from the actual position or angle of the pointer. However, in this case, it is also possible to read a more accurate reading based on the scale area and digital area set according to other contours as described later.

[0049] The recognition unit 15a outputs the scale group, the number group, and the pointer recognized based on each of the first area and the second area to the scale joint unit 15b.

[0050] like Figure 6 As shown, the scale joining unit 15b stores, as position information of each scale, the angle between the straight line SL obtained by extending each scale Sc and the reference line G. The scale joining unit 15b determines the scale Sc corresponding to the recognized number.

[0051] The reading calculation unit 15c calculates the reading of the measuring instrument for each of the first area and the second area based on the angle of each scale, the correspondence information between the scale and the number, and the angle of the pointer, thereby calculating a first reading based on the first area and a second reading based on the second area.

[0052] The score calculation unit 15d calculates a first score related to the first reading and a second score related to the second reading. The first score and the second score respectively indicate the probability of the first reading and the second reading. For example, the score calculation unit 15d calculates the first score using a first scale group, a first number group, or a first pointer. The score calculation unit 15d calculates the second score using a second scale group, a second number group, or a second pointer.

[0053] The following is an example in which the higher the probability that the image is good and the reading is correctly read, the higher the score is calculated. The higher the score, the higher the reliability of the reading. The so-called good image refers to a state in which, for example, the resolution of the image is sufficiently high, there are few attachments on the measuring instrument, and the outline is clear due to little reflection of light in the measuring instrument. Not limited to this example, the better the character image is, the lower the score can be calculated. In this case, the lower the score, the higher the reliability of the reading.

[0054] The calculation method of the score using the scale group is as follows.

[0055] Figure 7 (a) shows the scale region Sr and the recognized scales Sc. In this example, a plurality of scales Sc are arranged in the first direction D1, and each scale Sc is along the second direction D2. Figure 7 The image shown in (a) may also be an image obtained by polar coordinate transformation. In this case, the first direction D1 corresponds to the circumferential direction, and the second direction D2 corresponds to the radial direction.

[0056] The score calculation unit 15d calculates the variation in the intervals between the scales Sc or the variation in the lengths in the second direction D2 of the scales Sc. The score calculation unit 15d calculates a higher score as the variation is smaller.

[0057] The number of scales recorded on the actual measuring instrument may be pre-stored in the storage device 20. The score calculation unit 15d compares the number of scales Sc recognized in the scale area Sr with the number of scales stored in the storage device 20. The smaller the difference between the number of recognized scales Sc and the number of stored scales, the higher the score calculated by the score calculation unit 15d.

[0058] An image corresponding to the scale of an actual measuring instrument may be stored in advance in the storage device 20 . Figure 7 (b) is an example of an image stored in the storage device 20. The score calculation unit 15d performs pattern matching between the recognition result of the scale and the image. The higher the matching rate, the higher the score calculated by the score calculation unit 15d.

[0059] The score calculation unit 15 d may calculate the score by combining two or more score calculation methods based on these scale groups.

[0060] The calculation method of the score using the number group is as follows.

[0061] The score calculation unit 15d refers to the matching rate when the number is recognized by the recognition unit 15a. The score calculation unit 15d calculates the score based on the matching rate. For example, the score calculation unit 15d averages the matching rates of each of the plurality of numbers written on the display plate and uses the average value as the score.

[0062] The calculation method of the score using the pointer is as follows.

[0063] An image representing the actual shape of the pointer is pre-stored in the storage device 20. For example, Figure 7 (c) shows the shape of the recognized pointer In. The score calculation unit 15d performs pattern matching between the recognized pointer In and the image stored in the storage device 20. The score calculation unit 15d calculates a higher score as the matching rate is higher.

[0064] Alternatively, the score calculation unit 15d takes the identified pointer In as the center, as shown in FIG. Figure 7 As shown in (d) of FIG. 1 , two regions Ra and Rb are set. Regions Ra and Rb are arranged in a direction perpendicular to the direction in which the pointer In extends. The score calculation unit 15d compares the brightness in region Ra with the brightness in region Rb. When the angle of the identified pointer In coincides with the angle of the actual measuring instrument shown in the image, the difference between the brightness in region Ra and the brightness in region Rb is small. The smaller the difference, the higher the score calculated by the score calculation unit 15d.

[0065] The score calculation unit 15d may calculate the score by combining the two calculation methods based on the above-mentioned pointers.

[0066] By the above method, the score calculation unit 15d calculates the first score and the second score. The score calculation unit 15d may also use two or more of the scale group, the number group, and the pointer to calculate the score. For example, the score calculation unit 15d may also combine two or more of the calculation method based on the scale group, the calculation method based on the number group, and the calculation method based on the pointer to calculate the score. Thus, the reliability of the score can be improved.

[0067] The reading selection unit 15e selects one of the first reading and the second reading based on the first score and the second score. For example, when the scale group, the number group or the pointer is recognized with good accuracy, the score value is calculated to be high. In this case, the reading selection unit 15e selects the higher one of the first score and the second score. The reading selection unit 15e selects the reading corresponding to the selected score as the reading of the measuring instrument.

[0068] Alternatively, regarding the first score and the second score, the condition may be pre-stored in the storage device 20. The reading selection unit 15e compares the first score or the second score with the condition. For example, the condition includes a threshold. The threshold may be set in advance by the user or may be set based on the calculation result of the past score. When the score is calculated to be higher when the recognition accuracy is higher, the reading selection unit 15e compares the higher one of the first score and the second score with the threshold. When the higher score is below the threshold, the processing of the correction unit 13 may be performed again.

[0069] The calibration unit 13 performs projection transformation on the first area and the second area again under conditions different from the previous projection transformation. Then, based on the first area and the second area after the projection transformation, the first reading, the second reading, the first score and the second score are calculated. Thus, the reading of the measuring instrument can be read with higher accuracy.

[0070] For example, the process by the calibration unit 13 is repeated until the first score or the second score satisfies the condition. Alternatively, the process by the calibration unit 13 may be repeated a predetermined number of times, and the reading with the highest score may be selected as the reading of the measuring instrument.

[0071] Alternatively, the contour extraction by the contour extraction unit 12a, the contour selection by the contour selection unit 12b, or the polar coordinate transformation by the second extraction unit 14 may be performed again under conditions different from those before, instead of the processing by the correction unit 13. Alternatively, in addition to at least one of these processes, the processing by the correction unit 13 may be performed again under conditions different from those before.

[0072] The reading unit 15 sends the reading of the measuring instrument to the output unit 16. The output unit 16 outputs information based on the reading to an external output device, for example. For example, the information includes the reading read. The information may also include the result calculated based on the reading read. The output unit 16 may also calculate other values ​​based on the multiple readings read, and output the calculation results. The information may also include the time when the reading was read, etc. Alternatively, the output unit 16 may also output a file including information such as the reading read and the time when the reading was read in a specified format such as CSV. The output unit 16 may also use FTP (File Transfer Protocol: File Transfer Protocol) to send data to an external server. Alternatively, the output unit 16 may also perform database communication and insert data into an external database server using ODBC (Open Database Connectivity) or the like.

[0073] The processing device 10 includes, for example, a processing circuit composed of a central processing unit. The processing device 10 realizes the functions of the receiving unit 11, the first extraction unit 12, the correction unit 13, the second extraction unit 14, the reading unit 15 and the output unit 16. These functions can also be realized by multiple processing devices. The storage device 20, for example, has at least one of a hard disk drive (HDD), a network-attached hard disk (NAS), an embedded multimedia card (eMMC), a solid-state drive (SSD) and a solid-state hybrid drive (SSHD). The processing device 10 and the storage device 20 are connected by wire or wirelessly. Alternatively, the processing device 10 and the storage device 20 can also be connected to each other via a network.

[0074] Figure 8 This is a flowchart showing the processing of the reading system according to the first embodiment.

[0075] like Figure 8 As shown, the receiving unit 11 receives the input image (step S11). The contour extraction unit 12a extracts the contour from the input image (step S12a). The contour selection unit 12b selects a part of the contours that meet the conditions from the extracted multiple contours (step S12b). The determination unit 12c determines the first contour and the second contour based on the selected contours (step S12c). The correction unit 13 performs projection transformation on the first area surrounded by the first contour and the second area surrounded by the second contour, and performs correction (step S13). The second extraction unit 14 extracts the first scale area and the first digital area from the first area, and extracts the second scale area and the second digital area from the second area (step S14).

[0076] The recognition unit 15a recognizes the first scale group, the first number group and the first pointer from the first scale area and the first number area. The recognition unit 15a recognizes the second scale group, the second number group and the second pointer from the second scale area and the second number area (step S15a). The scale joint unit 15b makes the multiple scales included in the first scale group correspond to the multiple numbers included in the first number group. The scale joint unit 15b makes the multiple scales included in the second scale group correspond to the multiple numbers included in the second number group (step S15b). The reading calculation unit 15c calculates the first reading based on the first area and the second reading based on the second area (step S15c). The score calculation unit 15d uses the first scale group, the first number group or the first pointer to calculate the first score. The score calculation unit 15d uses the second scale group, the second number group or the second pointer to calculate the second score (step S15d). The reading selection unit 15e selects one of the first reading and the second reading based on the first score and the second score. The output unit 16 outputs one of the selected first reading and second reading (step S16 ).

[0077] The effects of the first embodiment will be described.

[0078] When reading the reading of a measuring instrument, a method of extracting the scale area and the digital area based on the specific outline of the measuring instrument is considered. If the specific outline can be detected with high accuracy, the reading of the measuring instrument can be read with high accuracy using this method. However, if other components are installed on the measuring instrument or the resolution of the image is low, the specific outline may not be extracted correctly. In addition, if light is reflected on the measuring instrument or dirt is attached to the measuring instrument, the specific outline may not be extracted correctly. For example, in Figure 3 (a) and Figure 3 In the example shown in (b), a cable is connected to the measuring instrument, and the contour of the outer side of the measuring instrument is not correctly extracted due to the influence of the cable.

[0079] In view of this technical problem, in the reading system 1 of the first embodiment, a plurality of profiles included in a measuring instrument are extracted. Then, a reading and a score are calculated based on each of the extracted plurality of profiles. For example, by selecting any one of the readings based on the calculated score, the reading accuracy of the reading of the measuring instrument can be improved. Thus, the reliability of the reading system 1 can be improved.

[0080] Alternatively, the output unit 16 may output one of the selected first reading and the second reading, and one of the first score and the second score related to the first reading and the second reading. Thus, the user can understand the probability of the selected reading. For example, even when an abnormal reading different from the usual is output, the user can confirm the probability of the reading by referring to the score.

[0081] The output unit 16 may also output at least one of the first reading and the second reading, and at least one of the first area and the second area. For example, the output unit 16 outputs the selected one of the first reading and the second reading, and the one of the first area and the second area where the first reading and the second reading are obtained. By outputting an image as a basis for the selected reading, the user can easily understand whether the reading is correct.

[0082] In addition, in the above example, one of the first reading and the second reading is selected by the reading selection unit 15e. Not limited to this example, the reading system 1 of the first embodiment may also output the first reading, the second reading, the first score, and the second score. For example, the user refers to the first score and the second score to decide which of the first reading and the second reading to use. By outputting the first score and the second score, the user can grasp the probability of the degree of each reading. Alternatively, the user can also refer to the first score and the second score to confirm whether the image used for reading is appropriate. For example, when both the first score and the second score are low, the user can also change the configuration and composition of the measuring instrument, the shooting conditions of the camera device, etc., to obtain a more appropriate image.

[0083] In addition, according to the reading system 1 of the first embodiment, even when only one contour is selected by the contour selection unit 12b, it is possible to determine which contour of the measuring instrument the contour corresponds to. Therefore, the scale area and the digital area can be set more appropriately for the area surrounded by the selected contour. As a result, the reading of the measuring instrument can be read with higher accuracy.

[0084] In the example described above, the example in which the reading system 1 calculates two readings (the first reading and the second reading) is described. Without being limited to this example, the reading system 1 may also calculate three or more readings based on three or more profiles of the measuring instrument. In this case, the reading system 1 calculates three or more scores respectively related to the three or more readings.

[0085] (Example)

[0086] An example of a method for calculating a score will be described.

[0087] The score calculation unit 15d performs pattern matching on the scale area identified by the recognition unit 15a and the image of the scale area stored in advance. For example, the identified scale area and the image of the scale area are represented by binary values. In the binary image, the scale is represented by white and the background is represented by black. The score calculation unit 15d sets the ratio of the number of white pixels included in the identified scale area to the number of white pixels included in the image of the scale area as the matching rate. The score calculation unit 15d sets the matching rate as a score based on the scale group.

[0088] Furthermore, the score calculation unit 15 d averages the matching rates when the recognition unit 15 a recognizes each numeral, and uses the average value as a score based on the numeral group.

[0089] The score calculation unit 15d performs pattern matching between the pointer recognized by the recognition unit 15a and a pointer image stored in advance. The score calculation unit 15d uses the matching rate as a score based on the pointer.

[0090] The score calculation unit 15d performs the following calculation.

[0091] S=S1×W1+S2×W2+S3×W3

[0092] S1 is the score calculated based on the scale group. W1 is the weight for score S1. S2 is the score calculated based on the number group. W2 is the weight for score S2. S3 is the score calculated based on the pointer. W3 is the weight for score S3.

[0093] The score calculation unit 15d calculates the score S as the first score and the second score based on each of the first area and the second area. As an example, the weight W1 is set to 0.7. The weight W2 is set to 0.5. The weight W3 is set to 0.2. Figure 5 The first score of the first area surrounded by the first contour e1 shown in (a) is 0.83. Figure 5 The second score of the second area surrounded by the second contour e2 shown in (b) is 0.58. As a result, for example, the reading selection unit 15e selects the first reading corresponding to the higher first score.

[0094] (Second Embodiment)

[0095] Fig. 9 It is a block diagram showing the configuration of a reading system according to the second embodiment.

[0096] The reading system 2 of the second embodiment further includes an imaging device 30. The imaging device 30 captures the measuring instrument and generates an image. The imaging device 30 sends the generated image to the processing device 10. Alternatively, the imaging device 30 may store the image in the storage device 20. The processing device 10 accesses the storage device 20 and refers to the stored image. When the imaging device 30 obtains a dynamic image, the imaging device 30 extracts a static image from the dynamic image and sends it to the processing device 10. The imaging device 30 includes, for example, a camera.

[0097] Processing device 10 transmits information based on the number read from the projected image to output device 40. Output device 40 outputs information received from processing device 10 in a user-recognizable form. Output device 40 includes at least one of a monitor, a printer, a projector, and a speaker, for example.

[0098] The processing device 10, the storage device 20, the camera device 30, and the output device 40 are connected to each other, for example, by wire or wireless. Alternatively, they may be connected to each other via a network. Alternatively, at least two of the processing device 10, the storage device 20, the camera device 30, and the output device 40 may be assembled into one device. For example, the processing device 10 may be assembled integrally with the image processing unit of the camera device 30.

[0099] (Third Embodiment)

[0100] Fig.10 It is a block diagram showing the configuration of another reading system according to the third embodiment.

[0101] The reading system 3 of the third embodiment further includes a moving body 50. The moving body 50 moves within a specified area. A measuring instrument is provided in the area where the moving body 50 moves. The moving body 50 is, for example, an unmanned guided vehicle (AGV). The moving body 50 may also be a flying object such as a drone. The moving body 50 may also be an autonomous walking robot. The moving body 50 may also be a forklift, a crane, etc. that performs specified operations in an unmanned manner.

[0102] For example, the processing device 10 and the imaging device 30 are mounted on the mobile body 50. The processing device 10 may be provided separately from the mobile body 50 and connected to the mobile body 50 via a network. When the mobile body 50 moves to a position where the measuring instrument can be imaged, the imaging device 30 images the measuring instrument to generate an image.

[0103] In the processing of the processing device 10, when it is determined that the first score or the second score does not satisfy the pre-set condition, the camera device 30 may photograph the measuring instrument again. The camera device 30 photographs the measuring instrument again under conditions different from those of the last photographing. For example, the camera device 30 changes the exposure time, aperture value, or ISO sensitivity and photographs the measuring instrument again. The photographing conditions may also include the position of the moving body 50. That is, the moving body 50 may move, and the camera device 30 may photograph the measuring instrument at a position different from that of the last photographing.

[0104] like Fig.10 As shown, the reading system 3 may further include an acquisition device 60. The acquisition device 60 is mounted on the mobile body 50. For example, an identifier having unique identification information is provided corresponding to the measuring instrument. The acquisition device 60 acquires the identification information of the identifier.

[0105] like Fig.10 As shown, the reading system 3 may further include a control device 70. The control device 70 controls the moving body 50. The moving body 50 moves within a predetermined area based on a command sent from the control device 70. The control device 70 may be mounted on the moving body 50 or may be provided separately from the moving body 50. The control device 70 may include, for example, a processing circuit composed of a central processing unit. One processing circuit may also function as both the processing device 10 and the control device 70.

[0106] For example, the identifier is a radio frequency (RF) tag having ID information. The identifier emits an electromagnetic field or radio wave including the ID information. The acquisition device 60 receives the electromagnetic field or radio wave emitted from the identifier and acquires the ID information.

[0107] Alternatively, the identifier may be a one-dimensional or two-dimensional barcode. The acquisition device 60 is a barcode reader. The acquisition device 60 acquires the identification information of the barcode by reading the barcode.

[0108] like Fig.10 As shown, the processing device 10 may further include an associating unit 17. For example, when the acquiring device 60 acquires identification information, it sends it to the processing device 10. The associating unit 17 associates the sent identification information with the read character. The associated information is stored in the storage device 20.

[0109] Fig.11 It is a schematic diagram for explaining the operation of the reading system according to the third embodiment.

[0110] For example, the moving body 50 moves along a predetermined track T. The moving body 50 is equipped with an imaging device 30 and an acquisition device 60. The processing device 10 may be mounted on the moving body 50 or may be provided separately from the moving body 50. The track T is provided so that the moving body 50 passes in front of the measuring instruments M11 and M12.

[0111] For example, the moving body 50 moves along the track T, and when it reaches a position where the measuring instrument M11 or M12 can be photographed by the camera device 30, it decelerates or stops. For example, when the moving body 50 decelerates or stops, a photographing instruction is sent to the camera device 30. Alternatively, a photographing instruction may be sent from the control device 70 to the camera device 30. When receiving the instruction, the camera device 30 photographs the measuring instrument M11 or M12 while the moving body 50 decelerates or stops.

[0112] Alternatively, the mobile body 50 moves along the track T at a speed such that the camera device 30 can capture the measuring instrument M11 or M12 without shaking. When the mobile body 50 reaches a position where the camera device 30 can capture the measuring instrument M11 or M12, a command to capture is sent from the mobile body 50 or the above-mentioned control device. Upon receiving the command, the camera device 30 captures the measuring instrument M11 or M12. When the camera device 30 captures and generates an image, it sends the image to the processing device 10 mounted on the mobile body 50 or provided separately from the mobile body 50. Alternatively, the camera device 30 may capture a dynamic image while the mobile body 50 is moving. The camera device 30 cuts out an image showing the measuring instrument M11 or M12 from the captured dynamic image. The camera device 30 sends the cut-out image to the processing device 10.

[0113] The identifier ID1 is provided near the measuring device M11. The identifier ID2 is provided near the measuring device M12. For example, the acquisition device 60 acquires the identification information of the identifier ID1 or ID2 while the moving body 50 is decelerating or stopped.

[0114] For example, the mobile body 50 moves in front of the measuring instrument M11. The imaging device 30 captures the measuring instrument M11 and generates an image. The reading system 1 reads the reading of the measuring instrument M11 from the image. In addition, the acquisition device 60 acquires the identification information of the identification body ID1 corresponding to the measuring instrument M11. The reading system 1 associates the reading of the measuring instrument with the identification information.

[0115] The embodiment may also include the following configurations.

[0116] (Composition 1)

[0117] A reading system comprising:

[0118] A first extracting unit extracts, from the image showing the measuring instrument, a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline; and

[0119] The reader calculates a first reading based on the first area and a second reading based on the second area, and calculates a first score related to the first reading based on the first area and a second score related to the second reading based on the second area.

[0120] (Composition 2)

[0121] The reading system according to Configuration 1, wherein the reading unit selects one of the first reading and the second reading as the reading of the measuring instrument based on the first score and the second score.

[0122] (Composition 3)

[0123] The reading system according to Configuration 2 further comprises an output unit that outputs one of the first reading and the second reading and one of the first score and the second score related to the one of the first reading and the second reading.

[0124] (Composition 4)

[0125] A reading system according to Configuration 3, wherein the output unit further outputs the image, the first area, or the second area.

[0126] (Composition 5)

[0127] A reading system according to any one of configurations 1 to 4, wherein:

[0128] The processing device further includes a second extraction unit,

[0129] The second extraction unit extracts a first scale area and a first number area from the first area, and extracts a second scale area and a second number area from the second area.

[0130] The reading unit calculates the first reading based on a first scale group, a first number group and a first pointer identified from the first scale area and the first number area, and calculates the second reading based on a second scale group, a second number group and a second pointer identified from the second scale area and the second number area.

[0131] (Composition 6)

[0132] According to the reading system described in structure 5, the reading unit calculates the first score based on at least any one of the first scale group, the first number group and the first pointer, and calculates the second score based on at least any one of the second scale group, the second number group and the second pointer.

[0133] (Composition 7)

[0134] A reading system according to any one of configurations 1 to 6, wherein:

[0135] the first extraction unit,

[0136] detecting a plurality of contours from the image,

[0137] For each of the plurality of contours, determining a relationship between the brightness of a region located inside the contour and the brightness of a region located outside the contour,

[0138] One of the plurality of contours whose relationship is in a preset first relationship is determined as the first contour, and another one of the plurality of contours whose relationship is in a preset second relationship is determined as the second contour.

[0139] (Composition 8)

[0140] A reading system according to configuration 7, wherein:

[0141] The device further comprises a correction unit, the correction unit performing a projective transformation on the first area and the second area respectively;

[0142] When the first score or the second score does not satisfy a preset condition, the correction unit performs a projection transformation on the first region and the second region again under a condition different from the previous projection transformation.

[0143] The reading unit calculates the first reading, the second reading, the first score, and the second score based on the first region and the second region after re-projection transformation.

[0144] (Composition 9)

[0145] A reading system according to any one of Configurations 1 to 8, further comprising an imaging device that captures an image of the measuring instrument to acquire the image.

[0146] (Composition 10)

[0147] The reading system according to Configuration 9 further comprises a moving body on which the imaging device is mounted.

[0148] (Composition 11)

[0149] The reading system according to configuration 9 or 10, wherein the imaging device captures a dynamic image showing the measuring instrument, and cuts out the image from the dynamic image.

[0150] (Composition 12)

[0151] A reading system according to configuration 9 or 10, wherein:

[0152] When the first score or the second score does not satisfy a preset condition, the camera device photographs the measuring instrument under conditions different from those of the last photographing to obtain an image of the measuring instrument again.

[0153] The reading unit calculates the first reading, the second reading, the first score, and the second score using the reacquired image.

[0154] By using the reading system, mobile body, and reading method of the above-described embodiment, the reliability of the readings read from the measuring instrument can be improved. Similarly, by using a program for causing a computer (processing device) to operate as the receiving unit 11, the first extraction unit 12, the calibration unit 13, the second extraction unit 14, the reading unit 15, the output unit 16, etc., the reliability of the readings read from the measuring instrument can be improved.

[0155] The processing of the above-mentioned various data is performed based on, for example, a program (software). For example, a computer stores the program and reads the program to perform the processing of the above-mentioned various information.

[0156] The processing of the above-mentioned various information can be recorded as a program that can be executed by a computer and recorded on a disk (floppy disk, hard disk, etc.), an optical disk (CD-ROM, CD-R, CD-RW, DVD-ROM, DVD±R, DVD±RW, etc.), a semiconductor memory or other recording media.

[0157] For example, the information recorded in the recording medium can be read out by a computer (or embedded system). In the recording medium, the recording format (storage format) is arbitrary. For example, the computer reads out a program from the recording medium and causes the CPU to execute instructions recorded in the program based on the program. In the computer, the acquisition (or reading) of the program can also be performed through a network.

[0158] The processing device and control device of the embodiment include one or more devices (for example, a personal computer, etc.) The processing device and control device of the embodiment may include a plurality of devices connected via a network.

[0159] Several embodiments of the present invention are illustrated above, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, changes, etc. can be made without departing from the scope of the main purpose of the invention. These embodiments and their modifications are included in the scope or main purpose of the invention, and are included in the invention described in the claims and their equivalents. In addition, the above-mentioned embodiments can be combined with each other and implemented.

Claims

1. A reading system comprising: A first extracting unit extracts, from the image showing the measuring instrument, a first area surrounded by a first contour and a second area surrounded by a second contour located outside the first contour; a reading section that calculates a first reading based on the first region, and a second reading based on the second region, and calculates a first score related to the first reading based on the first region, and calculates a second score related to the second reading based on the second region; as well as a correction unit, performing projection transformation on the first area and the second area respectively, the first extraction unit, detecting a plurality of contours from the image, For each of the plurality of contours, determining a relationship between the brightness of a region located inside the contour and the brightness of a region located outside the contour, determining one of the plurality of contours whose relationship is in a preset first relationship as the first contour, and determining another one of the plurality of contours whose relationship is in a preset second relationship as the second contour, When the first score or the second score does not satisfy a preset condition, the correction unit performs a projection transformation on the first region and the second region again under a condition different from the previous projection transformation. The reading unit calculates the first reading, the second reading, the first score, and the second score based on the first region and the second region after re-projection transformation.

2. The reading system according to claim 1, wherein: The reading unit selects one of the first reading and the second reading as a reading of the measuring instrument based on the first score and the second score.

3. The reading system according to claim 2, wherein: The device further includes an output unit configured to output the one of the first reading and the second reading and the one of the first score and the second score associated with the one of the first reading and the second reading.

4. The reading system according to claim 3, wherein: The output unit further outputs the image, the first area, or the second area.

5. The reading system according to any one of claims 1 to 4, wherein: Also includes a second extraction unit, The second extraction unit extracts a first scale area and a first number area from the first area, and extracts a second scale area and a second number area from the second area. The reading unit calculates the first reading based on a first scale group, a first number group and a first pointer identified from the first scale area and the first number area, and calculates the second reading based on a second scale group, a second number group and a second pointer identified from the second scale area and the second number area.

6. The reading system according to claim 5, wherein: The reading unit calculates the first score based on at least any one of the first scale group, the first number group, and the first pointer, and calculates the second score based on at least any one of the second scale group, the second number group, and the second pointer.

7. The reading system according to any one of claims 1 to 4, wherein: An imaging device is further provided, the imaging device capturing an image of the measuring instrument and acquiring the image.

8. The reading system according to claim 7, wherein: The invention also includes a moving body on which the imaging device is mounted.

9. The reading system according to claim 7, wherein: The camera device captures a dynamic image showing the measuring instrument, and cuts out the image from the dynamic image.

10. The reading system according to claim 7, wherein: When the first score or the second score does not satisfy a preset condition, the camera device photographs the measuring instrument under conditions different from those of the last photographing to obtain an image of the measuring instrument again. The reading unit calculates the first reading, the second reading, the first score, and the second score using the reacquired image.

11. A mobile object, comprising: A camera device is used to photograph the measuring instrument and obtain an image; a first extraction unit that extracts, from the image, a first region surrounded by a first contour and a second region surrounded by a second contour located outside the first contour; a reading section that calculates a first reading based on the first region, and a second reading based on the second region, and calculates a first score related to the first reading based on the first region, and calculates a second score related to the second reading based on the second region; as well as a correction unit, performing projection transformation on the first area and the second area respectively, the first extraction unit, detecting a plurality of contours from the image, For each of the plurality of contours, determining a relationship between the brightness of a region located inside the contour and the brightness of a region located outside the contour, determining one of the plurality of contours whose relationship is in a preset first relationship as the first contour, and determining another one of the plurality of contours whose relationship is in a preset second relationship as the second contour, When the first score or the second score does not satisfy a preset condition, the correction unit performs a projection transformation on the first region and the second region again under a condition different from the previous projection transformation. The reading unit calculates the first reading, the second reading, the first score, and the second score based on the first region and the second region after re-projection transformation.

12. The moving object according to claim 11, wherein: The camera device captures a dynamic image showing the measuring instrument, and cuts out the image from the dynamic image.

13. A reading method, comprising: An extraction step of extracting, from the image showing the measuring instrument, a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline; a reading step, calculating a first reading based on the first region, and calculating a second reading based on the second region, and calculating a first score related to the first reading based on the first region, and calculating a second score related to the second reading based on the second region; as well as a correction step of performing a projective transformation on the first region and the second region respectively, In the extraction step, detecting a plurality of contours from the image, For each of the plurality of contours, determining a relationship between the brightness of a region located inside the contour and the brightness of a region located outside the contour, determining one of the plurality of contours whose relationship is in a preset first relationship as the first contour, and determining another one of the plurality of contours whose relationship is in a preset second relationship as the second contour, When the first score or the second score does not satisfy a preset condition, the first region and the second region are respectively projected again under conditions different from the previous projection transformation through the correction step. In the reading step, the first reading, the second reading, the first score, and the second score are calculated based on the first region and the second region after re-projection transformation.

14. The reading method according to claim 13, wherein: Based on the first score and the second score, one of the first reading and the second reading is selected as the reading of the measuring instrument.

15. The reading method according to claim 13 or 14, wherein: Extracting a first scale area and a first digital area from the first area, Extracting a second scale area and a second digital area from the second area, calculating the first reading based on a first scale group, a first number group, and a first pointer identified from the first scale area and the first number area, The second reading is calculated based on a second scale group, a second number group, and a second pointer identified from the second scale region and the second number region.

16. The reading method according to claim 15, wherein: calculating the first score based on at least any one of the first scale group, the first number group, and the first pointer, The second score is calculated based on at least any one of the second scale group, the second number group, and the second pointer.

17. The reading method according to claim 13 or 14, wherein: The camera device captures a dynamic image showing the measuring instrument, and cuts out the image from the dynamic image.

18. A storage medium storing a program for causing a processing device to perform the following processing: An extraction step of extracting, from the image showing the measuring instrument, a first area surrounded by a first outline and a second area surrounded by a second outline located outside the first outline; a reading step, calculating a first reading based on the first region, and calculating a second reading based on the second region, and calculating a first score related to the first reading based on the first region, and calculating a second score related to the second reading based on the second region; as well as a correction step of performing a projective transformation on the first region and the second region respectively, In the extraction step, detecting a plurality of contours from the image, For each of the plurality of contours, determining a relationship between the brightness of a region located inside the contour and the brightness of a region located outside the contour, determining one of the plurality of contours whose relationship is in a preset first relationship as the first contour, and determining another one of the plurality of contours whose relationship is in a preset second relationship as the second contour, When the first score or the second score does not satisfy a preset condition, the first region and the second region are respectively projected again under conditions different from the previous projection transformation through the correction step. In the reading step, the first reading, the second reading, the first score, and the second score are calculated based on the first region and the second region after re-projection transformation.

19. The storage medium according to claim 18, wherein: The program causes the processing device to perform the following processing: Based on the first score and the second score, one of the first reading and the second reading is selected as the reading of the measuring instrument.

20. The storage medium according to claim 18, wherein: The program causes the processing device to perform the following processing: Extracting a first scale area and a first digital area from the first area, Extracting a second scale area and a second digital area from the second area, calculating the first reading based on a first scale group, a first number group, and a first pointer identified from the first scale area and the first number area, The second reading is calculated based on a second scale group, a second number group, and a second pointer identified from the second scale region and the second number region.

21. The storage medium according to claim 20, wherein: The program causes the processing device to perform the following processing: calculating the first score based on at least any one of the first scale group, the first number group, and the first pointer, The second score is calculated based on at least any one of the second scale group, the second number group, and the second pointer.

Citation Information

Patent Citations

  • Instrument pointer image identification method of high-robustness rod

    CN102521560A

  • Single-pointer meter reading method based on machine vision

    CN108009535A