[go: up one dir, main page]

CN110347772A - Article condition detection method, device and computer readable storage medium - Google Patents

Article condition detection method, device and computer readable storage medium Download PDF

Info

Publication number
CN110347772A
CN110347772A CN201910641470.9A CN201910641470A CN110347772A CN 110347772 A CN110347772 A CN 110347772A CN 201910641470 A CN201910641470 A CN 201910641470A CN 110347772 A CN110347772 A CN 110347772A
Authority
CN
China
Prior art keywords
user
target
item
target item
set area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910641470.9A
Other languages
Chinese (zh)
Inventor
汪学军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910641470.9A priority Critical patent/CN110347772A/en
Publication of CN110347772A publication Critical patent/CN110347772A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F11/00Coin-freed apparatus for dispensing, or the like, discrete articles
    • G07F11/72Auxiliary equipment, e.g. for lighting cigars, opening bottles

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

本发明实施例提出一种物品状态检测方法、装置及计算机可读存储介质,其中方法包括对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息;在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息;根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。在目标物品被移动的情况下,可以利用各用户的位置信息与目标物品的位置信息进行匹配,从而确定出移动目标物品的目标用户。由此可以在无人环境下实现目标物品和目标用户的确认以及匹配,实现了无人化、自动化。

The embodiment of the present invention proposes a method, device, and computer-readable storage medium for item state detection, wherein the method includes tracking the human body of each user who enters the set area, so as to determine the real-time position of each user in the set area information; when the target item in the set area is detected to be moved, acquire the position information of the moved target item; according to the position information of the target item, and The real-time location information is matched to obtain the identification information of the target user who moves the target item. When the target item is moved, the location information of each user can be matched with the location information of the target item, so as to determine the target user who moved the target item. In this way, the confirmation and matching of target items and target users can be realized in an unmanned environment, realizing unmanned and automatic.

Description

物品状态检测方法、装置及计算机可读存储介质Object state detection method, device and computer-readable storage medium

技术领域technical field

本发明涉及自动化技术领域,尤其涉及一种物品状态检测方法、装置及计算机可读存储介质。The present invention relates to the technical field of automation, in particular to a method, a device and a computer-readable storage medium for object state detection.

背景技术Background technique

智慧零售店是融合大数据、智能软件和硬件配给实现店铺互联网化、数据化、电子化的消费管理和营销服务平台。能够24小时运行,运营费用低,方便居民的实际需求。主要针对社区、小区附近的24小时便利店的无人化改造,相比现在的24小时便利店可以大幅节省成本。Smart retail store is a consumption management and marketing service platform that integrates big data, intelligent software and hardware allocation to realize Internet, data and electronic stores. It can operate 24 hours a day, with low operating costs, which is convenient for the actual needs of residents. It is mainly aimed at the unmanned transformation of 24-hour convenience stores near communities and communities, which can greatly save costs compared with the current 24-hour convenience stores.

现有的智慧零售店按照发展进程,包括以下几类:无人零售柜、基于RFID便利店、开门选购的无人零售柜和无人便利店。但上述几类方案还各自存在有缺陷,例如无人零售柜中存储的商品数量有限,基于RFID便利店的每个商品需要在上架之前人工标贴RFID标签,开门选购的无人零售柜过分依赖于摄像头,对于选取商品的检测错误率高,无法做到真正的无人化。According to the development process, the existing smart retail stores include the following categories: unmanned retail cabinets, RFID-based convenience stores, unmanned retail cabinets for door-to-door shopping, and unmanned convenience stores. However, the above-mentioned types of solutions still have their own defects. For example, the number of products stored in the unmanned retail cabinet is limited, and each product in an RFID-based convenience store needs to be manually labeled with an RFID tag before it is put on the shelf. Relying on the camera, the detection error rate for the selected product is high, and it cannot be truly unmanned.

发明内容Contents of the invention

本发明实施例提供一种物品状态检测方法、装置及计算机可读存储介质,以解决现有技术中的一个或多个技术问题。Embodiments of the present invention provide a method, device, and computer-readable storage medium for object state detection, so as to solve one or more technical problems in the prior art.

第一方面,本发明实施例提供了一种物品状态检测方法,包括:In a first aspect, an embodiment of the present invention provides a method for detecting an item state, including:

对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息;Perform human body tracking on each user entering the set area to determine the real-time position information of each user in the set area;

在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息;If it is detected that the target item in the set area is moved, acquiring the position information of the moved target item;

根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。According to the position information of the target item and the real-time position information of each user in the set area, the identification information of the target user who moves the target item is obtained through matching.

在一种实施方式中,对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息,包括:In one embodiment, human body tracking is performed on each user entering the set area to determine the real-time position information of each user in the set area, including:

获取进入所述设定区域的各所述用户的面部图像;acquiring facial images of each of the users entering the set area;

根据各所述用户的面部图像,获取各所述用户的标识信息;Acquiring identification information of each user according to the facial image of each user;

根据各所述用户的标识信息,利用行人重识别ReID方式对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。According to the identification information of each of the users, human body tracking is performed on each of the users by means of pedestrian re-identification ReID, so as to determine the real-time position information of each of the users in the set area.

在一种实施方式中,根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息,包括:In one embodiment, according to the location information of the target item and the real-time location information of each user in the set area, matching to obtain the identification information of the target user who moves the target item includes:

比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离;Comparing the real-time location information of each user in the set area with the location information of the target item to determine the distance between each user and the target item;

获取与所述目标物品的距离最近的用户的标识信息。Acquiring the identification information of the user with the closest distance to the target item.

在一种实施方式中,还包括:In one embodiment, it also includes:

获取深度图像采集装置所采集的各用户的彩色图像和深度图像;Obtain the color image and depth image of each user collected by the depth image acquisition device;

从各所述用户的彩色图像中提取人体关键点;extracting key points of the human body from the color images of each of the users;

将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息;Corresponding the key points of the human body with the depth image to determine the position information of each user's hand;

比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离;Comparing the position information of the hands of each user with the position information of the target item to obtain the distance between the hands of each user and the target item;

获取与所述目标物品的距离最近的手所属的用户的标识信息。Acquiring the identification information of the user whose hand is closest to the target item.

在一种实施方式中,还包括:In one embodiment, it also includes:

在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像;In the case of detecting that the target item in the set area is moved, acquiring a facial image of the target user who moves the target item;

利用所述设定区域内的各用户的已有图像对所述目标用户的面部图像进行面部识别,获取所述目标用户的标识信息;performing facial recognition on the facial image of the target user by using the existing images of the users in the set area, and acquiring the identification information of the target user;

比较通过面部识别获取的目标用户的标识信息与匹配得到移动所述目标物品的目标用户的标识信息是否一致。Comparing whether the identification information of the target user acquired through facial recognition is consistent with the matching identification information of the target user who moves the target item.

在一种实施方式中,还包括:In one embodiment, it also includes:

接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻;receiving trigger information from the gravity sensing sensor, the trigger information including the first moment when the item is touched and the second moment when the item is taken away;

获取所述重力感应传感器对应的目标位置信息;Acquiring target position information corresponding to the gravity sensing sensor;

在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像;In the item images collected at the target location corresponding to the target location information, search for the first item image corresponding to the first moment and the second item image corresponding to the second moment;

比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。comparing the difference between the image of the first item and the image of the second item to determine the target item taken away at the target position corresponding to the target position information.

在一种实施方式中,还包括:In one embodiment, it also includes:

获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量;Obtaining the first weight of the gravity sensing sensor before the target item is taken away and the second weight after being taken away;

得到所述第一重量与所述第二重量的差值;obtaining the difference between the first weight and the second weight;

查询所述目标物品的标准重量;Query the standard weight of the target item;

比较所述差值与所述目标物品的标准重量是否一致。Comparing whether the difference is consistent with the standard weight of the target item.

第二方面,本发明实施例提供了一种物品状态检测装置,包括:In a second aspect, an embodiment of the present invention provides an item state detection device, including:

用户实时位置确定模块,用于对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息;A user real-time location determination module, configured to track the human body of each user entering the set area, so as to determine the real-time position information of each user in the set area;

目标物品位置信息确定模块,用于在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息;A target item position information determining module, configured to obtain the position information of the moved target item when it is detected that the target item in the set area is moved;

匹配模块,用于根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息A matching module, configured to match the identification information of the target user who moves the target item according to the position information of the target item and the real-time position information of each user in the set area

在一种实施方式中,所述用户实时位置确定模块,包括:In one embodiment, the user real-time location determination module includes:

第一面部图像获取子模块,用于获取进入所述设定区域的各所述用户的面部图像;The first facial image acquisition submodule is used to acquire the facial images of each of the users entering the set area;

标识信息第一获取子模块,用于根据各所述用户的面部图像,获取各所述用户的标识信息;The first identification information acquisition submodule is used to acquire the identification information of each user according to the facial image of each user;

实时位置信息确定子模块,用于根据各所述用户的标识信息,利用行人重识别ReID方式对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。The real-time position information determination sub-module is used to track the human body of each user by means of pedestrian re-identification ReID according to the identification information of each user, so as to determine the real-time position information of each user in the set area.

在一种实施方式中,所述匹配模块,包括:In one embodiment, the matching module includes:

第一距离确定子模块,用于比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离;The first distance determination submodule is used to compare the real-time location information of each user in the set area with the location information of the target item, and determine the distance between each user and the target item;

标识信息第二获取子模块,用于获取与所述目标物品的距离最近的用户的标识信息。The second identification information acquisition submodule is configured to acquire the identification information of the user with the closest distance to the target item.

在一种实施方式中,还包括:In one embodiment, it also includes:

图像获取模块,用于获取深度图像采集装置所采集的各用户的彩色图像和深度图像;An image acquisition module, configured to acquire the color image and depth image of each user collected by the depth image acquisition device;

