Image generation device, control method for image generation device, and image generation program
The image generation device addresses inaccuracies in reinforcing bar measurements by electronically aligning index and measurement positions, ensuring clear and accurate presentation of measurements.
Patent Information
- Application Number
- JP2021114503
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Conventional methods for measuring reinforcing bar diameters and spacings in concrete structures face inaccuracies due to variations caused by bar inclinations and joints, leading to confusion in measurement positions and values.
An image generation device that allows users to designate positions on an image of reinforcing bars, setting an index and measurement position electronically, ensuring accurate alignment and superimposition of measurement information.
Enables accurate and clear presentation of reinforcing bar measurements by aligning the index and measurement positions as intended by the user, reducing confusion and improving measurement accuracy.
Smart Images

Figure 0007706282000001 
Figure 0007706282000002 
Figure 0007706282000003
Abstract
Description
Technical Field
[0001] One aspect of the present invention relates to an image generation device, a control method for the image generation device, and an image generation program that measure the diameter and spacing of reinforcing bars from image data captured by a stereo camera and generate image data that appropriately displays an index of the measurement values to the user.
Background Art
[0002] A measuring device that acquires images of a plurality of reinforcing bars arranged (reinforced) in the vertical and horizontal directions in a building made of reinforced concrete or the like by an imaging unit such as a stereo camera and measures the reinforcing bars is known as a conventional technique.
[0003] Patent Document 1 discloses a measuring device that measures the diameter or spacing of reinforcing bars from an image of reinforcing bars with a plurality of reinforcing bars arranged, superimposes an index for confirming the measured dimensions of the reinforcing bars on the image, and measures the reinforcing bars.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0005] When some of the plurality of reinforcing bars are inclined or have joints, the spacing between the reinforcing bars including the inclined or jointed reinforcing bars will vary depending on the measurement position. In conventional reinforcement inspections, in order to clearly present the size of the diameter or spacing of the reinforcing bars, etc., a measuring tape or a measuring rod is placed on the actual reinforcing bars as an index, and an image is captured. At this time, since the measurement position is where the user places an index for measurement at an arbitrary position, the measurement position is the position intended by the user.
[0006] However, when electronically superimposing an index on an image of a measurement target, in a device such as the prior art, due to the inclination of the reinforcing bars or the like, the value of the reinforcing bar diameter or the distance between the reinforcing bars calculated at the measurement position intended by the user and the value of the reinforcing bar diameter or the distance between the reinforcing bars at the index position read by the user from the index are different, which may cause the user to be confused.
[0007] The present invention has been made in view of the above problems, and when electronically superimposing an index on an image of a measurement target, the object is to arrange the index position and the measurement position as intended by the user and enable the user to read an appropriate value from the index.
Means for Solving the Problems
[0008] In order to solve the above problems, an image generation device according to an aspect of the present invention includes an input unit that receives an input of a designated position designated by a user in an image in which a reinforcing bar is imaged, and based on the designated position in the image, sets an index position of an index indicating a length related to the reinforcing bar in the image and a measurement position for measuring the reinforcing bar, and an image generation unit that generates an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position.
[0009] In order to solve the above problems, a control method for an image generation device according to an aspect of the present invention includes the image generation device receiving an input of a designated position designated by a user in an image in which a reinforcing bar is imaged, the image generation device setting an index position of an index indicating a length related to the reinforcing bar in the image and a measurement position for measuring the reinforcing bar based on the designated position in the image, and the image generation device generating an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position.
Effects of the Invention
[0010] According to one aspect of the present invention, when an index is electronically superimposed on an image of a measurement target, the index position and the measurement position are arranged as intended by the user, and an appropriate value can be read from the index.
Brief Description of the Drawings
[0011]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Modes for Carrying Out the Invention
[0012] Each embodiment according to the present invention will be described in detail with reference to the drawings. Each drawing only shows a specific embodiment in accordance with the principle of the present invention. These are only provided for the understanding of the present invention and are not for the purpose of limiting the interpretation of the present invention. Also, each element illustrated in each drawing is described in an exaggerated manner for deepening the understanding of the present invention, so it is different from the actual interval and size of each element.
[0013] In the following description, when the same reference numeral as that attached to an element in a certain drawing is also attached to the same element in other drawings, the configuration, function, etc. of the same element are the same as those of the certain element, so a detailed description of the same element will be omitted.
[0014] 〔Embodiment 1〕 Embodiments according to the present invention will be described below with reference to the drawings.
[0015] <Measurement device 100> FIG. 1 is a functional block diagram showing the configuration of a measurement device 100 according to the first embodiment. The measurement device 100 is a device that captures an image of a reinforcing bar and superimposes and displays an index or the like described later on the captured image. As shown in FIG. 1, the measurement device 100 includes an imaging unit 8 and an image generation device 1.
[0016] [Imaging unit 8] The imaging unit 8 is at least a camera capable of capturing a still image, and is realized as, for example, a stereo camera. The imaging unit 8 captures an image of a reinforcing bar and supplies the captured image to the input unit 2 of the image generation device 1.
[0017] [Image generation device 1] As shown in FIG. 1, the image generation device 1 includes an input unit 2, a setting unit 3, an image generation unit 4, a measurement unit 5, a storage unit 6, and a display unit 7.
[0018] The image generation device 1 of the present embodiment generates an image in which an index indicating the length of a reinforcing bar and measurement position information indicating a measurement position for measuring the reinforcing bar are superimposed on an image of the reinforcing bar imaged by the imaging unit 8 based on a designated position specified by the user. Further, the image generation device 1 can be realized as a portable terminal such as a tablet or a personal computer. Further, the image generation device 1 may be provided at a location remote from a building having a reinforcing bar, and configured to receive an image via a network.
[0019] Note that in the above example, the image generation device 1 does not include the imaging unit 8, but in the present embodiment, the image generation device 1 may include the imaging unit 8.
[0020] (Input unit 2) The input unit 2 is an interface that receives inputs to the image generation device 1. The input unit 2 receives an input of an image in which one or more reinforcing bars are imaged by the imaging unit 8. Further, the input unit 2 receives an input of a designated position specified by the user. In the present embodiment, the designated position specified by the user corresponds to an index position that is the position of an image indicating an index. Further, in the present disclosure, the image indicating the index may be simply referred to as an "index".
[0021] The input of the designated position by the input unit 2 is performed, for example, by the user designating two points on the image using a mouse or a touch panel, and setting a straight line or a line segment connecting the two points as the designated position.
[0022] As another example, a line segment or a straight line indicating a measurement position is superimposed on the image as an object, the position and the angle are adjusted, and the measurement position is input by a determination operation such as pressing a determination button or double-clicking. The adjustment of the measurement position is performed by the user selecting and moving a point specified by the user, an endpoint of a straight line or a line segment, moving a straight line or a line segment, or inputting a movement amount or a rotation angle of a straight line or a line segment.
[0023] FIG. 2 is a diagram showing an example of an image of reinforcing bars input to the input unit 2. The layer of reinforcing bars included in the image shown in FIG. 2 and FIG. 3 etc. described later is one layer. Here, the layer of reinforcing bars means a set of reinforcing bars located on substantially the same plane, or a range including the set of the reinforcing bars. In other words, the reinforcing bars included in the images such as FIG. 2 are located on substantially the same plane. Note that the layer of reinforcing bars may have a thickness within a certain range.
[0024] In the image of FIG. 2, vertical reinforcing bars 10, vertical reinforcing bars 11, horizontal reinforcing bars 12, horizontal reinforcing bars 13, and horizontal reinforcing bars 14 are arranged. At this time, the horizontal reinforcing bars 13 and 14 are joints, and the vertical reinforcing bar 10 is inclined to the left with respect to the vertical reinforcing bar 11. The image generation device 1 presents the image illustrated in FIG. 2 to the user using an external display device such as a display or a display etc. that the device itself has, and the user inputs a specified position via the input unit 2.
[0025] The input unit 2 is not limited to a configuration in which the user directly designates and inputs the coordinates of the position to be measured on the image. When an index is displayed, the user may select the index or measurement position information to be moved and move the index etc. to specify the measurement position. Further, when the input unit 2 is realized as a touch panel, it may be possible to move it by dragging an index etc. At this time, for the newly input measurement position, a measurement value of the interval etc. is calculated in the same manner as the process described above, and an index is displayed. Note that even during the above-described movement, the position during the movement may be used as the measurement position, the interval may be calculated, and the index etc. may be superimposed on the measurement result screen. Also, in this configuration, for example, whether the relative position of the measurement position information with respect to the index is changed or fixed as the index moves may be switchable by a user operation.
[0026] By doing so, it is not necessary to directly specify the index position or the measurement position, and the measurement position can be changed more simply in the same manner as the measurement using an actual measuring rod etc., which is preferable.
[0027] When moving the index or measurement position information, the movement position of the index may be restricted to be along the longitudinal position of the reinforcing bar at the location closest to the display position of the current index using the reinforcing bar position information. Also, a position on the image where there is a reinforcing bar may be specified, and the vicinity thereof may be used as the index position or measurement position. Alternatively, the vanishing point of the group of reinforcing bars to be measured may be obtained, and the longitudinal direction of the index may be adjusted to be in the direction of the vanishing point. By doing so, the operation of setting the measurement position for an image taken at an angle with respect to the reinforcing bar becomes easy and is suitable. Note that the method of inputting the index position and the measurement position is an example, and other methods may be used.
[0028] (Setting unit 3) Based on the specified position in the image input to the input unit 2, the setting unit 3 sets the index position of an index indicating the length of the reinforcing bar in the image and the measurement position for measuring the reinforcing bar.
[0029] First, the setting unit 3 sets the index position based on the specified position. For example, the setting unit 3 may be configured to set the index position such that a part of the outer periphery of the index overlaps with a straight line or line segment indicating the specified position. Alternatively, the setting unit 3 may be configured to set the index position such that a straight line passing through the center of the index overlaps with a straight line or line segment indicating the specified position. Also, for example, in a configuration where the specified position is indicated by a point, the setting unit 3 may set the index position such that the point overlaps with a predetermined angle of the index. Thereby, when the index is electronically superimposed on the image of the measurement target, the index position and the measurement position can be arranged as intended by the user.
[0030] Next, the setting unit 3 sets the measurement position based on the set index position. Since the measurement position is automatically set based on the index position, the index position and the measurement position can be arranged as intended by the user without the user individually specifying the index position and the measurement position. Also, for example, the setting unit 3 may set a position adjacent to the scale of the index position as the measurement position.
[0031] In setting the measurement position, the user may specify the direction of the reinforcing bar to be measured. However, considering that the vertical and horizontal reinforcing bars are substantially orthogonal, it is preferable to automatically determine the direction of the reinforcing bar to be measured based on the direction of the specified position designated by the user, which can reduce the workload of the user.
[0032] FIG. 3 is a diagram showing the setting of the measurement position when the reinforcing bar is inclined. In FIG. 3, points 15 and 16, and points 17 and 18 respectively show an example of the specified position designated by the user. Since the vertical reinforcing bar 10 is inclined to the left, when measuring the interval between the vertical reinforcing bars, the measurement results vary depending on the measurement position. For example, the bar intervals between points 15 and 16 and between points 17 and 18 are different. Also, arrow 35 indicates an example of the bar diameter.
[0033] FIG. 4 is a diagram showing the measurement of the bar interval when there is a joint between the reinforcing bars. In FIG. 4, points 19 and 20, points 21 and 22, and points 23 and 24 respectively show an example of the specified position designated by the user. Since the horizontal reinforcing bar 13 and the horizontal reinforcing bar 14 form a joint, when measuring the interval between the horizontal reinforcing bars, the measurement results vary depending on the measurement position. For example, the interval between points 19 and 20 at a position without a joint is different from the interval between points 21 and 22 at a position with a joint, and the interval between points 19 and 20 at a position without a joint is different from the interval between points 23 and 24 at a position without a joint.
[0034] As described above, even if the reinforcing bars to be measured are the same, the length of the reinforcing bar may vary depending on the position of the reinforcing bar. With the configuration of the present disclosure in which the index and the measurement position information are superimposed on the position based on the specified position, the user can easily grasp which length of the reinforcing bar at which location is to be the measurement target.
[0035] In FIGS. 3 and 4, an example of measuring the bar interval from the edges at the right end and the upper end of the reinforcing bar is shown. However, the setting unit 3 may set the measurement position at the edge at the left end or the lower end of the reinforcing bar, or may set the measurement position at the center of the reinforcing bar or at any reinforcing bar position determined by the measurement process.
[0036] Further, when the index position is set above the predetermined position in the image, the setting unit 3 may set the measurement position below the index position. Further, when the index position is set below the predetermined position, the setting unit 3 may set the measurement position above the index position.
[0037] Normally, the reinforcing bars are arranged at substantially equal intervals. When imaging the reinforcing bars in a facing state, the intervals between the reinforcing bars are substantially equal. When imaging the reinforcing bars in an inclined state, the intervals between the reinforcing bars become shorter at positions farther from the imaging unit 8.
[0038] Therefore, when imaging the reinforcing bars including the reinforcing bar to be measured, usually, in order to accurately measure the intervals between the reinforcing bars of the reinforcing bar to be measured, etc., the imaging is often performed so that the reinforcing bar to be measured is arranged at the center of the image. Therefore, if an index is arranged at the center of the image, there is a possibility of blocking the reinforcing bar to be measured.
[0039] On the other hand, by setting the measurement position by the setting unit 3 as described above, the index is likely to be arranged at the upper or lower part of the image, preventing the center of the image where the reinforcing bar to be measured is likely to exist from being blocked by the index, and improving the visibility of the image.
[0040] FIG. 5 is an example of an image with an index arranged in the measurement of the interval between vertical reinforcing bars. In FIG. 5, the index 25 shows an example of an index, and the measurement position information 27 shows an example of measurement position information. Here, the setting unit 3 sets the index position of the index 25 and the measurement position of the measurement position information 27. Further, as described above, the points 15 and 16 show an example of the designated position designated by the user. Assuming that the predetermined position is the center of the image, since the index position of the index 25 is located above the predetermined position, the setting unit 3 sets the measurement position where the measurement position information 27 is arranged below the index position as illustrated in FIG. 5. Further, in FIG. 5 and FIG. 6 to be described later, the setting unit 3 sets the position adjacent to the scale of the index value as the measurement position. Note that examples of the index and examples of processes for changing the display position of the scale in the index will be described later.
[0041] Further, FIG. 6 is an example of an image in which an index is arranged in the measurement of the bar spacing with respect to the vertical bars. In FIG. 6, the measurement position information 26 shows an example of the measurement position information. Also, the points 36 and 37 show an example of the designated positions designated by the user. Here, the setting unit 3 sets the index position of the index 25 and the measurement position of the measurement position information 26. Assuming that the position is the center of the image, since the index position is located below the predetermined position, the setting unit 3 sets the measurement position where the measurement position information 26 is arranged above the index position as illustrated in FIG. 6.
[0042] Also, when the index position is set to the left of the predetermined position in the image, the setting unit 3 may set the measurement position to the right of the index position. Further, when the index position is set to the right of the predetermined position, the setting unit 3 may set the measurement position to the left of the index position. Thereby, it becomes easier for the index to be arranged on the left side or the right side of the image, preventing the center of the image where there is a high possibility of the bars to be measured from being blocked by the index, and improving the visibility of the image.
[0043] FIG. 7 is an example of an image in which an index is arranged in the measurement of the bar spacing with respect to the horizontal bars. In FIG. 7, the measurement position information 29 shows an example of the measurement position information. Here, the setting unit 3 sets the index position of the index 25 and the measurement position of the measurement position information 28. Also, the points 38 and 39 show an example of the designated positions designated by the user. Assuming that the predetermined position is the center of the image, since the index position is located to the left of the predetermined position, the setting unit 3 sets the measurement position where the measurement position information 28 is arranged to the right of the index position as illustrated in FIG. 7.
[0044] Further, FIG. 8 is an example of an image in which an index is arranged in the measurement of the bar spacing with respect to the horizontal bars. In FIG. 8, the measurement position information 29 shows an example of the measurement position information. Here, the setting unit 3 sets the index position of the index 25 and the measurement position of the measurement position information 29. Also, points 40 and 41 show an example of the designated positions designated by the user. Assuming that the predetermined position is the center of the image, since the index position is located on the right side of the predetermined position, the setting unit 3 sets the measurement position where the measurement position information 29 is arranged to the Left side position shown in FIG. 8 relative to the index position.
[0045] Here, the above-mentioned predetermined position is not limited to a specific position in the image, and may be, for example, the center of the image, or may be a configuration that can be arbitrarily set by the user via the input unit 2.
[0046] Also, the above-mentioned predetermined position may be provided for each direction of the bars. For example, when the setting unit 3 arranges an index for the vertical bars, it may compare the first predetermined position with the index position, and when arranging an index for the horizontal bars, it may compare the second predetermined position with the index position. Thereby, a suitable index position can be set for each direction of the bars. Also, in the above configuration, when the setting unit 3 arranges an index for the vertical bars, when the index position is above the first predetermined position within the image, the measurement position information is arranged below the index position, and the scale is set to be below the index. Also, when the index position is below the first predetermined position within the image, the setting unit 3 arranges the measurement position information above the index position, and the scale is set to be above the index.
[0047] Also, in the above configuration, when the setting unit 3 arranges an index for the horizontal bars, when the index position is to the left of the second predetermined position within the screen, the measurement position information is arranged to the right of the index position, and the scale is set to be to the right of the index. Also, when the index position is to the right of the second predetermined position within the screen, the measurement position information is arranged to the left of the index position, and the scale is set to be to the left of the index.
[0048] In addition, in the image center region, even if the orientation of the indicator is changed, there may be little change in the shielding region. Therefore, a position at a predetermined distance from the center may be set as the predetermined position. As a result, different controls can be performed on the indicator position in the image center region and the image peripheral region. For example, if the predetermined positions are the upper and lower positions at a distance of α from the image center, in the measurement of vertical reinforcing bars, when the indicator position is above α from the image center, the setting unit 3 arranges the measurement position below the indicator, and the image generation unit 4 generates an image with the scale of the indicator facing downward.
[0049] On the other hand, when the indicator position is below α from the image center, the setting unit 3 arranges the measurement position above the indicator, and the image generation unit 4 generates an image with the scale of the indicator facing upward.
[0050] Also, in the region within ±α from the image center, the measurement position can be arranged in an arbitrary direction from the indicator position. For example, during adjustment by the user, when the indicator enters a region outside ±α from the image center, the direction of the measurement position is changed, and when the indicator enters a region within ±α from the image center, the direction of the measurement position is not changed from the predetermined direction of the initial setting. As a result, for example, control to change the direction of the measurement position only when the indicator position is in the image peripheral region becomes possible.
[0051] According to the above-described method for setting the measurement position, by adjusting the measurement position on the screen for measuring the reinforcement spacing or the like according to the indicator position, the relationship between the indicator position and the measurement position can be displayed more clearly. In particular, when there are inclinations or joints in the reinforcing bars, since the measurement position and the indicator position substantially coincide, it is suitable.
[0052] Note that the setting unit 3 may determine at least one of the size of the indicator and the interval of the scale of the indicator based on at least one of the layer of the reinforcing bars and the measurement position. As a result, it becomes easier to grasp which reinforcing bar the indicator corresponds to, and it becomes possible to read an appropriate value from the indicator.
[0053] FIG. 9 is an example of an image in which an index is arranged in measuring the length of vertical reinforcing bars. In the example of FIG. 9, vertical reinforcing bars 10, 11, horizontal reinforcing bars 12, 13, and 14 correspond to the first layer in the layer of reinforcing bars, and vertical reinforcing bars 31 and 32 correspond to the second layer in the layer of reinforcing bars. The reinforcing bars corresponding to the first layer are generally located on the first plane, and the reinforcing bars corresponding to the second layer are generally located on the second plane located deeper than the first plane. Also, points 42 and 43 indicate an example of designated positions designated by the user.
[0054] Further, the measurement position information 33 and the index 30 are arranged to indicate the length of the vertical reinforcing bar 32. Here, the setting unit 3 sets the index position of the index 30 and the measurement position of the measurement position information 33. The index 30 has a coarser scale interval than when indicating the length of the reinforcing bar corresponding to the first layer.
[0055] Also, in FIG. 9, whether to measure the length of the reinforcing bar 32 or the distance between the reinforcing bars 12 and 13 is distinguished according to, for example, the two designated positions when the user inputs the designated positions. Also, for the reinforcing bars corresponding to any layer of reinforcing bars, whether to measure the length of the reinforcing bars may be configured to be specifiable by the user via the input unit 2. Further, the setting unit 3 may be able to set a single index position and measurement position for a plurality of reinforcing bars corresponding to different layers of reinforcing bars.
[0056] Also, the configuration in which the setting unit 3 detects a plurality of layers of reinforcing bars is not limited to a specific configuration, and for example, the detection may be performed by the following processing.
[0057] (1) The setting unit 3 obtains the first plane including the front edge of the reinforcing bars that are all visible.
[0058] (2) Exclude the edge at a predetermined distance in the normal direction from the first plane (that is, the edge of the reinforcing bars in the first layer and the other edge on the back side).
[0059] (3) Determine the position of the second layer of reinforcing bars and the second layer plane from the three-dimensional positions of the remaining edges.
[0060] As described above, by the setting unit 3 setting the size of the index or the interval between graduations based on the layer of reinforcing bars corresponding to the index or the measurement position, it becomes easier to grasp which reinforcing bars the length related to the reinforcing bars is being measured for.
[0061] (Image generation unit 4) The image generation unit 4 generates an image in which the index and the measurement position information are superimposed based on the index position and the measurement position. Also, the image data generated by the image generation unit 4 may be a signal for display on a display or a file saved as an image.
[0062] The index superimposed on the image is realized by the image generation unit 4 converting and superimposing the image data previously held by the image generation device 1, or directly drawing on the image. The index is, for example, a three-dimensional object, such as the measuring rod shown in FIG. 10. The measuring rod in FIG. 10 has a longitudinal direction of 56 cm, a width of 5 cm, a graduation interval of 1 mm, and graduations up to 50 cm, but other sizes and other types are also acceptable, or a plurality of image data may be held and selected according to the situation. For example, the image generation unit 4 can superimpose an index suitable for the arrangement of the reinforcing bars to be measured by superimposing a graduation interval or an index with a different width based on the measured reinforcing bar interval and the measurement range, which is preferable. That is, when the reinforcing bar interval is fine, the image generation unit 4 sets graduations at an interval of 0.5 mm, when the measurement range is wide, sets graduations at an interval of 2 mm, and when the reinforcing bar interval in the same direction as the measurement direction is narrow, uses an index with a narrow width.
[0063] The conversion of the above-mentioned image data is performed based on the three-dimensional information of the reinforcing bars to be measured. For example, a layer of reinforcing bars is calculated from a three-dimensional straight line group of the reinforcing bars to be measured, and the image data is converted so as to be arranged on the calculated three-dimensional plane and superimposed on the image of the reinforcing bars. Note that the image generation unit 4 may superimpose a plurality of indicators on one image, or may superimpose indicators for vertical and horizontal reinforcing bars on one image.
[0064] Also, when the image generation unit 4 draws an object on the screen, the shape, scale start point, end point, etc. are coordinate-transformed so as to be drawn on the three-dimensional plane where the reinforcing bars to be measured exist, such as information on the indicators to be drawn, and drawn on the image based on that information, and the indicators, etc. are superimposed.
[0065] In addition, it is desirable for the image generation unit 4 to superimpose an indicator with a scale provided on the side closer to the measurement position on the image. That is, when the measurement position is set below the indicator position, it is desirable to provide a scale below the indicator. When the measurement position is set above the indicator position, it is desirable to provide a scale above the indicator. Also, when the measurement position is set on the right side of the indicator position, it is desirable to provide a scale on the right side of the indicator. When the measurement position is set on the left side of the indicator position, it is desirable to provide a scale on the left side of the indicator. This makes it easier to grasp the measurement result at the measurement position. Also, the position of the scale may be configured to be set by the setting unit 3.
[0066] Note that the position of the scale does not have to exactly match the measurement position, and it may be a position where the user can recognize that the scale of the indicator and the measurement position are about the same. Also, the indicator in FIG. 10 was a measuring rod with a scale on one side, but it is also possible to have an indicator with scales on both sides, but it is necessary to make the scale corresponding to the measurement position side clear. For example, if the auxiliary scale is shown in a light color, shown by a dashed line, the length of the scale is shortened, or the user can intuitively recognize it as an auxiliary scale, the scale position of the indicator corresponding to the measurement position side becomes clear, and the measurement position can be clearly visually recognized. Thereby, it becomes possible to read an appropriate value from the indicator. Also, particularly in the case of a configuration where scales are provided on both sides of the indicator, the image generation unit 4 may superimpose an object such as an arrow indicating the direction of the measurement position with respect to the indicator position on the image. Thereby, the measurement position information corresponding to a certain indicator can be easily identified.
[0067] (Measurement unit 5) The measurement unit 5 calculates the three-dimensional position of the reinforcing bar in the image and measures the length of the reinforcing bar at the measurement position. Here, the length related to the reinforcing bar is, for example, the longitudinal length of the reinforcing bar, the bar diameter, or the bar spacing.
[0068] In relation to the process of calculating the three-dimensional position of the reinforcing bar, the reinforcing bar edge serving as a reference for measuring the bar diameter or the bar spacing can be detected by a conventional edge detection method. Also, the edges of the image are detected using a Sobel filter or a Canny filter, and a group of straight lines is detected from the detected edges by Hough transform etc., and a straight line indicating the reinforcing bar edge can be detected. Also, the three-dimensional coordinates of the reinforcing bar edge can be calculated by calculating the parallax of the detected reinforcing bar edge and based on the camera parameters of the imaging unit 8. The calculation of the parallax can also be calculated by a conventional method, and can be realized, for example, by calculating the corresponding points in the reference image with respect to the reference image by block matching using an evaluation function such as SAD or SSD.
[0069] Also, in the process of measuring the length of the reinforcing bar, measurement is performed based on a straight line on the image indicating the reinforcing bar edge or the three-dimensional coordinates of the reinforcing bar edge, and each measurement can also apply the conventional method. For example, the measuring unit 5 calculates a three-dimensional straight line based on the three-dimensional coordinates of an edge group within a predetermined range from a straight line on the image indicating the reinforcing bar edge, and calculates the reinforcing bar diameter from the distance between adjacent three-dimensional straight lines. For example, the measuring unit 5 may calculate the distance between the three-dimensional straight lines of two reinforcing bar edges that exist along each other among the combinations of reinforcing bar edges as the reinforcing bar diameter. Further, the measuring unit 5 may calculate the three-dimensional coordinates of points around each of the two reinforcing bar edges and calculate the distance between the points as the reinforcing bar diameter.
[0070] Also, the measuring unit 5 calculates a three-dimensional straight line indicating the reinforcing bar position and calculates the distance between reinforcing bars from the three-dimensional straight lines indicating adjacent reinforcing bar positions. For example, the measuring unit 5 may calculate the axis passing through the centers of the above two reinforcing bar edges as the central axis of the reinforcing bar and calculate the distance between the central axes of adjacent reinforcing bars as the distance between reinforcing bars. In this case, the measuring unit 5 may calculate the average value of the distance between reinforcing bars for each of the horizontal and vertical reinforcing bars.
[0071] Note that when the measuring unit 5 calculates the distance between reinforcing bars in different layers, it may calculate the distance between the planes corresponding to the layers of each reinforcing bar as the distance between reinforcing bars.
[0072] The measurement position can be set at the center of the captured image, the center between the reinforcing bars, or positions on the reinforcing bar, etc. However, if only the measurement results of the reinforcing bar diameter and the distance between reinforcing bars are presented, it is not known whether the measurement position assumed by the user coincides with the actual measurement position.
[0073] On the other hand, according to the configurations shown in FIGS. 5 to 9, it is possible to easily grasp that the measurement position assumed by the user coincides with the actual measurement position. Since the bar diameter and bar spacing may vary depending on the position to be measured, as will be described later, by superimposing the index and measurement position information on the image, it becomes possible to easily confirm whether the actual measurement position is as assumed by the user. Also, a configuration may be adopted in which numerical values indicating the measurement results by the measurement unit 5 are displayed on the screen.
[0074] Note that the present invention is not limited to a configuration in which measurement is performed using the image captured by the imaging unit 8, and similar effects can be obtained by using a sensor that acquires distance information. For example, a camera that captures a color image and a TOF sensor that acquires distance information may be used, and the image information and distance information may be input to the image generation device 1, and the measurement unit 5 may calculate three-dimensional coordinates to perform measurement of the reinforcing bars.
[0075] (Memory unit 6) The memory unit 6 is a storage device that stores information at least temporarily. The memory unit 6 can be realized as a flash memory, a hard disk, or the like. For example, the memory unit 6 stores the image generated by the image generation unit 4 and the objects displayed on the screen. Note that the memory unit 6 may be realized as a storage device connected to the measuring device 100.
[0076] (Display unit 7) The display unit 7 is a display that displays text, moving images, or the like. The display unit 7 can be realized as an LCD (Liquid Crystal Display), an organic EL (Electro Luminescence) display, or the like. When the input unit 2 is realized as a touch panel, the touch panel also operates as the display unit 7. Also, the display unit 7 may be realized as a display device connected to the measuring device 100.
[0077] (Control method of the measuring device 100) Next, a control method (control method of an image generation device) of the measurement device 100 according to the present embodiment will be described. FIG. 11 is a flowchart showing an example of a control method of the measurement device 100 executed by the image generation device 1 according to the present embodiment. The process shown in the flowchart of FIG. 11 starts when an image of a reinforcing bar captured by the imaging unit 8 is input to the input unit 2, or when a predetermined instruction is input to the image generation device 1 in the measurement device 100 in the above case.
[0078] The image generation device 1 presents an image to the user via an external display device or the like, and the input unit 2 receives an input of a designated position designated by the user in the image of the captured reinforcing bar (S1). Further, the measurement unit 5 calculates the three-dimensional position of the reinforcing bar in the image.
[0079] The setting unit 3 sets an index position in the image based on the designated position designated by the user (S2).
[0080] The setting unit 3 sets a measurement position in the image based on the index position (S3). Since the index position is based on the designated position, the measurement position is indirectly based on the designated position.
[0081] The image generation unit 4 generates an image in which the index and measurement position information are superimposed based on the index position and the measurement position set by the setting unit 3 (S4). Further, the image generation device 1 causes the generated image to be displayed on the display unit 7. Specifically, first, the image generation unit 4 generates an index, superimposes the index on the index position, and superimposes the measurement position information on the measurement position, and stores the generated image in the storage unit 6. Further, the measurement unit 5 measures the length of the reinforcing bar at the measurement position. Next, the image generation device 1 causes the generated image, which appropriately includes the measurement result by the measurement unit 5, to be displayed on the display unit 7.
[0082] (Method for setting measurement position) Next, a process corresponding to step S3 in FIG. 11, that is, details of the process in which the setting unit 3 sets the measurement position will be described. FIG. 12 is a flowchart showing an example of a method for setting the measurement position.
[0083] The setting unit 3 determines whether the indicator is arranged in the horizontal direction (S100). Here, that the indicator is arranged in the horizontal direction means that the indicator is arranged with the horizontal direction as the longitudinal direction, for example, such that the scale is provided in the horizontal direction of the image.
[0084] When the setting unit 3 determines that the indicator is arranged in the horizontal direction (YES in S100), it then determines whether the indicator position is located above a predetermined position (S101).
[0085] When the setting unit 3 determines that the indicator position is located above a predetermined position (YES in S101), it sets the measurement position below the indicator position (S102). Following the process of S102, the setting unit 3 sets the position of the scale of the indicator below the indicator in accordance with the measurement position below the indicator position (S103). Here, FIG. 5 corresponds to the processes of S102 and S103. As described above, after calculating the measurement position, the setting unit 3 changes the position of the scale according to the indicator position and the measurement position, so that the scale of the indicator is displayed at a position closer to the measurement position, which is preferable.
[0086] Also, when the setting unit 3 determines that the indicator position is located below a predetermined position (NO in S101), it sets the measurement position above the indicator position (S104). Following the process of S104, the setting unit 3 sets the position of the scale of the indicator above the indicator in accordance with the measurement position above the indicator position (S105). Here, FIG. 6 corresponds to the processes of S104 and S105.
[0087] Also, in the determination of S100, when the setting unit 3 determines that the indicator is not arranged in the horizontal direction but is arranged in the vertical direction (NO in S100), it then determines whether the indicator position is located to the left of a predetermined position (S106).
[0088] When the setting unit 3 determines that the indicator position is located to the left of the predetermined position (YES in S106), it sets the measurement position to the right of the indicator position (S107). Following the process of S107, the setting unit 3 sets the position of the scale of the indicator to the right side of the indicator in accordance with the measurement position on the right side of the indicator position (S108). Here, FIG. 7 corresponds to the processes of S107 and S108.
[0089] Also, when the setting unit 3 determines that the indicator position is located to the right of the predetermined position (NO in S106), it sets the measurement position to the left of the indicator position (S109). Following the process of S109, the setting unit 3 sets the position of the scale of the indicator to the left side of the indicator in accordance with the measurement position on the left side of the indicator position (S110). Here, FIG. 8 corresponds to the processes of S109 and S110.
[0090] 〔Embodiment 2〕 Other embodiments of the present invention will be described below. For the sake of convenience of explanation, members having the same functions as those described in the above embodiment are denoted by the same reference numerals, and redundant explanations will not be repeated.
[0091] <Measuring device 100X> FIG. 13 is a functional block diagram showing the configuration of a measuring device 100X according to the second embodiment. The measuring device 100X includes an imaging unit 8 and an image generation device 1X. The image generation device 1X is different from the image generation device 1 shown in FIG. 1 in that it includes a setting unit 3X instead of the setting unit 3.
[0092] (Setting unit 3X) The setting unit 3X has the same functions as the setting unit 3, and based on the designated position in the image input to the input unit 2, it sets the index position of the index indicating the length of the reinforcing bar in the image and the measurement position for measuring the reinforcing bar. However, the setting unit 3X sets the measurement position prior to the index position based on the designated position. Also, the setting unit 3X sets the index position based on the set measurement position. By automatically setting the index position based on the measurement position, the user can arrange the index position and the measurement position as intended without individually designating the index position and the measurement position. Further, for example, the setting unit 3X may set a position adjacent to the measurement position as the position of the scale of the index position. The index position may be set in the vicinity at a predetermined distance from the measurement position.
[0093] Also, when superimposing the index in FIG. 10 based on the measurement position, if the center in the short side direction of the index is aligned with the measurement position, the scale position of the index and the measurement position will be different, and the measured value read by the user using the index and the measured value at the measurement position will be different. Therefore, the setting unit 3X superimposes the index on the image so that the scale of the index is superimposed in the vicinity of the measurement position. Thereby, the measurement position and the reading position of the measured value by the index coincide, and the user can clearly read the measurement position.
[0094] Further, when the measurement position is set above a predetermined position in the image, as illustrated in FIG. 5, the setting unit 3X may set the index position above the measurement position. That is, in the case of the example in FIG. 5, the setting unit 3X may set the index position of the index 25 above the measurement position information 27. Also, the setting unit 3X Measurement position when it is set below the predetermined position, as illustrated in FIG. 6, the setting unit 3X may set the index position below the measurement position. That is, in the case of the example in FIG. 6, the setting unit 3X may set the index position of the index 25 below the measurement position information 26. Thereby, the index is likely to be arranged at the upper or lower part of the image, preventing the center of the image where the reinforcing bar to be measured is likely to exist from being blocked by the index, and improving the visibility of the image.
[0095] Further, when the measurement position is set to the left of a predetermined position in the image, as illustrated in FIG. 7, the setting unit 3X may set the index position to the left of the measurement position. That is, in the case of the example in FIG. 7, the setting unit 3X may set the index position of the index 25 to the left of the measurement position information 28. Also, Measurement position when it is set to the right of the predetermined position, as illustrated in FIG. 8, the index position may be set to the right of the measurement position. That is, in the case of the example in FIG. 8, the setting unit 3X may set the index position of the index 25 to the right of the measurement position information 29. Thereby, the index is likely to be arranged on the left or right side of the image, preventing the center of the image where the reinforcing bar to be measured is likely to exist from being blocked by the index, and improving the visibility of the image.
[0096] Here, the above-described predetermined position is not limited to a specific position in the image, and may be, for example, the center of the image, or may be configured to be arbitrarily set by the user via the input unit 2.
[0097] Further, the above-described predetermined position may be provided for each direction of the reinforcing bar. For example, when arranging the measurement position information for the vertical reinforcing bar, the setting unit 3X may compare the first predetermined position with the measurement position, and when arranging the measurement position information for the horizontal reinforcing bar, the setting unit 3X may compare the second predetermined position with the measurement position. Thereby, a suitable measurement position can be set for each direction of the reinforcing bar. Also, in the above configuration, when arranging the measurement position information for the vertical reinforcing bar, when the measurement position is above the first predetermined position in the image, the index is arranged above the measurement position, and the scale is set to be below the index. Also, when the measurement position is below the first predetermined position in the image, the setting unit 3X arranges the index below the measurement position, and the scale is set to be above the index.
[0098] Also, in the above configuration, when the setting unit 3X arranges the measurement position information for the horizontal reinforcement bars, when the measurement position is to the left of the second predetermined position within the screen, the indicator is arranged on the left side of the measurement position, and the scale is made to be on the right side of the indicator. Also, when the measurement position is to the right of the second predetermined position within the screen, the indicator is arranged on the right side of the measurement position, and the scale is made to be on the left side of the indicator.
[0099] Also, depending on the position of the reinforcement bars, it may be difficult to arrange the reinforcement bars to be measured in the image center region. Therefore, for example, a position that is a predetermined distance away from the image center may be set as the predetermined position. Thereby, according to the position of the reinforcement bars, the visibility of the image can be suitably improved. For example, if the predetermined positions are the upper and lower positions that are α away from the image center, in the measurement of the vertical reinforcement bars, when the measurement position is above α from the image center, the setting unit 3X arranges the indicator position above the measurement position information, and the image generation unit 4 generates an image with the scale of the indicator on the lower side.
[0100] On the other hand, when the measurement position is below α from the image center, the setting unit 3 arranges the indicator position above the measurement position information, and the image generation unit 4 generates an image with the scale of the indicator on the upper side.
[0101] Also, within the region within ±α from the image center, it is possible to arrange the indicator position in an arbitrary direction from the measurement position. For example, during adjustment by the user, when the measurement position information is in the region outside ±α from the image center, the direction of the indicator position is changed, and when the measurement position information is in the region inside ±α from the image center, the direction of the indicator position is not changed from the predetermined direction of the initial setting. Thereby, for example, according to the position of the reinforcement bars, the visibility of the image can be suitably improved. Also, control to change the direction of the indicator position is possible only when the measurement position is in the peripheral region of the image.
[0102] According to the above-described method of setting the index position, by adjusting the index position on the screen for measuring the bar spacing or the like according to the measurement position, the relationship between the index position and the measurement position can be displayed more clearly. In particular, when there are inclinations or joints in the bars, since the measurement position and the index position substantially coincide, it is suitable.
[0103] (Control Method of Measuring Device 100X) Subsequently, a control method of the measuring device 100X (control method of the image generation device) according to the present embodiment will be described. FIG. 14 is a flowchart showing an example of a control method of the measuring device 100X executed by the image generation device 1X according to the present embodiment. The process shown in the flowchart of FIG. 14 starts when an image of the bar is input to the input unit 2 or when a predetermined instruction is input to the image generation device 1X in the measuring device 100X in the above case.
[0104] The image generation device 1X presents an image to the user via an external display device or the like, and the input unit 2 receives an input of a designated position designated by the user in the image of the bar being imaged (S11). Further, the measurement unit 5 calculates the three-dimensional position of the bar in the image.
[0105] The setting unit 3X sets the measurement position in the image based on the designated position designated by the user (S12).
[0106] The setting unit 3X sets the index position in the image based on the measurement position (S13). Since the measurement position is based on the designated position, the index position is indirectly based on the designated position.
[0107] Similar to the process of S4, the image generation unit 4 generates an image in which the index and the measurement position information are superimposed based on the index position and the measurement position set by the setting unit 3X (S14). Further, the image generation apparatus 1X causes the display unit 7 to display the generated image. Specifically, first, the image generation unit 4 generates an index, then generates an image in which the index is superimposed on the index position and the measurement position information is superimposed on the measurement position, and stores the image in the storage unit 6. Further, the measurement unit 5 measures the length of the reinforcing bar at the measurement position. Next, the image generation apparatus 1 causes the display unit 7 to display the generated image, which appropriately includes the measurement result by the measurement unit 5.
[0108] (Method for setting measurement position) Subsequently, a process corresponding to the process of S13 in FIG. 14, specifically, details of the process in which the setting unit 3X sets the index position will be described. FIG. 15 is a flowchart showing an example of a method for setting the index position.
[0109] The setting unit 3X determines whether the measurement is performed in the horizontal direction (S200). Here, that the measurement is in the horizontal direction means, for example, that the measurement position is provided in the horizontal direction of the image.
[0110] When the setting unit 3X determines that the measurement is performed in the horizontal direction (YES in S200), subsequently, it determines whether the measurement position is located above a predetermined position (S201).
[0111] When the setting unit 3X determines that the measurement position is located above the predetermined position (YES in S201), it sets the index position above the measurement position (S202). Following the process of S202, the setting unit 3X sets the scale position of the index below the index in accordance with the measurement position below the index position (S203). Further, when the setting unit 3X determines that the measurement position is located below the predetermined position (NO in S201), it sets the index position below the measurement position (S204). Following the process of S204, the setting unit 3X sets the scale position of the index above the index in accordance with the measurement position above the index position (S205).
[0112] Also, in the determination of S200, when the setting unit 3X determines that the measurement is not performed in the horizontal direction but in the vertical direction (NO in S200), it then determines whether the measurement position is located to the left of the predetermined position (S206).
[0113] When the setting unit 3X determines that the measurement position is located to the left of the predetermined position (YES in S206), it sets the index position to the left of the measurement position (S207). Following the process of S207, the setting unit 3X sets the scale position of the index to the right of the index according to the measurement position on the right side of the index position (S208). Also, when the setting unit 3X determines that the measurement position is located to the right of the predetermined position (NO in S206), it sets the index position to the right of the measurement position (S209). Following the process of S209, the setting unit 3X sets the scale position of the index to the left of the index according to the measurement position on the left side of the index position (S210).
[0114] Note that in the determination of S200, when the measurement direction is an oblique direction that is exactly in the middle between the horizontal direction and the vertical direction, or when the index position and the predetermined position coincide in the determination of S201 or S206, any subsequent branch process may be executed.
[0115] As described above, after calculating the index position, the setting unit 3X changes the scale position according to the index position and the measurement position, so that the scale of the index is displayed at a position closer to the measurement position, which is preferable.
[0116] Each process of each embodiment can be realized by software processing by a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit), or by hardware processing by an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).
[0117] Also, the method for realizing the functions described in each embodiment can also be provided as a program. The program can be recorded on a computer-readable recording medium, and the program recorded on this recording medium can be read into a computer system or downloaded from the Internet and executed to perform the processing of each part. Here, the "computer system" is assumed to include hardware such as an OS and peripheral devices.
[0118] Also, the "computer system" includes a homepage providing environment (or display environment) if the WWW system is used.
[0119] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. Furthermore, by combining the technical means disclosed in each embodiment, new technical features can be formed.
[0120] 〔Example of Realization by Software〕 The functions of the image generation devices (1, 1X) (hereinafter referred to as "devices") are programs for causing a computer to function as the devices, and can be realized by programs for causing a computer to function as each control block of the devices (particularly the input unit 2, the setting units (3, 3X), the measurement unit 5, and the image generation unit 4).
[0121] In this case, the above device includes a computer having at least one control device (e.g., a processor) and at least one storage device (e.g., a memory) as hardware for executing the above program. By executing the above program with this control device and storage device, each function described in the above embodiments is realized.
[0122] The above program may be recorded on one or more computer-readable recording media, rather than temporarily. This recording medium may or may not be provided in the above device. In the latter case, the above program may be supplied to the above device via any wired or wireless transmission medium.
[0123] In addition, part or all of the functions of each of the above control blocks can also be realized by a logic circuit. For example, an integrated circuit in which a logic circuit functioning as each of the above control blocks is formed is also included in the scope of the present invention. In addition to this, for example, it is also possible to realize the functions of each of the above control blocks by a quantum computer.
[0124] In addition, each process described in each of the above embodiments may be executed by AI (Artificial Intelligence). In this case, the AI may operate in the above control device or may operate in another device (for example, an edge computer or a cloud server, etc.).
[0125] 〔Summary〕 The image generation device according to Aspect 1 of the present invention includes an input unit that receives an input of a specified position specified by a user in an image in which a reinforcing bar is imaged, and based on the specified position in the image, in the image, an index position of an index indicating the length related to the reinforcing bar, and a setting unit that sets a measurement position for measuring the reinforcing bar, and an image generation unit that generates an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position.
[0126] The image generation device according to Aspect 2 of the present invention may be configured such that, in the above Aspect 1, the setting unit sets the measurement position based on the index position, or sets the index position based on the measurement position.
[0127] In the image generation device according to Aspect 3 of the present invention, in the above Aspect 2, when the setting unit sets the measurement position based on the index position, when the index position is set above a predetermined position in the image, the measurement position is set below the index position, and when the index position is set below the predetermined position, the measurement position is set above the index position. When setting the index position based on the measurement position, when the measurement position is set above a predetermined position in the image, the index position is set above the measurement position, and the Measurement position when it is set below the predetermined position, it may be configured to set the index position below the measurement position.
[0128] In the image generation device according to Aspect 4 of the present invention, in the above Aspect 2, when the setting unit sets the measurement position based on the index position, when the index position is set to the left of a predetermined position in the image, the measurement position is set to the right of the index position, and when the index position is set to the right of the predetermined position, the measurement position is set to the left of the index position. When setting the index position based on the measurement position, when the measurement position is set to the left of a predetermined position in the image, the index position is set to the left of the measurement position, and the Measurement position when it is set to the right of the predetermined position, it may be configured to set the index position to the right of the measurement position.
[0129] In the image generation device according to Aspect 5 of the present invention, in any one of the above Aspects 1 to 4, the image generation unit may be configured to generate an image in which the index provided with a scale on the side closer to the measurement position is superimposed.
[0130] In the image generation device according to Aspect 6 of the present invention, in any one of the above Aspects 1 to 5, the setting unit may be configured to determine at least one of the size of the index and the interval of the scale of the index based on at least one of the layer of the reinforcing bar and the measurement position.
[0131] The control method of the image generation device according to Aspect 7 of the present invention includes: the image generation device receiving an input of a specified position specified by a user in an image in which a reinforcing bar is imaged; the image generation device setting an index position of an index indicating the length of the reinforcing bar and a measurement position for measuring the reinforcing bar in the image based on the specified position in the image; and the image generation device generating an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position.
[0132] The image generation program according to Aspect 8 of the present invention is an image generation program for causing a computer to function as the image generation device according to any one of Aspects 1 to 6 above, and has a configuration for causing a computer to function as the input unit, the setting unit, and the image generation unit.
[0133] The image generation device according to each aspect of the present invention may be realized by a computer. In this case, an image generation program for realizing the image generation device by causing the computer to operate as each unit (software element) provided in the image generation device, and a computer-readable recording medium on which the program is recorded also fall within the scope of the present invention.
[0134] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims. Embodiments obtained by appropriately combining technical means disclosed in different embodiments are also included in the technical scope of the present invention. Furthermore, by combining the technical means disclosed in each embodiment, new technical features can be formed.
Explanation of Reference Numerals
[0135] 1, 1X Image generation device 2 Input unit 3, 3X Setting unit 4 Image generation unit 5 Measurement unit 100, 100X Measuring device
Claims
1. An input unit that receives an input of a specified position specified by a user in an image in which a reinforcing bar is imaged; A setting unit that sets an index position of an index indicating a length related to the reinforcing bar and a measurement position for measuring the reinforcing bar in the image based on the specified position in the image; An image generation unit that generates an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position; Comprising; The setting unit: Performs either setting the measurement position based on the index position or setting the index position based on the measurement position; When setting the measurement position based on the index position, when the index position is set above a predetermined position in the image, the measurement position is set below the index position, and when the index position is set below the predetermined position, the measurement position is set above the index position; and When setting the index position based on the measurement position, when the measurement position is set above a predetermined position in the image, the index position is set above the measurement position, and when the measurement position is set below the predetermined position, the index position is set below the measurement position, and performs either one of these. An image generation device characterized by the above.
2. An input unit that receives an input of a specified position specified by a user in an image in which a reinforcing bar is imaged; A setting unit that sets an index position of an index indicating a length related to the reinforcing bar and a measurement position for measuring the reinforcing bar in the image based on the specified position in the image; An image generation unit that generates an image in which the index and measurement position information indicating the measurement position are superimposed based on the index position and the measurement position; Comprising; The setting unit: Performs either setting the measurement position based on the index position or setting the index position based on the measurement position; When setting the measurement position based on the index position, when the index position is set to the left of a predetermined position in the image, the measurement position is set to the right of the index position, and when the index position is set to the right of the predetermined position, the measurement position is set to the left of the index position; and When setting the index position based on the measurement position, when the measurement position is set to the left of a predetermined position in the image, set the index position to the left of the measurement position, and when the measurement position is set to the right of the predetermined position, perform either one of setting the index position to the right of the measurement position An image generation apparatus characterized by the above.
3. The image generation unit generates an image in which the index provided with a scale on the side closer to the measurement position is superimposed The image generation apparatus according to claim 1 or 2, characterized by the above.
4. The setting unit determines at least one of the size of the index and the interval between the scales of the index based on at least one of the layer of the reinforcing bar and the measurement position The image generation apparatus according to any one of claims 1 to 3, characterized by the above.
5. An image generation program for causing a computer to function as the image generation apparatus according to any one of claims 1 to 4, the image generation program for causing a computer to function as the input unit, the setting unit, and the image generation unit
Citation Information
Patent Citations
Image processor, image processing service providing method and order receiving processing method
JP2001209827A
Apparatus and method for scale display
JP2002156212A
Electronic camera, control program
JP2005142938A
Measurement inspection system for iron reinforcing bar by computer
JP2020095009A
Image processing apparatus, imaging apparatus, image processing method, and program
JP2020150405A