Method and apparatus for detecting item entry-exit in chamber, intelligent household appliance, and storage medium

By arranging camera and projection devices on the top and side walls of smart home appliances to detect the entry and exit of items in the chamber, the problem of cumbersome and inefficient detection in the existing technology is solved, and the sensorless detection of items in and out of the chamber is achieved, improving the user experience.

WO2024221557A1PCT designated stage expired Publication Date: 2024-10-31HEFEI MIDEA REFRIGERATOR CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/099642
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2023-06-12
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing methods for detecting items entering and exiting the chamber of home appliances are cumbersome and inefficient, requiring users to manually input information and prone to errors.

Method used

Camera devices and projection devices are installed on the top and side walls of smart home appliances to detect feature areas and light areas through video data, determine the movement trend of items, and achieve sensorless detection of items entering and exiting the chamber.

Benefits of technology

It can efficiently and simply detect the entry and exit of items in the chamber without additional user operations, significantly improving the user experience and being more efficient than existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023099642_31102024_PF_FP_ABST
    Figure CN2023099642_31102024_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for detecting item entry-exit in a chamber, an intelligent household appliance, and a storage medium. The method comprises: acquiring video data captured for a target chamber, a projection apparatus being turned on during video data capture, and the projection apparatus projecting a light area in the direction toward the bottom side wall of the target chamber (101); detecting the video data to obtain at least one piece of target frame data comprising a feature area, and feature position information of each feature area (102); performing light area detection on each piece of target frame data to obtain light position information of the light area in each piece of target frame data (103); determining movement trend data of an item according to the feature position information and the light position information of each piece of target frame data (104); and on the basis of the movement trend data, determining item entry-exit information in the target chamber during video data capture (105).
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for detecting entry and exit of objects in a chamber, smart home appliance, and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310484868.2, filed on April 27, 2023, entitled “Method, device and smart appliance for detecting entry and exit of objects in a chamber”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the fields of smart home appliances and artificial intelligence, and in particular to a method and device for detecting the entry and exit of objects in a cavity, a smart home appliance, and a storage medium. Background Art

[0004] With technological development and innovation, the field of home appliances has gradually begun to introduce new technologies to upgrade functions and provide consumers with more intelligent products. For example, in the past, the entry and exit of items in the cavity of home appliances was based on the user's personal memory, which was prone to errors. Some existing home appliances can allow users to manually input the entry and exit information of items through mobile phone apps or built-in display screens, but this requires additional manual operation, which is cumbersome and inefficient.

[0005] Summary of the Invention

[0006] The present application proposes a method, device, smart home appliance and storage medium for detecting the entry and exit of objects in a chamber, which can realize non-sensing detection of the entry and exit of objects in the chamber.

[0007] According to a first aspect of the present application, some embodiments of the present application provide a method for detecting the entry and exit of an object in a chamber, wherein a smart home appliance is provided with a camera device and a projection device on the top and side walls of a target chamber, the method comprising:

[0008] Acquire video data shot for the target chamber, wherein a projection device is turned on during the video data shooting process, and the projection device projects a light area toward the bottom side wall of the target chamber;

[0009] Detecting the video data to obtain at least one target frame data containing a feature region and feature position information of each feature region;

[0010] Performing light region detection on each target frame data to obtain light position information of the light region in each target frame data;

[0011] Determine the movement trend data of the object based on the feature position information and light position information of each target frame data;

[0012] Based on the movement trend data, information on the entry and exit of objects in the target chamber during the capture of the video data is determined.

[0013] According to a second aspect of the present application, some embodiments of the present application further provide a device for detecting the entry and exit of an object in a chamber, wherein a smart home appliance is provided with a camera device and a projection device on the top side wall of a target chamber, and the device comprises:

[0014] An acquisition module is used to acquire video data shot for the target chamber, wherein the projection device is turned on during the video data shooting process, and projects a light area toward the bottom side wall of the target chamber;

[0015] A feature detection module is used to detect the video data to obtain at least one target frame data containing a feature area and feature position information of each feature area;

[0016] A light region detection module is used to perform light region detection on each target frame data to obtain light position information of the light region in each target frame data;

[0017] a trend determination module, configured to determine movement trend data of an object based on feature position information and light position information of each target frame data;

[0018] The entry and exit determination module is used to determine the entry and exit information of objects in the target chamber during the video data shooting period based on the movement trend data.

[0019] In some embodiments of the present application, a door device is provided on the front side of the smart home appliance, and the acquisition module includes an opening submodule and a closing submodule, wherein:

[0020] The opening submodule is used to control the projection device to turn on and the camera device to capture the target chamber when a door opening signal corresponding to the door device is detected, and the projection device projects a light area toward the bottom side wall of the target chamber;

[0021] The closing submodule is used to control the projection device to close and the shooting device to stop shooting the target cavity to obtain video data when a door closing signal corresponding to the door body is detected.

[0022] In some embodiments of the present application, the feature detection module includes an extraction submodule and a detection submodule, wherein:

[0023] The extraction submodule is used to extract at least two frames of data from the video data to obtain a frame data set to be detected;

[0024] The detection submodule is used to detect the frame data set to be detected to obtain at least one target frame data containing a feature area and feature position information of each feature area.

[0025] In some embodiments of the present application, the extraction submodule may be used to:

[0026] Extract at least two frames of data from the video data; determine the sequence information of each frame of data; and splice each frame of data together according to the sequence information of each frame of data to obtain a frame data set to be detected.