人体关键点提取模块,用于从各所述用户的彩色图像中提取人体关键点;A human body key point extraction module, used to extract human body key points from the color images of each of the users;

手位置信息确定模块,用于将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息;A hand position information determining module, configured to correspond the key points of the human body to the depth image, so as to determine the position information of each user's hand;

第二距离确定模块,用于比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离;The second distance determination module is used to compare the position information of each user's hand with the position information of the target item, and obtain the distance between each user's hand and the target item;

标识信息第三获取子模块,用于获取与所述目标物品的距离最近的手所属的用户的标识信息。The third identification information acquisition submodule is configured to acquire the identification information of the user whose hand is closest to the target item.

在一种实施方式中,还包括:In one embodiment, it also includes:

第二面部图像获取模块,用于在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像;The second facial image acquisition module is used to acquire the facial image of the target user who moves the target item when the target item in the set area is detected to be moved;

面部识别模块,用于利用所述设定区域内的各用户的已有图像对所述目标用户的面部图像进行面部识别;A facial recognition module, configured to perform facial recognition on the facial image of the target user by using the existing images of each user in the set area;

标识信息第四获取子模块,用于根据面部识别模块的识别结果,获取所述目标用户的标识信息;The fourth identification information acquisition sub-module is used to acquire the identification information of the target user according to the recognition result of the facial recognition module;

判别模块,用于比较通过所述标识信息第四获取子模块获取的目标用户的标识信息与所述匹配模块匹配得到移动所述目标物品的目标用户的标识信息是否一致。A judging module, configured to compare whether the identification information of the target user acquired through the fourth identification information acquisition sub-module is consistent with the identification information of the target user who moves the target item through matching by the matching module.

在一种实施方式中,还包括:In one embodiment, it also includes:

触发信息接收模块,用于接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻;The trigger information receiving module is used to receive the trigger information of the gravity sensor, and the trigger information includes the first moment when the item is touched and the second moment when the item is taken away;

目标位置信息获取模块,用于获取所述重力感应传感器对应的目标位置信息;A target position information acquisition module, configured to acquire target position information corresponding to the gravity sensing sensor;

物品图像查找模块,用于在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像;An item image search module, configured to search for the first item image corresponding to the first moment and the second item image corresponding to the second moment in the item images collected at the target location corresponding to the target location information;

目标物品确定模块,用于比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。The target item determination module is configured to compare the difference between the first item image and the second item image to determine the target item taken away at the target position corresponding to the target position information.

在一种实施方式中,还包括:In one embodiment, it also includes:

重量获取模块,用于获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量;a weight acquisition module, configured to acquire the first weight of the gravity sensing sensor before the target item is taken away and the second weight after being taken away;

差值确定模块,用于得到所述第一重量与所述第二重量的差值;a difference determination module, configured to obtain the difference between the first weight and the second weight;

标准重量查询模块,用于查询所述目标物品的标准重量;A standard weight inquiry module, used to inquire about the standard weight of the target item;

重量比较模块,用于比较所述差值与所述目标物品的标准重量是否一致。A weight comparison module, configured to compare whether the difference is consistent with the standard weight of the target item.

第三方面,本发明实施例提供了一种物品状态检测系统,包括:In a third aspect, an embodiment of the present invention provides an item status detection system, including:

服务器,包括前述物品状态检测装置;The server includes the aforementioned item state detection device;

人体跟踪装置,用于采集设定区域的各用户的跟踪图像,传输至所述服务器;A human body tracking device, configured to collect tracking images of users in a set area and transmit them to the server;

重力感应传感器,用于在检测到所述设定区域内的目标物品被移动的情况下,输出感应信息至所述服务器。The gravity sensing sensor is used to output sensing information to the server when it detects that the target item in the set area is moved.

在一种实施方式中,还包括以下至少一种:In one embodiment, it also includes at least one of the following:

面部图像采集装置,用于采集移动所述目标物品的目标用户的面部图像;A facial image acquisition device, configured to acquire a facial image of a target user who moves the target item;

深度图像采集装置,用于采集各用户的深度图像。The depth image collection device is used to collect the depth images of each user.

在一种实施方式中,还包括:In one embodiment, it also includes:

核心交换机,与所述服务器通信连接;A core switch, communicatively connected to the server;

多个二级交换机,与所述核心交换机通信连接,每个所述二级交换机连接指定类型的前端设备;A plurality of secondary switches are communicatively connected to the core switch, and each of the secondary switches is connected to a specified type of front-end equipment;

其中,所述二级交换机用于控制自身所连接的不同前端设备之间的数据交互,以及前端设备与核心交换机之间的数据交互;所述前端设备包括人体跟踪装置、重力感应传感器、面部图像采集装置、深度图像采集装置中的一种或多种。Wherein, the secondary switch is used to control the data interaction between different front-end devices connected to itself, and the data interaction between the front-end device and the core switch; the front-end device includes a human body tracking device, a gravity sensor, a facial image One or more of an acquisition device and a depth image acquisition device.

第四方面,本发明实施例提供了一种物品状态检测系统,所述系统的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In the fourth aspect, the embodiment of the present invention provides an item state detection system, and the functions of the system can be implemented by hardware, or can be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,所述系统的结构中包括处理器和存储器,所述存储器用于存储支持所述系统执行上述物品状态检测方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。所述系统还可以包括通信接口,用于与其他设备或通信网络通信。In a possible design, the structure of the system includes a processor and a memory, the memory is used to store a program that supports the system to execute the above object state detection method, and the processor is configured to execute the programs stored in memory. The system may also include a communication interface for communicating with other devices or a communication network.

第五方面,本发明实施例提供了一种计算机可读存储介质,用于存储物品状态检测装置所用的计算机软件指令,其包括用于执行上述物品状态检测方法所涉及的程序。In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions used by an object state detection device, which includes the programs involved in executing the above object state detection method.

上述技术方案中的一个技术方案具有如下优点或有益效果:在目标物品被移动的情况下,可以利用各用户的位置信息与目标物品的位置信息进行匹配,从而确定出移动目标物品的目标用户。由此可以在无人环境下实现目标物品和目标用户的确认以及匹配,实现了无人化、自动化。One of the above technical solutions has the following advantages or beneficial effects: when the target item is moved, the location information of each user can be used to match the location information of the target item, so as to determine the target user who moved the target item. In this way, the confirmation and matching of target items and target users can be realized in an unmanned environment, realizing unmanned and automatic.

上述技术方案中的另一个技术方案具有如下优点或有益效果:在检测过程中,获取每个用户的手的位置,根据收的位置与目标物品所在位置间的距离判断出目标用户。从而可以解决目标物品被移动时,目标物品所在的货架前有多个用户都有可能是目标用户的复杂情况。Another technical solution in the above technical solutions has the following advantages or beneficial effects: in the detection process, the position of each user's hand is obtained, and the target user is judged according to the distance between the received position and the position of the target item. Therefore, when the target item is moved, multiple users in front of the shelf where the target item is located may be the target user.

上述概述仅仅是为了说明书的目的,并不意图以任何方式进行限制。除上述描述的示意性的方面、实施方式和特征之外,通过参考附图和以下的详细描述,本发明进一步的方面、实施方式和特征将会是容易明白的。The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the drawings and the following detailed description.

附图说明Description of drawings

在附图中,除非另外规定,否则贯穿多个附图相同的附图标记表示相同或相似的部件或元素。这些附图不一定是按照比例绘制的。应该理解,这些附图仅描绘了根据本发明公开的一些实施方式,而不应将其视为是对本发明范围的限制。In the drawings, unless otherwise specified, the same reference numerals designate the same or similar parts or elements throughout the several drawings. The drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present invention and should not be taken as limiting the scope of the present invention.

图1示出根据本发明实施例的物品状态检测方法的流程图。Fig. 1 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图2示出根据本发明实施例的物品状态检测方法的流程图。Fig. 2 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图3示出根据本发明实施例的物品状态检测方法的流程图。Fig. 3 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图4示出根据本发明实施例的物品状态检测方法的流程图。Fig. 4 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图5示出根据本发明实施例的深度图像采集装置所采集图像的示意图。Fig. 5 shows a schematic diagram of images collected by a depth image collection device according to an embodiment of the present invention.

图6示出根据本发明实施例的深度图像采集装置所采集图像的示意图。Fig. 6 shows a schematic diagram of images collected by a depth image collection device according to an embodiment of the present invention.

图7示出根据本发明实施例的物品状态检测方法的流程图。Fig. 7 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图8示出根据本发明实施例的物品状态检测方法的流程图。Fig. 8 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图9示出根据本发明实施例的物品状态检测方法的流程图。Fig. 9 shows a flowchart of a method for detecting an item state according to an embodiment of the present invention.

图10示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 10 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图11示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 11 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图12示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 12 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图13示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 13 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图14示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 14 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图15示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 15 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图16示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 16 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图17示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 17 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图18示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 18 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

图19示出根据本发明实施例的物品状态检测装置的结构框图。Fig. 19 shows a structural block diagram of an object state detection device according to an embodiment of the present invention.

具体实施方式Detailed ways

在下文中,仅简单地描述了某些示例性实施例。正如本领域技术人员可认识到的那样,在不脱离本发明的精神或范围的情况下,可通过各种不同方式修改所描述的实施例。因此,附图和描述被认为本质上是示例性的而非限制性的。In the following, only some exemplary embodiments are briefly described. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and descriptions are to be regarded as illustrative in nature and not restrictive.

图1示出根据本发明实施例的物品检测方法的流程图。本实施方式以智慧零售店为场景进行说明,如图1所示,该方法包括以下步骤:Fig. 1 shows a flowchart of an object detection method according to an embodiment of the present invention. This embodiment is described by taking a smart retail store as a scenario, as shown in Figure 1, the method includes the following steps:

S101:对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。S101: Perform body tracking on each user entering a set area, so as to determine real-time position information of each user in the set area.

