Coordinate identifying apparatus and coordinate identifying method
The coordinate specifying device and method use a monocular camera with a correspondence table and range information to determine object coordinates accurately and cost-effectively, overcoming the need for additional hardware in existing methods.
Patent Information
- Application Number
- JP2023024881
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-09-02
AI Technical Summary
Existing methods for determining the position coordinates of an object using a monocular camera require additional hardware, such as distance sensors or stereo cameras, leading to increased costs.
A coordinate specifying device and method that utilize a monocular camera, an acquisition unit, object detection, specific point detection, and an absolute coordinate identification process, leveraging a correspondence table to associate pixel coordinates with absolute coordinates, and incorporating range information to correct for erroneous detections.
Enables determination of position coordinates of an object reflected in a monocular camera image at a lower cost by reducing the need for additional hardware and improving accuracy through correction processes.
Smart Images

Figure 2024118545000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a coordinate determining device and a coordinate determining method. [Background technology]
[0002] Conventionally, a technology is known for acquiring distance information to a position where an object is located by using a distance sensor or the like that irradiates an object with infrared rays, ultrasonic waves, or the like. A technology is known for acquiring position coordinates where an object is located based on distance information acquired by using such a distance sensor or the like. In addition, instead of a distance sensor, there is a technology for capturing an image of a target object by two imaging devices arranged at different positions, and deriving position coordinates where the object is located by analyzing the two captured images. For example, Patent Document 1 can be cited as an example of a document disclosing such a technology. In addition, a stereo camera is known as a product to which such a technology is applied. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-134220 A Summary of the Invention [Problem to be solved by the invention]
[0004] In order to identify the position coordinates of an object captured by a surveillance camera consisting of a monocular camera, it is possible to use the above-mentioned technology. When trying to obtain position coordinates using a distance sensor, it is necessary to install a distance sensor separately from the surveillance camera. In other words, when trying to obtain position coordinates using a distance sensor, there is a problem in that it is costly to combine the distance sensor and the surveillance camera to create a system. Also, when trying to obtain position coordinates using a stereo camera, it is necessary to install a new monocular camera separately from the surveillance camera. In other words, there is a problem in that the cost of configuring a stereo camera is more than twice as high as the cost of using one surveillance camera.
[0005] Therefore, an object of the present invention is to provide a coordinate specifying device and a coordinate specifying method that are capable of determining the position coordinates of an object captured in an image captured by a monocular camera at low cost. [Means for solving the problem]
[0006] (1) One aspect of the present invention is a coordinate identification device that includes an acquisition unit that acquires an image, an object detection unit that detects the position of an object contained in the acquired image, a specific point detection unit that detects a specific point indicating the position of the object in the image based on the detected position of the object, an absolute coordinate identification unit that identifies the absolute coordinate of the specific point based on a correspondence table in which the coordinates of each pixel in the image correspond to absolute coordinates, and an output unit that outputs the identified absolute coordinates.
[0007] (2) In one aspect of the present invention, in the coordinate identification device described in (1) above, the absolute coordinate identification unit includes a range detection unit that detects the range in which the specific point exists based on range information, which is information that identifies at least two or more ranges among each pixel in an image, and a coordinate identification unit that identifies the absolute coordinates of the specific point based on the correspondence table that differs depending on the detected range.
[0008] (3) In one aspect of the present invention, in the coordinate identification device described in (1) or (2) above, the absolute coordinate identification unit includes a range detection unit that detects the range in which the specific point exists based on range information, which is information that identifies at least a first range and a second range among each pixel of the acquired image, and a coordinate identification unit that identifies, if the detected range is the first range, coordinates corresponding to the specific point in the correspondence table as absolute coordinates, and identifies, if the detected range is the second range, coordinates of a point corresponding to the specific point that is a point in the first range as absolute coordinates.
[0009] (4) In one aspect of the present invention, in the coordinate determination device described in any of (1) to (3) above, when the detected range is the second range, the coordinate determination unit searches pixel by pixel downward on a vertical line from the specific point, and determines the coordinates of the point where the range containing the searched pixel becomes the first range as absolute coordinates.
[0010] (5) In one aspect of the present invention, in the coordinate identification device described in (2) or (3) above, the range detection unit detects a third range based on the range information for each pixel in the acquired image, and the coordinate identification unit does not identify absolute coordinates when the detected range is the third range.
[0011] (6) In one aspect of the present invention, in the coordinate identification device described in any of (1) to (5) above, the acquisition unit acquires each of a plurality of frames constituting video image data as an image, and further includes a trajectory detection unit that detects a trajectory of an object based on a result of object detection in each of the plurality of frames, and a smoothing unit that estimates a position where an object is located in each frame by smoothing the detected trajectory, and the absolute coordinate identification unit identifies absolute coordinates based on the specific point identified based on the position of the object estimated by performing the smoothing process.
[0012] (7) One aspect of the present invention is a coordinate identification method including an acquisition step of acquiring an image, an object detection step of detecting a position of an object included in the acquired image, a specific point detection step of detecting a specific point indicating a position of an object in the image based on the position of the detected object, an absolute coordinate identification step of identifying the absolute coordinate of the specific point based on a correspondence table in which the coordinates of each pixel in the image correspond to absolute coordinates, and an output step of outputting the identified absolute coordinates. Effect of the Invention
[0013] According to the present invention, the position coordinates of an object captured in an image captured by a monocular camera can be obtained at low cost. [Brief description of the drawings]
[0014] [Figure 1] 1 is a functional configuration diagram showing an example of a functional configuration of a coordinate specifying system according to a first embodiment. [Diagram 2] 3A to 3C are diagrams illustrating an example of an image to be subjected to coordinate specification according to the first embodiment, and an example of object detection. [Diagram 3] FIG. 4 is a diagram for explaining an example of a specific point according to the first embodiment. [Figure 4] 4 is a functional configuration diagram showing an example of a functional configuration of an absolute coordinate identification unit according to the first embodiment. FIG. [Diagram 5] FIG. 2 is a diagram for explaining an example of an image range according to the first embodiment. [Figure 6] 13 is a diagram for explaining an example of an absolute coordinate specifying process in a case where a specific point is present in a second range according to the first embodiment. FIG. [Figure 7] 4 is a flowchart illustrating a coordinate specifying method according to the first embodiment. [Figure 8] FIG. 11 is a functional configuration diagram showing an example of a functional configuration of a coordinate specifying system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, preferred embodiments of the coordinate identification device and the coordinate identification method according to the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments, and includes various modifications or improvements. In other words, the components described below include those that a person skilled in the art can easily imagine and those that are substantially the same, and the components described below can be combined as appropriate. In addition, various omissions, substitutions, or modifications of the components can be made without departing from the gist of the present invention. In addition, in the following drawings, the scale and number of each structure may be different from the scale and number of the actual structure in order to make each structure easier to understand.
[0016] [First embodiment] First, the first embodiment will be described with reference to FIGS.
[0017] FIG. 1 is a functional configuration diagram showing an example of the functional configuration of a coordinate specifying system according to the first embodiment. An example of the functional configuration of the coordinate specifying system 1 will be described with reference to the same figure. The coordinate specifying system 1 includes a coordinate specifying device 10 and an imaging device 20. The coordinate specifying system 1 specifies the position coordinates of an object by including the coordinate specifying device 10 and the imaging device 20. The position coordinates specified by the coordinate specifying system 1 are absolute coordinates. In the following description, the absolute coordinates indicate coordinates different from the relative coordinates in the imaging device 20. The coordinate system used to specify the absolute coordinates may be, for example, a coordinate system in a place where the coordinate specifying system 1 is used, or may be a geographic coordinate system, a projected coordinate system, or a vertical coordinate system capable of specifying one point on the earth. Examples of the place where the coordinate specifying system 1 is used include the inside or premises of a factory, or a specific premises in a park, a station, etc.
[0018] In the illustrated example, the coordinate specifying device 10 and the imaging device 20 have a one-to-one correspondence. However, the coordinate specifying device 10 and the imaging device 20 may be configured to have a one-to-N correspondence. That is, the coordinate specifying device 10 may specify the position coordinates of each object captured in an image captured by each of the multiple imaging devices 20. When the coordinate specifying device 10 and the imaging device 20 have a one-to-N correspondence, the coordinate specifying device 10 may be connected to each of the multiple imaging devices 20 via a predetermined communication network (e.g., Ethernet).
[0019] When the coordinate specifying device 10 and the imaging device 20 correspond one-to-one, it is preferable that the coordinate specifying device 10 is provided near the imaging device 20. When the coordinate specifying device 10 and the imaging device 20 correspond one-to-N, the coordinate specifying device 10 may exist as a server device or may be configured on a cloud.
[0020] The imaging device 20 captures an image IM. It provides information including the captured image IM to the coordinate identifying device 10. The information provided from the imaging device 20 to the coordinate identifying device 10 may include information specifying the time when the image IM was captured, information regarding the imaging conditions and the imaging environment, etc. Furthermore, the imaging device 20 may capture a moving image. When the imaging device 20 captures a moving image, the imaging device 20 may provide frame images constituting the captured moving image data to the coordinate identifying device 10 as the image IM.
[0021] Specifically, the imaging device 20 is a single camera. The imaging device 20 may be, for example, a surveillance camera installed at a fixed position. In this embodiment, it is preferable that the imaging angle and the angle of view of the imaging device 20 are fixed.
[0022] It is preferable that the imaging device 20 is installed at an angle (imaging angle of the imaging device 20) so that the left-right direction (roll direction) of the captured image is horizontal. In this case, the up-down direction (pitch direction) may be appropriately determined according to the imaging target (or imaging range). By installing the imaging device so that the left-right direction of the captured image is horizontal, it is possible to facilitate the coordinate conversion described later. It is to be noted that this embodiment is not limited to an example in which the left-right direction of the image captured by the imaging device 20 is horizontal, and the imaging device may be installed at an angle. When the imaging device 20 is installed at an angle, it is possible to apply the coordinate conversion described later by performing a correction by a predetermined calculation so that the left and right directions are horizontal. A known technique may be used for the correction process.
[0023] The coordinate identifying device 10 acquires an image IM from the imaging device 20. Based on the acquired image IM, the coordinate identifying device 10 identifies the coordinates of an object captured in the image MI. Note that the object whose coordinate is identified by the coordinate identifying device 10 may be a moving body that moves within an angle of view that can be captured by the imaging device 20. Specifically, the object whose coordinate is identified by the coordinate identifying device 10 may be a person, an animal, a vehicle, or the like that has entered an area monitored by the coordinate identifying system 1.
[0024] The coordinate specifying device 10 includes an acquisition unit 11, an object detection unit 12, a specific point detection unit 13, a correspondence table storage unit 14, an absolute coordinate specifying unit 15, and an output unit 16. The coordinate specifying device 10 includes a central processing unit (CPU) (not shown), a storage device such as a read only memory (ROM) or a random access memory (RAM), etc., which are connected via a bus, and by executing a coordinate specifying program, the coordinate specifying device 10 functions as a device including the acquisition unit 11, the object detection unit 12, the specific point detection unit 13, the correspondence table storage unit 14, the absolute coordinate specifying unit 15, and the output unit 16.
[0025] All or part of the functions of the coordinate identification device 10 may be realized using hardware such as an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field-Programmable Gate Array). The coordinate identification program may be recorded on a computer-readable recording medium. Examples of computer-readable recording media include portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. The coordinate identification program may be transmitted via an electric communication line.
[0026] The acquisition unit 11 acquires an image IM from the imaging device 20. The acquisition unit 11 provides the acquired image IM to the object detection unit 12. When the acquisition unit 11 acquires moving image data from the imaging device 20, the acquisition unit 11 provides a frame image included in the moving image data to the object detection unit 12 as the image IM.
[0027] The object detection unit 12 acquires an image IM from the acquisition unit 11. The object detection unit 12 detects the position of an object included in the acquired image IM. The object detection unit 12 may detect a moving object detected by using, for example, a known moving object detection technique as an object. An example of a known moving object detection technique may be, for example, a technique that detects a difference by comparing with an image in a state where an object does not exist (hereinafter, referred to as a background image), and detects the presence of a moving object when a difference is detected. The background image may be stored in advance, or an image IM acquired before the image to be detected may be used as the background image. The object detection unit 12 may also perform object detection using a known machine learning algorithm or the like.
[0028] 2 is a diagram showing an example of an image to be subjected to coordinate specification according to the first embodiment, and an example of object detection. With reference to the figure, an example of an image IM and an example of object detection performed by the object detection unit 12 will be described. In the example shown, the imaging device 20 is a surveillance camera installed within the grounds of a facility. Buildings and roads are captured in the image IM captured by the imaging device 20. In the example shown, a person P is captured in the image IM. The object detection unit 12 detects the person P captured in the image IM as an object.
[0029] Specifically, the object detection unit 12 detects a bounding box BB that surrounds the detected object. The bounding box BB may be a rectangle that surrounds the object. Returning to FIG. 1, the object detection unit 12 outputs information about the detected bounding box BB to the specific point detection unit 13. The information about the bounding box BB may include position coordinates of the rectangles that form the bounding box BB, information that specifies the size of the bounding box BB, pixel information within the bounding box BB, and the like.
[0030] The specific point detection unit 13 acquires information about the bounding box BB from the object detection unit 12. The specific point detection unit 13 detects the position of the specific point SP based on the position information of the object detected by the object detection unit 12. The specific point SP detected by the specific point detection unit 13 is a point that indicates the position where the object exists in the image IM (i.e., in the relative coordinate system).
[0031] FIG. 3 is a diagram for explaining an example of a specific point according to the first embodiment. With reference to the figure, an example of the position of the specific point SP will be explained. In the figure, a bounding box BB detected from the image IM shown in FIG. 2 is shown. As shown in the figure, the bounding box BB has a rectangular shape having sides L1 to L4. The specific point SP is a point used to specify absolute coordinates at which an object whose position is specified by the bounding box BB exists. When the object to be specified in terms of coordinates is a person P, it can be said that the position at which the person exists, that is, the point at which the person touches the ground, is in the vicinity of the bottom side (side L4) constituting the bounding box BB. In this embodiment, the midpoint of the bottom side (side L4) constituting the bounding box BB is set as the specific point SP. Note that the method of detecting the specific point SP is not limited to this example, and any point within the bounding box BB may be set as the specific point SP. Returning to FIG. 1, the specific point detection unit 13 outputs information regarding the position coordinates of the specific point SP to the absolute coordinate specification unit 15.
[0032] The correspondence table storage unit 14 stores a correspondence table CT corresponding to the imaging device 20. The correspondence table CT is a table in which the coordinates (i.e., relative coordinates) of each pixel in the image IM are associated with absolute coordinates. Here, if the resolution of the image IM is FHD (1920×1080), the image IM has approximately 2 million pixels. In this case, the correspondence table CT stores absolute coordinates corresponding to each of the approximately 2 million pixels. Note that the correspondence table CT is not necessarily limited to an example in which the correspondence table CT is stored in a table format, and may be stored in a form such as a mathematical formula that can derive absolute coordinates from the coordinates of each pixel.
[0033] The correspondence table CT is created according to the imaging angle of the imaging device 20 after the imaging device 20 is installed. The correspondence table CT may be created using a known technique. Here, according to a known technique, if the pixels (i.e., relative coordinates) of the image IM can be associated with absolute coordinates for the coordinates of four points on a plane (ground), it is possible to associate absolute coordinates for all pixels of the image IM. The association process may be performed using an open source library or the like according to a known technique after the imaging device 20 is installed. It is preferable that the four points required for the association process are not crowded as much as possible, and that the surface formed by including the four points has a wide range. It is also preferable that the four points required for the association process are not on the same straight line.
[0034] The absolute coordinate identification unit 15 acquires information on the position coordinates of the specific point SP from the specific point detection unit 13, and acquires the correspondence table CT from the correspondence table storage unit 14. The absolute coordinate identification unit 15 identifies the absolute coordinate AC of the specific point SP based on the acquired correspondence table CT. Specifically, the absolute coordinate identification unit 15 refers to the correspondence table CT and identifies the absolute coordinate AC that corresponds to the specific point SP in the image IM. The absolute coordinate identification unit 15 outputs the identified absolute pair coordinate AC to the output unit 16.
[0035] The output unit 16 acquires the absolute coordinates AC identified by the absolute coordinate identification unit 15. The output unit 16 outputs the acquired absolute coordinates AC to, for example, an information processing device (not shown). The output unit 16 may output image information of the object (for example, image information within a bounding box BB) in association with the absolute coordinates AC. The information processing device may acquire the absolute coordinates AC for each of the consecutive frames, and detect a trajectory of the object from the absolute coordinates AC. Furthermore, the information processing device may perform anomaly detection, intruder (suspicious person) detection, and the like, from the detected trajectory and image information of the object.
[0036] FIG. 4 is a functional configuration diagram showing an example of the functional configuration of the absolute coordinate identification unit according to the first embodiment. With reference to FIG. 4, the function of the absolute coordinate identification unit 15 will be described in more detail. Here, the accuracy of the object detection unit 12 is not necessarily high, and there are cases where the position and size of an object are erroneously detected. Examples of the content of the erroneous detection include a case where an object is detected as being present in a place where the object does not actually exist, and a case where a bounding box BB is detected in a position where the object can exist but is smaller than the actual size of the object (for example, surrounding only the upper body of a person). In the description made with reference to the same figure, the absolute coordinate identification unit 15 has a configuration capable of dealing with a case where the object detection unit 12 erroneously detects the position of the bounding box BB. The absolute coordinate identification unit 15 includes a range information storage unit 151, a range detection unit 152, and a coordinate identification unit 153.
[0037] The range information storage unit 151 stores range information AI. The range information AI is information that specifies at least two or more ranges among each pixel of an image. An example of two or more ranges is information that specifies a ground portion as a first range AR1, a wall portion of a building as a second range AR2, and a sky portion as a third range AR3.
[0038] FIG. 5 is a diagram for explaining an example of the range of an image according to the first embodiment. With reference to the figure, the range specified by the range information AI will be explained. The figure corresponds to the image IM shown in FIG. 2. In the illustrated example, the entire area of the image IM is divided into a first range AR1, a second range AR2, or a third range AR3. That is, based on the range information AI, the image IM can be divided into a first range AR1, a second range AR2, or a third range AR3 according to the coordinate information of the image IM. Returning to FIG. 4, the range information storage unit 151 outputs the stored range information AI to the range detection unit 152.
[0039] The range detection unit 152 acquires range information AI from the range information storage unit 151, and acquires information on the specific point SP from the specific point detection unit 13. The range detection unit 152 detects the range in which the specific point SP exists based on the acquired range information AI. For example, if the image IM is divided into three ranges, a first range AR1 to a third range AR3, by the range information AI, the range in which the specific point SP exists will be any one of the first range AR1 to the third range AR3. Information identifying the range in which the specific point SP exists will be referred to as specific range information SAI. The range detection unit 152 outputs the identified specific range information SAI to the coordinate identification unit 153.
[0040] The coordinate identification unit 153 acquires specific range information SAI from the range detection unit 152, and acquires the correspondence table CT from the correspondence table storage unit 14. The coordinate identification unit 153 identifies absolute coordinates by different methods depending on the range detected by the range detection unit 152. Below, for example, when the first range AR1 is the ground, the second range AR2 is the wall part of a building, and the third range AR3 is the sky, each process will be described when it is determined that the range in which the specific point SP exists is any one of the first range AR1 to the third range AR3.
[0041] In the following description, an example of converting from relative coordinates to absolute coordinates by a method according to the range in which the specific point SP exists will be described. That is, the coordinate specifying device 10 specifies absolute coordinates by performing different processing according to the range in which the specific point SP exists. However, this embodiment is not limited to this example, and for example, after converting from relative coordinates to absolute coordinates, processing according to the range in which the specific point SP exists may be performed. That is, after converting all of the image IM to absolute coordinates and performing the coordinate conversion, different processing may be performed according to the range in which the specific point SP exists.
[0042] As a first example, when the range detection unit 152 identifies the range in which the specific point SP exists as the first range AR1, i.e., the ground portion, the coordinate identification unit 153 acquires a correspondence table CT in which the first range AR1 in the image IM and absolute coordinates are associated with each other. The range detection unit 152 identifies the absolute coordinates based on the acquired correspondence table CT. Specifically, when the range detected by the range detection unit 152 is the first range AR1, the coordinate identification unit 153 identifies the coordinates corresponding to the specific point in the correspondence table CT as absolute coordinates.
[0043] As a second example, when the range detection unit 152 identifies the range in which the specific point SP exists as the second range AR2, i.e., the wall part of a building, the position of the specific point SP is converted to the first range AR1 which is the ground part, and the absolute coordinates are identified based on the converted coordinates. The correspondence relationship between the converted coordinates and the absolute coordinates is determined by referring to a correspondence table CT in which the first range AR1 and the absolute coordinates are associated with each other. Here, an example of coordinate conversion from the second range AR2 which is the wall part of a building to the first range AR1 which is the ground part will be described with reference to the drawings.
[0044] FIG. 6 is a diagram for explaining an example of the absolute coordinate specification process in the case where the specific point according to the first embodiment exists in the second range. This figure corresponds to the division of the first range AR1 to the third range AR3 shown in FIG. 5. In the illustrated example, the specific point SP-1 is specified based on the bounding box BB-1. The position of the specified specific point SP-1 is within the range of the second range AR2. In this case, for example, a person as an object exists near a wall, and a bounding box BB that surrounds only the upper body part may have been detected. In other words, only the upper part of the bounding box BB may have been erroneously detected (the lower side of the bounding box BB may not have been accurately detected), and the bounding box BB may actually have a shape that extends a little further downward. Therefore, the specific point SP-1 may have been erroneously detected above the position where the object actually exists. In this case, the coordinate specification unit 153 newly specifies a point below the specific point SP-1 and within the range of the first range AR1 as the specific point SP-2, and performs conversion to absolute coordinates based on the newly specified specific point SP-2. That is, when the detected range is the second range, the coordinate identification unit 153 derives the coordinates corresponding to the specific point SP-2 in the first range AR1, which is a specific point SP-2 corresponding to the specific point SP-1, from the correspondence table CT, and identifies the derived coordinates as absolute coordinates.
[0045] More specifically, when the detected range is the second range AR2, the coordinate identification unit 153 searches for each pixel in a vertical line downward from the specific point SP-1 to determine whether it is the first range AR1 or the second range AR2. The coordinate identification unit 153 identifies, as absolute coordinates, the coordinates of the point where the range that includes the pixel being searched for becomes the first range AR1. Note that the method of identifying the specific point SP-2 is not limited to this example, and may be performed by a suitable method depending on the shape of the building, etc.
[0046] As a third example, when the range detection unit 152 identifies the range in which the specific point SP exists as the third range AR3, that is, an empty area, the coordinate identification unit 153 does not identify absolute coordinates. Here, an object cannot be placed in an empty area. Therefore, when the coordinate identification unit 153 identifies the range in which the specific point SP exists as the third range AR3, there is a high possibility that an erroneous detection has occurred in the object detection process. Therefore, in this case, the coordinate identification unit 153 does not identify absolute coordinates. Although not described in detail, it is also possible to convert the coordinates of an object floating in the air (such as a drone) into absolute coordinates based on the correspondence table CT.
[0047] Depending on the installation location of the imaging device 20, a plurality of different slopes may be captured in the image IM. An example of a case where a plurality of different slopes are captured is a case where a ground surface parallel to the imaging angle and a slope (or a hill) connected to the ground surface are present. In this case, the range information storage unit 151 may store range information AI in which surfaces with different ground angles are in different ranges. Furthermore, the correspondence table storage unit 14 may store a different correspondence table CT for each range. In this case, the coordinate identification unit 153 acquires the correspondence table CT according to the range detected by the range detection unit 152. The coordinate identification unit 153 identifies the absolute coordinates of the specific point SP based on the correspondence table CT that differs according to the range detected by the range detection unit 152.
[0048] 7 is a flowchart illustrating the coordinate specifying method according to the first embodiment. An example of a series of operations of the coordinate specifying device 10 described above will be described with reference to the same drawing.
[0049] (Step S11) The acquisition unit 11 acquires an image IM from the imaging device 20. This process may be referred to as an acquisition process or an acquisition step.
[0050] When the coordinate specifying device 10 specifies absolute coordinates for a plurality of imaging devices 20, the acquiring unit 11 may acquire imaging device identification numbers for identifying the imaging devices 20 together with the images IM.
[0051] (Step S12) The object detection unit 12 performs an object detection process for detecting the position of an object included in the acquired image IM. As an example of the object detection process, a known moving object detection technique may be used. This process may be referred to as an object detection process or an object detection step.
[0052] (Step S13) If an object is detected by the object detection unit 12 (i.e., step S13; YES), the process proceeds to step S14. If an object is not detected by the object detection unit 12 (i.e., step S13; NO), the process returns to step S11.
[0053] (Step S14) If an object is detected, the specific point detection unit 13 detects a specific point SP. The specific point SP is a point that indicates the position where the object exists in the image IM based on the position of the detected object. The specific point detection unit 13 detects, for example, the midpoint of the bottom side that constitutes a bounding box BB that surrounds the object as the specific point SP. This process may be referred to as a specific point detection process or a specific point detection step.
[0054] (Step S15) The absolute coordinate specification unit 15 specifies absolute coordinates based on the coordinates in the image IM of the specified specific point SP and the correspondence table CT. Since the correspondence table CT associates the coordinates of each pixel in the image IM with absolute coordinates, it is possible to derive absolute coordinates from the coordinates in the image IM. This process may be referred to as an absolute coordinate specification process or an absolute coordinate specification step.
[0055] (Step S16) The output unit 16 outputs the absolute coordinates identified by the absolute coordinate identification unit 15. This process may be referred to as an output process or an output step.
[0056] [Summary of the first embodiment] As described above, the coordinate specifying device 10 according to this embodiment includes the acquiring unit 11 to acquire an image IM, the object detecting unit 12 to detect the position of an object included in the acquired image IM, the specific point detecting unit 13 to detect a specific point SP indicating the position where an object exists in the image IM based on the position of the detected object, the absolute coordinate specifying unit 15 to specify the absolute coordinate of the specific point SP based on the correspondence table CT in which the coordinates of each pixel in the image IM are associated with the absolute coordinate, and the output unit 16 to output the specified absolute coordinate. According to this embodiment, the absolute coordinate of the position where an object exists is specified by previously preparing the correspondence table CT in which the coordinates (i.e., relative coordinates) of the image IM captured by the imaging device 20 are associated with the absolute coordinate. According to this embodiment, the absolute coordinate can be specified by simply performing coordinate conversion, so that it is not necessary to perform coordinate calculation of a spatial position using perspective projection or the like, and therefore the calculation load can be reduced. Therefore, according to this embodiment, high-speed processing can be performed. Furthermore, since the coordinate specifying device 10 specifies the absolute coordinate using the image IM captured by a monocular camera, it is not necessary to use a distance sensor or multiple monocular cameras. Therefore, according to this embodiment, the position coordinates of an object captured by the imaging device 20 can be obtained at low cost.
[0057] Moreover, according to the above-mentioned coordinate specifying device 10, by providing the range detection unit 152, the range in which the specific point SP exists is detected based on the range information AI, which is information that specifies at least two or more ranges among each pixel of the image. Furthermore, by providing the coordinate specifying unit 153, the coordinate specifying device 10 specifies the absolute coordinates of the specific point SP based on the correspondence table CT that differs according to the detected range. For example, the two or more ranges may be determined based on the inclination of the ground. That is, according to this embodiment, even if a plurality of surfaces with different inclinations of the ground exist in the image IM, the absolute coordinates can be specified by referring to the correspondence table CT. Therefore, according to this embodiment, even if a plurality of surfaces with different inclinations of the ground exist in the image IM, the position coordinates of the object reflected in the imaging device 20 can be obtained at low cost.
[0058] Moreover, according to the above-mentioned coordinate specifying device 10, by including the range detection unit 152, the range in which the specific point SP exists is detected based on the range information AI, which is information that specifies at least the first range AR1 and the second range AR2 among the pixels of the acquired image. The first range AR1 may be a range indicating the ground part, and the second range AR2 may be a range indicating the wall part of the building. Furthermore, by including the coordinate specifying unit 153, the coordinate specifying device 10 specifies the coordinates corresponding to the specific point SP in the correspondence table CT as absolute coordinates when the detected range is the first range AR1, and specifies the coordinates of the point corresponding to the specific point SP and corresponding to the point in the first range AR1 as absolute coordinates when the detected range is the second range AR2. That is, according to the coordinate specifying device 10, when the specific point detection unit 13 detects that the specific point SP exists in the second range AR2, the coordinates of the specific point SP are changed to a position in the first range AR1, and the absolute coordinates are specified based on the changed coordinates of the new specific point SP. In other words, according to this embodiment, even if the object detection unit 12 erroneously detects the position or size of the bounding box BB and detects that the specific point SP is located at a position where an object such as a wall cannot be placed, it is possible to identify the absolute coordinates of the correct position where the object is presumed to exist.
[0059] Furthermore, according to the above-described coordinate identifying device 10, when the detected range is the second range AR2, the coordinate identifying unit 153 searches pixel by pixel downward on a vertical line from the specific point SP, and identifies the coordinates of the point where the range containing the searched pixel becomes the first range AR1 as absolute coordinates. Therefore, according to this embodiment, it is possible to easily identify the absolute coordinates of the correct position where the object is presumed to exist.
[0060] According to the coordinate specifying device 10 described above, the range detection unit 152 detects the third range AR3 based on the range information AI among the pixels of the acquired image IM. The third range AR3 may be a range indicating an empty part. The coordinate specifying unit 153 does not specify absolute coordinates when the detected range is the third range AR3. Here, as an example of this embodiment, the position coordinates of an object placed on a plane are converted into absolute coordinates by referring to the correspondence table CT. Therefore, if an object detected as existing in the air is converted into absolute coordinates by referring to the correspondence table CT, there is a risk of erroneous detection. According to this embodiment, an object detected as existing in the air is not converted into absolute coordinates (or even if it is converted, it is not output), thereby preventing the output of a result of erroneous detection.
[0061] [Second embodiment] Next, a second embodiment will be described with reference to FIG. 7. In the second embodiment, it is assumed that the position of an object reflected in video data is detected. Specifically, in the second embodiment, each frame image included in the video data is treated as an image IM. That is, in the second embodiment, the acquisition unit 11 acquires each of a plurality of frames constituting the video data as an image IM. Also, in the second embodiment, it is assumed that an object reflected in the image IM moves within the image IM.
[0062] Fig. 8 is a functional configuration diagram showing an example of the functional configuration of a coordinate specifying system according to the second embodiment. An example of the functional configuration of a coordinate specifying system 1A will be described with reference to the same figure. The coordinate specifying system 1A differs from the coordinate specifying system 1 in that it includes a coordinate specifying device 10A instead of the coordinate specifying device 10. The coordinate specifying device 10A differs from the coordinate specifying device 10 in that it further includes a trajectory detection unit 17 and a smoothing unit 18. In the description of the coordinate specifying system 1A, the same components as those of the coordinate specifying system 1 may be denoted by the same reference numerals and description thereof may be omitted.
[0063] In this embodiment, the bounding box BB detected by the object detection unit 12 is referred to as a bounding box BB1. The trajectory detection unit 17 acquires information on the bounding box BB1 from the object detection unit 12. The trajectory detection unit 17 detects the trajectory of an object based on the result of object detection in each of a plurality of frames constituting the video image data (i.e., the bounding box BB1 in each frame). The trajectory detection process performed by the trajectory detection unit 17 may use a known tracking technique or the like. Information on the trajectory detected by the trajectory detection unit 17 is output to the smoothing unit 18 as trajectory information TI.
[0064] Here, the bounding box BB1 detected by the object detection unit 12 is detected based on each frame image IM. In other words, information on the previous and following frame images IM is not used to detect the bounding box BB1. Here, the position where the moving object exists should move smoothly in the successive frame images IM. In this embodiment, the position of the bounding box BB is subjected to a smoothing process taking into account the successive frame images IM.
[0065] The smoothing unit 18 acquires the trajectory information TI from the trajectory detection unit 17. The smoothing unit 18 estimates the position where the object exists in each frame by smoothing the trajectory detected by the trajectory detection unit 17. A known technique may be used for the smoothing process performed by the smoothing unit 18. The smoothing unit 18 identifies the position of a new bounding box BB as a result of the smoothing process. The bounding box BB newly identified by the smoothing unit 18 is referred to as a bounding box BB2. The smoothing unit 18 outputs information about the bounding box BB2 to the specific point detection unit 13. The specific point detection unit 13 detects a specific point SP based on the acquired bounding box BB2.
[0066] The absolute coordinate specifying unit 15 specifies absolute coordinates based on the specific point SP specified based on the object position estimated by the smoothing unit 18 through the smoothing process (that is, the bounding box BB2).
[0067] [Summary of the second embodiment] As described above, in the coordinate specifying device 10A, the acquisition unit 11 acquires each of the multiple frames constituting the video data as an image IM. Moreover, the coordinate specifying device 10A further includes a trajectory detection unit 17, thereby detecting the trajectory of an object based on the result of object detection performed in each of the multiple frames. Moreover, the coordinate specifying device 10A further includes a smoothing unit 18, thereby smoothing the trajectory detected by the trajectory detection unit 17, and estimating the position of the object in each frame. In the coordinate specifying device 10A, the absolute coordinate specifying unit 15 specifies absolute coordinates based on the specific point SP specified based on the position of the object estimated by the smoothing process performed by the smoothing unit 18. That is, according to this embodiment, before detecting the specific point SP, the position of the bounding box BB is corrected based on the previous and following frame images (or multiple frame images constituting the video data). Therefore, even if the position of the bounding box BB is erroneously detected only in a certain frame image, it can be corrected based on the other frame images. Therefore, according to this embodiment, even if the position of the object is erroneously detected, the absolute coordinates can be specified with high accuracy.
[0068] In addition, all or part of the functions of each unit of the coordinate specifying device 10 and the coordinate specifying device 10A in the above-mentioned embodiment may be realized by recording a program for realizing these functions in a computer-readable recording medium, reading the program recorded in the recording medium into a computer system, and executing it. Note that the "computer system" here includes hardware such as an OS and peripheral devices.
[0069] In addition, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage units such as hard disks built into computer systems. Furthermore, the term "computer-readable recording medium" may also include those that dynamically hold a program for a short period of time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line, and those that hold a program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or client in such cases. Furthermore, the above program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0070] Although an embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications can be made without departing from the spirit of the present invention. [Explanation of symbols]
[0071] 1...coordinate determination system, 10...coordinate determination device, 11...acquisition unit, 12...object detection unit, 13...specific point detection unit, 14...correspondence table storage unit, 15...absolute coordinate determination unit, 16...output unit, 17...trajectory detection unit, 18...smoothing unit, 20...imaging device, 151...range information storage unit, 152...range detection unit, 153...coordinate determination unit, AR1...first range, AR2...second range, AR3...third range, IM...image, BB...bounding box, SP...specific point, CT...correspondence table, AC...absolute coordinate, AI...range information, SAI...specific range information, TI...trajectory information
Claims
1. An acquisition unit that acquires an image; an object detection unit that detects the position of an object included in an acquired image; a specific point detection unit that detects a specific point indicating a position where an object exists in an image based on a position of the detected object; an absolute coordinate specification unit that specifies the absolute coordinates of the specific point based on a correspondence table in which the coordinates of each pixel in the image are associated with absolute coordinates; an output unit that outputs the identified absolute coordinates; A coordinate determination device comprising:
2. The absolute coordinate specification unit a range detection unit that detects a range in which the specific point exists based on range information that is information that identifies at least two ranges among each pixel of an image; a coordinate specifying unit that specifies absolute coordinates of the specific point based on the correspondence table that differs depending on the detected range. The coordinate determining device according to claim 1 .
3. The absolute coordinate specification unit a range detection unit that detects a range in which the specific point exists based on range information that is information that identifies at least a first range and a second range among each pixel of the acquired image; a coordinate specifying unit that specifies, when the detected range is a first range, coordinates corresponding to the specific point in the correspondence table as absolute coordinates, and that specifies, when the detected range is a second range, coordinates of a point corresponding to the specific point and which is in the first range as absolute coordinates. The coordinate determining device according to claim 1 .
4. When the detected range is the second range, the coordinate identification unit searches downward from the specific point on a vertical line for each pixel, and identifies, as absolute coordinates, the coordinates of a point where the range including the pixel to be searched becomes the first range. The coordinate determining device according to claim 3.
5. The range detection unit detects a third range based on the range information among each pixel of the acquired image, The coordinate specification unit does not specify absolute coordinates when the detected range is a third range. The coordinate determining device according to claim 2 or 3.
6. The acquisition unit acquires, as images, each of a plurality of frames constituting the video data; a trajectory detection unit that detects a trajectory of an object based on a result of object detection performed in each of a plurality of frames; a smoothing unit that performs a smoothing process on the detected trajectory to estimate a position where an object exists in each frame; The absolute coordinate specification unit specifies absolute coordinates based on the specific point specified based on the position of the object estimated by performing the smoothing process. The coordinate determining device according to any one of claims 1 to 4.
7. An acquisition step of acquiring an image; an object detection step of detecting a position of an object included in the acquired image; a specific point detection step of detecting a specific point indicative of a position where the object is present in the image based on the position of the detected object; an absolute coordinate specifying step of specifying the absolute coordinates of the specific point based on a correspondence table in which the coordinates of each pixel in the image are associated with absolute coordinates; an output step of outputting the identified absolute coordinates; A coordinate determination method having the following structure.
Citation Information
Patent Citations
Monitor camera system and information-providing system using the same
JP2003189295A
Walking measurement system
JP2016137227A
Position coordinate derivation device, position coordinate derivation method, position coordinate derivation program, and system
JP2020134220A