[0027] In some embodiments of the present application, the feature includes a hand area, the feature position information includes hand position information, and the detection submodule may include a hand detection unit and an object detection unit, wherein:

[0028] A hand detection unit, configured to perform hand detection on a frame data set to be detected, and obtain at least one candidate frame data containing a hand region, and hand position information of each hand region;

[0029] The object detection unit is used to perform object detection on each candidate frame data to obtain target frame data containing an object area that overlaps with the hand area.

[0030] In some embodiments of the present application, the feature region includes an object region, the feature position information includes object position information, and the detection submodule may include a candidate unit and a target unit, wherein:

[0031] A candidate unit is used to perform hand detection on the frame data set to be detected to obtain at least one candidate frame data containing a hand area;

[0032] The target unit is used to perform object detection on each candidate frame data to obtain target frame data containing an object area that overlaps with the hand area, and object position information of each object area.

[0033] In some embodiments of the present application, the device for detecting the entry and exit of objects in a chamber further includes:

[0034] A quantity determination module is used to determine the quantity information of the target frame data;

[0035] a negation module, configured to determine that no object enters or exits the target chamber during the video data capture period when the quantity information is less than a preset first threshold;

[0036] At this time, the light area detection module may include a light area detection submodule, wherein:

[0037] The light area detection submodule is used to perform light area detection on each target frame data when the quantity information is greater than a preset second threshold value, and obtain light position information of the light area in each target frame data.

[0038] In some embodiments of the present application, the trend determination module may be used to:

[0039] The intersection of the feature position information and light position information of each target frame data is calculated to obtain the relative position information of the object in the light area in each target frame data; according to the sequence information and relative position information of each target frame data, the movement trend data of the object is determined.

[0040] In some embodiments of the present application, the entry and exit determination module may be used to:

[0041] When the movement trend data matches the preset entry trend data, it is determined that an object has entered the target chamber during the video data shooting period; when the movement trend data matches the preset removal trend data, it is determined that an object has been removed from the target chamber during the video data shooting period.

[0042] According to the third aspect of the present application, some embodiments of the present application also provide a smart home appliance, including a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps of any method for detecting the entry and exit of objects in a cavity provided by some embodiments of the first aspect of the present application.

[0043] According to the fourth aspect of the present application, some embodiments of the present application also provide a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the steps of any method for detecting the entry and exit of objects in a chamber provided by some embodiments of the first aspect of the present application.

[0044] The present application can set a camera device on the top side wall of the smart home appliance cavity. When the door device of the smart home appliance is in the open state, the camera device is controlled to shoot the cavity and record the user's operations in the cavity. The shooting is stopped when the door device is in the closed state to obtain video data. By detecting the video data, target frame data containing the hand area and the object area can be obtained, wherein the hand area and the object area overlap, that is, the user has taken the object. Finally, according to the quantity information of the target frame data, it can be determined whether the object picking operation was performed in the target cavity during the video data shooting period, that is, during the period when the door device is open. The present application does not require the user to actively perform additional operations, and can sense whether there are objects entering or exiting the target cavity. Compared with the existing technology, it is more efficient and simple, and significantly improves the user experience.

[0045] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0047] FIG1 is a schematic diagram of a system for detecting the entry and exit of objects in a chamber according to some embodiments of the present application;

[0048] FIG2 is a schematic diagram of another scenario of a system for detecting an entry and exit of an object in a chamber provided by some embodiments of the present application;

[0049] FIG3 is a flow chart of a method for detecting the entry and exit of an object in a chamber provided in some embodiments of the present application;

[0050] FIG4 is a schematic diagram of light regions of a method for detecting entry and exit of an object in a chamber provided by some embodiments of the present application;

[0051] FIG5 is another flowchart of a method for detecting the entry and exit of objects in a chamber provided by some embodiments of the present application;

[0052] FIG6 is a schematic structural diagram of a device for detecting the entry and exit of objects in a chamber provided in some embodiments of the present application. DETAILED DESCRIPTION

[0053] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0054] The present application provides a method, device, smart home appliance, and storage medium for detecting the entry and exit of objects in a chamber. For example, the present application can be integrated into a system for detecting the entry and exit of objects in a chamber.

[0055] The object entry and exit detection system in the chamber can be implemented by at least one computer device, which can include various types including terminals or servers. Terminals can include smart phones, tablets, portable computers, personal wearable devices, smart home appliances, etc. Servers can include physical servers, cloud servers, etc. A physical server can be a single server, or a server cluster consisting of at least two servers, or a distributed system, etc. The cloud server can provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Different computer devices can be connected by wire or wirelessly, and this application does not impose any restrictions on this.

[0056] A method for detecting the entry and exit of an object in a chamber of the present application may be integrated into a system for detecting the entry and exit of an object in a chamber. The system for detecting the entry and exit of an object in a chamber may include a device for detecting the entry and exit of an object in a chamber.

[0057] The device for detecting the entry and exit of objects in the chamber can be integrated into a terminal, which can be a smart home appliance. The smart home appliance is provided with a camera device and a projection device on the top side wall of the target chamber. The smart home appliance can obtain video data shot for the target chamber. During the video data shooting process, the projection device is turned on, and the projection device projects a light area toward the bottom side wall of the target chamber; the video data is detected to obtain at least one target frame data containing a feature area, and feature position information of each feature area; light area detection is performed on each target frame data to obtain light position information of the light area in each target frame data; according to the feature position information and light position information of each target frame data, the movement trend data of the object is determined; based on the movement trend data, the entry and exit information of the object in the target chamber during the video data shooting is determined.

