Object detection device and program
The object detection device enhances the detection of specific object states by analyzing movement and density to identify stationary areas, addressing the limitations of conventional systems in accurately detecting objects like empty plates.
Patent Information
- Application Number
- JP2020159973
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-09-24
AI Technical Summary
Conventional object detection systems struggle to accurately identify objects in specific states, such as empty plates on a table, due to difficulties in determining the appropriate detection area and timing of object movement.
An object detection device that utilizes image acquisition, direction identification, and stationary area analysis to determine a detection area based on object movement and density, allowing for the detection of objects in specific states by identifying stationary areas where objects have moved in a predetermined direction and remain stationary for a threshold time.
Enables precise detection of objects in specific states, such as empty plates, by determining the detection area dynamically, thereby improving the accuracy of object collection processes.
Smart Images

Figure 0007539199000004 
Figure 0007539199000003 
Figure 0007539199000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an object detection device and a program. [Background technology]
[0002] A technique has been disclosed for detecting a plate on a table and displaying the detection result on a monitor (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2004-242693 A Summary of the Invention [Problem to be solved by the invention]
[0004] There are cases where it is necessary to detect when an object (e.g., an object, a person, or an animal) has reached a specific state. For example, in a restaurant, there is a need to detect when a plate that has been emptied and needs to be collected has been placed on a table. With conventional technology, it is possible to detect when a plate has been placed on a table, but it is difficult to detect when the plate has reached a specific state.
[0005] The present invention has been made in consideration of these points, and has an object to make it possible to detect an object that is in a specific state. [Means for solving the problem]
[0006] An object detection device according to a first aspect of the present invention includes an image acquisition unit that acquires multiple captured image data generated by capturing images of an imaging area at multiple times; an orientation identification unit that identifies the direction in which multiple objects of a predetermined shape move in the imaging area based on the multiple captured image data; a detection area determination unit that determines a still area including a position where the object comes to rest after moving in a predetermined orientation as a detection area in which to detect a detection target object, which is the object to be detected; an object area detection unit that detects that the object has been placed in the detection area after the detection area determination unit has determined the detection area; and an output unit that outputs a signal that the object area detection unit has detected the object.
[0007] The detection area determination unit may determine, as the detection area, a dense region within the still region in which the number of the objects per unit area is equal to or greater than a threshold value.
[0008] After determining the dense area as the detection area, the detection area determination unit may exclude the dense area from the detection area if the number of objects that come to rest in the dense area after moving in the specified direction is less than the threshold value for a specified period of time.
[0009] The detection area determination unit may determine the stationary region as the detection area when a time during which the object remains stationary after moving in a predetermined direction exceeds a threshold time.
[0010] When the object moves in a predetermined direction, comes to a stop, and then moves to an external area different from the target area set as the detection area, the detection area determination unit may determine the position where the object was stationary just before moving to the external area as the detection area.
[0011] A program according to a second aspect of the present invention causes a computer to function as an image acquisition unit that acquires multiple captured image data generated by capturing images of an imaging area at multiple times, an orientation identification unit that identifies the direction in which multiple objects of a predetermined shape moved in the imaging area based on the multiple captured image data, a detection area determination unit that determines a still area including the position where the object came to rest after moving in a predetermined orientation as a detection area in which to detect a detection target object, which is the object to be detected, an object area detection unit that detects the object being placed in the detection area after the detection area determination unit has determined the detection area, and an output unit that outputs the fact that the object area detection unit has detected the object. Effect of the Invention
[0012] According to the present invention, an effect is achieved in that an object in a specific state can be detected. [Brief description of the drawings]
[0013] [Figure 1] 1 is a diagram for explaining an overview of an object detection system S according to a first embodiment. [Diagram 2] FIG. 2 is a diagram for explaining an operation of the object detection device 10 according to the first embodiment in determining a detection area. [Diagram 3] 1 is a diagram for explaining the configuration of an object detection device 10. FIG. [Figure 4] 5 is a flowchart showing an example of an operation of the object detection device 10 according to the first embodiment to determine a detection area. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] <First embodiment> [Overview of Object Detection System S] FIG. 1 is a diagram for explaining an overview of an object detection system S according to a first embodiment. The object detection system S includes an imaging device 1, a display device 2, and an object detection device 10. The object detection system S detects a plurality of objects of a predetermined shape placed in an imaging area, and detects an object in a specific state from among the detected plurality of objects of the predetermined shape. The imaging area is, for example, the top surface of a table T shown in FIG. 1. The object of the predetermined shape is, for example, tableware such as a plate or a cup, and in the following description, a case in which the object of the predetermined shape is tableware is exemplified. The object in the specific state is, for example, tableware that has become empty and needs to be collected, and in the following description, is referred to as "tableware to be collected."
[0015] The imaging device 1 and the object detection device 10 are connected via a wired network or a wireless network. The display device 2 and the object detection device 10 are connected via a wired network or a wireless network. The wired network is, for example, a LAN (Local Area Network). The wireless network is, for example, a wireless LAN or Bluetooth (registered trademark). The imaging device 1 is, for example, a camera, and captures an image of the top surface of a table T, which is an imaging area. The imaging device 1 transmits multiple captured image data generated by capturing an image of the top surface of the table T to the object detection device 10.
[0016] The display device 2 is an information terminal such as a smartphone or a tablet. The display device 2 is an information terminal used, for example, by a store clerk of a store where the tableware is used. The display device 2 displays a detection result indicating that tableware to be collected has been detected. The detection result includes, for example, information for identifying a table T on which the tableware to be collected is located and the number of objects that have reached a specific state.
[0017] The object detection device 10 detects tableware to be collected based on the multiple captured image data output by the imaging device 1. The object detection device 10 determines a detection area for detecting tableware to be collected, and detects an object placed in the determined detection area as an object in a specific state.
[0018] To determine the detection area, the object detection device 10 first identifies the direction in which the multiple pieces of tableware placed on the top surface of the table T have been moved, based on the multiple pieces of image data of the top surface of the table T output by the imaging device 1. Next, the object detection device 10 determines, as the detection area, an area including the position where the multiple pieces of tableware have come to rest after moving in a predetermined direction (hereinafter, may be referred to as a "still area"). The predetermined direction is a direction in which the tableware can be presumed to have been moved for the purpose of collection, and for example, if there is an aisle on the left side of the table T shown in FIG. 1, it is the direction in which the tableware will move to the left side of the table T shown in FIG. 1.
[0019] The object detection device 10 detects the tableware placed in the determined detection area as tableware to be collected from among the tableware contained in the multiple captured image data. The object detection device 10 outputs to the display device 2 information for identifying the table T on which the tableware to be collected is located and the number of objects that have reached a specific state in association with each other.
[0020] In this way, the object detection device 10 determines the detection area based on the direction in which multiple dishes are moved, so that the object detection device 10 can detect that there are dishes to be collected even if the position for collecting the dishes has not been specified.
[0021] Fig. 2 is a diagram for explaining the operation of the object detection device 10 according to the first embodiment to determine a detection area. Fig. 2 is a diagram of the bottom surface of the private room R as viewed from the top surface of the private room R. The private room R is adjacent to an aisle A. A table T is installed in the center of the private room R, and multiple chairs C (C1 to C6) are placed close to the table T. Multiple dishes D (D1 to D6), which are objects of a predetermined shape, are placed on the top surface of the table T.
[0022] The dashed circle in Fig. 2 indicates the position of the tableware D before it was moved, and the solid circle indicates the position of the tableware D after it was moved. In Fig. 2, the imaging area is the top surface of table T. The direction in which the tableware D moves across the top surface of table T to a position close to the aisle is a predetermined direction from which it can be assumed that the tableware has been moved for the purpose of collection.
[0023] Fig. 2(a) is a diagram showing a state where multiple tableware D with food on them are being moved in a direction different from the predetermined direction. Fig. 2(b) is a diagram showing a state where multiple empty tableware D are being moved in the predetermined direction. Fig. 2(c) is a diagram showing a state where multiple empty tableware are being moved further in the predetermined direction from the position shown in Fig. 2(b).
[0024] As shown in Fig. 2(a), when multiple tableware D move from a position close to the aisle to a position far from the aisle, the object detection device 10 determines that the multiple tableware D have moved in a direction different from a predetermined direction and does not determine a detection area. On the other hand, as shown in Fig. 2(b), when multiple tableware D move in a direction closer to the aisle, the object detection device 10 determines multiple stationary regions P (P1 to P3) including the positions where the tableware D stopped after moving as the detection area.
[0025] As shown in Fig. 2(c), when multiple tableware D (D3-D6) placed in stationary areas P2, P3 move to stationary area P1, object detection device 10 may exclude stationary areas P2, P3 from the detection area. Object detection device 10 may determine that stationary area P1 is the detection area when multiple tableware D (D1-D6) placed in stationary area P1 move to aisle A, which is an area (external area) outside table T, which is the imaging area. By operating in this manner, object detection device 10 can detect the presence of tableware to be collected even when the area for detecting tableware to be collected has not been determined in advance.
[0026] [Configuration of object detection device 10] 3 is a diagram for explaining the configuration of the object detection device 10. The object detection device 10 has a storage unit 11 and a control unit 12. The storage unit 11 has storage media such as a read only memory (ROM), a random access memory (RAM), and a hard disk. The storage unit 11 stores a program executed by the control unit 12.
[0027] The control unit 12 is, for example, a CPU (Central Processing Unit). The control unit 12 executes a program stored in the storage unit 11 to function as an image acquisition unit 121, an object detection unit 122, a direction specification unit 123, a detection area determination unit 124, an object area detection unit 125, and an output unit 126. The image acquisition unit 121 acquires a plurality of captured image data generated by the imaging device 1 capturing an image of an imaging area at a plurality of times. The imaging area includes an area where an object of a predetermined shape may be placed, and is, for example, the top surface of a table T shown in FIG. 2.
[0028] The object detection unit 122 detects a plurality of objects of a predetermined shape placed in the imaging area based on the plurality of captured image data acquired by the image acquisition unit 121. For example, the object detection unit 122 detects tableware captured in each of the plurality of captured image data and identifies the position of the detected tableware. The orientation identification unit 123 acquires the position of the tableware in each of the plurality of captured image data identified by the object detection unit 122, and identifies the direction in which the plurality of tableware have moved based on the direction in which the acquired positions change.
[0029] The detection area determination unit 124 determines a stationary area including a position where an object moves in a predetermined direction and then stops, as a detection area for detecting the detection target object, which is an object to be detected. The predetermined direction is, for example, a direction toward aisle A shown in FIG. 2. The detection area determination unit 124 may determine, as a detection area, a dense area of the stationary area where the number of objects per unit area is equal to or greater than a threshold. The unit area is, for example, an area of table T shown in FIG. 2 in which two or more dishes D can be placed. The threshold is, for example, an integer equal to or greater than 2. The detection area determination unit 124 may determine, as a detection area, an area where two or more dishes are stacked.
[0030] For example, as shown in Fig. 2(b), when two pieces of tableware D are placed in a stationary area P1, which is a unit area, the detection area determination unit 124 determines the stationary area P1 as the detection area. By operating in this manner, the detection area determination unit 124 can determine an area in which a plurality of pieces of tableware to be collected are collected as the detection area.
[0031] After determining the dense area as the detection area, the detection area determination unit 124 may exclude the dense area from the detection area if the number of objects that move in a predetermined direction and then stop in the dense area is less than a threshold value for a predetermined period of time. The predetermined period is, for example, 5 minutes. The threshold value is, for example, an integer equal to or less than 1.
[0032] Specifically, as shown in Fig. 2(b), the detection area determination unit 124 determines the stationary areas P2 and P3 in which two pieces of tableware D are placed as the detection area. Next, as shown in Fig. 2(c), when the detection area determination unit 124 determines that the number of pieces of tableware D placed in the stationary areas P2 and P3 is one or less for five minutes or more after the plurality of pieces of tableware D placed in the stationary areas P2 and P3 move in a direction toward the aisle A, the detection area determination unit 124 excludes the stationary areas P2 and P3 from the detection area. By operating in this manner, even if the position where the tableware to be collected is placed has changed, the detection area determination unit 124 can change the detection area to an area including the changed position.
[0033] The detection area determination unit 124 may determine the still area as the detection area when the time that the object remains still after moving in a predetermined direction exceeds a threshold time. The threshold time is, for example, 5 minutes. For example, the detection area determination unit 124 determines the still area P1 as the detection area when multiple tableware D (D1, D2) that have moved to the still area P1 shown in FIG. 2(b) remain still in the still area P1 for 5 minutes or more. By operating in this manner, the detection area determination unit 124 can prevent erroneous determination of the detection area based on tableware that is temporarily placed in the detection area, for example.
[0034] When an object moves in a predetermined direction, stops, and then moves to an external area different from the area to be set as the detection area, the detection area determination unit 124 may determine the position where the object was stationary just before moving to the external area as the detection area. The external area is an area different from the imaging area, for example, the passage A shown in FIG. 2.
[0035] For example, as shown in Fig. 2(c), when multiple tableware D placed in the stationary area P1 move to the aisle A, which is an external area, the detection area determination unit 124 determines the stationary area P1 as the detection area. By operating in this manner, the detection area determination unit 124 can determine the position where the tableware was placed immediately before being collected as the detection area.
[0036] The object area detection unit 125 detects that an object has been placed in the detection area after the detection area determination unit 124 has determined the detection area. The object area detection unit 125, for example, determines whether or not the tableware included in each of the multiple captured image data detected by the object detection unit 122 is placed in the detection area determined by the detection area determination unit 124. The object area detection unit 125 detects the tableware determined to be placed in the detection area as tableware to be collected. The object area detection unit 125, for example, notifies the output unit 126 of information for identifying the table T on which the tableware to be collected is located and the number of tableware to be collected in association with each other.
[0037] The output unit 126 outputs that the object area detection unit 125 has detected an object. The output unit 126 transmits, for example, that the tableware has been detected to the display device 2 via a wired network or a wireless network. The output unit 126 outputs, for example, information for identifying the table T on which the collection target tableware is located, acquired from the object area detection unit 125, in association with the number of collection target tableware, to the display device 2.
[0038] By operating in this manner, the object detection device 10 can display the table T on which the tableware to be collected has been generated and the number of tableware to be collected placed in the detection area on the display device 2. As a result, a store clerk at the store where the tableware is used can see by viewing the display device 2 how many tableware to be collected has been generated on which table T.
[0039] [Flowchart of operation for determining detection area] 4 is a flowchart showing an example of an operation of the object detection device 10 according to the first embodiment to determine a detection area. The image acquisition unit 121 acquires a plurality of captured image data generated by the imaging device 1 capturing images of the imaging area at a plurality of times (S11). The object detection unit 122 specifies the positions of the plurality of tableware based on the plurality of captured image data acquired by the image acquisition unit 121. The orientation identification unit 123 identifies the orientation in which the plurality of tableware has moved based on the positions of the plurality of tableware identified by the object detection unit 122 (S12).
[0040] When the direction in which the plurality of tableware have moved as determined by the direction determination unit 123 is, for example, toward the exit, which is the direction of aisle A shown in Fig. 2 (YES in S13), the detection area determination unit 124 determines a still area including the position where the plurality of tableware have stopped moving after moving (S14). The detection area determination unit 124 determines, from among the determined still areas, an area that is a dense area where the number of tableware per unit area is equal to or exceeds a threshold (YES in S15) and where tableware that has been stationary for a period exceeding a threshold time is placed (YES in S16), as the detection area (S17).
[0041] If the identified still area is not a dense area where the number of dishes per unit area is equal to or greater than the threshold (NO in S15), but the dish moves to an external area other than the target area to be set as the detection area (YES in S18), the detection area determination unit 124 determines the position where the dish was still just before it moved as the detection area (S19).
[0042] If an operation to end the process of determining the detection area has not been performed (NO in S20), the object detection device 10 repeats the processes from S11 to S19. If an operation to end the process of determining the detection area has been performed (YES in S20), the object detection device 10 ends the process.
[0043] [Advantages of the object detection device 10 according to the first embodiment] As described above, the object detection device 10 has an orientation identification unit 123 that identifies the direction in which multiple tableware are moving based on image data generated by imaging an imaging area, a detection area determination unit 124 that, when the orientation of the multiple tableware identified by the orientation identification unit 123 is a predetermined orientation, determines a still area including the position where the object came to rest after moving as the detection area, and an object area detection unit 125 that detects tableware placed in the detection area determined by the detection area determination unit 124 as tableware to be collected.
[0044] In this way, the object area detection unit 125 detects tableware placed in the detection area determined by the detection area determination unit 124, taking into consideration the direction in which the multiple tableware moved, so that the object detection device 10 can detect tableware to be collected even if the area for detecting tableware to be collected has not been determined in advance.
[0045] <Second embodiment> The object detection system S according to the second embodiment differs from the object detection system S shown in FIG. 1 in that the imaging device 1 captures an image of the inside of a fenced farm where animals are kept as an imaging area, but is otherwise the same. The object detection system S detects a number of animals inside the fenced area, and detects an animal in a specific state from among the detected animals. An animal in a specific state is, for example, an animal that may go outside the fenced area. The display device 2 displays, for example, information for identifying an area where animals may go outside the fenced area, and the number of animals that may go outside the fenced area.
[0046] The configuration of the object detection device 10 according to the second embodiment is the same as the configuration of the object detection device 10 shown in Fig. 3. The object detection device 10 detects animals based on a plurality of captured image data output by the imaging device 1. The object detection device 10 determines a detection area, which is an area where an animal may go outside a fence, and detects an animal in the determined detection area. The detection area is, for example, an area near the fence.
[0047] The image acquisition unit 121 acquires a plurality of captured image data generated by the imaging device 1 capturing an image inside the fence. The object detection unit 122 identifies the positions of the plurality of animals inside the fence based on the captured image data acquired by the image acquisition unit 121. The direction identification unit 123 identifies the direction in which the plurality of animals moved based on the positions of the plurality of animals identified by the object detection unit 122. The detection area determination unit 124 determines, as the detection area, a still area including a position in which the animal inside the fence came to rest after moving in a predetermined direction.
[0048] The predetermined direction is, for example, the direction of a fence. In the vicinity of a dense area where the number of animals per unit area is equal to or greater than a threshold, a suspicious person may be trying to lure the animals using bait or the fence may be broken, so the detection area determination unit 124 may determine the dense area as the detection area.
[0049] The object area detection unit 125 detects the presence of an animal in the detection area after the detection area determination unit 124 has determined the detection area. The object area detection unit 125 detects a plurality of animals included in the captured image data acquired by the image acquisition unit 121, and detects, among the plurality of detected animals, an animal included in the detection area determined by the detection area determination unit 124 as an animal that may go outside the fence. The output unit 126 outputs to the display device 2 the animal that may go outside the fence detected by the object area detection unit 125.
[0050] In this way, the object detection device 10 can detect the number of animals that may get outside the fence among the multiple animals inside the fence and the area that the animals are in. As a result, for example, if a suspicious person is trying to steal an animal by luring it with food, or if an animal escapes from the fence because it is broken, the object detection device 10 can issue a warning to the zookeeper by notifying the display device 2 of the animal that may get outside the fence.
[0051] [Advantages of the object detection device 10 according to the second embodiment] As described above, the object detection device 10 has an orientation identification unit 123 that identifies the direction in which multiple animals have moved based on multiple captured image data generated by capturing images of inside a fence, which is an imaging area, a detection area determination unit 124 that, if the direction in which the animal moved identified by the orientation identification unit 123 is a specified direction, determines a still area including the position where the animal came to rest after moving as a detection area, and an object area detection unit 125 that detects, from among the multiple animals included in the captured image data, an animal that is in the detection area determined by the detection area determination unit 124 as an animal that has entered a specific state.
[0052] By operating in this manner, the object detection device 10 can identify an area where an animal may possibly go outside the fence, and notify the user of an animal that is in the identified area.
[0053] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. For example, all or part of the device can be configured by distributing or integrating functionally or physically in any unit. In addition, new embodiments resulting from any combination of multiple embodiments are also included in the embodiments of the present invention. The effect of the new embodiment resulting from the combination combines the effect of the original embodiment. [Explanation of symbols]
[0054] 1. Imaging device 2 Display device 10 Object detection device 11 Storage section 12 Control section 121 Image acquisition unit 122 Object detection unit 123 Orientation Identification Unit 124 Detection area determination unit 125 Object area detection unit 126 Output section
Claims
1. an image acquisition unit that acquires a plurality of pieces of captured image data generated by capturing images of an imaging area at a plurality of times; an object detection unit that detects a plurality of objects having a predetermined shape in the imaging area based on the plurality of pieces of captured image data and identifies the positions of the detected objects; a direction identification unit that identifies a direction in which the object has moved in the image capture area based on the plurality of positions identified by the object detection unit; a detection area determination unit that determines a stationary region including positions where the plurality of objects move in a predetermined direction and then come to rest as a detection area for detecting a monitored object that is a monitored object; an object area detection unit that detects the presence of the object in the detection area after the detection area determination unit has determined the detection area; an output unit that outputs information indicating that the object area detection unit has detected the object; An object detection device having the following features:
2. The detection area determination unit determines, as the detection area, a dense region in which the number of the objects per unit area is equal to or greater than a threshold value, from among the still region. The object detection device according to claim 1 .
3. the detection area determination unit, after determining the dense area as the detection area, excludes the dense area from the detection area when the number of the objects that move in the predetermined direction and then come to rest in the dense area is less than the threshold value for a predetermined period of time; The object detection device according to claim 2 .
4. the detection area determination unit determines the stationary region as the detection area when a time during which the object remains stationary after moving in a predetermined direction exceeds a threshold time; The object detection device according to claim 1 .
5. When the object moves in a predetermined direction and then stops, and then moves to an external area different from a target area to be set as the detection area, the detection area determination unit determines, as the detection area, a position where the object was stationary just before moving to the external area. The object detection device according to claim 1 .
6. Computer, an image acquisition unit that acquires a plurality of pieces of captured image data generated by capturing images of an imaging area at a plurality of times; an object detection unit that detects a plurality of objects having a predetermined shape in the imaging area based on the plurality of pieces of captured image data and identifies positions of the detected objects; a direction identification unit that identifies a direction in which the object has moved in the image capture area based on the plurality of positions identified by the object detection unit; a detection area determination unit that determines a stationary region including positions where the plurality of objects move in a predetermined direction and then come to rest as a detection area for detecting a monitored object that is the object to be monitored; an object area detection unit that detects the presence of the object in the detection area after the detection area determination unit has determined the detection area; and an output unit that outputs the detection of the object by the object area detection unit; A program to function as a
Citation Information
Patent Citations
Kaiten sushi order system, and transmitter and monitor used for the same
JP2004242693A
Stay-time measurement apparatus,stay-time measurement system and stay-time measurement method
JP2015069639A