例如,设定区域可以是智慧零售店内部,也可以是库房、货仓等的三维空间的内部。在设定区域中架设多个用户跟踪装置,以对进入设定区域的各用户进行人体跟踪。用户跟踪装置可以以设定区域入口的闸门开启为触发指令。将各用户跟踪装置在三维空间中的位置信息预先存储在数据库中。用户跟踪装置采集到的用户的图像可以称为跟踪图像。For example, the setting area may be inside a smart retail store, or inside a three-dimensional space such as a warehouse or a warehouse. Set up multiple user tracking devices in the set area to track the human body of each user entering the set area. The user tracking device may use the opening of the gate at the entrance of the set area as a trigger instruction. The position information of each user tracking device in three-dimensional space is pre-stored in the database. The image of the user collected by the user tracking device may be called a tracking image.

用户跟踪装置可以将采集到的各用户的跟踪图像上传至后台服务器。后台服务器基于跟踪图像计算出各用户的位置信息。用户的位置信息可以以世界坐标系的坐标形式表示。The user tracking device can upload the collected tracking images of each user to the background server. The background server calculates the location information of each user based on the tracking image. The location information of the user may be expressed in the coordinate form of the world coordinate system.

S102:在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息。S102: Acquiring position information of the moved target item when it is detected that the target item in the set area is moved.

例如,在货架上放置物品后,每个物品具有对应的位置信息。在货架上的用于承载物品的表面可以设置有重力感应传感器,将物品放置在重力感应传感器上。例如货架包括有A货道、B货道,则分别在A货道、B货道的用于承载物品的表面设置重力感应传感器。可以预先将货架、货道以及重力感应传感器的位置信息存储在数据库中。货道以及在该货道上的重力感应传感器可以采用相同的位置信息。货架可以采用该货架上任一货道的位置信息,也可以采用该货架上位于中间位置的货道的位置信息。For example, after placing items on a shelf, each item has corresponding location information. A gravity sensing sensor may be provided on the surface of the shelf for carrying items, and the items are placed on the gravity sensing sensor. For example, if the shelf includes cargo lane A and cargo lane B, gravity sensing sensors are respectively arranged on the surfaces of the cargo lane A and cargo lane B for carrying items. The location information of shelves, cargo lanes and gravity sensing sensors can be stored in the database in advance. The cargo lane and the gravity sensing sensor on the cargo lane can use the same position information. The shelf may use the position information of any aisle on the shelf, or the position information of the aisle in the middle of the shelf.

用户在移动到某个目标物品时,该物品底部的重力感应传感器检测到物品重量变化,可以输出一感应信息。该感应信息可以包括检测到物品重量变化的时间信息、重量变化值和重力感应传感器的标识信息中的一种或多种。用户移动物品的操作可以包括在货架内挪动、放入货架、从货架取出等。When the user moves to a certain target item, the gravity sensing sensor at the bottom of the item detects the weight change of the item, and can output a sensing information. The sensing information may include one or more of the time information when the weight change of the item is detected, the weight change value, and the identification information of the gravity sensing sensor. The user's operation of moving the item may include moving in the shelf, putting it in the shelf, taking it out from the shelf, and the like.

后台服务器在获取到重力感应传感器发送的感应信息后,依据重力感应传感器的标识信息在数据库中查询该重力感应传感器的位置信息。由于重力感应传感器的位置和被移动的目标物品在临近位置,由此将该重力感应器的位置作为被移动的目标物品的位置信息。After obtaining the sensing information sent by the gravity sensing sensor, the background server queries the location information of the gravity sensing sensor in the database according to the identification information of the gravity sensing sensor. Since the position of the gravity sensor is close to the moved target item, the position of the gravity sensor is used as the position information of the moved target item.

S103:根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。S103: According to the location information of the target item and the real-time location information of each user in the set area, match to obtain identification information of a target user who moves the target item.

在某一时刻,例如在检测到目标物品被移动的时刻,各人体跟踪装置可以获取同一时刻在设定区域内的各个用户的位置信息。计算各个用户与被移动的目标物品之间的距离。可以按照距离远近进行匹配,选取距离目标物品距离最近的用户为目标用户。At a certain moment, for example, when the target object is detected to be moved, each human body tracking device may acquire the location information of each user within the set area at the same moment. Calculate the distance between each user and the target item being moved. Matching can be performed according to the distance, and the user who is the closest to the target item is selected as the target user.

通过上述实施方式,在目标物品被移动的情况下,可以利用各用户的位置信息与目标物品的位置信息进行匹配,从而确定出移动目标物品的目标用户。由此可以在无人环境下实现目标物品和目标用户的确认以及匹配,实现了无人化、自动化。Through the above embodiments, when the target item is moved, the location information of each user can be used to match with the location information of the target item, so as to determine the target user who moved the target item. In this way, the confirmation and matching of target items and target users can be realized in an unmanned environment, realizing unmanned and automatic.

如图2所示,在一种实施方式中,步骤S101包括:As shown in Figure 2, in an implementation manner, step S101 includes:

S1011:获取进入所述设定区域的各所述用户的面部图像。S1011: Acquire facial images of each of the users entering the set area.

例如,用户可以通过手机、掌上电脑等终端预先进行注册,将注册信息上传至后台服务器。在注册时,用户可以直接输入注册信息,也可以通过绑定社交软件导入注册信息。注册信息可以包括用户的姓名、电话或者社交软件的账号和密码等信息。在注册过程中还可以将注册信息与用户的面部图像进行关联。设定区域入口处可以设置第一图像采集装置,以采集待进入设定区域的各用户的面部图像。第一图像采集装置将采集到的各用户的面部图像传输至后台服务器。For example, a user can pre-register through a terminal such as a mobile phone or a handheld computer, and upload the registration information to the background server. When registering, users can directly input registration information, or import registration information by binding social software. The registration information may include information such as the user's name, phone number or social software account number and password. During the registration process, the registration information can also be associated with the user's facial image. A first image acquisition device may be installed at the entrance of the set area to collect facial images of users who are about to enter the set area. The first image collection device transmits the collected facial images of each user to the background server.

S1012:根据各所述用户的面部图像,获取各所述用户的标识信息。S1012: Obtain identification information of each user according to the facial image of each user.

后台服务器对获取到的各用户的面部图像进行识别,从而完成对各用户的身份认证。用户进入设定区域后,为了保护用户隐私,可以为用户分配一标识信息。通过标识信息替代用户的注册信息。The background server recognizes the acquired facial images of each user, thereby completing the identity authentication of each user. After the user enters the set area, in order to protect the privacy of the user, identification information may be assigned to the user. Replace the user's registration information with identification information.

S1013:根据各所述用户的标识信息,利用行人重识别技术ReID对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。S1013: According to the identification information of each of the users, use the pedestrian re-identification technology ReID to perform body tracking on each of the users, so as to determine the real-time position information of each of the users in the set area.

多个用户跟踪装置协同进行图像采集,以实现设定区域的图像采集全覆盖。后台服务器接收到多个用户跟踪装置所采集的跟踪图像,利用行人重识别技术ReID对各所述用户进行人体跟踪,以实时确定各用户的位置信息。将各用户的实时位置信息与该用户的标识信息进行关联。Multiple user tracking devices cooperate to collect images to achieve full coverage of image collection in a set area. The background server receives the tracking images collected by multiple user tracking devices, and uses the pedestrian re-identification technology ReID to track the human body of each user, so as to determine the location information of each user in real time. The real-time location information of each user is associated with the identification information of the user.

通过上述实施方式,可以对设定区域内的各个用户实现人体跟踪,并实时获取各个用户的位置信息。Through the above embodiments, it is possible to implement human body tracking for each user within the set area, and acquire location information of each user in real time.

如图3所示,在一种实施方式中,步骤S103包括:As shown in Figure 3, in an implementation manner, step S103 includes:

S1031:比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离。S1031: Compare the real-time location information of each user in the set area with the location information of the target item, and determine the distance between each user and the target item.

S1032:获取与所述目标物品的距离最近的用户的标识信息。S1032: Obtain the identification information of the user with the closest distance to the target item.

通过上述实施方式,利用目标物品的所在位置与各个用户所在位置之间的距离判断出移动目标物品的目标用户。Through the above embodiments, the target user who moves the target item is determined by using the distance between the location of the target item and the location of each user.

如图4所示,在一种实施方式中,该方法还包括:As shown in Figure 4, in one embodiment, the method also includes:

S401:获取深度图像采集装置所采集的各用户的彩色图像和深度图像。S401: Acquire the color image and depth image of each user collected by the depth image collection device.

例如,深度图像采集装置可以是双目VSLAM深度相机。结合图5、图6所示,在设定区域的每个货架上空架设垂直向下拍摄和斜着拍摄的深度相机。深度相机可以拍摄到货架前的彩色图像和深度图像,并能够把彩色图像和深度图像进行对应。其中,基于彩色图像可以提取各用户的人体关键点,基于深度图像可以得到人体关键点的位置。所有的深度相机都可以进行外参标定,以便可以利用外参标定将深度图像中各用户的人体关键点的位置映射在三维空间中。从而获取到用户人体关键点的位置信息。For example, the depth image acquisition device may be a binocular VSLAM depth camera. As shown in Figure 5 and Figure 6, a depth camera that shoots vertically downward and obliquely is set up above each shelf in the set area. The depth camera can capture the color image and the depth image in front of the shelf, and can correspond the color image and the depth image. Among them, the key points of the human body of each user can be extracted based on the color image, and the positions of the key points of the human body can be obtained based on the depth image. All depth cameras can perform extrinsic calibration, so that the positions of key points of each user's human body in the depth image can be mapped in three-dimensional space by using extrinsic calibration. In this way, the location information of the key points of the user's body can be obtained.

S402:从各所述用户的彩色图像中提取人体关键点。S402: Extract key points of the human body from the color images of each user.

