Attitude estimation device, industrial vehicle, attitude estimation program, and storage medium
The posture estimation device enhances accuracy by generating shifted coordinates and using threshold comparisons to validate estimation results, addressing both accuracy and cost concerns in marker-based estimation.
Patent Information
- Application Number
- JP2021146104
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-09-08
AI Technical Summary
Conventional posture estimation methods using markers face accuracy issues due to reduced apparent distortion when markers are positioned directly facing the camera, and the use of lenticular lenses or lens arrays increases manufacturing costs.
A posture estimation device that recognizes markers from captured images, generates shifted coordinates to increase apparent distortion, and compares these with threshold values to determine the reliability of the estimation results, thereby ensuring accuracy without increasing manufacturing costs.
Ensures accurate posture estimation results while preventing cost escalation by minimizing the need for additional marker processing and focusing on coordinate shift calculations.
Smart Images

Figure 0007533402000003 
Figure 0007533402000004 
Figure 0007533402000007
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an attitude estimation device, an industrial vehicle, an attitude estimation program, and a storage medium. [Background technology]
[0002] There is known a posture estimation method in which a marker is photographed by a camera and a posture between the marker and the camera is estimated based on the apparent distortion of the marker. In the conventional posture estimation method, for example, when the marker is photographed near a position where the marker and the camera face each other, the apparent distortion of the marker becomes small, and the accuracy of the posture estimation result may decrease. As a conventional method for obtaining a highly accurate posture estimation result, there is a posture estimation method described in Patent Document 1. A standard variable moire pattern and a high-sensitivity variable moire pattern having a higher gaze angle resolution than the standard variable moire pattern are arranged around the marker described in Patent Document 1. In this posture estimation method, a gaze angle is estimated based on a gaze angle provisionally determined using the standard variable moire pattern and a candidate value of the gaze angle obtained using the high-sensitivity variable moire pattern. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2018 / 135063 Summary of the Invention [Problem to be solved by the invention]
[0004] In the marker described in Patent Document 1, a lenticular lens or a lens array is used as two types of variable moiré patterns, which increases the manufacturing cost and makes it difficult to increase the size of the marker. Meanwhile, in pose estimation using a general marker, there is still a problem that the accuracy of the pose estimation result may decrease.
[0005] The present disclosure has been made to solve the above-mentioned problems, and aims to provide an attitude estimation device, an industrial vehicle equipped with an attitude estimation device, an attitude estimation program, and a storage medium storing an attitude estimation program, which can ensure that the attitude estimation results have a certain level of accuracy while suppressing increases in manufacturing costs. [Means for solving the problem]
[0006] A posture estimation device according to one aspect of the present disclosure includes a recognition unit that recognizes a marker from a captured image of the marker and acquires original coordinates of the marker in the captured image; a generation unit that generates shifted coordinates by shifting the coordinates of at least one point of the marker from the original coordinates; an estimation unit that generates a first posture estimation result using the original coordinates and a second posture estimation result using the shifted coordinates; and a determination unit that determines the reliability of the first posture estimation result based on a comparison between the second posture estimation result and a predetermined threshold.
[0007] In this posture estimation device, at least a part of the original coordinates is moved to generate shifted coordinates. The markers indicated by the shifted coordinates appear to be more distorted than the markers indicated by the original coordinates. In this posture estimation device, the reliability of the first posture estimation result can be accurately determined by comparing the second posture estimation result using the shifted coordinates with a threshold value. In addition, this posture estimation device only needs to consider the calculation cost required for calculating the shifted coordinates and comparing them with the threshold value, and does not require processing of the markers themselves, thereby suppressing an increase in manufacturing costs.
[0008] The generation unit may generate a plurality of shifted coordinates by shifting the coordinates of the four corners of the marker from the original coordinates. In this case, the shape (rectangle) of the marker is easily identified, and the processing time required for the second orientation estimation result is shortened.
[0009] The generating unit may generate a plurality of shifted coordinates by moving each of the coordinates of the four corners of the marker from the original coordinates in the positive and negative directions of the X-axis and the positive and negative directions of the Y-axis. In this case, a large number of shifted coordinates are generated by moving each of the coordinates of the four corners of the marker in four directions. By comparing a large number of second posture estimation results with a threshold, it is possible to more accurately determine whether the first posture estimation result is reliable.
[0010] The generator may move each of the coordinates of the four corners of the marker by one pixel. In this case, the change in distortion of one pixel is reflected in the second posture estimation result. This makes it possible to further improve the accuracy of determining whether the first posture estimation result is reliable while minimizing the movement of the coordinates.
[0011] The determination unit may calculate a difference between a maximum value and a minimum value in the second posture estimation result, and compare the difference with a threshold. In this case, the accuracy of determining whether the first posture estimation result is reliable can be ensured with a simple calculation.
[0012] The determination unit may calculate the variance of the second posture estimation result and compare the variance with a threshold value. In this case, the accuracy of determining the reliability of the first posture estimation result can be ensured with a simple calculation.
[0013] When the determination unit determines that the first posture estimation result is unreliable, the determination unit may generate an assumed estimation result by excluding values outside a threshold from the second posture estimation result and calculating an average value of the excluded values. In this case, it is possible to obtain a posture estimation result based on an assumed estimation result with a certain degree of reliability while omitting reacquisition of the original coordinates of the markers.
[0014] When the determination unit determines that the first posture estimation result is unreliable, the determination unit may discard the first posture estimation result. In this case, it is possible to prevent an unreliable first posture estimation result from being obtained as a posture estimation result.
[0015] The determination unit may determine whether the first posture estimation result is reliable based on a comparison between the first posture estimation result and the second posture estimation result and a threshold. By further using the first posture estimation result itself in determining whether the first posture estimation result is reliable, it is possible to further improve the accuracy of determining whether the first posture estimation result is reliable.
[0016] The estimation unit may generate at least one of a roll angle, a pitch angle, a yaw angle, and position information as the first attitude estimation result and the second attitude estimation result, in which case information required for attitude estimation can be appropriately obtained.
[0017] An industrial vehicle according to one aspect of the present disclosure is equipped with a camera that photographs a marker and the above-mentioned posture estimation device. In this industrial vehicle, at least a part of the original coordinates is moved to generate shifted coordinates. The marker represented by the shifted coordinates has a larger apparent distortion than the marker represented by the original coordinates. In this industrial vehicle, the reliability of the first posture estimation result can be accurately determined by comparing the second posture estimation result using the shifted coordinates with a threshold. In addition, this industrial vehicle only requires consideration of the calculation cost required for calculating the shifted coordinates and comparing them with the threshold, and does not require processing of the marker itself, thereby suppressing an increase in manufacturing costs.
[0018] A posture estimation program according to an aspect of the present disclosure causes a computer to execute the steps of recognizing a marker from a captured image of the marker and acquiring original coordinates of the marker in the captured image, generating shifted coordinates by shifting coordinates of at least one point of the marker from the original coordinates, generating a first posture estimation result using the original coordinates and a second posture estimation result using the shifted coordinates, and determining whether the first posture estimation result is reliable based on a comparison between the second posture estimation result and a preset threshold. Also, a storage medium according to an aspect of the present disclosure is a computer-readable storage medium storing the posture estimation program.
[0019] In this posture estimation program and storage medium, at least a part of the original coordinates is moved to generate shifted coordinates. The marker indicated by the shifted coordinates appears to be more distorted than the marker indicated by the original coordinates. In this posture estimation program and storage medium, the reliability of the first posture estimation result can be accurately determined by comparing the second posture estimation result using the shifted coordinates with a threshold value. In addition, in this posture estimation program and storage medium, it is only necessary to consider the calculation cost required for calculating the shifted coordinates and comparing them with the threshold value, and processing of the marker itself is not required, so that an increase in manufacturing costs can be suppressed. Effect of the Invention
[0020] According to the present disclosure, it is possible to ensure that the posture estimation results have a certain level of accuracy while suppressing increases in manufacturing costs. [Brief description of the drawings]
[0021] [Figure 1] FIG. 1 is a block diagram showing a configuration of a posture estimation device. [Diagram 2] FIG. 13 is a diagram showing an example of a captured image of a marker. [Diagram 3] FIG. 13 is a diagram illustrating an example of a method for generating shift coordinates. [Figure 4] 5A to 5C are diagrams illustrating an example of a first posture estimation result and a second posture estimation result. [Diagram 5] 13A to 13C are diagrams illustrating another example of the first posture estimation result and the second posture estimation result. [Figure 6] 10 is a flowchart illustrating an example of an operation of the posture estimation device. [Figure 7] 10 is a flowchart showing another example of the operation of the posture estimation device. [Figure 8] FIG. 4 is a diagram illustrating a configuration of a posture estimation program and a storage medium. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] Hereinafter, preferred embodiments of a posture estimation device, an industrial vehicle, a posture estimation program, and a storage medium according to one aspect of the present disclosure will be described in detail with reference to the drawings.
[0023] FIG. 1 is a block diagram showing a configuration of a posture estimation device according to an embodiment of the present disclosure. The posture estimation device 10 is a device that estimates the posture of an industrial vehicle 1 on which the posture estimation device 10 is mounted, based on a captured image of a marker M. The marker M is, for example, a rectangular planar marker such as an AR marker (see FIG. 2). The marker M is, for example, provided in advance by printing or pasting on an object present around the industrial vehicle 1. An example of the industrial vehicle 1 to which the posture estimation device 10 is applied is a forklift. The industrial vehicle 1 is equipped with a camera 20 for capturing an image of the marker M. The camera 20 captures an image of the marker M, and outputs data of the captured image to the posture estimation device 10.
[0024] Posture estimation device 10 is an electronic control unit having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc. In posture estimation device 10, for example, a program stored in the ROM is loaded into the RAM, and the program loaded into the RAM is executed by the CPU, thereby realizing various functions. Posture estimation device 10 has a recognition unit 11, a generation unit 12, an estimation unit 13, a determination unit 14, and an output unit 15 as functional elements.
[0025] The recognition unit 11 recognizes the marker M from the captured image of the marker M. For example, the recognition unit 11 detects the presence or absence of the marker M by pattern matching or edge detection on the captured image. The method of recognizing the marker M is not limited to the above, and may be a method of recognizing the marker M by extracting contours and binarizing the input image and extracting connected components (a set of pixels) from the binarized image.
[0026] The recognition unit 11 acquires the original coordinates of the marker M in the captured image. The image coordinate system in the captured image is represented, for example, by XY coordinates with the upper left corner of the captured image as the origin. The image coordinate system can also be represented by pixel values. For example, the recognition unit 11 acquires the coordinates of the four corners of the marker M in the captured image as the original coordinates. The coordinates of the four corners refer to the coordinates corresponding to the vertices of each of the four corners. The original coordinates are not limited to the coordinates of the four corners as long as they are coordinates that can identify the shape of the marker M. For example, the marker M may be a polygon (such as an L-shape). The original coordinates may be coordinates corresponding to the vertices in eight directions (upper, upper right, right, lower right, lower, lower left, left, upper left) of the pixels indicating the polygonal marker M.
[0027] The generating unit 12 generates shifted coordinates by shifting the coordinates of at least one point of the marker M from the original coordinates. The "shifted coordinates" are new coordinates generated by varying the values of the original coordinates on the coordinate system of the image. For example, the generating unit 12 generates a plurality of shifted coordinates by moving each of the coordinates of the four corners of the marker M from the original coordinates in the positive and negative directions of the X-axis and the positive and negative directions of the Y-axis. At this time, the generating unit 12 may move each of the coordinates of the four corners of the marker M by one pixel. A shifted marker is formed by connecting each of the shifted coordinates. The shifted marker is the marker M in the captured image to which an apparent distortion has been added.
[0028] The estimation unit 13 generates a first attitude estimation result using the original coordinates and a second attitude estimation result using the shifted coordinates. For example, the estimation unit 13 generates at least one of a roll angle, a pitch angle, a yaw angle, and position information as the first attitude estimation result and the second attitude estimation result.
[0029] Determination unit 14 determines whether the first posture estimation result is reliable based on a comparison between the second posture estimation result and a preset threshold. Determination unit 14 calculates a threshold in advance according to a method for generating shifted coordinates by, for example, moving by one pixel, and stores the threshold. Determination unit 14 may calculate a difference between a maximum value and a minimum value in the second posture estimation result, and compare the difference with the threshold. Determination unit 14 may calculate a variance in the second posture estimation result, and compare the variance with the threshold. Determination unit 14 may determine whether the first posture estimation result is reliable based on a comparison between the first posture estimation result and the second posture estimation result, and a threshold.
[0030] If the first posture estimation result is reliable, this indicates that the first posture estimation result has a certain level of accuracy. On the other hand, if the first posture estimation result is unreliable, this indicates that the first posture estimation result does not have a certain level of accuracy. If determining unit 14 determines that the first posture estimation result is unreliable, it may exclude values outside a threshold from the second posture estimation result and calculate an average value of the excluded values to generate a deemed estimation result. If determining unit 14 determines that the first posture estimation result is unreliable, it may discard the first posture estimation result.
[0031] The output unit 15 outputs the first attitude estimation result or the deemed estimation result to another device such as an ECU (Electronic Control Unit) or an automatic driving control device. The output unit 15 may transmit the result to another system or the like via a communication network.
[0032] The captured image P shown in Fig. 2 is an example of a captured image of a marker M. As shown in Fig. 2, the marker M is rectangular and has a planar pattern made up of white and black areas. The apparent distortion of the marker M in the captured image P changes depending on the positional relationship between the camera 20 and the marker M. The captured image P in Fig. 2 is an example in which the camera 20 captures the marker M from almost the front.
[0033] The coordinate system of the image in the captured image P has the upper left corner as the origin, the right direction as the positive direction of the X axis, and the downward direction as the positive direction of the Y axis. The recognition unit 11 acquires the coordinates of the four corners of the marker M in the captured image P as the original coordinates. For example, the recognition unit 11 acquires points C1 (x1, y1), C2 (x2, y2), C3 (x3, y3), and C4 (x4, y4) as the original coordinates.
[0034] Next, an example of a method for generating shifted coordinates will be described with reference to Fig. 3. Fig. 3 shows an example in which the coordinates of one point among the coordinates of the four corners are moved in four directions. The four directions refer to the positive and negative directions of the X-axis and the positive and negative directions of the Y-axis in the coordinate system of the image. The dashed frames G1, G2, G3, and G4 show patterns in which only point C1, only point C2, only point C3, or only point C4 of the original coordinates are shifted in the four directions, respectively.
[0035] Within the dashed frame G1, the shaded circle indicates point C1, the arrow indicates the direction in which point C1 is shifted, and the rectangle indicates a shift marker formed by shifting point C1. Four shift coordinates are generated by shifting point C1 in each of the four directions. Four shift markers are formed within the dashed frame G1.
[0036] The method of generating shift coordinates described for the dashed frame G1 is also applied to the dashed frame G2, G3, and G4. For example, in the dashed frame G2, four shift coordinates are generated by shifting only the point C2 in each of the four directions. A total of 16 shift coordinates are generated for the dashed frame G3 and the dashed frame G4 by the same process.
[0037] FIG. 4 is a diagram showing an example of a first attitude estimation result R1 and a second attitude estimation result R2. The estimation unit 13 generates a first attitude estimation result R1a using the original coordinates and a second attitude estimation result R2a using a plurality of shifted coordinates. The first attitude estimation result R1a and the second attitude estimation result R2a are, for example, values of yaw angles. In the example of FIG. 4, the value of the first attitude estimation result R1a is [2]. The second attitude estimation result R2a includes 16 values [1, 1, 5, 2, 3, 2, 1, 1, 3, 0, 4, 2, 1, 2, 3, 1]. The maximum value of the second attitude estimation result R2a is [5] and the minimum value is [0].
[0038] FIG. 5 shows another example of the first attitude estimation result R1 and the second attitude estimation result R2. The estimation unit 13 generates a first attitude estimation result R1b using the original coordinates and a second attitude estimation result R2b using a plurality of shifted coordinates. The first attitude estimation result R1b and the second attitude estimation result R2b are, for example, values of yaw angles. In the example of FIG. 5, the value of the first attitude estimation result R1b is [2]. The second attitude estimation result R2b includes 16 values [2, 4, 8, 3, 4, 8, 2, 3, 3, 2, 2, 5, 2, 1, 3, 14]. The maximum value of the second attitude estimation result R2b is
[14] and the minimum value is [1].
[0039] An example of the operation of the posture estimation device 10 will be described with reference to Fig. 6. Fig. 6 is a flowchart showing the operation of the posture estimation device 10 as a process flow S1. First, the camera 20 of the industrial vehicle 1 acquires a captured image P of the marker M shown in Fig. 2 (step S11).
[0040] The recognition unit 11 recognizes the marker M from the captured image P of the marker M (step S12). If the marker M is present in the captured image P (YES in step S13), the process proceeds to step S14. On the other hand, if the marker M is not present in the captured image P (NO in step S13), the subsequent process ends. The process flow S1 is executed again, for example, after a predetermined time has elapsed. In one example, the process flow S1 is executed periodically by executing the process of step S11 at a predetermined time interval.
[0041] The recognition unit 11 acquires the original coordinates of the marker M in the captured image P (step S14). For example, the recognition unit 11 acquires points C1 (x1, y1), C2 (x2, y2), C3 (x3, y3), and C4 (x4, y4) as the original coordinates.
[0042] The generating unit 12 generates shifted coordinates by shifting the coordinates of at least one point of the marker M from the original coordinates (step S15). For example, the generating unit 12 generates a plurality of shifted coordinates by moving each of the coordinates of the four corners of the marker M from the original coordinates in the positive and negative directions of the X-axis and the positive and negative directions of the Y-axis. The generating unit 12 may move each of the coordinates of the four corners of the marker M by one pixel. In one example, the generating unit 12 moves the point C1 (x1, y1) to the coordinate (x1-1, y1) at a position shifted by one pixel in the negative direction of the X-axis. The generating unit 12 generates 16 shifted coordinates by shifting only the point C1, only the point C2, only the point C3, or only the point C4 of the original coordinates in the four directions.
[0043] The estimation unit 13 generates a first attitude estimation result R1 using the original coordinates and a second attitude estimation result R2 using the shifted coordinates (step S16). The estimation unit 13 generates at least one of a roll angle, a pitch angle, a yaw angle, and position information as the first attitude estimation result R1 and the second attitude estimation result R2.
[0044] Determination unit 14 determines whether first posture estimation result R1 is reliable based on a comparison between second posture estimation result R2 and a preset threshold (step S17). Determination unit 14 holds a preset threshold. Here, the threshold is [5]. Determination unit 14 compares second posture estimation result R2 with the threshold, and determines that first posture estimation result R1 is reliable if all values included in second posture estimation result R2 are equal to or less than the threshold, and determines that first posture estimation result R1 is unreliable if any one of the values included in second posture estimation result R2 exceeds the threshold.
[0045] In step S17, determination unit 14 may calculate the difference between the maximum and minimum values in second posture estimation result R2, and compare the difference with a threshold. In the example of FIG. 4, the difference between the maximum value [5] and the minimum value [0] in second posture estimation result R2a is calculated to be [5]. In this example, since the difference [5] is equal to or smaller than the threshold [5], determination unit 14 determines that first posture estimation result R1a is reliable. In the example of FIG. 5, since the difference
[13] exceeds the threshold [5], determination unit 14 determines that first posture estimation result R1b is unreliable.
[0046] In step S17, the determination unit 14 may calculate the variance of the second posture estimation result R2 and compare the variance with a threshold value. In the example of FIG. 4, the variance of the values [1, 1, 5, 2, 3, 2, 1, 1, 3, 0, 4, 2, 1, 2, 3, 1] of the second posture estimation result R2a is calculated to be [1.73]. In this example, since the variance [1.73] is equal to or smaller than the threshold value [5], the determination unit 14 determines that the first posture estimation result R1a is reliable. In the example of FIG. 5, the variance of the values [2, 4, 8, 3, 4, 8, 2, 3, 3, 2, 2, 5, 2, 1, 3, 14] of the second posture estimation result R2b is calculated to be [11.05]. In this example, since the variance [11.05] exceeds the threshold value [5], the determination unit 14 determines that the first posture estimation result R1b is unreliable.
[0047] In step S17, determination unit 14 may determine the reliability of first posture estimation result R1 based on a comparison of first posture estimation result R1 and second posture estimation result R2 with a threshold value. In other words, determination unit 14 may further use first posture estimation result R1 when comparing with the threshold value.
[0048] If the first posture estimation result R1 is reliable (YES in step S17), the process proceeds to step S18. On the other hand, if the first posture estimation result R1 is not reliable (NO in step S17), the process proceeds to step S19.
[0049] Output unit 15 outputs first posture estimation result R1 to another device (step S18). For example, output unit 15 outputs first posture estimation result R1a to another device.
[0050] The determination unit 14 discards the first posture estimation result R1 (step S19). For example, the determination unit 14 discards the first posture estimation result R1b.
[0051] The process flow S1 is executed again after a predetermined time has elapsed, for example. In one example, the process flow S1 is executed periodically by executing the process of step S11 at a predetermined time interval.
[0052] Another example of the operation of posture estimation device 10 will be described with reference to Fig. 7. Fig. 7 is a flowchart showing the operation of posture estimation device 10 as process flow S2. Process flow S2 differs from process flow S1 in that it includes the process of step S20 instead of step S19. Below, explanations of steps that are the same as those in process flow S1 will be omitted.
[0053] The determination unit 14 determines whether the first posture estimation result R1 is reliable based on a comparison between the second posture estimation result R2 and a preset threshold (step S17). The determination unit 14 holds a preset threshold. Here, the threshold is [5]. The determination unit 14 compares the second posture estimation result R2 with the threshold, and determines that the first posture estimation result R1 is reliable if all values included in the second posture estimation result R2 are equal to or less than the threshold, and determines that the first posture estimation result R1 is unreliable if any one of the values included in the second posture estimation result R2 exceeds the threshold. In the example of FIG. 4, the maximum value [5] is equal to or less than the threshold [5], so the determination unit 14 determines that the first posture estimation result R1a is reliable. In the example of FIG. 5, the maximum value
[14] exceeds the threshold [5], so the determination unit 14 determines that the first posture estimation result R1b is unreliable.
[0054] If the first posture estimation result R1 is reliable (YES in step S17), the process proceeds to step S18. The output unit 15 outputs the first posture estimation result R1 to another device (step S18). For example, the output unit 15 outputs the first posture estimation result R1a to the other device.
[0055] If the first posture estimation result R1 is not reliable (NO in step S17), the process proceeds to step S20. The determination unit 14 generates an deemed estimation result based on the second posture estimation result R2 (step S20). For example, the determination unit 14 generates the deemed estimation result by excluding values outside a threshold from the second posture estimation result R2 and calculating the average value of the excluded values. In the example of FIG. 5, the value [8, 8, 14] exceeding the threshold [5] is excluded from the values [2, 4, 8, 3, 4, 8, 2, 3, 3, 2, 2, 5, 2, 1, 3, 14] of the second posture estimation result R2b. Then, the average value of the excluded values [2, 4, 3, 4, 2, 3, 3, 2, 2, 5, 2, 1, 3] is calculated to be [2.77]. In this example, the average value [2.77] becomes the deemed estimation result. Then, the output unit 15 outputs the deemed estimation result to another device.
[0056] Next, a description will be given of a posture estimation program for executing the above-mentioned series of processes by posture estimation device 10. As shown in Fig. 8, posture estimation program 100 is stored in a program storage area 111 formed in computer-readable storage medium 110 that is inserted into a computer and accessed, or that is provided in the computer. Storage medium 110 may be a non-transitory storage medium.
[0057] Pose estimation program 100 includes recognition module 101, generation module 102, estimation module 103, judgment module 104, and output module 105. Functions realized by executing recognition module 101, generation module 102, estimation module 103, judgment module 104, and output module 105 are similar to the functions of recognition unit 11, generation unit 12, estimation unit 13, judgment unit 14, and output unit 15 of posture estimation device 10 described above, respectively.
[0058] The posture estimation program 100 may be configured such that a part or the whole of it is transmitted via a transmission medium such as a communication line, and is received and recorded (including installed) by another device. Furthermore, each module of the posture estimation program 100 may be installed not in one computer, but in one of multiple computers. In that case, the above-mentioned series of processes are performed by a computer system including the multiple computers.
[0059] As described above, in posture estimation device 10, at least a part of the original coordinates is moved to generate shifted coordinates. Marker M indicated by the shifted coordinates appears to be more distorted than marker M indicated by the original coordinates. In posture estimation device 10, the reliability of first posture estimation result R1 can be accurately determined by comparing second posture estimation result R2 using the shifted coordinates with a threshold. In addition, posture estimation device 10 only needs to consider the calculation cost required for calculating shifted coordinates and comparing them with a threshold, and does not require processing of the markers themselves, thereby suppressing an increase in manufacturing costs.
[0060] In this embodiment, the generation unit 12 generates a plurality of shifted coordinates by shifting the coordinates of the four corners of the marker M from the original coordinates. In this case, since it becomes easier to identify the shape (rectangle) of the marker M, the processing time required for the second posture estimation result R2 can be shortened.
[0061] In this embodiment, the generation unit 12 generates a plurality of shifted coordinates by moving each of the coordinates of the four corners of the marker M from the original coordinates in the positive and negative directions of the X-axis and the positive and negative directions of the Y-axis. In this case, a large number of shifted coordinates are generated by moving each of the coordinates of the four corners of the marker M in four directions. By comparing a large number of second posture estimation results R2 with a threshold, it is possible to more accurately determine whether the first posture estimation result R1 is reliable.
[0062] In this embodiment, generation unit 12 moves each of the coordinates of the four corners of marker M by one pixel. In this case, the change in distortion of one pixel is reflected in second posture estimation result R2. This makes it possible to further improve the accuracy of determining whether or not first posture estimation result R1 is reliable while minimizing the movement of coordinates.
[0063] In this embodiment, determination unit 14 calculates the difference between the maximum and minimum values in second posture estimation result R2 and compares the difference with a threshold. In this case, the accuracy of determining whether first posture estimation result R1 is reliable can be ensured with a simple calculation.
[0064] In this embodiment, determination unit 14 calculates the variance of second posture estimation result R2 and compares the variance with a threshold. In this case, the accuracy of determining the reliability of first posture estimation result R1 can be ensured with a simple calculation.
[0065] In this embodiment, when determining that the first posture estimation result R1 is unreliable, the determination unit 14 generates an deemed estimation result by excluding values outside the threshold from the second posture estimation result R2 and calculating the average value of the excluded values. In this case, it is possible to obtain a posture estimation result based on an deemed estimation result with a certain degree of reliability while omitting reacquisition of the original coordinates of the marker M.
[0066] In this embodiment, when determining that the first posture estimation result R1 is unreliable, the determination unit 14 discards the first posture estimation result R1. In this case, it is possible to prevent an unreliable first posture estimation result R1 from being obtained as a posture estimation result.
[0067] In this embodiment, determination unit 14 determines whether first posture estimation result R1 is reliable based on a comparison between first posture estimation result R1 and second posture estimation result R2 and a threshold value. By further using first posture estimation result R1 itself in determining whether it is reliable, it is possible to further improve the accuracy of determining whether first posture estimation result R1 is reliable.
[0068] In this embodiment, the estimation unit 13 generates at least one of the roll angle, pitch angle, yaw angle, and position information as the first attitude estimation result R1 and the second attitude estimation result R2. In this case, information required for attitude estimation can be appropriately obtained.
[0069] The industrial vehicle 1 is equipped with a camera 20 that captures an image of a marker M and the above-mentioned posture estimation device 10. In this industrial vehicle 1, at least a part of the original coordinates is moved to generate shifted coordinates. The marker M indicated by the shifted coordinates has a larger apparent distortion than the marker M indicated by the original coordinates. In this industrial vehicle 1, the reliability of the first posture estimation result R1 can be accurately determined by comparing the second posture estimation result R2 using the shifted coordinates with a threshold value. Furthermore, in this industrial vehicle 1, it is only necessary to consider the calculation cost required for calculating the shifted coordinates and comparing them with the threshold value, and since processing of the marker itself is not required, an increase in manufacturing costs can be suppressed.
[0070] The posture estimation program 100 causes a computer to execute the steps of recognizing the marker M from a captured image of the marker M and acquiring the original coordinates of the marker M in the captured image, generating shifted coordinates by shifting the coordinates of at least one point of the marker M from the original coordinates, generating a first posture estimation result R1 using the original coordinates and a second posture estimation result R2 using the shifted coordinates, and determining whether the first posture estimation result R1 is reliable based on a comparison between the second posture estimation result R2 and a preset threshold. The storage medium 110 is a computer-readable storage medium 110 that stores the posture estimation program 100.
[0071] In the posture estimation program 100 and the storage medium 110, at least a part of the original coordinates is moved to generate the shifted coordinates. The marker M indicated by the shifted coordinates appears to be more distorted than the marker M indicated by the original coordinates. In the posture estimation program 100 and the storage medium 110, the reliability of the first posture estimation result R1 can be accurately determined by comparing the second posture estimation result R2 using the shifted coordinates with a threshold value. In addition, the posture estimation program 100 and the storage medium 110 need only consider the calculation cost required for calculating the shifted coordinates and comparing them with the threshold value, and do not require processing of the marker itself, thereby suppressing an increase in manufacturing costs.
[0072] In the above embodiment, the generation unit 12 shifts each of the coordinates of the four corners of the marker M by one pixel, but may shift by one pixel or more (for example, two pixels or three pixels, etc.). Also, in the above embodiment, the generation unit 12 generates 16 shift coordinates as the multiple shift coordinates, but the number of shift coordinates is not limited to this and may be any number. [Explanation of symbols]
[0073] 1...industrial vehicle, 10...posture estimation device, 11...recognition unit, 12...generation unit, 13...estimation unit, 14...judgment unit, 15...output unit, 20...camera, 100...posture estimation program, 110...storage medium, 101...recognition module, 102...generation module, 103...estimation module, 104...judgment module, 105...output module, M...marker, P...captured image.
Claims
1. a recognition unit that recognizes a marker from a captured image of the marker and acquires original coordinates of the marker in the captured image; a generation unit that generates shifted coordinates by shifting coordinates of at least one point of the marker from the original coordinates; an estimation unit that generates a first posture estimation result using the original coordinates and a second posture estimation result using the shifted coordinates; a determination unit that determines whether or not the first posture estimation result is reliable based on a comparison between the second posture estimation result and a preset threshold; A posture estimation device comprising:
2. The posture estimation device according to claim 1 , wherein the generation unit generates a plurality of shifted coordinates by shifting coordinates of four corners of the marker from the original coordinates.
3. The posture estimation device according to claim 2 , wherein the generation unit generates the plurality of shifted coordinates by moving each of the coordinates of the four corners of the marker from the original coordinates in a positive / negative direction of an X axis and a positive / negative direction of a Y axis.
4. The posture estimation device according to claim 3 , wherein the generation unit shifts each of the coordinates of the four corners of the marker by one pixel.
5. 5. The posture estimation device according to claim 2, wherein the determination unit calculates a difference between a maximum value and a minimum value in the second posture estimation result, and compares the difference with the threshold value.
6. 5. The posture estimation device according to claim 2, wherein the determination unit calculates a variance in the second posture estimation result and compares the variance with the threshold value.
7. The posture estimation device according to any one of claims 2 to 6, wherein when the determination unit determines that the first posture estimation result is unreliable, the determination unit generates a deemed estimation result by excluding values outside the threshold from the second posture estimation result and calculating an average value of the excluded values.
8. The posture estimation device according to claim 1 , wherein the determination unit discards the first posture estimation result when it is determined that the first posture estimation result is unreliable.
9. 9. The posture estimation device according to claim 1, wherein the determination unit determines whether or not the first posture estimation result is reliable based on a comparison of the first posture estimation result and the second posture estimation result with the threshold value.
10. The attitude estimation device according to claim 1 , wherein the estimation unit generates at least one of a roll angle, a pitch angle, a yaw angle, and position information as the first attitude estimation result and the second attitude estimation result.
11. An industrial vehicle equipped with a camera for photographing the marker and the attitude estimation device according to any one of claims 1 to 10.
12. A step of recognizing the marker from a captured image of the marker and acquiring original coordinates of the marker in the captured image; generating shifted coordinates by shifting coordinates of at least one point of the marker from the original coordinates; generating a first pose estimation result using the original coordinates and a second pose estimation result using the shifted coordinates; determining whether the first posture estimation result is reliable based on a comparison between the second posture estimation result and a preset threshold; A posture estimation program that causes a computer to execute the above.
13. A computer-readable storage medium storing the posture estimation program according to claim 12.
Citation Information
Patent Citations
Information processor and information processing method
JP2013037006A
Attitude estimation device, attitude estimation method and attitude estimation computer program
JP2015158461A
Information processor, system, method, and program
JP2019125354A
Posture estimation method and robot
WO2015037178A1
Marker, and posture estimation method and position and posture estimation method using marker
WO2018135063A1