[0058] For example, see Figure 1, which shows a smart refrigerator 10 having a refrigerator compartment. A camera 101 and a projection light bar 102 are located on the top sidewall of the refrigerator compartment. Smart refrigerator 10 can capture video data of the refrigerator compartment captured by camera 101. During the capture process, projection light bar 102 is on, projecting a light area 1 toward the bottom sidewall. The video data can record a user's actions in removing food from the refrigerator.

[0059] The smart refrigerator 10 can perform object detection on the frame data extracted from the video data to obtain target frame data containing the food area, and the food position information of the food area in the target frame data. Then, light area detection can be performed on each target frame data to obtain the light position information of the light area thereon. According to the food position information and light position information of each target frame data, the movement trend data of the food is determined. Finally, based on the movement trend data, it is determined whether there is food entering or exiting the target chamber during the video data shooting, whether the food is entering or exiting.

[0060] The device for detecting the entry and exit of objects in the chamber can be integrated into the terminal and the cloud server. The terminal can be a smart home appliance. The smart home appliance is provided with a camera device and a projection device on the top side wall of the target chamber. The smart home appliance can shoot and send video data to the cloud server in real time. The projection device is turned on during the shooting of the camera device, and the projection device projects a light area toward the bottom side wall of the target chamber.

[0061] The cloud server can acquire video data captured of the target chamber and perform detection on the video data to obtain at least one target frame data containing a characteristic region and characteristic position information of each characteristic region. The cloud server can then perform light region detection on each target frame data to obtain light position information of the light region in each target frame data. Based on the characteristic position information and light position information of each target frame data, the cloud server can determine object movement trend data. Based on the movement trend data, the cloud server can also determine object entry and exit information within the target chamber during the video capture period. The cloud server can also return this object entry and exit information to the smart home appliance.

[0062] For example, referring to FIG. 2 , FIG. 2 includes a smart refrigerator 20 and a cloud server 30 .

[0063] Smart refrigerator 20 includes a refrigerator compartment. A camera and a projection light strip are installed on the top sidewall of the refrigerator compartment. Smart refrigerator 20 can capture video data of the refrigerator compartment captured by the camera. During camera capture, the projection light strip is turned on, projecting a light field 1 toward the bottom sidewall. The video data can record a user's actions of removing food from the smart refrigerator. Smart refrigerator 20 can transmit the captured video data to a cloud server 30 in real time.

[0064] The cloud server 30 can perform object detection on the frame data extracted from the video data to obtain target frame data containing the food area and food location information of the food area in the target frame data. Then, light area detection can be performed on each target frame data to obtain light location information of the light area. Based on the food location information and light location information of each target frame data, the movement trend data of the food can be determined. Finally, based on the movement trend data, the food in and out information of the target chamber during the video data shooting period can be determined, such as whether food was in or out, whether food was in or out. The cloud server 30 can also return the food in and out information it obtained to the smart refrigerator 20.

[0065] The present application will be described in detail below with reference to some embodiments. As shown in FIG3 , FIG3 is a flow chart of a method for detecting the entry and exit of an object in a chamber according to the present application. The flow may include:

[0066] 101. Obtain video data shot for a target chamber. During the video data shooting process, a projection device is turned on to project a light area toward a bottom sidewall of the target chamber.

[0067] Among them, the target chamber can include a space that can be formed for storing items, which is a sealed or unsealed space, and the space can also be converted between a sealed state and an unsealed state. For example, the target chamber can be the refrigerator or freezer of a smart refrigerator.

[0068] The target chamber may include multiple sidewalls. The shape, orientation, and number of the sidewalls may vary depending on the shape of the target chamber. For example, the refrigerator compartment of a smart refrigerator is typically a rectangular parallelepiped. The top and bottom sidewalls of the target chamber can be determined based on the relative positions of the sidewalls. In this application, a camera and projection device can be installed on the top sidewall.

[0069] The camera device can capture images, record videos, and other functions. The camera device can be a smart camera or a standard camera, and can be connected to smart home appliances and / or cloud servers via wired or wireless connections. The camera device can capture the target chamber, and thus capture the entry and exit of items in the target chamber.

[0070] The projection device may include a device capable of projecting a light area, such as a projector or light strip. The light area projected by the projection device may be static or dynamic, and may contain a single color or multiple colors. For example, in Figure 4, the upper half of light area 1 may be color 1, the lower half may be color 2, light area 2 may entirely contain color 3, and light area 3 may entirely contain color 4. The light areas may also have various shapes, such as in Figure 3, where light area 1 is rectangular, light area 2 is elliptical, and light area 3 is trapezoidal. The light areas may be displayed on an object or plane facing the bottom sidewall, such as on the bottom sidewall, on an object, or on a hand holding an object, etc.

[0071] In this application, when the camera device captures the target chamber and the projection device is in the on state, the captured video data also records the light area, so that the computer equipment can perform light area detection and feature detection based on the video data, and finally determine the entry and exit status of objects in the target chamber, thereby realizing non-sensing detection.

[0072] For example, acquiring video data can include real-time acquisition, i.e., acquiring partial video data while the video is being recorded, or acquiring the entire video data after it has been recorded. Computer devices such as terminals and servers can acquire video data captured by cameras. For example, smart refrigerators can acquire video data captured by cameras, while cloud servers can acquire video data captured by cameras in real time.