在获取到的彩色图像中进行人体关键点检测和跟踪。人体关键点可以仅保留人体上半身的关键点,例如包括头、肩、肘、手等。通过将上述关键点连接,可以保证每个用户对应一套关键点连线图,基于关键点连线图从而区分出不同用户。在各用户的关键点连线图中提取出手的关键点,把彩色图像上检测到的各用户的手的关键点和深度图像对应起来。利用外参标定,通过得知各用户的手在深度图像中的位置,计算出各用户的手的位置信息。Human body key point detection and tracking are performed in the acquired color images. The key points of the human body can only retain the key points of the upper body of the human body, such as the head, shoulders, elbows, hands, etc. By connecting the above key points, it can be guaranteed that each user corresponds to a set of key point connection diagrams, and different users can be distinguished based on the key point connection diagrams. The key points of the hand are extracted from the key point connection graph of each user, and the key points of each user's hand detected on the color image are corresponding to the depth image. Using the external parameter calibration, the position information of each user's hand is calculated by knowing the position of each user's hand in the depth image.

S403:将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息。S403: Correspond the key points of the human body with the depth image, so as to determine the position information of each user's hand.

S404:比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离。S404: Compare the position information of the hand of each user with the position information of the target item to obtain the distance between the hand of each user and the target item.

结合图5、图6所示,在货架前包括用户甲、用户乙和用户丙三人。分别计算出三个用户的手的位置信息后,可以得出三个用户的手的位置距离货架上的物品的距离。As shown in Fig. 5 and Fig. 6, there are three people in front of the shelves including user A, user B and user C. After calculating the position information of the hands of the three users respectively, the distances between the positions of the hands of the three users and the items on the shelf can be obtained.

S405:获取与所述目标物品的距离最近的手所属的用户的标识信息。S405: Obtain identification information of a user whose hand is closest to the target item.

通过上述实施方式,获取到每个用户的手的位置,根据收的位置与目标物品所在位置间的距离判断出目标用户。从而可以解决目标物品被移动时,目标物品所在的货架前有多个用户都有可能是目标用户的复杂情况。例如情侣在移动物品时,两人并排站在货架前。或者两个用户以前后位置关系站在货架前,远离货架的用户伸手取放物品。或者有多个用户同时交叉取放物品等复杂场景下,需要根据深度来判断:拿取物品的手归属于哪个用户,以及在第几层货架取放的物品等信息。Through the above embodiments, the position of each user's hand is obtained, and the target user is determined according to the distance between the received position and the position of the target item. Therefore, when the target item is moved, multiple users in front of the shelf where the target item is located may be the target user. For example, when a couple is moving items, they stand side by side in front of the shelf. Or two users stand in front of the shelf in a front-to-back positional relationship, and the user who is far away from the shelf reaches out to pick and place items. Or in complex scenarios where multiple users cross pick and place items at the same time, it is necessary to judge based on the depth: which user the hand that picks up the item belongs to, and which shelf is the item picked and placed on.

如图7所示,在一种实施方式中,该方法还包括:As shown in Figure 7, in one embodiment, the method also includes:

S501:在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像。S501: Acquiring a facial image of a target user who moves the target item when it is detected that the target item in the set area is moved.

在不同货架或者货架的不同货道处,可以分别设置有朝向货架前方的第二图像采集装置。安装高度以可以拍摄到站在货架前的用户为宜,例如可以是1.4米左右。第二图像采集装置的位置信息可以预先被获取并存储在数据库中。At different shelves or different aisles of the shelves, second image acquisition devices facing the front of the shelves may be provided respectively. The installation height should be suitable for photographing users standing in front of the shelf, for example, it can be about 1.4 meters. The location information of the second image capture device may be acquired in advance and stored in the database.

后端服务器获取被移动的目标物品的位置信息,在数据库中查询被移动的目标物品的位置信息所对应的货架或货道。输出拍照控制指令至设置在该货架或货道处的第二图像采集装置,控制其对站在货架前的用户进行拍照。接收第二图像采集装置传回的图像。或者,第二图像采集装置实时获取站在货架前的用户的图像。后端服务器获取到重力感应传感器检测到目标物品被移动的情况下,在数据库中查询被移动的目标物品的位置信息所对应的货架或货道。输出图像调取指令至设置在该货架或货道处的第二图像采集装置。接收第二图像采集装置传回的图像。The back-end server obtains the position information of the moved target item, and queries the shelf or aisle corresponding to the position information of the moved target item in the database. Outputting a photographing control instruction to the second image acquisition device installed at the shelf or aisle, controlling it to take pictures of the user standing in front of the shelf. The image sent back by the second image acquisition device is received. Alternatively, the second image acquisition device acquires the image of the user standing in front of the shelf in real time. When the back-end server acquires that the gravity sensor detects that the target item is moved, it queries the database for the shelf or aisle corresponding to the position information of the moved target item. The image retrieval instruction is output to the second image acquisition device arranged at the shelf or the aisle. The image sent back by the second image acquisition device is received.

S502:利用所述设定区域内的各用户的已有图像对所述目标用户的图像进行面部识别,获取所述目标用户的标识信息。S502: Perform facial recognition on the image of the target user by using the existing images of each user in the set area, and acquire identification information of the target user.

后端服务器接收到第二图像采集装置所采集的图像,与设定区域内的各用户的已有图像进行对比。确定出站在货架前的用户,获取到该用户的标识信息。The backend server receives the image collected by the second image collection device, and compares it with the existing images of each user in the set area. Determine the user standing in front of the shelf, and obtain the identification information of the user.

S503:比较通过面部识别获取的目标用户的标识信息与匹配得到移动所述目标物品的目标用户的标识信息是否一致。S503: Compare whether the identification information of the target user obtained through facial recognition is consistent with the matching identification information of the target user who moves the target item.

调取步骤S103中匹配得到移动所述目标物品的目标用户的标识信息,与步骤S502中获取到该用户的标识信息进行比较。从而验证步骤S103中的识别结果。若相同,则确定步骤S103中匹配得到的移动所述目标物品的目标用户。若不相同,则可以依据步骤S404的判断结果进行辅助判定。The identification information of the target user who is matched to move the target item obtained in step S103 is retrieved, and compared with the identification information of the user acquired in step S502. Thus, the recognition result in step S103 is verified. If they are the same, determine the target user who moves the target item obtained through matching in step S103. If not, an auxiliary determination may be performed according to the determination result of step S404.

通过上述实施方式,利用识别在物品对应位置的图像传感器在物品被移动时拍摄的用户图像,确定用户的标识信息。将确定出来的标识信息验证步骤103中匹配得到的移动目标物品的目标用户的标识信息。从而可以提高识别目标用户的准确率。Through the above embodiments, the identification information of the user is determined by using the image of the user captured by the image sensor that identifies the corresponding position of the item when the item is moved. The determined identification information is verified in step 103 to match the identification information of the target user of the moving target item. Therefore, the accuracy rate of identifying the target user can be improved.

如图8所示,在一种实施方式中,该方法还包括:As shown in Figure 8, in one embodiment, the method also includes:

S601:接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻。S601: Receive trigger information from a gravity sensing sensor, where the trigger information includes a first moment when an item is touched and a second moment when the item is taken away.

在用户触碰到物品时,由于对物品施加外力,重力感应传感器会在物品被触碰的第一时刻生成一触发信息。在用户取走物品后,重力感应传感器会在物品被取走的第二时刻检测到一个重量数据,从而生成另一触发信息。触发信息中可以包括重力感应传感器的标识信息和(第一或第二)时刻信息。When the user touches the item, due to the external force exerted on the item, the gravity sensing sensor will generate a trigger information at the first moment when the item is touched. After the user takes the item away, the gravity sensing sensor will detect a weight data at the second moment when the item is taken away, thereby generating another trigger information. The trigger information may include identification information of the gravity sensing sensor and (first or second) time information.

S602:获取所述重力感应传感器对应的目标位置信息。S602: Obtain target position information corresponding to the gravity sensing sensor.

后端服务器在获取到触发信息后,可以根据触发信息中包括的重力感应传感器的标识信息,在数据库中查询该重力感应传感器的位置信息。After the backend server obtains the trigger information, it can query the location information of the gravity sensor in the database according to the identification information of the gravity sensor included in the trigger information.

S603:在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像。S603: Search for the first item image corresponding to the first moment and the second item image corresponding to the second moment in the item images collected at the target location corresponding to the target location information.

在货架内部设置有朝向物品的第三图像采集装置。第三图像采集装置可以是颜色传感器RGB sensor。第三图像采集装置可以按照货道布设。例如货架包括有A货道、B货道,则分别设置有朝向A货道、B货道的第三图像采集装置。第三图像采集装置的位置信息可以预先被获取并存储在数据库中。第三图像采集装置可以和其朝向的货道采用相同的位置信息。A third image acquisition device facing the items is arranged inside the shelf. The third image acquisition device may be a color sensor RGB sensor. The third image acquisition device can be arranged according to the cargo lane. For example, if the shelf includes cargo aisle A and cargo aisle B, a third image acquisition device facing the cargo aisle A and cargo aisle B is respectively provided. The location information of the third image capture device may be acquired in advance and stored in the database. The third image acquisition device may use the same location information as the cargo lane it faces.

利用重力感应传感器位置信息,可以在数据库中查询出具有相同位置信息的第三图像采集装置。后端服务器可以分别在第一时刻和第二时刻向在所述目标位置信息对应的目标位置的第三图像采集装置发送图像调取指令,以获取上述两个时刻的第一物品图像和第二物品图像。Using the position information of the gravity sensing sensor, the third image acquisition device with the same position information can be queried in the database. The backend server may send an image retrieval instruction to the third image acquisition device at the target location corresponding to the target location information at the first moment and the second moment, so as to obtain the first item image and the second image at the above two moments. Item image.

