Coordinate identifying apparatus, learning apparatus, and coordinate identifying method
The coordinate specifying device uses a single monocular camera and correspondence tables to determine object coordinates and identify matching objects across multiple images, addressing the cost and angle limitations of stereo cameras.
Patent Information
- Application Number
- JP2023024876
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-09-02
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing methods for obtaining position coordinates using stereo cameras are costly due to the need for additional monocular cameras, and they have limited viewing angles, making it difficult to determine if objects imaged by multiple cameras are the same.
A coordinate specifying device that uses a single monocular camera to capture images, associates pixel coordinates with absolute coordinates through a correspondence table, and determines if objects in multiple images are the same by analyzing object positions, sizes, and trajectories.
Enables accurate and cost-effective determination of object coordinates across multiple cameras, reducing the need for multiple cameras and ensuring correct identification of objects across different viewing angles.
Smart Images

Figure 2024118544000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a coordinate specifying device, a learning device, and a coordinate specifying 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] When trying to obtain position coordinates using a stereo camera as described above, it is necessary to install a new monocular camera in addition to the surveillance camera, which poses the problem that the cost of configuring a stereo camera is more than double that of using a single surveillance camera.
[0005] Furthermore, when detecting the position coordinates of a moving object (mobile body) using a camera, if the moving body is within the angle of view of the camera, the position coordinates may be detected. However, the range (angle of view) that can be captured by a camera is limited, and the range in which the position coordinates of the moving body can be detected is also limited. Therefore, when detecting the position coordinates of a moving body over a wide range, it is possible to prepare multiple cameras. When identifying the position coordinates of a moving body using multiple cameras, it is not easy to determine whether the moving bodies captured by each camera are the same or not.
[0006] Therefore, the present invention aims to provide a coordinate identification device, a learning device, and a coordinate identification method that can identify the position coordinates of objects captured in images acquired by multiple monocular cameras and determine whether the objects are the same object. [Means for solving the problem]
[0007] (1) One aspect of the present invention is a coordinate identification device that includes an acquisition unit that acquires a first image that is an image captured by a first imaging device installed at a first location, and a second image that is an image captured by a second imaging device installed at a second location different from the first location and different from the first imaging device, the second image being an image captured at approximately the same time as the first image; an object detection unit that detects a position of an object included in the acquired image; a specific point detection unit that detects a specific point that indicates a position of an object in the image based on the position of the detected object; an absolute coordinate identification unit that identifies the absolute coordinate of the specific point based on a correspondence table in which coordinates of each pixel in the image are associated with absolute coordinates; a determination unit that determines whether the object included in the first image and the object included in the second image are the same object based on the absolute coordinate of the identified specific point where an object included in the first image is present and the absolute coordinate of the identified specific point where an object included in the second image is present; and an output unit that outputs the determination result.
[0008] (2) In one aspect of the present invention, in the coordinate identification device described in (1) above, the determination unit determines that the object included in the first image and the object included in the second image are the same object when the distance between the absolute coordinates of the specific point identified as the object included in the first image and the absolute coordinates of the specific point identified as the object included in the second image is smaller than a predetermined threshold value.
[0009] (3) In one aspect of the present invention, in the coordinate identification device described in (1) or (2) above, the object detection unit detects the position and size of an object contained in the acquired image, and a predetermined threshold value used by the determination unit to determine whether or not the objects are the same is determined based on the size of the object detected by the object detection unit.
[0010] (4) In one aspect of the present invention, in the coordinate identification device described in any of (1) to (3) above, the acquisition unit acquires an image in association with information regarding the time the image was captured, and the determination unit determines whether an object included in the first image and an object included in the second image are the same object based on the time the first image was captured and the time the second image was captured.
[0011] (5) In one aspect of the present invention, in the coordinate identification device described in any of (1) to (4) 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 the determination unit determines whether an object included in the first image and an object included in the second image are the same object based on the detected trajectory.
[0012] (6) In one aspect of the present invention, in a coordinate identification device described in any of (1) to (5) above, the device further includes a feature detection unit that detects features of an object detected by the object detection unit, and the determination unit determines whether the object included in the first image and the object included in the second image are the same object based on the extracted features.
[0013] (7) In one aspect of the present invention, in the coordinate identification device described in any of (1) to (6) 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 feature detection unit that detects features of the object detected by the object detection unit, wherein the features detected by the feature detection unit include a velocity vector or an acceleration vector, and the determination unit determines whether the object included in the first image and the object included in the second image are the same object based on the extracted features.
[0014] (8) One aspect of the present invention is a learning device that learns whether objects captured in two images are the same or not by using the result of a determination of identity made by a coordinate identification device described in any one of (1) to (7) above and the first image and the second image that correspond to each other as training data.
[0015] (9) One aspect of the present invention is a coordinate identification method including: an acquisition step of acquiring a first image, which is an image captured by a first imaging device installed at a first location, and a second image, which is an image captured by a second imaging device installed at a second location different from the first location and different from the first imaging device; 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 coordinates of each pixel in the image correspond to absolute coordinates; a determination step of determining whether the object included in the first image and the object included in the second image are the same object based on the absolute coordinate of the identified specific point where an object included in the first image is present and the absolute coordinate of the identified specific point where an object included in the second image is present; and an output step of outputting the determined result. Effect of the Invention
[0016] According to the present invention, it is possible to identify the position coordinates of objects captured in images captured by a plurality of monocular cameras, and to determine whether the objects are the same object. [Brief description of the drawings]
[0017] [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. [Figure 9] FIG. 13 is a diagram for explaining an overview of a coordinate specifying system according to a third embodiment. [Figure 10] 13A and 13B are diagrams showing examples of images obtained when the same object is captured by each of a plurality of imaging devices according to the third embodiment. [Figure 11] FIG. 13 is a functional configuration diagram showing an example of a functional configuration of a coordinate specifying system according to a third embodiment. [Figure 12] 13 is a flowchart illustrating a coordinate specifying method according to the third embodiment. [Figure 13] FIG. 13 is a functional configuration diagram showing an example of a functional configuration of a coordinate specifying system according to a fourth embodiment. [Figure 14] FIG. 13 is a functional configuration diagram showing an example of a functional configuration of a coordinate specifying system according to a fifth embodiment. [Figure 15] FIG. 23 is a diagram showing an example of teacher data used by a learning device according to a sixth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] 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.
[0019] [First embodiment] First, the first embodiment will be described with reference to FIGS.
[0020] 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.
[0021] 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).
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] 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).
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] (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.
[0053] 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.
[0054] (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.
[0055] (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.
[0056] (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.
[0057] (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.
[0058] (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.
[0059] [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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] [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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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).
[0070] [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.
[0071] [Third embodiment] Next, a third embodiment will be described with reference to Fig. 9 to Fig. 12. In the third embodiment, it is assumed that the position of an object is detected using a plurality of imaging devices 20 that are installed so that the angles of view partially overlap each other.
[0072] FIG. 9 is a diagram for explaining an overview of a coordinate specifying system according to a third embodiment. With reference to the same figure, an overview of a coordinate specifying system 1B according to a third embodiment will be explained. The coordinate specifying system 1B includes a plurality of imaging devices 20. Hereinafter, a case where two imaging devices 20 are used will be explained as an example of the plurality of imaging devices 20. In the illustrated example, a first imaging device 20-1 and a second imaging device 20-2 are shown as an example of the plurality of imaging devices 20. Note that this embodiment is not limited to this example, and can be similarly applied to a case where three or more imaging devices 20 are used.
[0073] The first imaging device 20-1 has an angle of view α. The second imaging device 20-2 has an angle of view β. The angles of view α and β may or may not be the same. Here, the first imaging device 20-1 and the second imaging device 20-2 are disposed at positions where a part of the angle of view α and a part of the angle of view β overlap each other. In other words, a part of the image IM captured by the first imaging device 20-1 and a part of the image IM captured by the second imaging device 20-2 are captured at the same location from different angles.
[0074] In the illustrated example, a person P is shown as an example of a moving object. The first imaging device 20-1 and the second imaging device 20-2 are disposed at positions where a part of the angle of view α and a part of the angle of view β overlap each other, so that there is a specific location where the person P is reflected in both the image IM captured by the first imaging device 20-1 and the image IM captured by the second imaging device 20-2. The coordinate identification system 1B detects whether the object captured in the multiple images IM captured by the multiple imaging devices 20 is the same object, and detects the trajectory of the object when it moves by the multiple imaging devices 20. The coordinate identification system 1B also tracks the movement of the object in real time.
[0075] FIG. 10 is a diagram showing an example of an image when the same object is imaged by each of a plurality of imaging devices according to the third embodiment. With reference to the figure, an example of an image IM when the same object is imaged by a plurality of imaging devices 20 will be described. FIG. 10(A) shows an example of an image IM imaged by the first imaging device 20-1 shown in FIG. 9. The image IM imaged by the first imaging device 20-1 is referred to as a first image IM-1. FIG. 10(B) shows an example of an image IM imaged by the second imaging device 20-2 shown in FIG. 9. The image IM imaged by the second imaging device 20-2 is referred to as a second image IM-2.
[0076] As shown in the figure, a person P is captured in both the first image IM-1 and the second image IM-2. Since the first image IM-1 and the second image IM-2 are captured at different angles, it is not easy to determine whether they are the same person from the images. The coordinate identification system 1B detects a specific point SP for each of the first image IM-1 and the second image IM-2, identifies absolute coordinates from the detected specific point SP, and determines whether they are the same object based on whether the absolute coordinates match. Note that whether the absolute coordinates match is not limited to a case where the coordinates match completely, but also includes a case where they are within a predetermined range. Hereinafter, the specific point SP detected based on an object included in the first image IM-1 will be referred to as a first specific point SP-1, and the specific point SP detected based on an object included in the second image IM-2 will be referred to as a second specific point SP-2.
[0077] FIG. 11 is a functional configuration diagram showing an example of the functional configuration of a coordinate specifying system according to a third embodiment. With reference to the same figure, an example of the functional configuration of a coordinate specifying system 1B will be described. The coordinate specifying system 1B differs from the coordinate specifying system 1 in that it includes a coordinate specifying device 10B instead of the coordinate specifying device 10. The coordinate specifying device 10B differs from the coordinate specifying device 10 in that it includes an acquisition unit 11B instead of the acquisition unit 11, and further includes a determination unit 31. In the description of the coordinate specifying system 1B, 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.
[0078] The acquisition unit 11B acquires a first image IM-1 and a second image IM-2. The first image IM-1 is an image captured by a first imaging device 20-1 installed at a first location. The second image IM-2 is an image captured by a second imaging device 20-2 installed at a second location. The first imaging device 20-1 and the second imaging device 20-2 are different devices. In addition, the first location where the first imaging device 20-1 is installed and the second location where the second imaging device 20-2 is installed are different locations. It is preferable that the first image IM-1 and the second image IM-2 are images captured at approximately the same time. Approximately the same time may be a range in which the subject can be identified as the same object from each image when the object is imaged from different angles.
[0079] The object detection unit 12 acquires the first image IM-1 and the second image IM-2 from the acquisition unit 11B. The object detection unit 12 detects the position of an object included in each of the acquired first image IM-1 and second image IM-2. Furthermore, the specific point detection unit 13 detects a specific point SP indicating the position where the object exists in each of the first image IM-1 and the second image IM-2 based on the position of the object detected by the object detection unit 12. Specifically, the specific point detection unit 13 detects a first specific point SP-1 indicating the position where the object exists in the first image IM-1, and detects a second specific point SP-2 indicating the position where the object exists in the second image IM-2. Furthermore, the absolute coordinate identification unit 15 identifies the absolute coordinate of the first specific point SP-1 based on a correspondence table CT in which the coordinates of pixels in the first image IM-1 are associated with absolute coordinates. Furthermore, the absolute coordinate specifying unit 15 specifies the absolute coordinates of the second specific point SP-2 based on a correspondence table CT in which the coordinates of pixels in the second image IM-2 are associated with absolute coordinates. The correspondence table CT used by the absolute coordinate specifying unit 15 to calculate the absolute coordinates from the first image IM-1 is different from the correspondence table CT used to calculate the absolute coordinates from the second image IM-2.
[0080] The determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the absolute coordinates of the identified first specific point SP-1 where an object included in the first image IM-1 exists and the absolute coordinates of the identified second specific point SP-2 where an object included in the second image IM-2 exists. Specifically, the determination unit 31 determines that the object included in the first image IM-1 and the object included in the second image IM-2 are the same object when the absolute coordinates of the first specific point SP-1 and the absolute coordinates of the second specific point SP-2 match. Here, the case where the absolute coordinates of the first specific point SP-1 and the absolute coordinates of the second specific point SP-2 match is not limited to the case where the coordinates match completely, but includes the case where the coordinates are within a predetermined range. Specifically, the determination unit 31 determines that the object included in the first image IM-1 and the object included in the second image IM-2 are the same object when the distance between the absolute coordinates of the first specific point SP-1 and the absolute coordinates of the second specific point SP-2 is smaller than a predetermined threshold value. The predetermined threshold value used for determining whether or not the images are the same may be determined in advance, or may be dynamically derived by a predetermined method. The output unit 16 outputs the result of the determination made by the determination unit 31.
[0081] Here, the predetermined threshold used to determine whether or not the objects are the same may be determined based on the size of the object. That is, the distance allowed for determining whether or not the objects are the same may be determined according to the size of the object. In this case, the object detection unit 12 detects the position and size of the object included in the acquired first image IM-1 and second image IM-2. The position and size may be detected, for example, by a bounding box BB. In addition, the predetermined threshold used by the determination unit 31 to determine whether or not the objects are the same is determined based on the size of the object detected by the object detection unit 12, for example, the size of the bounding box BB. Specifically, the determination unit 31 may determine that the objects are the same if the distance between the absolute coordinates of the first specific point SP-1 and the absolute coordinates of the second specific point SP-2 is within the threshold, using the size of the base constituting the bounding box BB as the threshold. Note that the threshold is not limited to an example in which the size of the base is used, and may be a value based on the size of the base or a value based on the height of the bounding box BB.
[0082] In addition, in order to determine whether they are the same or not, it is preferable to use the first image IM-1 and the second image IM-2 captured at the same time. The same time is not limited to the case where the image capturing times of the two images are completely the same, but may be the case where the image capturing times of the two images are within a predetermined range (for example, within a few seconds). In this case, the acquisition unit 11B acquires the image IM in association with information on the time when the image IM was captured. In addition, if the acquisition unit 11B cannot acquire information on the time, the acquisition unit 11B may assign a timestamp of the time when the image IM was captured to associate the image IM with the image IM. The determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object or not based on the time when the first image IM-1 was captured (or the timestamp assigned by the acquisition unit 11B) and the time when the second image IM-2 was captured (or the timestamp assigned by the acquisition unit 11B).
[0083] 12 is a flowchart illustrating a coordinate specifying method according to the third embodiment. An example of a series of operations of the coordinate specifying device 10B described above will be described with reference to the same drawing.
[0084] (Step S21) The acquisition unit 11B acquires images from each of the multiple imaging devices 20. Specifically, the acquisition unit 11B acquires a first image IM-1 that is an image captured by a first imaging device 20-1 installed at a first location, and acquires a second image IM-2 that is an image captured by a second imaging device 20-2 installed at a second location different from the first location and different from the first imaging device 20-1. This process may be described as an acquisition process or an acquisition step. In order to distinguish between the first image IM-1 and the second image IM2, identification information may be attached to each of the first image IM-1 and the second image IM2. If identification information is not attached to the first image IM-1 and the second image IM2, the identification information may be attached by the acquisition unit 11B.
[0085] (Step S22) The object detection unit 12 performs an object detection process to detect the position of an object for each of the acquired first image IM-1 and second image IM-2. As an example of the object detection process, a known moving object detection method may be used. This process may be referred to as an object detection process or an object detection step.
[0086] (Step S23) If the object detection unit 12 detects an object in both the first image IM-1 and the second image IM-2 (i.e., step S23; YES), the process proceeds to step S24. If the object detection unit 12 detects no object in either or both of the first image IM-1 and the second image IM-2 (i.e., step S23; NO), the process returns to step S21.
[0087] (Step S24) If an object is detected in both the first image IM-1 and the second image IM-2, the specific point detection unit 13 detects a first specific point SP-1 in the first image IM-1 and detects a second specific point SP-2 in the second image IM-2. This process may be referred to as a specific point detection process or a specific point detection step.
[0088] (Step S25) The absolute coordinate specifying unit 15 specifies the absolute coordinates of the object in the first image IM-1 based on the coordinates of the specified first specific point SP-1 in the first image IM-1 and the corresponding correspondence table CT. The absolute coordinate specifying unit 15 also specifies the absolute coordinates of the object in the second image IM-2 based on the coordinates of the specified second specific point SP-2 in the second image IM-2 and the corresponding correspondence table CT. This process may be referred to as an absolute coordinate specifying process or an absolute coordinate specifying step.
[0089] (Step S26) The determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the absolute coordinates of the object in the identified first image IM-1 and the absolute coordinates of the object in the second image IM-2. This process may be referred to as a determination process or a determination step.
[0090] (Step S27) The output unit 16 outputs the determined result. The output unit 16 may output absolute coordinates in association with the determined result. The output unit 16 may also output image information in the first image IM-1 and image information in the second image IM-2 in association with the determined result. This process may be referred to as an output process or an output step.
[0091] [Summary of the third embodiment] As described above, the coordinate specifying device 10B according to this embodiment includes the acquisition unit 11B, and acquires the first image IM-1, which is an image captured by the first imaging device 20-1 installed at the first location, and the second image IM-2, which is an image captured by the second imaging device 20-2 installed at the second location different from the first location and different from the first imaging device 20-1. The coordinate specifying device 10B also includes the object detection unit 12, which detects the positions of objects included in the acquired first image IM-1 and second image IM-2, includes the specific point detection unit 13, which detects the specific point SP indicating the position where the object exists in the image based on the position of the detected object, and includes the absolute coordinate specifying unit 15, which specifies the absolute coordinate of the specific point SP based on a correspondence table in which the coordinates of each pixel in the image are associated with absolute coordinates. Furthermore, the coordinate specifying device 10B includes a determination unit 31, and based on the absolute coordinates of the specified specific point SP where an object included in the first image IM-1 exists and the absolute coordinates of the specified specific point SP where an object included in the second image IM-2 exists, the coordinate specifying device 10B determines whether or not the object included in the first image IM-1 and the object included in the second image IM-2 are the same object. That is, according to the coordinate specifying device 10B, the position coordinates of the object reflected in the images acquired by the multiple monocular cameras are respectively specified, and based on the specified position coordinates, it is determined whether or not the object is the same object. Therefore, according to this embodiment, since a stereo camera, a distance sensor, or the like is not used, it is possible to track a moving object at low cost. In addition, by increasing the number of the imaging devices 20, it is possible to track a moving object in a wide range. In addition, since it is possible to track a moving object using multiple imaging devices 20, it is possible to capture the moving object from various angles, and it is possible to prevent the occurrence of a situation in which the moving object is hidden behind a building and cannot be tracked.
[0092] Further, according to the above-mentioned coordinate specifying device 10B, the determination unit 31 determines that the object included in the first image IM-1 and the object included in the second image IM-2 are the same object when the distance between the absolute coordinates of the first specific point SP-1, at which an object included in the first image IM-1 is specified to exist, and the absolute coordinates of the second specific point SP-2, at which an object included in the second image IM-2 is specified to exist, is smaller than a predetermined threshold. That is, even if the absolute coordinates in each of the two images do not completely match, the determination unit 31 determines that the object is the same object if they exist within a predetermined range. The predetermined threshold used for the determination may be determined based on the measurement accuracy or the like. According to this embodiment, since the threshold can be changed according to the measurement accuracy, it is possible to prevent the occurrence of a situation in which the objects are erroneously detected as different objects even when the calculation accuracy of the absolute coordinates is not high.
[0093] According to the above-mentioned coordinate specifying device 10B, the object detection unit 12 detects the position and size of an object included in the image acquired by the acquisition unit 11B, and the predetermined threshold for the determination unit 31 to determine whether or not the objects are the same is determined based on the size of the object detected by the object detection unit 12. Here, the allowable range for determining that objects captured in two different images IM are the same object differs depending on the size of the object to be determined. According to this embodiment, the threshold used to determine whether or not the objects are the same object is determined depending on the size of the object to be determined, so that it is possible to accurately determine whether or not the objects are the same object. Also, even if an object is detected to exist at a specific absolute coordinate by each of the multiple cameras, if the size of the object is different, it may not be the same object. Therefore, according to the coordinate specifying device 10B, it is possible to prevent the occurrence of a situation in which the objects are erroneously determined to be the same, and it is possible to accurately determine whether or not the objects are the same object.
[0094] Moreover, according to the above-mentioned coordinate specifying device 10B, the acquiring unit 11B acquires images and information related to the time when the images were captured in association with each other, and the determining unit 31 determines whether or not the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the time when the first image IM-1 was captured and the time when the second image IM-2 was captured. That is, the coordinate specifying device 10B determines whether or not the objects are the same object based on the images captured at approximately the same time based on the time when the images were captured. Therefore, according to the coordinate specifying device 10B, it is possible to accurately determine whether or not the objects are the same object.
[0095] [Fourth embodiment] Next, a fourth embodiment will be described with reference to FIG. 13. In the fourth embodiment, it is assumed that the position of an object captured in video data is detected. Specifically, in the second embodiment, frame images included in the video data are used as targets to determine whether the object is the same or not. That is, in the fourth embodiment, the acquisition unit 11B acquires each of a plurality of frames constituting the video data as a first image IM-1 and a second image IM-2. In addition, in the fourth embodiment, it is assumed that the object to be determined moves within the first image IM-1 and the second image IM-2.
[0096] Fig. 13 is a functional configuration diagram showing an example of the functional configuration of a coordinate specifying system according to a fourth embodiment. With reference to the same figure, an example of the functional configuration of a coordinate specifying system 1C will be described. The coordinate specifying system 1C differs from the coordinate specifying system 1B in that it includes a coordinate specifying device 10C instead of the coordinate specifying device 10B. The coordinate specifying device 10C differs from the coordinate specifying device 10B in that it further includes a trajectory detection unit 17. In the description of the coordinate specifying system 1C, the same components as those of the coordinate specifying system 1B may be denoted by the same reference numerals and description thereof may be omitted.
[0097] The trajectory detection unit 17 acquires information on the bounding box BB 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 BB in each frame). The trajectory detection process performed by the trajectory detection unit 17 may use a known tracking technique. Information on the trajectory detected by the trajectory detection unit 17 is output to the determination unit 31 as trajectory information TI.
[0098] The determination unit 31 determines whether or not the object included in the first image IM-1 and the object included in the second image IM-2 are the same object, based on the trajectory detected by the trajectory detection unit 17. Specifically, the determination unit 31 compares the trajectories of multiple frames of the moving image data acquired from the first imaging device 20-1 and the moving image data acquired from the second imaging device 20-2, and if the trajectories match or are similar, determines whether or not they are the same. If the trajectories do not match or are not similar, the determination unit 31 determines that they are not the same. Note that the determination of match or similarity may be performed using a known technique.
[0099] [Summary of the fourth embodiment] As described above, according to the coordinate specifying device 10C of this embodiment, the acquisition unit 11B acquires each of the multiple frames constituting the video image data as an image, detects the trajectory of the object based on the result of object detection performed in each of the multiple frames, and the determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the detected trajectory. Objects having the same or similar trajectories are likely to be the same, and objects not having the same or similar trajectories are unlikely to be the same. Therefore, according to the coordinate specifying device 10C, it is possible to prevent the occurrence of a situation in which objects are erroneously determined to be the same, and it is possible to accurately determine whether the objects are the same object.
[0100] [Fifth embodiment] Next, a fifth embodiment will be described with reference to FIG.
[0101] FIG. 14 is a functional configuration diagram showing an example of the functional configuration of a coordinate specifying system according to the fifth embodiment. With reference to the same figure, an example of the functional configuration of a coordinate specifying system 1D will be described. The coordinate specifying system 1D differs from the coordinate specifying system 1C in that it includes a coordinate specifying device 10D instead of the coordinate specifying device 10C. The coordinate specifying device 10D differs from the coordinate specifying device 10C in that it includes a feature amount detection unit 32 instead of or in addition to the trajectory detection unit 17. In the description of the coordinate specifying system 1D, the same components as those of the coordinate specifying system 1C may be denoted by the same reference numerals and description thereof may be omitted.
[0102] The feature detection unit 32 acquires information about the bounding box BB from the object detection unit 12. The feature detection unit 32 detects a feature F of the object detected by the object detection unit 12 based on an image in the bounding box BB. Examples of the feature F include statistics of the colors included in the bounding box BB, the shape of the object present in the bounding box BB, and a class obtained as a result of object detection. An existing machine learning algorithm or the like may be used for the detection process of the feature F. The feature detection unit 32 outputs the detected feature F to the determination unit 31.
[0103] The determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the feature amount F extracted by the feature amount detection unit 32. Specifically, the determination unit 31 compares the feature amount F extracted based on the video image data acquired from the first imaging device 20-1 with the feature amount F extracted based on the video image data acquired from the second imaging device 20-2, and if the difference is within a predetermined threshold, it determines whether they are the same or not. If the difference is not within the predetermined threshold, the determination unit 31 determines that they are not the same. The predetermined threshold may be determined in advance, or may be dynamically determined according to the feature amount.
[0104] Furthermore, the coordinate identifying device 10D may further include the trajectory detection unit 17 described in the fourth embodiment. In this case, the feature amount detection unit 32 may extract a feature amount F based on the trajectory detected by the trajectory detection unit 17. In this case, the feature amount F detected by the feature amount detection unit 32 may include a velocity vector, an acceleration vector, or the like. The determination unit 31 may determine whether or not the object included in the first image IM-1 and the object included in the second image IM-2 are the same object, based on at least one of the velocity vector and the acceleration vector extracted as the feature amount F.
[0105] [Summary of the fifth embodiment] As described above, the coordinate specifying device 10D according to this embodiment further includes the feature detection unit 32, thereby detecting the feature F of the object detected by the object detection unit 12, and the determination unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the extracted feature F. If the feature F extracted from the first image IM-1 and the second image IM-2 are similar to each other, the object included in the first image IM-1 and the object included in the second image IM-2 are likely to be the same object. Therefore, according to the coordinate specifying device 10D, it is possible to prevent the occurrence of a situation in which the objects are erroneously determined to be the same, and it is possible to accurately determine whether the objects are the same object.
[0106] Moreover, according to the above-mentioned coordinate specifying device 10D, the acquiring unit 11B acquires each of the multiple frames constituting the video image data as an image. The coordinate specifying device 10D includes the trajectory detecting unit 17, thereby detecting the trajectory of the object based on the result of object detection performed in each of the multiple frames, and includes the feature amount detecting unit 32, thereby detecting the feature amount F of the object detected by the object detecting unit 12. The feature amount F detected by the feature amount detecting unit 32 includes a velocity vector or an acceleration vector. The determining unit 31 determines whether the object included in the first image IM-1 and the object included in the second image IM-2 are the same object based on the velocity vector or the acceleration vector extracted as the feature amount F. That is, according to this embodiment, the object included in the first image IM-1 and the object included in the second image IM-2 are the same object or not, taking into consideration the temporal movement of the object. Therefore, according to the coordinate specifying device 10D, it is possible to prevent the occurrence of a situation in which the objects are erroneously determined to be the same, and it is possible to accurately determine whether the objects are the same object or not.
[0107] [Sixth embodiment] Next, a sixth embodiment will be described with reference to FIG. 15. In the sixth embodiment, a learning model is generated to infer whether objects shown in two images are the same or not based on the results obtained by the above-mentioned embodiment. The learning device according to this embodiment performs learning using the results obtained by the above-mentioned embodiment as training data. That is, the learning device according to this embodiment learns whether objects shown in two images are the same or not using the results of the determination of whether they are the same or not performed by the above-mentioned coordinate identification device 10 or the like and the corresponding first image IM-1 and second image IM-2 as training data.
[0108] FIG. 15 is a diagram showing an example of teacher data used by the learning device according to the sixth embodiment. With reference to the same figure, an example of teacher data used by the learning device for learning will be described. As shown in the figure, the teacher data associates a first image IM-1, a second image IM-2, and a judgment result. The first image IM-1 and the second image IM-2 include information for identifying the image (e.g., image file name), and the judgment result includes "match" or "mismatch". Note that other information may be associated with the teacher data. The other information may include environmental data such as the time of imaging, the weather and temperature at the time of imaging, and other conditions related to imaging.
[0109] In the illustrated example, the first data corresponds to the first image "IMG1-1," the second image "IMG2-1," and the judgment result "match," the second data corresponds to the first image "IMG1-2," the second image "IMG2-2," and the judgment result "match," and the third data corresponds to the first image "IMG1-3," the second image "IMG2-3," and the judgment result "mismatch."
[0110] [Summary of the sixth embodiment] As described above, the learning device according to this embodiment learns whether objects shown in two images are the same or not, using the results of the determination of whether they are the same or not performed by the above-mentioned coordinate specifying device 10 to coordinate specifying device 10D and the corresponding first image IM-1 and second image IM-2 as teacher data. That is, the learning device performs learning to infer whether objects shown in two images are the same or not, based on images of the same object captured from different angles and images of different objects captured from different angles. Here, in order to collect teacher data for learning, it is required to prepare images under a plurality of conditions, which is not easy. According to this embodiment, the results of the determination performed by the coordinate specifying device 10 or the like can be used as teacher data. Therefore, according to this embodiment, teacher data can be easily collected. In addition, by using a learning model learned using the learning device according to this embodiment, even when absolute coordinates cannot be obtained, it is possible to infer whether objects shown in two images are the same or not.
[0111] In addition, the whole or part of the functions of the coordinate identifying device 10 to the coordinate identifying device 10D and the learning device 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.
[0112] 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.
[0113] 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]
[0114] 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, 31...judgment unit, 32...feature detection unit, JR...judgment result, F...feature
Claims
1. an acquisition unit that acquires a first image that is an image captured by a first imaging device installed at a first location, and a second image that is an image captured by a second imaging device installed at a second location different from the first location and different from the first imaging device, and that is an image captured at approximately the same time as the first 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; a determination unit that determines whether or not the object included in the first image and the object included in the second image are the same object based on absolute coordinates of the specified specific point at which an object included in the first image exists and absolute coordinates of the specified specific point at which an object included in the second image exists; an output unit that outputs the determined result; A coordinate determination device comprising:
2. The determination unit determines that the object included in the first image and the object included in the second image are the same object when a distance between the absolute coordinates of the specific point identified as the object included in the first image and the absolute coordinates of the specific point identified as the object included in the second image is smaller than a predetermined threshold value. The coordinate determining device according to claim 1 .
3. The object detection unit detects a position and a size of an object included in the acquired image, The predetermined threshold value for the determination unit to determine whether the objects are the same or not is determined based on the size of the object detected by the object detection unit. The coordinate determining device according to claim 2 .
4. The acquisition unit acquires an image in association with information about a time when the image was captured, The determination unit determines whether or not an object included in the first image and an object included in the second image are the same object based on a time when the first image was captured and a time when the second image was captured. The coordinate determining device according to claim 1 or 2.
5. The acquisition unit acquires, as images, each of a plurality of frames constituting the video data; The imaging device further includes a trajectory detection unit that detects a trajectory of an object based on a result of object detection performed in each of the plurality of frames, The determination unit determines whether or not the object included in the first image and the object included in the second image are the same object, based on the detected trajectory. The coordinate determining device according to claim 1 or 2.
6. The apparatus further includes a feature amount detection unit that detects a feature amount of the object detected by the object detection unit, The determination unit determines whether or not the object included in the first image and the object included in the second image are the same object based on the extracted feature amount. The coordinate determining device according to claim 1 or 2.
7. 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 feature amount detection unit that detects a feature amount of the object detected by the object detection unit, The feature quantity detected by the feature quantity detection unit includes a velocity vector or an acceleration vector, The determination unit determines whether or not the object included in the first image and the object included in the second image are the same object based on the extracted feature amount. The coordinate determining device according to claim 1 or 2.
8. A method for learning whether objects captured in two images are the same or not by using a result of the determination of whether or not the objects are the same by the coordinate identification device according to claim 1 or 2 and the first image and the second image corresponding to each other as training data. Learning device.
9. an acquisition step of acquiring a first image captured by a first imaging device installed at a first location and a second image captured by a second imaging device installed at a second location different from the first location and different from the first imaging device; 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; a determination step of determining whether or not the object included in the first image and the object included in the second image are the same object based on absolute coordinates of the specified specific point at which an object included in the first image exists and absolute coordinates of the specified specific point at which an object included in the second image exists; an output step of outputting the determined result; A coordinate determination method having the following structure.
Citation Information
Patent Citations
Monitor camera system and information-providing system using the same
JP2003189295A
Same object detection device, same object detection method, and same object detection program
JP2015219712A
Movable body tracking method and image processing device used therefor
JP2020087180A
Position coordinate derivation device, position coordinate derivation method, position coordinate derivation program, and system
JP2020134220A