[0073] In some embodiments of the present application, a computer device can control a camera and a projection device to capture and acquire video data. The front sidewall of the target chamber can be a door device, and the computer device can automatically control the camera device to set the video and the projection device to open and close by opening and closing the door device, thereby achieving efficient and automatic data acquisition.

[0074] For example, the door status can be set on the front side of the smart home appliance. When the smart home appliance detects that the door device is in the open state, it can control the projection device to turn on and control the camera device to shoot the target chamber. When the smart home appliance detects that the door device is in the closed state, it can control the projection device to turn off and control the camera device to end shooting. In this way, the smart home appliance can obtain the video data shot by the camera device.

[0075] For example, the smart refrigerator refrigerator compartment is provided with a refrigerator door. When the smart refrigerator detects the refrigerator door opening signal, it controls the light strip used for projection to turn on and controls the camera to shoot video. During the period when the refrigerator door is open, the user's operation on the items in the refrigerator compartment can be captured. When the smart refrigerator detects the refrigerator door closing signal, it controls the light strip to turn off and controls the camera to stop shooting video to obtain video data.

[0076] 102. Detect the video data to obtain at least one target frame data containing a feature region and feature position information of each feature region.

[0077] The target frame data may include frame data containing a feature region, obtained by detecting a large amount of frame data contained in the video data. The feature region may include at least one detected feature, which may include content that can reflect the action of picking up an object, such as an object or a hand. Feature position information may include the location of the feature region in the target frame data; for example, the feature region containing object 1 is located in the upper left portion of target frame data 1.

[0078] For example, detection of video data can be achieved through deep learning models commonly used in the field of artificial intelligence. Deep learning models can include one-stage models, two-stage models, etc. For example, such as the region model with convolutional neural network features (RCNN, Regions with CNN Features), the fast RCNN model (Fast RCNN), the faster RCNN model (Faster RCNN), the feature pyramid pooling network model (SPPNet, Spatial Pyramid Pooling in Deep Convolutional Networks), etc. The selection of the deep learning model can be flexibly determined according to the characteristics of the features and the application scenarios, and will not be repeated here.

[0079] In some embodiments of the present application, a preliminary extraction of the frame data of the video data can be performed, retaining the frame data with significant information changes before and after, to obtain a frame data set to be detected. In this case, the frame data set to be detected can include at least two frames of data. The frame data within the frame data set to be detected is then detected to obtain target frame data and feature position information of the feature regions contained in each target frame data. Preliminary extraction of all the frame data of the video data can filter out frame data with no significant changes before and after, that is, frame data with no objects entering or exiting, greatly reducing the amount of frame data to be detected and significantly improving data detection efficiency.

[0080] For example, frame data 1-20 are all identical frame data, and there are large changes between adjacent frame data of frame data 20-30. The computer device can filter out frame data 1-frame data 20 of video data 1, extract and retain frame data 20-30, and obtain data set 1 to be detected.

[0081] In some embodiments of the present application, video data can be extracted to obtain at least two frames of data. The order of the frames in the video data can be used to determine the order of each frame. The frame data and position information can be stored in a computer device in the form of a matrix, tensor, etc. For example, the frame data can include a three-dimensional tensor represented based on the three RGB color channels. The order information can include a one-dimensional array represented based on time information or precedence order information.

[0082] In order to further improve the detection efficiency, all frame data can be spliced ​​into four-dimensional tensor data according to the sequence information of each frame data. For example, at least two extracted frame data can be spliced ​​together according to the time sequence information to obtain RGBT four-dimensional tensor data.

[0083] In this way, feature detection of all frame data can be achieved in fewer rounds, which can reduce the amount of data to be detected and significantly improve detection efficiency.

[0084] For example, when a user takes an object from a target chamber, the object may move. The object may be moved by the user's hands or other body parts, or by auxiliary tools such as clips. Therefore, multiple situations can be considered when performing feature detection.

[0085] In some embodiments of the present application, direct object detection can be performed. This involves performing object detection on the target frame dataset to obtain target frame data containing object regions, as well as information about the object's location within the target frame data to which it belongs. If the object is moved by auxiliary tools, such as automated conveyor belts, grippers, or robots, and the auxiliary tools do not significantly obscure the object's original form, direct object detection can be performed, effectively conserving the computational resources required for detection.

[0086] For example, the video data shot in the cold storage room of a smart refrigerator is extracted to obtain a frame data set 1 to be detected, and food detection is performed on the frame data set 1 to be detected to determine the target frame data containing the food area and the food location information of each food area in the target frame data to which it belongs.

[0087] In some embodiments of the present application, hand detection can be first performed on the data set to be detected to determine candidate frame data containing hand areas and hand position information of each hand area in the candidate frame data to which it belongs. Then, object detection can be performed on the candidate frame data to determine the object area of ​​each candidate frame data and object position information of each object area in the candidate frame data to which it belongs. When the object area overlaps with the hand area, the candidate frame data is determined as the target frame data.

[0088] When the hand picks up an object, the hand and the object will partially overlap. The volume of the object and the hand is different, and the degree of overlap between the two is also different. Therefore, when implementing this application, it can be flexibly processed according to actual needs and the characteristics of the detection model to determine the feature area as the hand area or the object area, and determine the feature position information as the hand position information or the object position information.

[0089] For example, the video data captured by the cold storage compartment of a smart refrigerator can be extracted to obtain a frame data set 1 to be detected. Hand detection can be performed on the frame data set 1 to be detected to determine multiple candidate frame data containing hand areas, as well as the hand position information of each hand area in the candidate frame data to which it belongs. Then, food detection can be performed on each candidate frame data to determine the food area and the food position information of each food area in the candidate frame data to which it belongs. The candidate frame data in which the food area and the hand area overlap is determined as the target frame data, the hand area of ​​the target frame data is determined as the feature area, and the hand position information is determined as the feature position information. This method can be applied to situations where the hand obstructs a lot of food, or where the detection model is more accurate in detecting hand grip.

[0090] For another example, the video data shot in the cold storage room of a smart refrigerator can be extracted to obtain a frame data set 1 to be detected, and hand detection can be performed on the frame data set 1 to be detected to determine multiple candidate frame data containing hand areas, as well as the hand position information of each hand area in the candidate frame data to which it belongs. Then, food detection can be performed on each candidate frame data to determine the food area and the food position information of each food area in the candidate frame data to which it belongs. The candidate frame data in which the food area and the hand area overlap is determined as the target frame data, the food area of ​​the target frame data is determined as the feature area, and the food position information is determined as the feature position information. This method can be used when the food is large, the hand holds a small part of the food, or when the detection model is more accurate in detecting food.

[0091] 103. Perform light area detection on each target frame data to obtain light position information of the light area in each target frame data.

[0092] The light position information may include position information of light regions in the target frame data obtained through light region detection. Light region detection on the target frame data can determine the light regions contained therein and the light position information of the light regions within the target frame data to which they belong. For example, light position detection on target frame data 1 can determine rectangular light region 1 contained therein and light position information 1 of light region 1.

[0093] For example, detection of target frame data can be achieved through deep learning models commonly used in the field of artificial intelligence. Deep learning models can include one-stage models, two-stage models, etc. For example, such as the region model with convolutional neural network features (RCNN, Regions with CNN Features), the fast RCNN model (Fast RCNN), the faster RCNN model (Faster RCNN), the feature pyramid pooling network model (Spatial Pyramid Pooling in Deep Convolutional Networks, SPPNet), etc. The selection of the deep learning model can be flexibly determined according to the characteristics of the light area and the application scenario, and will not be repeated here.

[0094] The present application sets a projection device on the top and side walls of the target chamber and captures video data of the target chamber. The video data can record the light area projected by the projection device on the objects in the target chamber or on the side walls, and then through detection and other measures, the entry and exit status of objects in the target chamber can be finally determined unconsciously.

[0095] In some embodiments of the present application, the quantity information of the target frame data can be used to further assist in the judgment of items. In some scenarios, the items may move naturally due to placement problems (such as falling, rolling, etc.), or the user may just pick up the item to check. In such cases, the quantity information of the target frame data is significantly different from the quantity information of the target frame data in the case of conventional items entering and exiting. Therefore, in order to further improve the detection rate of items entering and exiting, the following method can be used for auxiliary judgment.

[0096] For example, the number of target frame data can be determined by counting or other methods. When the number is less than a preset first threshold, it is determined that no objects entered or exited the target chamber during the video data capture period. When the number is greater than a preset second threshold, light region detection can be performed on each target frame data to obtain light position information of the light region in each target frame data. The preset first threshold and the preset second threshold can be the same or different data and can be flexibly adjusted and modified in actual applications.

[0097] For example, it can be determined that there is quantity information 1 of the target frame data in which the hand area and the food area overlap. When the quantity information 1 is less than the threshold 1, the smart refrigerator 1 can determine that there is no food entering or exiting the refrigerator during the shooting of the video data of the refrigerator; when the quantity information 1 is greater than the threshold 2, the smart refrigerator 1 can perform further operations on the target frame data, such as performing light area detection on the target frame data to obtain the light position information of the light area in each target frame data.

[0098] 104. Determine the movement trend data of the object based on the feature position information and light position information of each target frame data.

[0099] The movement trend data may represent a trend of changes in the physical position of the object in the target chamber. For example, the movement trend data may represent that the object may move from a deep position to an edge of the target chamber.

[0100] There are many ways to determine the movement trend data of an object based on the characteristic position information and light position information of each target frame data. For example, the characteristic position information and light position information of each target frame data can be fused in turn, and the score of each target frame data can be obtained based on the fusion result, and then the scores corresponding to all target frame data can be obtained by fusing the scores. When the score result matches the preset range 1, the movement trend data of the object is determined to be the movement trend data 1 corresponding to the preset range 1.

[0101] In some embodiments of the present application, the feature position information and light position information of each target frame data can be intersected to obtain the relative position information of the object in the light area of ​​each target frame data. The light area is fixed during the video shooting process, and the object will move as it is picked up. Therefore, in the same light area, the relative position of the object will change. The light position information and feature position of different target frame data can be intersected to obtain the changed relative position information. Then, the movement trend data of the object can be determined based on the sequence information and relative position information of each target frame data. The relative position information is determined in sequence according to the sequence information to obtain the movement trend of the object in the light area (such as from the edge along the curve to the inside, from the first coordinate to the straight line to the second coordinate, etc.), that is, the movement trend data of the object is obtained.

[0102] The present application can determine the movement trend of an object in a target chamber during video shooting without any additional operation by the user through light position information and characteristic position information representing the position of the object, which is simple and efficient.

[0103] 105. Determine, based on the movement trend data, information on objects entering and exiting the target chamber during the video data capture period.

[0104] Among them, the information on the entry and exit of items may include information such as the entry and exit of items in the target chamber during the video data shooting. There can be many ways to determine the entry and exit information of items in the target chamber during the video data shooting based on the movement trend data. For example, the movement trend data can be fused and calculated to obtain a score. When the score is higher than the preset third threshold, it is determined that an item has entered during the video shooting. When the score is lower than the preset third threshold, it is determined that an item has been taken out during the video shooting.

[0105] In some embodiments of the present application, the computer device can pre-save preset entry trend data and preset removal trend data. It should be noted that due to the different structures of the target chambers, the position of the door structure may be different. Therefore, the preset entry trend data and preset removal trend data of different smart home appliances may be different, and need to be flexibly determined according to the structure. For example, if the target chamber is the refrigerator compartment of a smart refrigerator, the camera device and the projection device can be set on the top side wall, and the preset entry trend data can be represented as the refrigerator compartment from the edge to the inside, and the change of relative position information can be reflected from bottom to top. For another example, if the target chamber is the freezer compartment of a smart freezer, the camera device and the projection device can be set on the front side wall, and the predicted entry trend data can be represented as the freezer compartment from top to bottom, and the change of relative position information can be reflected from top to bottom.

[0106] When the movement trend data is obtained, the movement trend data can be directly compared with the two. If the movement trend data matches the preset entry trend data, it is determined that an object has entered the target chamber during the video data shooting; if the movement trend data matches the preset removal trend data, it is determined that an object has been taken out of the target chamber during the video data shooting.

[0107] For example, by processing the video data captured by the cold storage chamber 1 of the smart refrigerator 1, movement trend data 1 representing the movement trend of objects during the video shooting can be obtained. If the movement trend data 1 matches the preset entry trend data, it can be determined that food was placed in the cold storage 1 during the video shooting.

[0108] The present application can set a camera device on the top side wall of the smart home appliance cavity. When the door device of the smart home appliance is in the open state, the camera device is controlled to shoot the cavity and record the user's operations in the cavity. The shooting is stopped when the door device is in the closed state to obtain video data. By detecting the video data, target frame data containing the hand area and the object area can be obtained, wherein the hand area and the object area overlap, that is, the user has taken the object. Finally, according to the quantity information of the target frame data, it can be determined whether the object picking operation was performed in the target cavity during the video data shooting period, that is, during the period when the door device is open. The present application does not require the user to actively perform additional operations, and can sense whether there are objects entering or exiting the target cavity. Compared with the existing technology, it is more efficient and simple, and significantly improves the user experience.

[0109] The present application will be described in detail below in conjunction with some embodiments. As shown in Figure 5, Figure 5 is a flow chart of a method for detecting the entry and exit of objects in a chamber of the present application scheme. In some embodiments, as shown in Figure 1, the target chamber can be the refrigerator compartment of a smart refrigerator, a refrigerator door is provided on the front side of the refrigerator compartment, and a camera and a projection light strip are provided on the top side wall of the refrigerator compartment. The projection light strip can project a light strip in the direction from the bottom side wall toward the bottom side wall.

[0110] For example, as shown in Figure 5, when the smart refrigerator detects a user opening the door, it controls the camera to capture video, compresses and transmits the video stream, and uploads it to the cloud server. This process ceases when it detects the user closing the door. The cloud server receives and stores the video stream transmitted by the smart refrigerator and extracts it. For example, it extracts frames with significant information changes compared to the previous frame from the multiple frames in the video stream as keyframes. The keyframes are then concatenated in chronological order to form a four-dimensional tensor, effectively reducing data volume and accelerating subsequent data processing. An object detection model is then used to first detect the hand region in each keyframe and determine whether the hand contains food.

[0111] If food is present in the hand area for at least a preset number of keyframes, it is assumed that no food is entering or exiting the hand area, for example, the user is only viewing the refrigerator. If there are at least a preset number of keyframes, light band detection is performed on each keyframe to determine whether a light band area exists. The object detection models used for hand detection and light band detection can include one-stage detection models based on deep learning, such as the YOLO series (an object detection model).

[0112] Then the intersection of the light band area and the hand area can be calculated to obtain the intersection area corresponding to each key frame. The intersection parts of each key frame can be judged according to the order of each key frame. When the intersection part moves from the top to the bottom of the key frame data (corresponding to the refrigerator from the inside to the edge), it is considered that the user is putting food into the smart refrigerator. When the intersection part moves from the bottom to the top of the key frame data (corresponding to the refrigerator from the edge to the inside), it is considered that the user is taking food out of the smart refrigerator.

[0113] In some embodiments of the present application, if the light region is as shown in FIG3 , where the upper and lower parts of light region 1 are colors 1 and 2, respectively, the present application can simultaneously determine the light color information during light detection, and when determining the relative position information based on the characteristic position information and the light position information, simultaneously determine the light color information of the relative position part. The order in which different colors appear can be determined according to the sequence information of the target frame data, and then the entry and exit of items can be determined based on the order of the colors. For example, if color 1 appears first and then color 2, that is, moving from the top to the bottom of the key frame data (corresponding to moving from the inside to the edge of the refrigerator), it is considered that food has been taken out.

[0114] In some embodiments of the present application, stickers or engraved patterns can be placed on the bottom side wall as an equivalent substitute for the light area, and target detection can be performed on the stickers or patterns to obtain sticker or print position information equivalent to the light position information. Based on the sticker or print position information and the feature position information, the entry and exit status of objects in the target chamber during the video shooting can be finally determined.

[0115] Through this solution, the present application can realize the seamless judgment of food entering and leaving the refrigerator without the need for additional user operation, significantly improving detection efficiency and user experience.

[0116] The following will introduce the in-chamber object in-out detection device of the present application in conjunction with some embodiments. Referring to FIG6 , FIG6 is a schematic structural diagram of the in-chamber object in-out detection device of the present application, wherein the in-chamber object in-out detection device 60 may include an acquisition module 601, a feature detection module 602, a light region detection module 603, a trend determination module 604, and an in-out determination module 605, wherein:

[0117] An acquisition module 601 is configured to acquire video data captured for a target chamber. During the video data capture process, a projection device is turned on to project a light area toward the bottom sidewall of the target chamber.

[0118] A feature detection module 602 is configured to detect the video data and obtain at least one target frame data containing a feature region and feature position information of each feature region;

[0119] The light region detection module 603 is used to perform light region detection on each target frame data to obtain light position information of the light region in each target frame data;

[0120] a trend determination module 604 for determining movement trend data of an object based on feature position information and light position information of each target frame data;

[0121] The entry and exit determination module 605 is configured to determine entry and exit information of items in the target chamber during the video data capture period based on the movement trend data.

[0122] In some embodiments of the present application, a door device is provided on the front side of the smart home appliance, and the acquisition module includes an opening submodule and a closing submodule, wherein:

[0123] The opening submodule is used to control the projection device to turn on and the camera device to capture the target chamber when a door opening signal corresponding to the door device is detected, and the projection device projects a light area toward the bottom side wall of the target chamber;

[0124] The closing submodule is used to control the projection device to close and the shooting device to stop shooting the target cavity to obtain video data when a door closing signal corresponding to the door body is detected.

[0125] In some embodiments of the present application, the feature detection module includes an extraction submodule and a detection submodule, wherein:

[0126] The extraction submodule is used to extract at least two frames of data from the video data to obtain a frame data set to be detected;

[0127] The detection submodule is used to detect the frame data set to be detected to obtain at least one target frame data containing a feature area and feature position information of each feature area.

[0128] In some embodiments of the present application, the extraction submodule may be used to:

[0129] Extract at least two frames of data from the video data; determine the sequence information of each frame of data; and splice each frame of data together according to the sequence information of each frame of data to obtain a frame data set to be detected.

[0130] In some embodiments of the present application, the feature includes a hand area, the feature position information includes hand position information, and the detection submodule may include a hand detection unit and an object detection unit, wherein:

[0131] A hand detection unit, configured to perform hand detection on a frame data set to be detected, and obtain at least one candidate frame data containing a hand region, and hand position information of each hand region;

[0132] The object detection unit is used to perform object detection on each candidate frame data to obtain target frame data containing an object area that overlaps with the hand area.

[0133] In some embodiments of the present application, the feature region includes an object region, the feature position information includes object position information, and the detection submodule may include a candidate unit and a target unit, wherein:

[0134] A candidate unit is used to perform hand detection on the frame data set to be detected to obtain at least one candidate frame data containing a hand area;

[0135] The target unit is used to perform object detection on each candidate frame data to obtain target frame data containing an object area that overlaps with the hand area, and object position information of each object area.

[0136] In some embodiments of the present application, the device for detecting the entry and exit of objects in a chamber further includes:

[0137] A quantity determination module is used to determine the quantity information of the target frame data;

[0138] a negation module, configured to determine that no object enters or exits the target chamber during the video data capture period when the quantity information is less than a preset first threshold;

[0139] At this time, the light area detection module may include a light area detection submodule, wherein:

[0140] The light area detection submodule is used to perform light area detection on each target frame data when the quantity information is greater than a preset second threshold value, and obtain light position information of the light area in each target frame data.

[0141] In some embodiments of the present application, the trend determination module may be used to:

[0142] The intersection of the feature position information and light position information of each target frame data is calculated to obtain the relative position information of the object in the light area in each target frame data; according to the sequence information and relative position information of each target frame data, the movement trend data of the object is determined.

[0143] In some embodiments of the present application, the entry and exit determination module may be used to:

[0144] When the movement trend data matches the preset entry trend data, it is determined that an object has entered the target chamber during the video data shooting period; when the movement trend data matches the preset removal trend data, it is determined that an object has been removed from the target chamber during the video data shooting period.

[0145] The present application can set a camera device on the top side wall of the smart home appliance cavity. When the door device of the smart home appliance is in the open state, the camera device is controlled to shoot the cavity and record the user's operations in the cavity. The shooting is stopped when the door device is in the closed state to obtain video data. By detecting the video data, target frame data containing the hand area and the object area can be obtained, wherein the hand area and the object area overlap, that is, the user has taken the object. Finally, according to the quantity information of the target frame data, it can be determined whether the object picking operation was performed in the target cavity during the video data shooting period, that is, during the period when the door device is open. The present application does not require the user to actively perform additional operations, and can sense whether there are objects entering or exiting the target cavity. Compared with the existing technology, it is more efficient and simple, and significantly improves the user experience.

[0146] It should be noted that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing it in a suitable manner if necessary, and then storing it in a computer memory.

[0147] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0148] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0149] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0150] In this application, unless otherwise specified or limited, the terms "installed," "connected," "connect," "fixed," etc. should be understood in a broad sense. For example, they can refer to fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; internal communication between two elements or interaction between two elements, unless otherwise specified. Those skilled in the art will understand the specific meanings of the above terms in this application based on specific circumstances.

[0151] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for detecting the entry and exit of objects in a chamber, wherein a smart home appliance is provided with a camera device and a projection device on the top and side walls of a target chamber, and the method include: Acquiring video data shot for the target chamber, wherein the projection device is turned on during the shooting of the video data, and the projection device projects a light area in a direction toward the bottom side wall of the target chamber; Detecting the video data to obtain at least one target frame data containing a characteristic region and characteristic position information of each characteristic region; Performing light region detection on each of the target frame data to obtain light position information of the light region in each of the target frame data; Determining movement trend data of the object according to the characteristic position information and light position information of each target frame data; Based on the movement trend data, information on the entry and exit of objects in the target chamber during the shooting of the video data is determined.

2. The method according to claim 1, in, The smart home appliance is provided with a door device at the front side, and the acquiring of video data shot for the target chamber includes: When a door opening signal corresponding to the door device is detected, the projection device is controlled to be turned on, and the camera device is controlled to shoot the target chamber, and the projection device projects a light area in the direction of the bottom side wall of the target chamber; When a door closing signal corresponding to the door device is detected, the projection device is controlled to be closed, and the shooting device is controlled to stop shooting the target chamber to obtain video data.

3. The method according to claim 1 or 2, in, The detecting of the video data to obtain at least one target frame data containing a feature area and feature position information of each feature area includes: Extracting at least two frames of data from the video data to obtain a frame data set to be detected; The frame data set to be detected is detected to obtain at least one target frame data containing a characteristic region and characteristic position information of each characteristic region.

4. The method according to claim 3, in, The step of extracting at least two frames of data from the video data to obtain a frame data set to be detected includes: Extracting at least two frames of data from the video data; Determining sequence information of each of the frame data; According to the sequence information of each frame data, each frame data is spliced ​​together to obtain a frame data set to be detected.

5. The method according to claim 3, in, The feature includes a hand area, and the feature position information includes hand position information; The detecting of the frame data set to be detected to obtain at least one target frame data containing a feature area and feature position information of each feature area includes: Performing hand detection on the frame data set to be detected to obtain at least one candidate frame data containing a hand area and hand position information of each hand area; Object detection is performed on each of the candidate frame data to obtain target frame data containing an object area that overlaps with the hand area.

6. The method according to claim 3, in, The characteristic area includes an object area, and the characteristic position information includes object position information; The detecting of the frame data set to be detected to obtain at least one target frame data containing a feature area and feature position information of each feature area includes: Performing hand detection on the frame data set to be detected to obtain at least one candidate frame data containing a hand area; Object detection is performed on each of the candidate frame data to obtain target frame data including an object region overlapping with the hand region, and object position information of each of the object regions.

7. The method according to claim 5 or 6, in, The method further comprises: Determining quantity information of the target frame data; When the quantity information is less than a preset first threshold, determining that no object enters or exits the target chamber during the period when the video data is captured; The performing light region detection on each of the target frame data to obtain light position information of the light region in each of the target frame data includes: When the quantity information is greater than a preset second threshold, light region detection is performed on each of the target frame data to obtain light position information of the light region in each of the target frame data.

8. The method according to any one of claims 1 to 7, in, Determining the movement trend data of the object according to the characteristic position information and the light position information of each target frame data includes: Obtaining the intersection of the feature position information and the light position information of each target frame data to obtain the relative position information of the object in each target frame data in the light area; According to the sequence information and relative position information of each target frame data, the movement trend data of the object is determined.

9. The method according to any one of claims 1 to 8, in, The determining, based on the movement trend data, information on the entry and exit of items in the target chamber during the video data shooting period, includes: When the movement trend data matches the preset entry trend data, determining that an object has entered the target chamber during the shooting of the video data; When the movement trend data matches the preset removal trend data, it is determined that an object is removed from the target chamber during the shooting of the video data.

10. A device for detecting the entry and exit of objects in a chamber, wherein a camera device and a projection device are arranged on the top and side walls of the target chamber of the smart home appliance, and the device include: an acquisition module, used for acquiring video data shot for the target chamber, wherein the projection device is turned on during the shooting of the video data, and the projection device projects a light area in a direction toward the bottom side wall of the target chamber; A feature detection module, used to detect the video data to obtain at least one target frame data containing a feature area and feature position information of each feature area; A light region detection module, used to perform light region detection on each of the target frame data to obtain light position information of the light region in each of the target frame data; A trend determination module, used to determine the movement trend data of the object according to the characteristic position information and the light position information of each target frame data; The entry and exit determination module is used to determine the entry and exit information of the objects in the target chamber during the shooting of the video data based on the movement trend data.

11. A smart home appliance, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the method according to any one of claims 1 to 9 by calling the computer program stored in the memory.

12. A computer-readable storage medium storing a plurality of computer programs, wherein the computer programs are suitable for being loaded by a processor to execute the steps in any one of the methods of claims 1 to 9.

Citation Information

Patent Citations

  • Refrigerator

    CN104101175A

  • Food material management method based on video images

    CN109559331A

  • Article information determination method and device, storage medium and electronic device

    CN112487962A

  • Intelligent refrigerator and method for identifying stored food materials

    CN113496245A

  • Article detection method, device and equipment and storage medium

    CN114639123A