S604:比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。S604: Compare the difference between the image of the first item and the image of the second item to determine the target item taken away at the target position corresponding to the target position information.

如果用户将目标物品取走,则相较于第一物品图像,第二物品图像中缺失的物品即为目标物品。可以将目标物品的图像进行图像识别,从而确定出目标位置信息对应的目标位置处被取走的目标物品。图像识别可以预先建立识别模型。该识别模型可以被配置为:在输入端输入货架上不同物品的图像,模型的输出端输出该物品的相关信息。相关信息可以是物品的名称、重量、金额等信息中的一种或多种。If the user takes away the target item, compared with the first item image, the missing item in the second item image is the target item. Image recognition can be performed on the image of the target item, so as to determine the target item taken away at the target position corresponding to the target position information. Image recognition can pre-establish recognition models. The recognition model can be configured as follows: input images of different items on the shelf at the input end, and output relevant information of the item at the output end of the model. The relevant information may be one or more of information such as the name, weight, and amount of the item.

通过上述技术方案,比较物品被取走前后的图像变化,依据该图像变化确定被移动的物品。Through the above technical solution, the image changes before and after the item is taken are compared, and the moved item is determined according to the image change.

如图9所示,在一种实施方式中,该方法还包括:As shown in Figure 9, in one embodiment, the method also includes:

S701:获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量。S701: Obtain a first weight of the gravity sensing sensor before the target item is taken away and a second weight after the target item is taken away.

S702:得到所述第一重量与所述第二重量的差值。S702: Obtain a difference between the first weight and the second weight.

S703:查询所述目标物品的标准重量。S703: Query the standard weight of the target item.

不同物品的标准重量可以预先被获取并存储在数据库中。The standard weights of different items can be obtained in advance and stored in the database.

S704:比较所述差值与所述目标物品的标准重量是否一致。S704: Compare whether the difference is consistent with the standard weight of the target item.

例如一瓶易拉罐装的饮料其标准重量可以是350g。确定A货道被取走的目标物品为一瓶易拉罐装的饮料的情况下,得到所述第一重量与所述第二重量的差值。假设差值是350g,则差值与标准重量一致,验证了目标物品为一瓶易拉罐装的饮料。假设差值是500g,则差值与标准重量不一致,则需要进行复验。For example, the standard weight of a bottle of beverage in a can is 350g. In a case where it is determined that the target item to be taken away from cargo lane A is a bottle of beverage in a can, the difference between the first weight and the second weight is obtained. Assuming that the difference is 350g, the difference is consistent with the standard weight, and it is verified that the target item is a beverage in a can. Assuming that the difference is 500g, the difference is inconsistent with the standard weight, and retesting is required.

复验可以包括:后端服务器获取目标位置的相邻位置,例如可以是与A货道相邻的B货道。重复步骤S601~S604。区别在于,在步骤S603中,在相邻位置(B货道)的第三图像采集装置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像,以确定所述目标位置信息对应的目标位置处被取走的目标物品。例如通过B货道的第三图像采集装置拍摄到的目标物品为一瓶易拉罐装的饮料,则将目标物品确定为一瓶易拉罐装的饮料。而通过B货道的第三图像采集装置拍摄到的目标物品为一袋食品,则可以进一步在数据库中查询该食品的重量,若为500g,则确定该一袋食品为目标物品。The re-inspection may include: the back-end server obtains the adjacent location of the target location, for example, it may be the B cargo lane adjacent to the A cargo lane. Repeat steps S601 to S604. The difference is that in step S603, among the item images captured by the third image acquisition device at the adjacent position (cargo aisle B), search for the first item image corresponding to the first moment, and the item image corresponding to the second moment. The second item image is used to determine the target item taken away at the target position corresponding to the target position information. For example, if the target item photographed by the third image acquisition device of B cargo lane is a bottle of beverage in a pop-top can, then the target item is determined to be a bottle of beverage in a pop-top can. And the target item photographed by the third image acquisition device of B cargo lane is a bag of food, then the weight of the food can be further queried in the database, if it is 500g, then it is determined that the bag of food is the target item.

通过上述实施方式,在查询的标准重量与差值不相符的情况下,借助目标位置的相邻位置处的第三图像采集装置采集的图像进行辅助判定。由于向量位置与目标位置的角度不同,从而通过多角度的图片比对,最终确定目标物品。以提高确定目标物品的置信度。Through the above-mentioned embodiment, in the case that the inquired standard weight does not match the difference, an auxiliary determination is made with the aid of the image captured by the third image capture device at a position adjacent to the target position. Since the angle between the vector position and the target position is different, the target item is finally determined through multi-angle picture comparison. In order to improve the confidence of determining the target item.

图10示出根据本发明实施例的物品状态检测装置的结构框图。如图10所示,该装置包括:Fig. 10 shows a structural block diagram of an object state detection device according to an embodiment of the present invention. As shown in Figure 10, the device includes:

用户实时位置确定模块1001,用于对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。The user real-time position determination module 1001 is used to track the human body of each user entering the set area, so as to determine the real-time position information of each user in the set area.

目标物品位置信息确定模块1002,用于在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息。The target item position information determination module 1002 is configured to acquire the position information of the moved target item when it is detected that the target item in the set area is moved.

匹配模块1003,用于根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。The matching module 1003 is configured to match and obtain the identification information of the target user who moves the target item according to the position information of the target item and the real-time position information of each user in the set area.

如图11所示,在一种实施方式中,所述用户实时位置确定模块1001包括:As shown in FIG. 11 , in an implementation manner, the user real-time location determining module 1001 includes:

第一面部图像获取子模块10011,用于获取进入所述设定区域的各所述用户的面部图像。The first facial image acquisition sub-module 10011 is used to acquire the facial images of the users entering the set area.

标识信息第一获取子模块10012,用于根据各所述用户的面部图像,获取各所述用户的标识信息。The first identification information acquisition sub-module 10012 is configured to acquire the identification information of each user according to the facial image of each user.

实时位置信息确定子模块10013,用于根据各所述用户的标识信息,利用行人重识别ReID方式对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。The real-time location information determination sub-module 10013 is used to track the human body of each user by using the pedestrian re-identification ReID method according to the identification information of each user, so as to determine the real-time location information of each user in the set area .

如图12所示,在一种实施方式中,所述匹配模块1003,包括:As shown in FIG. 12, in an implementation manner, the matching module 1003 includes:

第一距离确定子模块10031,用于比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离;The first distance determination sub-module 10031 is used to compare the real-time location information of each user in the set area with the location information of the target item, and determine the distance between each user and the target item;

标识信息第二获取子模块10032,用于获取与所述目标物品的距离最近的用户的标识信息。The second identification information acquisition sub-module 10032 is configured to acquire the identification information of the user with the closest distance to the target item.

如图13所示,在一种实施方式中,该装置还包括:As shown in Figure 13, in one embodiment, the device also includes:

图像获取模块1301,用于获取深度图像采集装置所采集的各用户的彩色图像和深度图像;An image acquisition module 1301, configured to acquire the color image and depth image of each user collected by the depth image acquisition device;

人体关键点提取模块1302,用于从各所述用户的彩色图像中提取人体关键点;Human body key point extraction module 1302, for extracting human body key points from the color images of each user;

手位置信息确定模块1303,用于将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息;A hand position information determination module 1303, configured to correspond the key points of the human body to the depth image, so as to determine the position information of each user's hand;

第二距离确定模块1304,用于比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离;The second distance determination module 1304 is configured to compare the position information of the hands of each user with the position information of the target item, and obtain the distance between the hands of each user and the target item;

标识信息第三获取子模块1305,用于获取与所述目标物品的距离最近的手所属的用户的标识信息。The third identification information acquisition submodule 1305 is configured to acquire the identification information of the user whose hand is closest to the target item.

如图14所示,在一种实施方式中,该装置还包括:As shown in Figure 14, in one embodiment, the device also includes:

第二面部图像获取模块1401,用于在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像;The second facial image acquisition module 1401 is used to acquire the facial image of the target user who moves the target item when it is detected that the target item in the set area is moved;

面部识别模块1402,用于利用所述设定区域内的各用户的已有图像对所述目标用户的面部图像进行面部识别;A facial recognition module 1402, configured to perform facial recognition on the facial image of the target user by using the existing images of each user in the set area;

标识信息第四获取子模块1403,用于根据面部识别模块的识别结果,获取所述目标用户的标识信息;The fourth identification information acquisition sub-module 1403 is used to acquire the identification information of the target user according to the recognition result of the facial recognition module;

判别模块1404,用于比较通过所述标识信息第四获取子模块获取的目标用户的标识信息与所述匹配模块匹配得到移动所述目标物品的目标用户的标识信息是否一致。The judging module 1404 is configured to compare whether the identification information of the target user acquired through the fourth identification information acquisition sub-module is consistent with the identification information of the target user who moves the target item through matching by the matching module.

如图15所示,在一种实施方式中,该装置还包括:As shown in Figure 15, in one embodiment, the device also includes:

触发信息接收模块1501,用于接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻;The trigger information receiving module 1501 is configured to receive the trigger information of the gravity sensor, the trigger information includes the first moment when the item is touched and the second moment when the item is taken away;

重力感应传感器位置信息获取模块1502,用于获取所述重力感应传感器对应的目标位置信息;Gravity sensing sensor position information acquisition module 1502, configured to acquire target position information corresponding to the gravity sensing sensor;

物品图像查找模块1503,用于在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像;Item image search module 1503, configured to search for the first item image corresponding to the first moment and the second item image corresponding to the second moment in the item images collected at the target location corresponding to the target location information;

目标物品确定模块1504,用于比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。A target item determination module 1504, configured to compare the difference between the first item image and the second item image to determine the target item taken away at the target position corresponding to the target position information.

如图16所示,在一种实施方式中,该装置还包括:As shown in Figure 16, in one embodiment, the device further includes:

重量获取模块1601,用于获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量;A weight acquisition module 1601, configured to acquire the first weight of the gravity sensing sensor before the target item is taken away and the second weight after being taken away;

差值确定模块1602,用于得到所述第一重量与所述第二重量的差值;A difference determination module 1602, configured to obtain the difference between the first weight and the second weight;

标准重量查询模块1603,用于查询所述目标物品的标准重量;A standard weight query module 1603, configured to query the standard weight of the target item;

重量比较模块1604,用于比较所述差值与所述目标物品的标准重量是否一致。A weight comparison module 1604, configured to compare whether the difference is consistent with the standard weight of the target item.

图17示出根据本发明实施例的物品检测系统的结构框图,如图17所示,该系统包括:Fig. 17 shows a structural block diagram of an object detection system according to an embodiment of the present invention. As shown in Fig. 17, the system includes:

服务器1701,包括上述物品状态检测装置;The server 1701 includes the above-mentioned item state detection device;

人体跟踪装置1702,用于采集设定区域的各用户的跟踪图像,传输至所述服务器;The human body tracking device 1702 is used to collect tracking images of users in the set area and transmit them to the server;

重力感应传感器1703,用于在检测到所述设定区域内的目标物品被移动的情况下,输出感应信息至所述服务器。The gravity sensing sensor 1703 is configured to output sensing information to the server when it detects that the target item in the set area is moved.

在一种实施方式中,该系统还包括以下至少一种:In one embodiment, the system also includes at least one of the following:

面部图像采集装置,用于采集移动所述目标物品的目标用户的面部图像;A facial image acquisition device, configured to acquire a facial image of a target user who moves the target item;

深度图像采集装置,用于采集各用户的深度图像。The depth image collection device is used to collect the depth images of each user.

在一种实施方式中,还包括:In one embodiment, it also includes:

核心交换机,与所述服务器通信连接;A core switch, communicatively connected to the server;

多个二级交换机,与所述核心交换机通信连接,每个所述二级交换机连接指定类型的前端设备;A plurality of secondary switches are communicatively connected to the core switch, and each of the secondary switches is connected to a specified type of front-end equipment;

其中,所述二级交换机用于控制自身所连接的不同前端设备之间的数据交互,以及前端设备与核心交换机之间的数据交互;所述前端设备包括人体跟踪装置、重力感应传感器、面部图像采集装置、深度图像采集装置中的一种或多种。Wherein, the secondary switch is used to control the data interaction between different front-end devices connected to itself, and the data interaction between the front-end device and the core switch; the front-end device includes a human body tracking device, a gravity sensor, a facial image One or more of an acquisition device and a depth image acquisition device.

如图18所示,例如系统可以包括分别与核心交换机通信连接的二级交换机、后台服务器和存储服务器。二级交换机有两个功能,一是对与其连接的前端设备的数据传输,二是对与其连接的前端设备供电。前端设备可以是重力感应传感器、第一图像传感器、第二图像采集装置、第三图像采集装置、深度图像采集装置、用户跟踪装置、闸门等。前端设备和二级交换机之间可以采用有源以太网(POE,Power Over Ethernet)组网,也就是数据传输和供电只需要一根网线。由此可以减少布线的难度,增加了整体系统的可靠性。其中,核心交换机与后台服务器之间可以采用10G光纤连接,具有低延时,数据转发能力强等优势,大大的提高了网络传输的效率。核心交换机与二级交换机之间可以采用千兆网线连接。核心交换机与存储服务器之间采用无线通信,例如采用4G网络、5G网络或WiFi网络等。As shown in FIG. 18 , for example, the system may include a secondary switch, a background server, and a storage server that are communicatively connected to the core switch, respectively. The secondary switch has two functions, one is to transmit data to the front-end equipment connected to it, and the other is to supply power to the front-end equipment connected to it. The front-end equipment may be a gravity sensing sensor, a first image sensor, a second image acquisition device, a third image acquisition device, a depth image acquisition device, a user tracking device, a gate, and the like. PoE (Power Over Ethernet) networking can be used between the front-end equipment and the secondary switch, that is, only one network cable is required for data transmission and power supply. Therefore, the difficulty of wiring can be reduced, and the reliability of the overall system can be increased. Among them, the core switch and the background server can be connected by 10G optical fiber, which has the advantages of low delay and strong data forwarding ability, which greatly improves the efficiency of network transmission. Gigabit network cables can be used to connect the core switch and the secondary switch. Wireless communication is used between the core switch and the storage server, such as 4G network, 5G network or WiFi network.

二级交换机可以包括:Secondary switches can include:

货架二级交换机,可以与货架的数量相对应。货架二级交换机与其对应的货架上的重力感应传感器、第二图像采集装置、第三图像采集装置、深度图像采集装置等前端设备连接。Rack secondary switches can correspond to the number of racks. The shelf secondary switch is connected with front-end equipment such as the gravity sensor on the corresponding shelf, the second image acquisition device, the third image acquisition device, and the depth image acquisition device.

通过构建上述网络拓扑结构方便网络走线。例如一个货架所有的物品识别信息、用户识别信息放在一个二级交换机传输。只需要一根网线连接到核心交换机即可。方便工程布线、排查问题和维修。By constructing the above-mentioned network topology structure, it is convenient to route the network. For example, all item identification information and user identification information of a shelf are transmitted in a secondary switch. Only one network cable is needed to connect to the core switch. It is convenient for engineering wiring, troubleshooting and maintenance.

人体跟踪二级交换机,可以根据用户跟踪装置的数量设置。例如,可以根据用户跟踪装置的布设位置,将设定区域等分为N个区域。每一个区域对应设置一个人体跟踪二级交换机,与分布在该区域的各个用户跟踪装置连接。The secondary switch for human body tracking can be set according to the number of user tracking devices. For example, the set area may be equally divided into N areas according to the deployment position of the user tracking device. Each area corresponds to a human body tracking secondary switch, which is connected to each user tracking device distributed in the area.

人机交互二级交换机,分别与第一图像传感器、闸门等具有人机交互功能的前端设备连接。作为扩展的实施方式,具有人机交互功能的前端设备还可以包括UPS设备,电动门设备和显示设备等前端设备连接。The human-computer interaction secondary switch is respectively connected to front-end equipment with human-computer interaction functions such as the first image sensor and the gate. As an extended embodiment, the front-end equipment with human-computer interaction function may also include UPS equipment, electric door equipment, display equipment and other front-end equipment connections.

按照功能分类,在对该功能下的前端设备可以相互通信,实现数据不需要经过核心交换机就能完成数据交互。例如,在一种实施方式中,第一图像传感器集成有识别功能,在第一图像传感器识别出用户后,即可输出控制信息开启闸门。或者在第一图像传感器识别出用户后,将用户的标识信息发送至显示设备。显示设备根据识别出用户的物品获取习惯在显示设备中推送相关信息等。According to the functional classification, the front-end devices under this function can communicate with each other, and the data can be exchanged without passing through the core switch. For example, in one embodiment, the first image sensor is integrated with a recognition function, and after the first image sensor recognizes the user, it can output control information to open the gate. Alternatively, after the first image sensor recognizes the user, the identification information of the user is sent to the display device. The display device pushes relevant information and the like on the display device according to the recognized item acquisition habit of the user.

所有前端设备进行网络广播,例如在需要同步触发采集图片时,因为同出于一个二级交换机上,网络延时一致,这样得到图片的时间点是同步的。All front-end devices perform network broadcasting. For example, when synchronous triggering is required to capture pictures, because they are on the same secondary switch, the network delay is consistent, so the time points for obtaining pictures are synchronized.

存储服务器可以用于存储日志文件和数据等。日志文件可以包括后台服务器、核心交换机和二级交换机的记录系统操作事件的记录文件或文件集合。数据可以包括注册信息,位置信息等。Storage servers can be used to store log files and data, etc. The log files may include record files or file collections of background servers, core switches, and secondary switches that record system operation events. Data can include registration information, location information, etc.

图19示出根据本发明实施例的物品状态检测系统的结构框图。如图19所示,该系统包括:存储器1910和处理器1920,存储器1910内存储有可在处理器1920上运行的计算机程序。所述处理器1920执行所述计算机程序时实现上述实施例中的物品状态检测方法。所述存储器1910和处理器1920的数量可以为一个或多个。Fig. 19 shows a structural block diagram of an item status detection system according to an embodiment of the present invention. As shown in FIG. 19 , the system includes: a memory 1910 and a processor 1920 , and the memory 1910 stores computer programs that can run on the processor 1920 . When the processor 1920 executes the computer program, the object status detection method in the above-mentioned embodiments is implemented. The number of the memory 1910 and the processor 1920 may be one or more.

该系统还包括:The system also includes:

通信接口1930,用于与外界设备进行通信,进行数据交互传输。The communication interface 1930 is used to communicate with external devices for interactive data transmission.

存储器1910可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 1910 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.

