Measurement device and method for measurement
The measuring device addresses measurement inaccuracies by using electromagnetic waves to determine spatial coordinates and align optical axes, reducing errors in length measurements and improving accuracy.
Patent Information
- Application Number
- JP2024114234
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing measurement devices suffer from length measurement errors due to variations in focus and distance measurement information of interchangeable lenses, and tilting of the subject relative to the lens optical axis, which affects the position of light detection on the sensor, leading to inaccuracies in size calculations.
A measuring device that identifies two points in space, calculates their spatial coordinates based on distance information, and determines the distance between them, using electromagnetic waves to reduce measurement errors by aligning the optical axis of the reflected waves with the image capture axis.
The device reduces length measurement errors by accurately calculating the size of objects using electromagnetic wave detection, improving measurement accuracy by correcting spatial coordinates and aligning the optical axes, thereby enhancing precision in size determination.
Smart Images

Figure 2024128158000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a measurement device. [Background technology]
[0002] There is known a configuration for calculating actual dimensions of a subject in a captured image based on data such as the shooting distance or the focal length of a shooting lens and scale length data set within the viewfinder field (see, for example, Patent Document 1, etc.). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 62-259004 Summary of the Invention [Problem to be solved by the invention]
[0004] In the configuration described in Patent Document 1, measurement errors may occur due to variations in focus and distance measurement information of the interchangeable lens. In addition, when the subject is tilted with respect to the lens optical axis, the distance between the camera and the subject changes, causing a change in the position on the sensor that detects the reflected light from the subject. As a result, measurement errors may occur.
[0005] An object of the present disclosure is to provide a measuring device capable of reducing length measurement errors. [Means for solving the problem]
[0006] A measuring device according to an embodiment of the present disclosure identifies a first point (P1) and a second point (P2) as two points for measuring the size of a measurement object in a space in which the measurement object exists. The measuring device calculates first and second spatial coordinates indicating the positions of the first and second points in the space based on distance information (d1, d2) relating to the distance from a reference position to each of the first and second points. The measuring device calculates the distance between the first and second points based on the first and second spatial coordinates. Effect of the Invention
[0007] According to the present disclosure, a measuring device capable of reducing length measurement errors is provided. [Brief description of the drawings]
[0008] [Figure 1] 1 is a diagram showing a schematic configuration of an electromagnetic wave detection device according to an embodiment; [Diagram 2] 2A to 2C are diagrams illustrating the directions of travel of electromagnetic waves in a first state and a second state of the electromagnetic wave detection device of FIG. [Diagram 3] 1A and 1B are diagrams for explaining detection of electromagnetic waves including reflected waves. [Figure 4] 11 is a timing chart for explaining distance calculation. [Diagram 5] FIG. 13 is a diagram for explaining calculation of a target distance measurement point when the X coordinate is not taken into consideration. [Figure 6] 13 is a diagram illustrating the difference between a distance-based size calculation result and an image-based size calculation result when the target is tilted. FIG. [Figure 7] FIG. 13 is a diagram for explaining calculation of a target distance measurement point when taking the X coordinate into consideration. [Figure 8] FIG. 4 is a plan view illustrating the positions of distance measurement points on the XY plane. [Figure 9] FIG. 4 is a perspective view for explaining the positions of distance measurement points on the XY plane. [Figure 10] FIG. 13 is a diagram showing an example of measuring the diameter of a wheel as an object. [Figure 11] FIG. 13 is a diagram showing an example of measuring the body length of a fish as a target. [Figure 12] 11 is a flowchart illustrating an example of a method for measuring size based on distance measurement information. [Figure 13] 10 is a flowchart showing an example of a method for measuring a size by correcting coordinates calculated based on distance measurement information based on an image. [Figure 14] 1 is a diagram showing an example of a configuration for acquiring distance measurement information of a vehicle on a road surface from a planar view direction relative to the road surface. [Figure 15] 15 is a graph plotting distance measurement information acquired in the example of FIG. 14. [Figure 16] 4 is a flow chart illustrating an example of a method for measuring the height of a vehicle above a road surface. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] As shown in FIG. 1, an electromagnetic wave detection device 10 according to an embodiment includes an irradiation system 111, a light receiving system 110, and a control unit 14. The electromagnetic wave detection device 10 according to the present embodiment functions as a distance measuring device. In the present embodiment, the electromagnetic wave detection device 10 is described as including one irradiation system 111 and one light receiving system 110. The number of each of the irradiation systems 111 and the light receiving systems 110 is not limited to one, and may be two or more. When the electromagnetic wave detection device 10 includes a plurality of irradiation systems 111 and a plurality of light receiving systems 110, each irradiation system 111 is associated with each light receiving system 110.
[0010] The irradiation system 111 includes an irradiation unit 12 and a deflection unit 13. The light receiving system 110 includes an entrance unit 15, a separation unit 16, a first detection unit 20, a second detection unit 17, a switching unit 18, and a first rear optical system 19. The control unit 14 includes an image information acquisition unit 141, a reflection intensity information acquisition unit 142, an irradiation control unit 143, a light receiving control unit 144, a calculation unit 145, and a correspondence information calculation unit 146. A detailed description of each functional block of the electromagnetic wave detection device 10 will be given later.
[0011] In the drawings, dashed lines connecting each functional block indicate the flow of control signals or communicated information. The communication indicated by the dashed lines may be wired communication or wireless communication. Furthermore, solid arrows indicate beam-shaped electromagnetic waves. Furthermore, in the drawings, an object ob is the subject of the electromagnetic wave detection device 10. The subject may include objects such as roads, median strips, sidewalks, roadside trees, vehicles, etc., and may also include people. Furthermore, the number of objects ob is not limited to one.
[0012] The electromagnetic wave detection device 10 is configured to obtain an image including a subject and to be able to identify the subject by detecting a wave reflected by the subject. The electromagnetic wave detection device 10 functions as a distance measuring device by including a calculation unit 145 that measures the distance to an object ob.
[0013] (Example of configuration of irradiation system 111) The irradiation system 111 irradiates electromagnetic waves into a space in which the object ob exists. In this embodiment, the irradiation system 111 irradiates the electromagnetic waves irradiated by the irradiation unit 12 toward the space in which the object ob exists via the deflection unit 13. As another example, the irradiation system 111 may be configured such that the irradiation unit 12 directly irradiates the electromagnetic waves toward the object ob.
[0014] The irradiation unit 12 irradiates at least one of infrared rays, visible light, ultraviolet rays, and radio waves. In this embodiment, the irradiation unit 12 irradiates infrared rays. In addition, in this embodiment, the irradiation unit 12 irradiates a narrow electromagnetic wave in the form of a beam with a spread angle of, for example, 0.5°. In addition, the irradiation unit 12 irradiates the electromagnetic wave in a pulsed form. The irradiation unit 12 may be configured to include, for example, an LED (Light Emitting Diode) as an electromagnetic wave irradiating element. In addition, the irradiation unit 12 may be configured to include, for example, an LD (Laser Diode) as an electromagnetic wave irradiating element. The irradiation unit 12 switches between irradiating and stopping the electromagnetic wave based on the control of the control unit 14. Here, the irradiation unit 12 may be configured as an LED array or an LD array in which a plurality of electromagnetic wave irradiating elements are arranged in an array, and may irradiate a plurality of beams simultaneously.
[0015] The deflection unit 13 outputs the electromagnetic waves irradiated by the irradiation unit 12 in a plurality of different directions, and changes the irradiation position of the electromagnetic waves irradiated in the space in which the object ob exists. The output in a plurality of different directions may be performed by reflecting the electromagnetic waves from the irradiation unit 12 while changing the direction of the deflection unit 13. For example, the deflection unit 13 scans the object ob in a one-dimensional direction or a two-dimensional direction with the electromagnetic waves irradiated by the irradiation unit 12. Here, when the irradiation unit 12 is configured as, for example, an LD array, the deflection unit 13 may reflect all of the plurality of beams output from the LD array and output them in the same direction. That is, the irradiation system 111 may have one deflection unit 13 for the irradiation unit 12 having one or a plurality of electromagnetic wave irradiating elements.
[0016] The deflection unit 13 is configured so that at least a part of the irradiation area, which is the space from which the electromagnetic wave is output, is included in the detection range of the electromagnetic wave in the light receiving system 110. Therefore, at least a part of the electromagnetic wave irradiated to the space in which the object ob exists via the deflection unit 13 can be reflected by at least a part of the object ob and detected in the light receiving system 110. Here, the electromagnetic wave reflected by at least a part of the object ob from the irradiation wave is called a reflected wave. The irradiation wave is an electromagnetic wave irradiated from the irradiation system 111 toward multiple directions in the space in which the object ob exists.
[0017] The deflection unit 13 may include, for example, a MEMS (Micro Electro Mechanical Systems) mirror, a polygon mirror, a galvanometer mirror, etc. In this embodiment, the deflection unit 13 includes a MEMS mirror.
[0018] The deflection unit 13 changes the direction in which the electromagnetic wave is reflected based on the control of the control unit 14. The deflection unit 13 may also have an angle sensor such as an encoder. The deflection unit 13 may output the angle detected by the angle sensor to the control unit 14 as directional information in which the electromagnetic wave is reflected. In such a configuration, the control unit 14 may calculate the irradiation position of the electromagnetic wave based on the directional information acquired from the deflection unit 13. The control unit 14 may also calculate the irradiation position based on a drive signal input to the deflection unit 13 to change the direction in which the electromagnetic wave is reflected.
[0019] (Example of the configuration of the light receiving system 110) In the following description, "electromagnetic waves including reflected waves" refers to electromagnetic waves that include reflected waves from the object ob and are incident on the light receiving system 110. That is, to distinguish from irradiation waves, electromagnetic waves that are incident on the light receiving system 110 are sometimes referred to as "electromagnetic waves including reflected waves." Electromagnetic waves including reflected waves may include not only reflected waves that are electromagnetic waves irradiated from the irradiation system 111 and reflected by the object ob, but also external light such as sunlight, or light that is external light reflected by the object ob, etc.
[0020] The incident section 15 is an optical system having at least one optical member, and forms an image of an object ob, which is a subject. The optical member includes at least one of a lens, a mirror, a diaphragm, an optical filter, and the like.
[0021] The separation unit 16 is provided between the incident unit 15 and a primary imaging position, which is an imaging position by the incident unit 15 of an image of an object ob that is a predetermined distance away from the incident unit 15. The separation unit 16 separates the electromagnetic waves including the reflected waves according to wavelength, and separates them so as to travel in a first direction D1 or a second direction D2. The separation unit 16 may separate the electromagnetic waves including the reflected waves into the reflected waves and electromagnetic waves excluding the reflected waves. The electromagnetic waves excluding the reflected waves may include light, such as visible light.
[0022] In this embodiment, the separation unit 16 reflects a part of the electromagnetic wave including the reflected wave in a first direction D1, and transmits another part in a second direction D2. In this embodiment, the separation unit 16 reflects visible light, which is environmental light such as sunlight reflected by the object ob, among the incident electromagnetic wave, in the first direction D1. Furthermore, the separation unit 16 transmits infrared light, which is infrared light irradiated by the irradiation unit 12 and reflected by the object ob, among the incident electromagnetic wave, in the second direction D2. As another example, the separation unit 16 may transmit a part of the incident electromagnetic wave in the first direction D1, and reflect another part of the electromagnetic wave in the second direction D2. Furthermore, the separation unit 16 may refract a part of the incident electromagnetic wave in the first direction D1, and refract another part of the electromagnetic wave in the second direction D2. The separation unit 16 may be configured to include, for example, a half mirror, a beam splitter, a dichroic mirror, a cold mirror, a hot mirror, a metasurface, a deflection element, a prism, or the like.
[0023] The second detection unit 17 is provided on the path of the electromagnetic wave traveling in the first direction D1 from the separation unit 16. The second detection unit 17 is provided at or near the imaging position of the object ob in the first direction D1. The second detection unit 17 detects the electromagnetic wave traveling in the first direction D1 from the separation unit 16.
[0024] The second detection unit 17 may be disposed with respect to the separation unit 16 such that the first propagation axis of the electromagnetic wave propagating from the separation unit 16 in the first direction D1 is parallel to the first detection axis of the second detection unit 17. The first propagation axis corresponds to the central axis of the electromagnetic wave propagating from the separation unit 16 in the first direction D1 while spreading radially. In this embodiment, the first propagation axis is represented as an axis obtained by extending the optical axis of the incident unit 15 to the separation unit 16 and bending it in the separation unit 16 so as to be parallel to the first direction D1. The first detection axis is represented as an axis passing through the center of the detection surface of the second detection unit 17 and perpendicular to the detection surface.
[0025] Furthermore, the second detector 17 may be disposed so that the distance between the first travel axis and the first detection axis is equal to or less than the first distance threshold. Also, the second detector 17 may be disposed so that the first travel axis and the first detection axis coincide with each other. In this embodiment, the second detector 17 is disposed so that the first travel axis and the first detection axis coincide with each other.
[0026] The second detector 17 may be disposed with respect to the separator 16 so that the first angle formed by the first axis of travel with respect to the detection surface of the second detector 17 is equal to or smaller than a first angle threshold or a predetermined angle. In this embodiment, the second detector 17 is disposed so that the first angle is 90°.
[0027] In this embodiment, the second detection unit 17 is a passive sensor. More specifically, in this embodiment, the second detection unit 17 includes an element array. For example, the second detection unit 17 includes an imaging element such as an image sensor or an imaging array, and captures an image due to electromagnetic waves focused on a detection surface, thereby generating image information of a space including the captured target ob.
[0028] In this embodiment, more specifically, the second detection unit 17 is configured to capture a visible light image. The second detection unit 17 transmits the generated image information as a signal to the control unit 14. The second detection unit 17 may be configured to capture an image other than visible light, such as an infrared ray, an ultraviolet ray, or an electric wave image.
[0029] The switching unit 18 is provided on the path of the electromagnetic wave traveling in the second direction D2 from the separation unit 16. The switching unit 18 is provided at or near the primary image formation position of the object ob in the second direction D2.
[0030] In this embodiment, the switching unit 18 is provided at the imaging position. The switching unit 18 has an action surface as on which the electromagnetic wave that has passed through the entrance unit 15 and the separation unit 16 is incident. The action surface as is composed of a plurality of switching elements se arranged two-dimensionally. The action surface as produces an action on the electromagnetic wave, such as reflecting or transmitting the electromagnetic wave, in at least one of a first state and a second state described below.
[0031] The switching unit 18 can switch between a first state in which the electromagnetic wave incident on the action surface as travels in a third direction D3 and a second state in which the electromagnetic wave travels in a fourth direction D4 for each switching element se. In this embodiment, the first state is a first reflection state in which the electromagnetic wave incident on the action surface as is reflected in the third direction D3. The second state is a second reflection state in which the electromagnetic wave incident on the action surface as is reflected in the fourth direction D4.
[0032] In the present embodiment, more specifically, the switching unit 18 includes a reflective surface that reflects electromagnetic waves for each switching element se. The switching unit 18 arbitrarily changes the orientation of the reflective surface for each switching element se, thereby switching between the first reflective state and the second reflective state for each switching element se.
[0033] In this embodiment, the switching unit 18 includes, for example, a digital micro-mirror device (DMD). The DMD can switch the inclination of the reflecting surface of each switching element se to either +12° or −12° with respect to the acting surface as by driving a minute reflecting surface that constitutes the acting surface as. The acting surface as is parallel to the plate surface of the substrate on which the minute reflecting surface of the DMD is placed.
[0034] The switching unit 18 switches between the first state and the second state for each switching element se based on the control of the control unit 14. For example, as shown in FIG. 2, the switching unit 18 can cause the electromagnetic wave incident on the switching element se1 to travel in the third direction D3 by switching a part of the switching elements se1 to the first state. The switching unit 18 can also cause the electromagnetic wave incident on the switching element se2 to travel in the fourth direction D4 by switching another part of the switching elements se2 to the second state. The switching unit 18 can simultaneously switch the state of each switching element. More specifically, the control unit 14 detects the direction in which the electromagnetic wave is irradiated or the position in which the electromagnetic wave is irradiated based on the direction information from the deflection unit 13. Then, the switching element se1 corresponding to the irradiation direction or irradiation position of the detected electromagnetic wave is set to the first state, and the other switching elements se1 are set to the second state, thereby selectively causing the reflected wave from the object ob to travel in the third direction D3. Of the electromagnetic waves that have passed through the separation unit 16, those other than the reflected wave from the object ob travel in the fourth direction D4 and are therefore not incident on the first detection unit 20.
[0035] 1, the first rear optical system 19 is provided in a third direction D3 from the switching unit 18. The first rear optical system 19 includes, for example, at least one of a lens and a mirror. The first rear optical system 19 forms an image of the object ob as an electromagnetic wave whose traveling direction has been switched by the switching unit 18.
[0036] The first detection unit 20 detects the reflected wave. The first detection unit 20 is disposed at a position where it can detect the electromagnetic wave that travels in the third direction D3 by the switching unit 18 and then travels via the first post-stage optical system 19. The first detection unit 20 detects the electromagnetic wave that has traveled via the first post-stage optical system 19, i.e., the electromagnetic wave that has traveled in the third direction D3, and outputs a detection signal.
[0037] The first detection unit 20 may be disposed with respect to the separation unit 16 together with the switching unit 18 so that the second propagation axis of the electromagnetic wave, which propagates from the separation unit 16 in the second direction D2 and whose propagation direction is switched to the third direction D3 by the switching unit 18, is parallel to the second detection axis of the first detection unit 20. The second propagation axis corresponds to the central axis of the electromagnetic wave propagating while spreading radially from the switching unit 18 in the third direction D3. In this embodiment, the second propagation axis is represented as an axis obtained by extending the optical axis of the incident unit 15 to the switching unit 18 and bending it at the switching unit 18 so as to be parallel to the third direction D3. The second detection axis is represented as an axis passing through the center of the detection surface of the first detection unit 20 and perpendicular to the detection surface.
[0038] Furthermore, the first detection unit 20 may be arranged together with the switching unit 18 so that the distance between the second travel axis and the second detection axis is equal to or less than a second distance threshold. The second distance threshold may be the same value as the first distance threshold, or may be a different value. Furthermore, the first detection unit 20 may be arranged so that the second travel axis and the second detection axis coincide with each other. In this embodiment, the first detection unit 20 is arranged so that the second travel axis and the second detection axis coincide with each other.
[0039] Furthermore, the first detector 20, together with the switching unit 18, may be disposed with respect to the separator 16 such that the second angle between the second axis of travel and the detection surface of the first detector 20 is equal to or smaller than the second angle threshold or a predetermined angle. The second angle threshold may be the same value as the first angle threshold, or may be a different value. In this embodiment, the first detector 20 is disposed such that the second angle is 90°, as described above.
[0040] In this embodiment, the first detection unit 20 is an active sensor that detects a reflected wave of an electromagnetic wave irradiated from the irradiation unit 12 toward the object ob. The first detection unit 20 includes a single element such as an APD (Avalanche Photo-Diode), a PD (Photo-Diode), or a distance measurement image sensor. The first detection unit 20 may also include an element array such as an APD array, a PD array, a distance measurement imaging array, or a distance measurement image sensor.
[0041] In this embodiment, the first detection unit 20 transmits detection information indicating that a reflected wave from a subject has been detected as a signal to the control unit 14. More specifically, the first detection unit 20 detects electromagnetic waves in the infrared band.
[0042] In addition, in this embodiment, the first detection unit 20 is used as a detection element for measuring the distance to the object ob. In other words, the first detection unit 20 is an element constituting a distance measuring sensor, and it is sufficient that the first detection unit 20 can detect electromagnetic waves, and does not need to be imaged on the detection surface. Therefore, the first detection unit 20 does not need to be provided at the secondary imaging position, which is the imaging position by the first rear optical system 19. That is, in this configuration, the first detection unit 20 may be disposed anywhere on the path of the electromagnetic waves that travel in the third direction D3 by the switching unit 18 and then travel via the first rear optical system 19, as long as the electromagnetic waves from all angles of view can be incident on the detection surface.
[0043] With the above-mentioned configuration, the electromagnetic wave detection device 10 aligns a predetermined position on an image with the optical axis of a reflected wave for measuring the distance to that position. In other words, in the electromagnetic wave detection device 10, the optical axis of the image information acquisition unit 141 that acquires an image coincides with the optical axis of the light receiving system 110 that receives the reflected wave of the electromagnetic wave for acquiring distance information. The image information acquisition unit 141 is also referred to as an imaging unit. The configuration for acquiring distance information including the light receiving system 110 is also referred to as a distance measuring unit. It can be said that the imaging unit and the distance measuring unit share an optical axis.
[0044] Here, FIG. 3 is a diagram for explaining detection of electromagnetic waves including reflected waves. In FIG. 3, the space in which the object ob exists is divided into a grid pattern by the number of times per frame that the irradiation system 111 irradiates electromagnetic waves. In general, the time required to detect one frame of electromagnetic waves including reflected waves is longer than the time required to acquire one frame of images by an image sensor or the like. As an example, an image sensor can acquire 30 frames of 1920×1080 pixel images per second. On the other hand, the time required to measure the distance by receiving the reflected waves of the irradiated electromagnetic waves may take about 20 μs per point. Therefore, the number of points (number of points) at which the reflected waves from the space are received and distance measurement information is acquired is smaller than 1920×1080 per frame.
[0045] In the example of FIG. 3, the beam-shaped electromagnetic wave irradiated from the irradiation unit 12 is reflected by the deflection unit 13 and is incident on one region R in space as an irradiated wave. In this embodiment, the irradiated wave is infrared. An electromagnetic wave including a reflected wave reflected by an object ob present in the region R is incident on the incidence unit 15. In this embodiment, the reflected wave is infrared. The electromagnetic wave including the reflected wave includes visible light reflected by an object ob present in the region R as external light. The separation unit 16 reflects visible light of the electromagnetic wave including the reflected wave in a first direction D1. The reflected visible light is detected by the second detection unit 17. The separation unit 16 also transmits infrared light of the electromagnetic wave including the reflected wave in a second direction D2. The infrared light transmitted through the separation unit 16 is reflected by the switching unit 18, and at least a part of the infrared light travels in a third direction D3. The infrared light traveling in the third direction D3 passes through the first rear optical system 19 and is detected by the first detection unit 20.
[0046] (Example of control unit configuration) The irradiation control unit 143 controls the irradiation system 111. The irradiation control unit 143, for example, causes the irradiation unit 12 to switch between starting and stopping irradiation of the electromagnetic wave. The irradiation control unit 143, for example, causes the deflection unit 13 to change the direction in which the electromagnetic wave is reflected.
[0047] The light-receiving control section 144 controls the light-receiving system 110. For example, the light-receiving control section 144 causes the switching section 18 to switch between the first state and the second state for each switching element se.
[0048] The image information acquisition unit 141 acquires image information of the space in which the object ob exists from the second detection unit 17 that detects electromagnetic waves from the space.
[0049] The calculation unit 145 calculates the distance to the object ob based on the detection information of the first detection unit 20. The calculation unit 145 can calculate the distance based on the acquired detection information, for example, by a ToF (Time-of-Flight) method.
[0050] As shown in FIG. 4, the control unit 14 inputs an electromagnetic wave radiation signal to the irradiation unit 12, thereby causing the irradiation unit 12 to irradiate a pulsed electromagnetic wave (see the "Electromagnetic Wave Radiation Signal" column). The irradiation unit 12 irradiates an electromagnetic wave based on the input electromagnetic wave radiation signal (see the "Amount of Irradiation Unit Radiation" column). The electromagnetic wave irradiated by the irradiation unit 12 and reflected by the deflection unit 13 and irradiated to the irradiation area, which is the space in which the object ob exists, is reflected in the irradiation area. The control unit 14 switches at least a part of the switching elements se in the imaging area in the switching unit 18 by the incidence unit 15 of the reflected wave from the irradiation area to the first state, and switches the other switching elements se to the second state. Then, when the first detection unit 20 detects the electromagnetic wave reflected in the irradiation area (see the "Amount of Electromagnetic Wave Detection" column), it notifies the control unit 14 of the detection information.
[0051] The calculation unit 145 acquires the above-mentioned signal information including the detection information. The calculation unit 145 includes, for example, a time measurement LSI (Large Scale Integrated circuit) and measures the time ΔT from the time T1 when the irradiating unit 12 irradiates the electromagnetic wave to the time T2 when the detection information is acquired (see the "Acquisition of Detection Information" section). The calculation unit 145 multiplies the time ΔT by the speed of light and divides by 2 to calculate the distance to the irradiation position.
[0052] The resolution of the distance measurement information to the object ob detected by the first detection unit 20 in the planar direction per frame is lower than the resolution of the image of the object ob detected by the second detection unit 17. The reason is as follows. First, the resolution of the detection of the electromagnetic wave including the reflected wave for acquiring the distance measurement information is determined by the number of detection points of the distance by the electromagnetic wave in the space including the object ob, that is, the number of points where the distance measurement information is acquired. When scanning the space with a laser, the resolution of the detection of the electromagnetic wave refers to the number of irradiation points of the laser in one scan of the object space (i.e., the number of irradiation points of the laser in the range of the field of view). In contrast, the image of the object ob detected by the second detection unit 17 is captured with pixels spaced narrower than the interval of the irradiation points of the laser due to the improvement of the performance of the imaging element. Therefore, the resolution of the distance measurement information in the planar direction is lower than the resolution of the image. Hereinafter, in this specification, the resolution of the distance measurement information refers to the resolution in the planar direction per frame. It can also be said that the resolution of the distance measurement unit is lower than the resolution of the imaging unit.
[0053] (Calculation of size based on distance measurement information) The control unit 14 of the electromagnetic wave detection device 10 according to this embodiment further includes a length measurement calculation unit 147. The length measurement calculation unit 147 calculates the size of the object ob based on distance measurement information to the object ob detected by the first detection unit 20. The electromagnetic wave detection device 10 is also called a measurement device. The object ob is also called a measurement object.
[0054] Specifically, the length measurement calculation unit 147 calculates the coordinates of two points included in the object ob based on the distance measurement information and the emission direction of the electromagnetic wave irradiated to obtain the distance measurement information, and calculates the distance between the two points as the size of the object ob. As an example, the calculation procedure of the size of the object ob shown in Fig. 5 will be described. It is assumed that the object ob is a person. Also, for simplification, the calculation procedure will be described limited to within the YZ plane along the paper surface, without considering the coordinate in the X-axis direction perpendicular to the paper surface.
[0055] The calculation unit 145 of the control unit 14 measures the distance from the origin O where the irradiation system 111 is located to the distance measurement point P1 located at the head of the object ob, and the distance from the origin O to the distance measurement point P2 located at the foot of the object ob. The distance from the origin O to the distance measurement point P1 is represented by d1. The distance from the origin O to the distance measurement point P2 is represented by d2. d1 and d2 are also referred to as distance information. The origin O is also referred to as a reference position. The distance measurement points P1 and P2 are also referred to as a first point and a second point, respectively. The distance measurement points P1 and P2 are also referred to as a first distance measurement point and a second distance measurement point, respectively. Information specifying the distance measurement points P1 and P2 is also referred to as a first distance measurement information and a second distance measurement information, respectively.
[0056] Here, the irradiation system 111 has an irradiation axis 111A included in a range in which the irradiated electromagnetic wave can be scanned. In this embodiment, the irradiation axis 111A corresponds to the central axis of the range in which the irradiated electromagnetic wave can be scanned. The XYZ coordinate system is set so that the Z axis coincides with the irradiation axis 111A. Therefore, the irradiation axis 111A is included in the YZ plane.
[0057] The length measurement calculation unit 147 acquires the distances to the distance measurement points P1 and P2 from the calculation unit 145. The length measurement calculation unit 147 further acquires the angle (θ1) of the line segment connecting the origin O and the distance measurement point P1 with respect to the irradiation axis 111A from the calculation unit 145 or the irradiation system 111. The angle θ1 specifies the direction from the origin O to the distance measurement point P1 in the YZ plane. In other words, the angle θ1 can be said to be information about the direction. The angle θ1 is also called angle information about the direction to the distance measurement point P1. The angle θ1 may be acquired based on the direction information acquired from the deflection unit 13. Based on d1 and θ1, the length measurement calculation unit 147 can calculate the Y coordinate (Y1) and Z coordinate (Z1) of the distance measurement point P1 as shown in the following formulas (1) and (2).
number
number
[0058] Further, the length measurement calculation unit 147 acquires the angle (θ2) that the line segment connecting the origin O and the distance measurement point P2 makes with respect to the irradiation axis 111A from the calculation unit 145 or the irradiation system 111. The length measurement calculation unit 147 can calculate the Y coordinate (Y2) and Z coordinate (Z2) of the distance measurement point P2 based on d2 and θ2, similar to the distance measurement point P1. The coordinates of the first point and the second point are also referred to as the first spatial coordinate and the second spatial coordinate, respectively.
[0059] Here, the size of the object ob is represented by the length from the head to the feet. That is, the length measurement calculation unit 147 can calculate the length of the object ob as the length of the line segment P1P2. The line segment P1P2 included in the object ob illustrated in FIG. 6 intersects with the XY plane, that is, the imaging surface. The length measurement calculation unit 147 can calculate the length L of the line segment P1P2 by applying the coordinates of each of P1 and P2 to the following formula (3) based on Pythagoras' theorem.
number
[0060] When the electromagnetic wave detection device 10 calculates the size of the object ob based only on an image of the object ob, the size may differ from the actual size of the object ob for the following reasons.
[0061] When the electromagnetic wave detection device 10 is located on the Z axis, it captures the object ob from the positive direction of the Z axis. Therefore, the imaging plane of the image captured by the electromagnetic wave detection device 10 is a plane perpendicular to the Z axis, that is, a plane parallel to the XY plane. When a line segment P1P2 included in the object ob intersects with the imaging plane, the line segment P1P2 is projected on the image as an orthogonal projection onto the imaging plane. When the spread in the X-axis direction (depth direction of the paper) is ignored, the line segment is projected on the image as an orthogonal projection onto the Y axis. The length of the orthogonal projection of the line segment is shorter than the actual length of the line segment. Specifically, the length of the orthogonal projection onto the Y axis of the line segment P1P2 illustrated in FIG. 6 is Y1-Y2, which is shorter than L calculated by the above-mentioned formula (3). Therefore, the size of the object ob calculated as the length of the line segment P1P2 based on the image may differ from the actual size of the object ob.
[0062] Even if the line segment P1P2 is parallel to the imaging plane, the length of the line segment shown in the image varies depending on whether the distance from the electromagnetic wave detection device 10 to the object ob is short or long. Therefore, it may not be possible to calculate the true length of the line segment P1P2 based only on the image.
[0063] As described above, the electromagnetic wave detection device 10 according to this embodiment calculates the coordinates of distance measurement points P1 and P2 included in the object ob. Then, based on the coordinates of P1 and P2, the electromagnetic wave detection device 10 can calculate the length of the line segment P1P2 as the size of the object ob. The accuracy of the calculation of the size of the object ob based on the distance measurement result is improved compared to the case where it is calculated based only on an image.
[0064] (Improved accuracy through coordinate correction) As described above, the resolution of the distance measurement information to the object ob is lower than the resolution of the image of the object ob. When the resolution of the distance measurement information is low, the deviation between the positions of the distance measurement points P1 and P2 and the contour portion of the object ob becomes large, and the error in the size of the object ob calculated based on the distance measurement information is also large. Therefore, the length measurement calculation unit 147 can further improve the calculation accuracy of the object ob by correcting the coordinates used to calculate the size of the object ob based on the image of the object ob.
[0065] For example, as shown in FIG. 5, the end point on the head side of the target ob used to calculate the size of the target ob is corrected from P1 to P1'. Also, the end point on the foot side of the target ob used to calculate the size of the target ob is corrected from P2 to P2'. The greater the distance between P1 and P1', or the greater the distance between P2 and P2', the greater the improvement in size calculation accuracy due to correction. The positions of the contour part in the photographed image of the target ob that are closest to the positions of the distance measuring points P1 and P2 may be set as P1' and P2', respectively. P1' and P2' may be arbitrarily specified from the photographed image of the target ob by an operation means not shown. P1' and P2' are not limited to the contour part in the photographed image of the target ob, and may be points that specify the interval of the part of the target ob to be measured.
[0066] Specifically, the correction from P1 to P1' can be realized as follows. The length measurement calculation unit 147 generates a distance image in which distance measurement information to the object ob is mapped. The length measurement calculation unit 147 acquires a captured image of the object ob. The length measurement calculation unit 147 detects a contour portion of the object ob based on the captured image. The length measurement calculation unit 147 acquires an end point P1' on the head side that corresponds to the distance measurement point P1 and is located on the same XY plane as P1 from the contour portion, and calculates an angle θ1' that a line segment connecting the origin O and the end point P1' makes with respect to the irradiation axis 111A from the positional relationship between the position of the distance measurement point P1 in the captured image and the end point P1'. The angle θ1' may be calculated by superimposing the distance image and the captured image. For example, the length measurement calculation unit 147 can calculate the angle θ1' based on the ratio between the Y coordinate of the measurement point P1 and the Y coordinate of the end point P1' and the angle that the line segment connecting the origin O and the measurement point P1 makes with respect to the illumination axis 111A being θ1, after considering the angle corresponding to the point where the Y coordinate of the captured image is zero to be zero degrees.
[0067] The length measurement calculation unit 147 calculates the length d1' of the line segment connecting the origin O and the end point P1' based on Z1 representing the Z coordinate of the distance measurement point P1 and the angle θ1' using the following formula (4).
number
[0068] Furthermore, the length measurement calculation section 147 calculates the Y coordinate Y1' of the end point P1' based on d1' using the following formula (5).
number
[0069] The Z coordinate of the end point P1' is assumed to be the same as Z1, which is the Z coordinate of the distance measurement point P1. This identifies the coordinate of the end point P1'. As a result, correction from P1 to P1' is realized. Correction from P2 to P2' can be realized in the same way as correction from P1 to P1'. The end points P1' and P2' are also referred to as the first end point and the second end point, respectively. The coordinates of the first end point and the second end point are also referred to as the first end point coordinate and the second end point coordinate. As described above, the length measurement calculation unit 147 assumes that the Z coordinate of the first end point is the same as the Z coordinate of the first point. That is, in the depth direction of the space viewed from the origin O of the irradiation system 111, the position of the first point and the position of the first end point are assumed to be the same.
[0070] The length measurement calculation unit 147 can calculate the length of the line segment P1'P2' as the size of the object ob based on the distance between the two points represented by the corrected coordinates of P1' and P2' according to the following equation (6).
number
[0071] As described above, the length measurement calculation unit 147 can correct the coordinates of the two ends of a line segment for calculating the length of the line segment based on the captured image, thereby improving the accuracy of calculating the size of the object ob.
[0072] As described above, the electromagnetic wave detection device 10 can match the optical axis of the reflected wave used to generate the distance image with the optical axis of the captured image. Therefore, the length measurement calculation unit 147 can eliminate or approach to zero the position error that occurs when the distance image and the captured image are superimposed. By being able to superimpose the distance image and the captured image with high accuracy, the length measurement calculation unit 147 can combine the angle and distance information included in the distance image with the information included in the captured image to correct the coordinates of the endpoints of the object ob with high accuracy. As a result, the accuracy of calculating the size of the object ob is improved.
[0073] (Calculation of size taking into account the spread in the X-axis direction) A method for calculating size without considering the spread in the X-axis direction (depth direction of the paper) has been described with reference to Figures 5 and 6. A method for calculating size with consideration of the spread in the X-axis direction will be described below with reference to Figures 7, 8, and 9. The object ob illustrated in Figures 7, 8, and 9 is assumed to be a vehicle. The length measurement calculation unit 147 measures the overall length (front-to-rear length) of the vehicle.
[0074] As shown in FIG. 7, the length measurement calculation unit 147 acquires distance measurement information of a distance measurement point P1 corresponding to the front end of a vehicle as an object ob, and distance measurement information of a distance measurement point P2 corresponding to the rear end of the vehicle. The distances from the origin O where the irradiation system 111 is located to the distance measurement points P1 and P2 are represented by d1 and d2. The angles that the line segments OP1 and OP2 make with respect to the irradiation axis 111A are represented by θ1 and θ2. When the X coordinates of the distance measurement points P1 and P2 are not zero, the line segments OP1 and OP2 are included in a plane that intersects with the YZ plane. Specifically, as shown in FIG. 8 and FIG. 9, the line segment OP1 is located in a plane rotated by an angle represented by θ3 with respect to the YZ plane. As shown in FIG. 9, the magnitude of θ1 is represented in a plane rotated by an angle θ3 with respect to the YZ plane.
[0075] Unlike the examples of FIGS. 5 and 6, the length measurement calculation unit 147 can calculate the coordinates (X1, Y1, Z1) of the distance measurement point P1 when the X coordinate is also taken into consideration, using the following equations (7) to (9). Z1=d1·cosθ1 (7) X1=d1·sinθ1·cosθ3 (8) Y1=d1·sinθ1·sinθ3 (9) The angle θ1 may be obtained based on the direction information obtained from the deflection unit 13, and the angle θ3 may be obtained based on the position of the distance measurement point P1 in the captured image or the distance measurement image.
[0076] The length measurement calculation unit 147 can calculate the coordinates of the distance measurement point P2 in the same way as the coordinates of the distance measurement point P1. In addition, the length measurement calculation unit 147 can calculate the length L of the line segment P1P2 as the size of the object ob (total length of the vehicle) by applying the coordinates of P1 and P2 to the following formula (10) based on Pythagoras' theorem.
number
[0077] Furthermore, the length measurement calculation unit 147 can correct the coordinates used to calculate the size of the object ob (the overall length of the vehicle) based on the image of the object ob. For example, the length measurement calculation unit 147 can correct the coordinates of the front end of the vehicle as follows.
[0078] The length measurement calculation unit 147 generates a distance image in which distance measurement information to the object ob is mapped. The length measurement calculation unit 147 acquires a captured image of the object ob. Based on the captured image, the length measurement calculation unit 147 detects an end point P1' in front of the object ob located on the same XY plane as P1, and calculates an angle θ1' that a line segment connecting the origin O and the end point P1' makes with respect to the irradiation axis 111A from the positional relationship between the position of the distance measurement point P1 in the captured image and the end point P1'. For example, the length measurement calculation unit 147 considers an angle corresponding to a point where the X coordinate and the Y coordinate of the captured image are zero to be zero degrees. Then, the angle θ1' at the end point P1' of the captured image can be calculated based on the ratio of the distance from the origin (0,0) of the XY plane to the distance measurement point P1 (X1,Y1) and the distance from the origin (0,0) of the XY plane to the end point P1', and the fact that the angle of the distance measurement point P1 is θ1.
[0079] The length measurement calculation unit 147 calculates the length d1' of the line segment connecting the origin O and the end point P1' based on Z1 representing the Z coordinate of the distance measurement point P1 and the angle θ1' using the following formula (11).
number
[0080] Furthermore, the length measurement calculation section 147 calculates the X coordinate X1' and the Y coordinate Y1' of the end point P1' based on d1' using the following expressions (12) and (13). Y1'=d1'·sinθ1'·sinθ3' (12) X1'=d1'·sinθ1'·cosθ3' (13)
[0081] The Z coordinate of the end point P1' is assumed to be the same as Z1, which is the Z coordinate of the distance measurement point P1. This identifies the coordinate of the end point P1'. As a result, correction from P1 to P1' is realized. Also, correction from P2 to P2' can be realized in the same way as correction from P1 to P1'.
[0082] The length measurement calculation unit 147 can calculate the length of the line segment P1'P2' as the size of the object ob based on the distance between the two points represented by the corrected coordinates of P1' and P2' according to the following equation (14).
number
[0083] As described above, the length measurement calculation unit 147 can correct the coordinates of the two ends of a line segment for calculating its length based on the captured image, even when the spread in the X-axis direction is taken into consideration. As a result, the accuracy of calculating the size of the object ob is improved.
[0084] As shown in Fig. 10, the length measurement calculation unit 147 can measure not only the overall size of the object ob, but also the size of a part of the object included in the captured image. As an example, the length measurement calculation unit 147 can measure the diameter of the object ob, which is a tire part of a large vehicle recognized from the captured image. According to this embodiment, even if the imaging surface of the image captured by the electromagnetic wave detection device 10 is inclined with respect to the tire, the measurement accuracy of the tire diameter can be improved. The length measurement calculation unit 147 may measure various other objects as the object ob.
[0085] The control unit 14 can analyze the image information acquired by the image information acquisition unit 141 to identify a portion requiring size measurement (for example, a tire portion, etc.) As described above, the irradiation control unit 143 controls the irradiation system 111 to measure the distance to the distance measurement points P1 and P2 of the object to be subjected to size measurement, and the length measurement calculation unit 147 calculates the length of the line segment P1P2, thereby measuring the size of the object.
[0086] For example, wear on tires of a large vehicle may cause problems for the work in which the large vehicle is engaged. The electromagnetic wave detection device 10 can find vehicle parts that require repair or replacement by continuously measuring the size of tires, etc., and prompt maintenance. The size of tires, etc. of multiple vehicles may be measured periodically, and stored in a storage means in association with unique information (identification information such as ID) of the vehicle identified by the image information acquired by the image information acquisition unit 141.
[0087] 11, the length measurement calculation unit 147 can measure the total length of livestock such as fish as the object ob. According to this embodiment, even if the imaging plane of the image captured by the electromagnetic wave detection device 10 is tilted with respect to the fish as the object ob, the measurement accuracy of the total length of the fish can be improved. The length measurement calculation unit 147 is not limited to fish, and may measure various other animals such as cows and horses as the object ob.
[0088] Since livestock are living organisms, they can assume various postures. The electromagnetic wave detection device 10 may measure the size of the livestock when it recognizes that the livestock to be measured assumes a specific posture based on the image information acquired by the image information acquisition unit 141.
[0089] Measuring the size of livestock is useful for growth management. Continuously measuring the size of livestock using the electromagnetic wave detection device 10 makes it easy to manage the growth. Growth management of multiple livestock may be performed by storing the measured size information in the storage means in association with unique information of the livestock identified by the image information acquired by the image information acquisition unit 141.
[0090] (Flowchart example) <Calculating the size with the coordinates of the measurement point as the end points> The length measurement calculation unit 147 may execute a size measurement method including the procedure of the flowchart illustrated in Fig. 12. The size measurement method may be realized as a size measurement program executed by a processor constituting the length measurement calculation unit 147. The size measurement program may be stored in a non-transitory computer-readable medium.
[0091] The length measurement calculation unit 147 acquires distance measurement information of at least two points included in the object ob (step S1). Specifically, in order to measure the size of the object ob, the length measurement calculation unit 147 selects distance measurement points P1 and P2 as two points corresponding to both ends of the object ob, and acquires distance measurement information of each distance measurement point. The length measurement calculation unit 147 acquires the distance from the origin O to the distance measurement point P1 and the distance from the origin O to the distance measurement point P2 as the distance measurement information.
[0092] The length measurement calculation unit 147 acquires the irradiation directions to the two distance measurement points (step S2). Specifically, the length measurement calculation unit 147 acquires from the irradiation system 111 the direction in which the irradiation system 111 irradiates the electromagnetic wave to the distance measurement point P1 and the direction in which the irradiation system 111 irradiates the electromagnetic wave to the distance measurement point P2.
[0093] The length measurement calculation unit 147 calculates the coordinates of the two distance measurement points (step S3). The length measurement calculation unit 147 can calculate the coordinates of each distance measurement point based on the distance and the direction.
[0094] The length measurement calculation unit 147 calculates the length between the two distance measurement points (step S4). After completing the procedure of step S4, the length measurement calculation unit 147 ends the execution of the procedure of the flowchart in FIG.
[0095] <Calculation of size using corrected corner points based on captured image> The length measurement calculation section 147 may execute a size measurement method including the steps of a flowchart exemplified in FIG.
[0096] The length measurement calculation unit 147 acquires distance measurement information of at least two points included in the object ob (step S11). Specifically, in order to measure the size of the object ob, the length measurement calculation unit 147 selects distance measurement points P1 and P2 as two points corresponding to both ends of the object ob, and acquires distance measurement information of each distance measurement point. The length measurement calculation unit 147 acquires the distance from the origin O to the distance measurement point P1 and the distance from the origin O to the distance measurement point P2 as the distance measurement information.
[0097] The length measurement calculation unit 147 acquires the irradiation directions to the two distance measurement points (step S12). Specifically, the length measurement calculation unit 147 acquires from the irradiation system 111 the direction in which the irradiation system 111 irradiates the electromagnetic wave to the distance measurement point P1 and the direction in which the irradiation system 111 irradiates the electromagnetic wave to the distance measurement point P2.
[0098] The length measurement calculation unit 147 calculates the coordinates of the two distance measurement points (step S13). The length measurement calculation unit 147 can calculate the coordinates of each distance measurement point based on the distance and the direction.
[0099] The length measurement calculation unit 147 detects two points (P1', P2') on both ends of the captured image of the object ob for measuring the size (step S14). Specifically, the length measurement calculation unit 147 assumes that each point of the object ob is located on an imaging surface along the XY plane, and detects the two points on both ends on the imaging surface.
[0100] The length measurement calculation unit 147 calculates the angles to the two points on both ends detected in the captured image (step S15). Specifically, the length measurement calculation unit 147 can calculate the angles to the two points on both ends based on the distance measurement information, the X coordinate or Y coordinate in the distance measurement image of the distance measurement point from which the distance measurement information was obtained, and the X coordinate or Y coordinate of each point in the captured image.
[0101] The length measurement calculation unit 147 calculates the distance to each of the two points on both ends detected in the captured image (step S16). Specifically, the length measurement calculation unit 147 calculates the distance to each of the points based on the angle to each of the points and the Z coordinate of the distance measurement point closest to each of the points.
[0102] The length measurement calculation unit 147 calculates the spatial coordinates of two points at both ends detected in the captured image (step S17). Specifically, the length measurement calculation unit 147 calculates the spatial coordinates (X coordinate, Y coordinate, and Z coordinate) of each point based on the distance to each point and the angle to each point.
[0103] The length measurement calculation unit 147 calculates the length between the two points whose coordinates have been calculated (step S18). After completing the procedure of step S18, the length measurement calculation unit 147 ends the execution of the procedure of the flowchart in FIG.
[0104] (Other embodiments) The length measurement calculation unit 147 can also measure the length of the object ob along the direction of the irradiation axis 111A along which the irradiation system 111 irradiates electromagnetic waves. For example, the length measurement calculation unit 147 can measure the height of a vehicle by irradiating electromagnetic waves from the top side of the vehicle, the vehicle being located on a road surface.
[0105] Specifically, the length measurement calculation unit 147 acquires an image of a vehicle as the object ob and the road surface on which the vehicle is located. The length measurement calculation unit 147 detects points located in an area estimated to be the road surface and acquires distance measurement information. The length measurement calculation unit 147 calculates the coordinates of at least two points located in the area estimated to be the road surface based on the distance measurement information. The length measurement calculation unit 147 calculates the slope of the road surface and the position of the road surface below the vehicle based on the coordinates of the road surface. The length measurement calculation unit 147 acquires distance measurement information of points located on the top surface of the vehicle, and can calculate the height of the vehicle based on the calculation results of the slope of the road surface and the position of the road surface.
[0106] The length measurement calculation unit 147 may acquire distance measurement information of a plurality of points located on a straight line passing through the road surface and the vehicle when the vehicle located on the road surface is viewed in plan with respect to the road surface, as shown in Fig. 14, for example. The points from which distance measurement information is acquired are aligned along the Y axis and specified by their Y coordinates. In addition, the distance measurement information of each point is expressed as (y(n),z(n)) by associating it with the Z coordinate of that point. n is a parameter for identifying each point and is a natural number.
[0107] The distance measurement information is plotted on the YZ plane as shown in FIG. 15. The length measurement calculation unit 147 may estimate the area of the road surface based on a graph on which the distance measurement information is plotted. In FIG. 15, the area of the road surface is estimated to be the areas indicated by A1 and A3. The length measurement calculation unit 147 can specify the information of the road surface by calculating coefficients a, b, and c of an equation ay+bz+c=0 representing the road surface, for example, based on the distance measurement information of at least one point included in the area A1 and the distance measurement information of at least one point included in the area A3. The road surface is also referred to as a reference surface. Information specifying the road surface as a reference surface corresponds to the first distance measurement information.
[0108] The length measurement calculation unit 147 can estimate that the area outside the equation representing the road surface, indicated by A2 in FIG. 15, is the area of the upper surface of the vehicle. The length measurement calculation unit 147 can calculate the distance from the road surface to each point on the upper surface of the vehicle based on the coordinates of each point on the upper surface of the vehicle and the equation representing the road surface. The length measurement calculation unit 147 may calculate the maximum value of the calculated distances as the height of the vehicle. The length measurement calculation unit 147 may calculate the height of the vehicle based on the following equation (15), for example.
number
[0109] It can also be said that the length measurement calculation unit 147 specifies the end point on the side farther from the road surface as the reference surface, specifies the spatial coordinates of the end point, and calculates the vehicle height based on the spatial coordinates of the end point and an equation expressing the road surface as the reference surface. The information specifying the end point on the side farther from the road surface as the reference surface corresponds to the second distance measurement information.
[0110] The length measurement calculation unit 147 may obtain an image of a vehicle as the object ob taken from a direction in which the road surface is viewed in plan, and may distinguish the area of the road surface from the area of the vehicle based on the image. In this way, it becomes easier to calculate the equation representing the road surface.
[0111] The length measurement calculation unit 147 may execute a size measurement method including the procedure of the flowchart illustrated in Fig. 16. The size measurement method may be realized as a size measurement program executed by a processor constituting the length measurement calculation unit 147. The size measurement program may be stored in a non-transitory computer-readable medium.
[0112] The length measurement calculation unit 147 acquires an image of the object ob (step S21). Specifically, the image may be an image of the vehicle photographed from a direction in which the road surface is viewed in plan.
[0113] The length measurement calculation unit 147 detects the road surface from the image of the object ob and measures the distance to at least two points included in the road surface (step S22). The points included in the road surface and targeted for distance measurement are also called distance measurement points of the road surface.
[0114] The length measurement calculation unit 147 calculates the coordinates of the distance measurement points on the road surface (step S23). Since the length measurement calculation unit 147 measures the distances to at least two points in step S22, it can calculate the coordinates of at least two distance measurement points.
[0115] The length measurement calculation unit 147 calculates the slope of the road surface (step S24). Specifically, the length measurement calculation unit 147 may calculate the coefficients a, b, and c of the equation ay+bz+c=0 that represents the road surface, as described above. The slope of the road surface corresponds to the ratio of a to b.
[0116] The length measurement calculation unit 147 detects the vehicle from the image of the object ob and measures the distance to a point located on the upper surface of the vehicle (step S25). The point located on the upper surface of the vehicle and the target point for measuring the distance is also called the distance measurement point of the vehicle.
[0117] The distance measurement calculation unit 147 calculates the coordinates of the distance measurement point of the vehicle (step S26).
[0118] The length measurement calculation unit 147 calculates the height of the vehicle (step S27). Specifically, the length measurement calculation unit 147 can calculate the distance from the distance measurement point of the vehicle to the line representing the road surface as the height of the vehicle. After completing the procedure of step S27, the length measurement calculation unit 147 ends the execution of the procedure of the flowchart in FIG. 16.
[0119] (Modification) Although the present disclosure has been described based on the drawings and examples, it should be noted that those skilled in the art can easily make various modifications and alterations based on the present disclosure. Therefore, it should be noted that these modifications and alterations are included in the scope of the present disclosure.
[0120] In the above embodiment, the electromagnetic wave detection device 10 is configured to generate distance measurement information by Direct ToF, which irradiates a laser beam and directly measures the time it takes for the beam to return, as described above. However, the electromagnetic wave detection device 10 is not limited to this configuration. For example, the electromagnetic wave detection device 10 may generate distance measurement information by Flash ToF, which irradiates electromagnetic waves radially (i.e., in multiple directions simultaneously) at a constant period and indirectly measures the time it takes for the beam to return from the phase difference between the irradiated electromagnetic wave and the returned electromagnetic wave. The electromagnetic wave detection device 10 may also generate distance measurement information by other ToF methods, for example, Phased ToF.
[0121] In the above embodiment, the switching section 18 can switch the traveling direction of the electromagnetic wave incident on the action surface as between two directions, but it may be possible to switch between three or more directions instead of switching between two directions.
[0122] In the switching unit 18 of the above embodiment, the first state and the second state are a first reflection state in which the electromagnetic wave incident on the action surface as is reflected in a third direction d3 and a second reflection state in which the electromagnetic wave is reflected in a fourth direction d4, respectively, but may be other states.
[0123] For example, the first state may be a transmission state in which the electromagnetic wave incident on the action surface as is transmitted and travels in the third direction d3. More specifically, a switching unit 181 having a different configuration instead of the switching unit 18 described above may include a shutter having a reflecting surface for reflecting the electromagnetic wave in the fourth direction d4 for each switching element. In the switching unit 181 having such a configuration, the first state (transmission state) and the second state (reflection state) can be switched for each switching element by opening and closing the shutter for each switching element.
[0124] An example of the switching unit 181 configured in this way is a switching unit including a MEMS shutter in which a plurality of openable and closable shutters are arranged in an array. Another example of the switching unit 181 is a switching unit including a liquid crystal shutter that can switch between a reflective state that reflects electromagnetic waves and a transmissive state that transmits electromagnetic waves according to the liquid crystal orientation. In the switching unit 181 configured in this way, by switching the liquid crystal orientation for each switching element, it is possible to switch between a transmissive state as a first state and a reflective state as a second state for each switching element.
[0125] Furthermore, in the electromagnetic wave detection device 10, the light receiving system 110 may further include a second rear optical system and a third detection unit. The second rear optical system is provided in a fourth direction d4 from the switching unit 18 and forms an image of the object ob. The third detection unit is provided on the path of the electromagnetic wave that travels in the fourth direction d4 by the switching unit 18 and then travels via the second rear optical system, and detects the electromagnetic wave that has traveled in the fourth direction d4.
[0126] In the above embodiment, the electromagnetic wave detection device 10 has a configuration in which the second detection unit 17 is a passive sensor and the first detection unit 20 is an active sensor. However, the electromagnetic wave detection device 10 is not limited to this configuration. For example, in the electromagnetic wave detection device 10, effects similar to those of the above embodiment can be obtained whether the second detection unit 17 and the first detection unit 20 are both active sensors or both passive sensors.
[0127] The image information acquisition unit 141, the reflection intensity information acquisition unit 142, the irradiation control unit 143, the light reception control unit 144, the calculation unit 145, and a part of the correspondence information calculation unit 146 may not be included in the control unit 14, but may be provided separately from the control unit 14. For example, the calculation unit 145 may be provided as a control device independent of the control unit 14.
[0128] Each function of the control unit 14, such as the image information acquisition unit 141, the reflection intensity information acquisition unit 142, or the correspondence information calculation unit 146, does not need to be included in the electromagnetic wave detection device 10 and may be provided as a separate device.
[0129] In the above embodiment, two points (P1 and P2, P1' and P2') are used to measure the size of the object ob, but this is not limited to this. and the size of the object ob may be measured by the sum of the obtained values. If the shape of the object ob is curved, etc., and the exact length of the object ob cannot be measured by a straight line between two points, three or more points may be set along the measurement point of the object ob to measure the size.
[0130] Although a representative example has been described in the above embodiment, it is clear to those skilled in the art that many modifications and substitutions are possible within the spirit and scope of the present disclosure. Therefore, the present disclosure should not be interpreted as being limited by the above embodiment, and various modifications and changes are possible without departing from the scope of the claims. For example, multiple building blocks shown in the configuration diagram of the embodiment can be combined into one, or one building block can be divided.
[0131] In addition, although the solution of the present disclosure has been described as an apparatus, the present disclosure may also be realized in aspects that include these, and may also be realized as a method, a program, or a storage medium having a program recorded thereon that is substantially equivalent to these, and it should be understood that these are also encompassed within the scope of the present disclosure. [Explanation of symbols]
[0132] 10 Electromagnetic wave detection device 12 Irradiation unit 13 Deflection section 14 Control section 15 Input part 16 Separation section 17 Second detector 18, 181 Switching section 19 First rear optical system 20 First detection unit 110 Light receiving system 111 Irradiation system 141 Image information acquisition unit 142 Reflection intensity information acquisition unit 143 Irradiation control unit 144 Light receiving control section 145 Arithmetic section 146 Corresponding Information Calculation Unit 147 Length measurement calculation unit as action surface D1, D2, D3, D4 First direction, second direction, third direction, fourth direction ob target
Claims
1. Identifying a first point and a second point, which are two points for measuring the size of the measurement object in a space in which the measurement object exists; calculating first and second spatial coordinates indicating positions of the first point and the second point in the space based on distance information relating to a distance from a reference position to each of the first point and the second point; A measuring device that calculates a distance between the first point and the second point based on the first spatial coordinates and the second spatial coordinates.
2. acquiring angle information relating to a direction from the reference position to each of the first point and the second point; The measurement device according to claim 1 , further comprising: a measuring device configured to calculate the first spatial coordinates and the second spatial coordinates based on the distance information and the angle information.
3. Identifying a first point and a second point, which are two points for measuring the size of the measurement object in a space in which the measurement object exists; calculating first and second spatial coordinates indicating positions of the first point and the second point in the space based on distance information relating to a distance from a reference position to each of the first point and the second point; Identifying a first end point and a second end point, which are two points for measuring a size of the measurement object, based on the image of the measurement object; calculating first endpoint coordinates and second endpoint coordinates indicating positions of the first endpoint and the second endpoint in the space based on the first spatial coordinates and the second spatial coordinates; A measuring device that calculates a distance between the first endpoint and the second endpoint based on the first endpoint coordinates and the second endpoint coordinates.
4. acquiring angle information relating to a direction from the reference position to each of the first end point and the second end point based on a positional relationship between the first point and the first end point and a positional relationship between the second point and the second end point in the image of the measurement object; The measurement device according to claim 3 , wherein the first end point coordinates and the second end point coordinates are calculated based on the angle information.
5. The measurement device according to claim 3 , wherein the first spatial coordinates and the first end point coordinates are set to be at the same position in the depth direction in the space.
6. a distance measuring unit that obtains information about distances to the first point and the second point, and an imaging unit that obtains an image of the measurement target, The measuring device according to claim 3 , wherein the distance measuring unit and the imaging unit share an optical axis.
7. The measuring device according to claim 6 , wherein the resolution of the distance measuring unit is lower than the resolution of the imaging unit.
8. The measuring device according to claim 3 , further comprising: storing identification information recognized based on an image of the measurement target in association with a distance between the first end point and the second end point.
9. 9. The measuring device according to claim 1, wherein information regarding the distances to the first point and the second point is acquired by receiving reflected waves of electromagnetic waves irradiated from an irradiation unit to the first point and the second point and reflected by the target.
10. The measuring device according to claim 1 , wherein the measurement target is a part of an object existing in the space.
11. an irradiation unit that irradiates electromagnetic waves at a predetermined irradiation angle to a first point in space; a first detection unit that detects a reflected wave of the electromagnetic wave irradiated by the irradiation unit; a distance measuring unit that measures distance information, which is a distance from a reference position to the first point, based on the reflected wave; a second detection unit that detects electromagnetic waves from the space and acquires an image of the space; a control unit that calculates coordinate information indicating a position in the space of a point included in the image based on the distance information, the irradiation angle, and the position of the first point in the image; having A measuring device, wherein the optical axis of the reflected wave detected by the first detection unit and the optical axis of the electromagnetic wave detected by the second detection unit are aligned, among the electromagnetic waves incident from the first point.
Citation Information
Patent Citations
Object monitoring system, object monitoring method, and object monitoring program
JP2007003380A
Image capturing device, image processing method, and program
WO2013146269A1
Length measuring instrument
JP1987259004A