如果存储器1910、处理器1920和通信接口1930独立实现,则存储器1910、处理器1920和通信接口1930可以通过总线相互连接并完成相互间的通信。所述总线可以是工业标准体系结构(ISA,Industry Standard Architecture)总线、外部设备互连(PCI,Peripheral Component Interconnect)总线或扩展工业标准体系结构(EISA,ExtendedIndustry Standard Architecture)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图19中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the memory 1910, the processor 1920, and the communication interface 1930 are independently implemented, the memory 1910, the processor 1920, and the communication interface 1930 may be connected to each other through a bus to complete mutual communication. The bus may be an Industry Standard Architecture (ISA, Industry Standard Architecture) bus, a Peripheral Component Interconnect (PCI, Peripheral Component Interconnect) bus, or an Extended Industry Standard Architecture (EISA, Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 19 , but it does not mean that there is only one bus or one type of bus.

可选的,在具体实现上,如果存储器1910、处理器1920及通信接口1930集成在一块芯片上,则存储器1910、处理器1920及通信接口1930可以通过内部接口完成相互间的通信。Optionally, in specific implementation, if the memory 1910, the processor 1920, and the communication interface 1930 are integrated on one chip, the memory 1910, the processor 1920, and the communication interface 1930 may communicate with each other through the internal interface.

本发明实施例提供了一种计算机可读存储介质,其存储有计算机程序,该程序被处理器执行时实现上述实施例中任一所述的方法。An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the method described in any one of the above-mentioned embodiments is implemented.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. processing to obtain the program electronically and store it in computer memory.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.

此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读存储介质中。所述存储介质可以是只读存储器,磁盘或光盘等。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到其各种变化或替换,这些都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of its various changes or modifications within the technical scope disclosed in the present invention. Replacement, these should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (19)

1.一种物品状态检测方法,其特征在于,包括:1. A method for detecting the state of an article, characterized in that, comprising: 对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息;Perform human body tracking on each user entering the set area to determine the real-time position information of each user in the set area; 在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息;If it is detected that the target item in the set area is moved, acquiring the position information of the moved target item; 根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。According to the position information of the target item and the real-time position information of each user in the set area, the identification information of the target user who moves the target item is obtained through matching. 2.根据权利要求1所述的方法,其特征在于,对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息,包括:2. The method according to claim 1, wherein the human body tracking is performed on each user who enters the set area to determine the real-time position information of each user in the set area, including: 获取进入所述设定区域的各所述用户的面部图像;acquiring facial images of each of the users entering the set area; 根据各所述用户的面部图像,获取各所述用户的标识信息;Acquiring identification information of each user according to the facial image of each user; 根据各所述用户的标识信息,利用行人重识别ReID方式对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。According to the identification information of each of the users, human body tracking is performed on each of the users by means of pedestrian re-identification ReID, so as to determine the real-time position information of each of the users in the set area. 3.根据权利要求1所述的方法,其特征在于,根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息,包括:3. The method according to claim 1, characterized in that, according to the location information of the target item and the real-time location information of each user in the set area, the location of the target user who moves the target item is matched. Identification information, including: 比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离;Comparing the real-time location information of each user in the set area with the location information of the target item to determine the distance between each user and the target item; 获取与所述目标物品的距离最近的用户的标识信息。Acquiring the identification information of the user with the closest distance to the target item. 4.根据权利要求1所述的方法,其特征在于,还包括:4. The method according to claim 1, further comprising: 获取深度图像采集装置所采集的各用户的彩色图像和深度图像;Obtain the color image and depth image of each user collected by the depth image acquisition device; 从各所述用户的彩色图像中提取人体关键点;extracting key points of the human body from the color images of each of the users; 将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息;Corresponding the key points of the human body with the depth image to determine the position information of each user's hand; 比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离;Comparing the position information of the hands of each user with the position information of the target item to obtain the distance between the hands of each user and the target item; 获取与所述目标物品的距离最近的手所属的用户的标识信息。Acquiring the identification information of the user whose hand is closest to the target item. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method according to claim 1, further comprising: 在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像;In the case of detecting that the target item in the set area is moved, acquiring a facial image of the target user who moves the target item; 利用所述设定区域内的各用户的已有图像对所述目标用户的面部图像进行面部识别,获取所述目标用户的标识信息;performing facial recognition on the facial image of the target user by using the existing images of the users in the set area, and acquiring the identification information of the target user; 比较通过面部识别获取的目标用户的标识信息与所述匹配得到移动所述目标物品的目标用户的标识信息是否一致。Comparing whether the identification information of the target user obtained through facial recognition is consistent with the identification information of the target user who moves the target item obtained through matching. 6.根据权利要求1所述的方法,其特征在于,还包括:6. The method according to claim 1, further comprising: 接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻;receiving trigger information from the gravity sensing sensor, the trigger information including the first moment when the item is touched and the second moment when the item is taken away; 获取所述重力感应传感器对应的目标位置信息;Acquiring target position information corresponding to the gravity sensing sensor; 在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像;In the item images collected at the target location corresponding to the target location information, search for the first item image corresponding to the first moment and the second item image corresponding to the second moment; 比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。The difference between the first item image and the second item image is compared to determine the target item taken away at the target position corresponding to the target position information. 7.根据权利要求6所述的方法,其特征在于,还包括:7. The method according to claim 6, further comprising: 获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量;Obtaining the first weight of the gravity sensing sensor before the target item is taken away and the second weight after being taken away; 得到所述第一重量与所述第二重量的差值;obtaining the difference between the first weight and the second weight; 查询所述目标物品的标准重量;Query the standard weight of the target item; 比较所述差值与所述目标物品的标准重量是否一致。Comparing whether the difference is consistent with the standard weight of the target item. 8.一种物品状态检测装置,其特征在于,包括:8. An object state detection device, characterized in that, comprising: 用户实时位置确定模块,用于对进入设定区域的各用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息;A user real-time location determination module, configured to track the human body of each user entering the set area, so as to determine the real-time position information of each user in the set area; 目标物品位置信息确定模块,用于在检测到所述设定区域内的目标物品被移动的情况下,获取被移动的目标物品的位置信息;A target item position information determining module, configured to obtain the position information of the moved target item when it is detected that the target item in the set area is moved; 匹配模块,用于根据所述目标物品的位置信息,以及所述设定区域内的各用户的实时位置信息,匹配得到移动所述目标物品的目标用户的标识信息。The matching module is configured to match and obtain the identification information of the target user who moves the target item according to the position information of the target item and the real-time position information of each user in the set area. 9.根据权利要求8所述的装置,其特征在于,所述用户实时位置确定模块,包括:9. The device according to claim 8, wherein the module for determining the real-time position of the user comprises: 第一面部图像获取子模块,用于获取进入所述设定区域的各所述用户的面部图像;The first facial image acquisition submodule is used to acquire the facial images of each of the users entering the set area; 标识信息第一获取子模块,用于根据各所述用户的面部图像,获取各所述用户的标识信息;The first identification information acquisition submodule is used to acquire the identification information of each user according to the facial image of each user; 实时位置信息确定子模块,用于根据各所述用户的标识信息,利用行人重识别ReID方式对各所述用户进行人体跟踪,以确定各所述用户在所述设定区域的实时位置信息。The real-time position information determination sub-module is used to track the human body of each user by means of pedestrian re-identification ReID according to the identification information of each user, so as to determine the real-time position information of each user in the set area. 10.根据权利要求8所述的装置,其特征在于,所述匹配模块,包括:10. The device according to claim 8, wherein the matching module comprises: 第一距离确定子模块,用于比较所述设定区域内的各用户的实时位置信息与所述目标物品的位置信息,确定各所述用户与所述目标物品的距离;The first distance determination submodule is used to compare the real-time location information of each user in the set area with the location information of the target item, and determine the distance between each user and the target item; 标识信息第二获取子模块,用于获取与所述目标物品的距离最近的用户的标识信息。The second identification information acquisition submodule is configured to acquire the identification information of the user with the closest distance to the target item. 11.根据权利要求8所述的装置,其特征在于,还包括:11. The device according to claim 8, further comprising: 图像获取模块,用于获取深度图像采集装置所采集的各用户的彩色图像和深度图像;An image acquisition module, configured to acquire the color image and depth image of each user collected by the depth image acquisition device; 人体关键点提取模块,用于从各所述用户的彩色图像中提取人体关键点;A human body key point extraction module, used to extract human body key points from the color images of each of the users; 手位置信息确定模块,用于将所述人体关键点与所述深度图像对应,以确定各所述用户的手的位置信息;A hand position information determining module, configured to correspond the key points of the human body to the depth image, so as to determine the position information of each user's hand; 第二距离确定模块,用于比较所述各用户的手的位置信息和目标物品的位置信息,得到各用户的手与目标物品的距离;The second distance determination module is used to compare the position information of each user's hand with the position information of the target item, and obtain the distance between each user's hand and the target item; 标识信息第三获取子模块,用于获取与所述目标物品的距离最近的手所属的用户的标识信息。The third identification information acquisition submodule is configured to acquire the identification information of the user whose hand is closest to the target item. 12.根据权利要求8所述的装置,其特征在于,还包括:12. The device according to claim 8, further comprising: 第二面部图像获取模块,用于在检测到设定区域内的目标物品被移动的情况下,获取移动所述目标物品的目标用户的面部图像;The second facial image acquisition module is used to acquire the facial image of the target user who moves the target item when the target item in the set area is detected to be moved; 面部识别模块,用于利用所述设定区域内的各用户的已有图像对所述目标用户的面部图像进行面部识别;A facial recognition module, configured to perform facial recognition on the facial image of the target user by using the existing images of each user in the set area; 标识信息第四获取子模块,用于根据面部识别模块的识别结果,获取所述目标用户的标识信息;The fourth identification information acquisition sub-module is used to acquire the identification information of the target user according to the recognition result of the facial recognition module; 判别模块,用于比较通过所述标识信息第四获取子模块获取的目标用户的标识信息与所述匹配模块匹配得到移动所述目标物品的目标用户的标识信息是否一致。A judging module, configured to compare whether the identification information of the target user acquired through the fourth identification information acquisition sub-module is consistent with the identification information of the target user who moves the target item after being matched by the matching module. 13.根据权利要求8所述的装置,其特征在于,还包括:13. The device of claim 8, further comprising: 触发信息接收模块,用于接收重力感应传感器的触发信息,所述触发信息包括在物品被触碰的第一时刻和在物品被取走的第二时刻;The trigger information receiving module is used to receive the trigger information of the gravity sensor, and the trigger information includes the first moment when the item is touched and the second moment when the item is taken away; 重力感应传感器位置信息获取模块,用于获取所述重力感应传感器对应的目标位置信息;A gravity sensing sensor position information acquisition module, configured to acquire target position information corresponding to the gravity sensing sensor; 物品图像查找模块,用于在所述目标位置信息对应的目标位置采集的物品图像中,查找所述第一时刻对应的第一物品图像,以及所述第二时刻对应的第二物品图像;An item image search module, configured to search for the first item image corresponding to the first moment and the second item image corresponding to the second moment in the item images collected at the target location corresponding to the target location information; 目标物品确定模块,用于比较所述第一物品图像和所述第二物品图像的差别,以确定所述目标位置信息对应的目标位置处被取走的目标物品。The target item determination module is configured to compare the difference between the first item image and the second item image to determine the target item taken away at the target position corresponding to the target position information. 14.根据权利要求8所述的装置,其特征在于,还包括:14. The device of claim 8, further comprising: 重量获取模块,用于获取所述重力感应传感器在所述目标物品被取走前的第一重量和被取走后的第二重量;a weight acquisition module, configured to acquire the first weight of the gravity sensing sensor before the target item is taken away and the second weight after being taken away; 差值确定模块,用于得到所述第一重量与所述第二重量的差值;a difference determination module, configured to obtain the difference between the first weight and the second weight; 标准重量查询模块,用于查询所述目标物品的标准重量;A standard weight inquiry module, used to inquire about the standard weight of the target item; 重量比较模块,用于比较所述差值与所述目标物品的标准重量是否一致。A weight comparison module, configured to compare whether the difference is consistent with the standard weight of the target item. 15.一种物品状态检测系统,其特征在于,包括:15. An article state detection system, characterized in that, comprising: 服务器,包括权利要求8-14的物品状态检测装置;A server, comprising the object state detection device according to claims 8-14; 人体跟踪装置,用于采集设定区域的各用户的跟踪图像,传输至所述服务器;A human body tracking device, configured to collect tracking images of users in a set area and transmit them to the server; 重力感应传感器,用于在检测到所述设定区域内的目标物品被移动的情况下,输出感应信息至所述服务器。The gravity sensing sensor is used to output sensing information to the server when it detects that the target item in the set area is moved. 16.根据权利要求15所述的系统,其特征在于,还包括以下至少一种:16. The system according to claim 15, further comprising at least one of the following: 面部图像采集装置,用于采集移动所述目标物品的目标用户的面部图像;A facial image acquisition device, configured to acquire a facial image of a target user who moves the target item; 深度图像采集装置,用于采集各用户的深度图像。The depth image collection device is used to collect the depth images of each user. 17.根据权利要求16所述的系统,其特征在于,还包括:17. The system of claim 16, further comprising: 核心交换机,与所述服务器通信连接;A core switch, communicatively connected to the server; 多个二级交换机,与所述核心交换机通信连接,每个所述二级交换机连接指定类型的前端设备;A plurality of secondary switches are communicatively connected to the core switch, and each of the secondary switches is connected to a specified type of front-end equipment; 其中,所述二级交换机用于控制自身所连接的不同前端设备之间的数据交互,以及前端设备与核心交换机之间的数据交互;所述前端设备包括人体跟踪装置、重力感应传感器、面部图像采集装置、深度图像采集装置中的一种或多种。Wherein, the secondary switch is used to control the data interaction between different front-end devices connected to itself, and the data interaction between the front-end device and the core switch; the front-end device includes a human body tracking device, a gravity sensor, a facial image One or more of an acquisition device and a depth image acquisition device. 18.一种物品状态检测系统,其特征在于,包括:18. An article state detection system, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序;storage means for storing one or more programs; 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至7中任一项所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method according to any one of claims 1-7. 19.一种计算机可读存储介质,其存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1至7中任一项所述的方法。19. A computer-readable storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
CN201910641470.9A 2019-07-16 2019-07-16 Article condition detection method, device and computer readable storage medium Pending CN110347772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910641470.9A CN110347772A (en) 2019-07-16 2019-07-16 Article condition detection method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910641470.9A CN110347772A (en) 2019-07-16 2019-07-16 Article condition detection method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110347772A true CN110347772A (en) 2019-10-18

Family

ID=68176534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910641470.9A Pending CN110347772A (en) 2019-07-16 2019-07-16 Article condition detection method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110347772A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310585A (en) * 2020-01-20 2020-06-19 北京百度网讯科技有限公司 Method and apparatus for generating information
CN111310610A (en) * 2020-01-22 2020-06-19 上海追月科技有限公司 Goods identification method, goods identification system and electronic equipment
CN111680654A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN112258572A (en) * 2020-09-30 2021-01-22 北京达佳互联信息技术有限公司 Target detection method and device, electronic equipment and storage medium
CN113239896A (en) * 2021-06-15 2021-08-10 创优数字科技(广东)有限公司 Image detection method and device
CN113619980A (en) * 2021-08-12 2021-11-09 上海擎朗智能科技有限公司 Object transportation method, device, computer equipment, storage medium and system
US11263762B2 (en) 2019-12-31 2022-03-01 Sensetime International Pte. Ltd. Image recognition method and apparatus, and computer-readable storage medium
CN114240287A (en) * 2021-12-14 2022-03-25 上海擎朗智能科技有限公司 Delivery method, device, robot and storage medium
CN120564306A (en) * 2025-07-31 2025-08-29 吉林云投莱森购数字科技有限公司 A contactless payment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030047387A1 (en) * 2001-09-10 2003-03-13 Ncr Corporation System and method for tracking items at a scale of a self-checkout terminal
CN106934692A (en) * 2017-03-03 2017-07-07 陈维龙 Item Information processing system, method and device
CN107992779A (en) * 2017-12-29 2018-05-04 深圳正品创想科技有限公司 A kind of customer behavior measure of supervision, system and unmanned shop
CN108875690A (en) * 2018-06-29 2018-11-23 百度在线网络技术(北京)有限公司 Unmanned Retail commodity identifying system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030047387A1 (en) * 2001-09-10 2003-03-13 Ncr Corporation System and method for tracking items at a scale of a self-checkout terminal
CN106934692A (en) * 2017-03-03 2017-07-07 陈维龙 Item Information processing system, method and device
CN107992779A (en) * 2017-12-29 2018-05-04 深圳正品创想科技有限公司 A kind of customer behavior measure of supervision, system and unmanned shop
CN108875690A (en) * 2018-06-29 2018-11-23 百度在线网络技术(北京)有限公司 Unmanned Retail commodity identifying system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11263762B2 (en) 2019-12-31 2022-03-01 Sensetime International Pte. Ltd. Image recognition method and apparatus, and computer-readable storage medium
CN111310585B (en) * 2020-01-20 2023-08-01 北京百度网讯科技有限公司 Method and device for generating information
CN111310585A (en) * 2020-01-20 2020-06-19 北京百度网讯科技有限公司 Method and apparatus for generating information
CN111310610A (en) * 2020-01-22 2020-06-19 上海追月科技有限公司 Goods identification method, goods identification system and electronic equipment
WO2021147950A1 (en) * 2020-01-22 2021-07-29 上海追月科技有限公司 Goods identification method, goods identification system, and electronic device
CN111680654A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN111680654B (en) * 2020-06-15 2023-10-13 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN112258572A (en) * 2020-09-30 2021-01-22 北京达佳互联信息技术有限公司 Target detection method and device, electronic equipment and storage medium
CN113239896A (en) * 2021-06-15 2021-08-10 创优数字科技(广东)有限公司 Image detection method and device
CN113619980A (en) * 2021-08-12 2021-11-09 上海擎朗智能科技有限公司 Object transportation method, device, computer equipment, storage medium and system
CN113619980B (en) * 2021-08-12 2023-04-07 上海擎朗智能科技有限公司 Object transportation method, device, computer equipment, storage medium and system
CN114240287A (en) * 2021-12-14 2022-03-25 上海擎朗智能科技有限公司 Delivery method, device, robot and storage medium
CN120564306A (en) * 2025-07-31 2025-08-29 吉林云投莱森购数字科技有限公司 A contactless payment method and device
CN120564306B (en) * 2025-07-31 2025-09-30 吉林云投莱森购数字科技有限公司 Non-inductive payment method and device

Similar Documents

Publication Publication Date Title
CN110347772A (en) Article condition detection method, device and computer readable storage medium
CN109089082B (en) Image acquisition system based on thermal characteristic image
CN108416909B (en) Intelligent sales counter and intelligent vending method
CN109409291B (en) Commodity identification method and system of intelligent container and shopping order generation method
CN109658631B (en) Intelligent express box, control system and control method thereof
CN111906780B (en) Article distribution method, robot and medium
KR101255950B1 (en) Location-based construction project management method and system
CN111899131B (en) Article distribution method, apparatus, robot, and medium
US12322120B2 (en) Monitoring delivered packages using video
CN112307864A (en) Method, device and human-computer interaction system for determining target object
CN105151626A (en) Warehouse-type automatic storing/taking equipment and storing/taking method
CN104899982A (en) Intelligent deposit locker system, intelligent depositing method and device
CN110648257B (en) Information prompting method and device based on Internet of things operating system and storage medium
CN112005244A (en) Item management method, terminal device, item management device, and storage medium
CN109389341B (en) Machine vision recognition system for unmanned vending convenience store
US12299989B2 (en) Monitoring presence or absence of an object using local region matching
CN206075336U (en) Automated storage and retrieval system
CN106570669A (en) Device and system used for storing metering appliance
TWI675337B (en) Unmanned goods management system and unmanned goods management method
CN113743324B (en) An automatic update fish identification system based on the Internet of Things
CN114494964B (en) Information processing method, device, equipment and storage medium
CN109359706A (en) Merchandise news intelligent identifying system and method
CA3191879A1 (en) Monitoring package pickups using video
CN116311650A (en) A Human-Computer Interaction Method Based on Gaze Tracking and Gesture Recognition Based on Intelligent Access Control
CN113296680A (en) Dish picture uploading method and device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination