[go: up one dir, main page]

CN108875822A - Data acquisition method and device, electronic equipment and computer readable storage medium - Google Patents

Data acquisition method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN108875822A
CN108875822A CN201810589381.XA CN201810589381A CN108875822A CN 108875822 A CN108875822 A CN 108875822A CN 201810589381 A CN201810589381 A CN 201810589381A CN 108875822 A CN108875822 A CN 108875822A
Authority
CN
China
Prior art keywords
information
item
preset
historical
data
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
CN201810589381.XA
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.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai 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 Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN201810589381.XA priority Critical patent/CN108875822A/en
Publication of CN108875822A publication Critical patent/CN108875822A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/217Validation; Performance evaluation; Active pattern learning techniques
    • G06F18/2193Validation; Performance evaluation; Active pattern learning techniques based on specific statistical tests
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Human Resources & Organizations (AREA)
  • Probability & Statistics with Applications (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Development Economics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Strategic Management (AREA)
  • Evolutionary Biology (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a data acquisition method, a data acquisition device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a current image of a placement position and first article information preset in the placement position; identifying the current image and determining second article information of the article placement position; and acquiring historical information corresponding to the placement position, and determining abnormal data information according to the first article information, the second article information and the historical information. This technical scheme comes the automatic determination abnormal data information through putting the comparison of the present article information of thing department and predetermineeing article information, and the cost that can the significantly reduced human input like this improves data statistics efficiency, and then effectively supports the large-scale development of unmanned trade of selling.

Description

数据获取方法、装置、电子设备及计算机可读存储介质Data acquisition method, device, electronic device, and computer-readable storage medium

技术领域technical field

本发明实施例涉及信息处理技术领域,具体涉及一种数据获取方法、装置、电子设备及计算机可读存储介质。The embodiments of the present invention relate to the technical field of information processing, and in particular to a data acquisition method, device, electronic equipment, and computer-readable storage medium.

背景技术Background technique

随着互联网技术的发展、科技的进步,为了方便人们的使用,无人超市、无人售卖机、无人货架应运而生,实现完全的自主购物。With the development of Internet technology and the advancement of science and technology, in order to facilitate people's use, unmanned supermarkets, unmanned vending machines, and unmanned shelves have emerged as the times require to realize completely independent shopping.

然而,发明人在实现本发明的过程中发现,由于无人售卖环境中无人对于用户的购买行为的监管,因此,经常会出现购买行为以外的货物减少情况,进而导致商家发生经营损失。为了了解货物损失的情况,商家通常采用人工盘点的方式来实现,但人工盘点耗时较长,实时性差,且人力成本较高。However, the inventor found in the process of realizing the present invention that since no one supervises the user's purchase behavior in the unmanned sales environment, there is often a reduction in goods other than purchase behavior, which in turn leads to business losses for merchants. In order to understand the loss of goods, merchants usually use manual inventory to achieve, but manual inventory takes a long time, poor real-time performance, and high labor costs.

发明内容Contents of the invention

本发明实施例提供一种数据获取方法、装置、电子设备及计算机可读存储介质。Embodiments of the present invention provide a data acquisition method, device, electronic equipment, and computer-readable storage medium.

第一方面,本发明实施例中提供了一种数据获取方法。In a first aspect, an embodiment of the present invention provides a data acquisition method.

具体的,所述数据获取方法,包括:Specifically, the data acquisition method includes:

获取置物处的当前图像和所述置物处预设的第一物品信息;Acquiring the current image of the storage place and the preset first item information of the storage place;

对所述当前图像进行识别,确定所述置物处的第二物品信息;Recognizing the current image, and determining the second item information at the storage place;

获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。Obtain historical information corresponding to the storage place, and determine abnormal data information according to the first item information, the second item information, and the historical information.

结合第一方面,本发明实施例在第一方面的第一种实现方式中,所述获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息,包括:With reference to the first aspect, in the first implementation manner of the first aspect, in the embodiment of the present invention, the acquisition of historical information corresponding to the storage place is based on the first item information, the second item information and the Historical information identifies abnormal data information, including:

根据所述第一物品信息和所述第二物品信息确定所述置物处物品的第三属性信息;determining third attribute information of the item at the storage place according to the first item information and the second item information;

获取所述置物处对应的历史信息,根据所述历史信息和所述第三属性信息确定异常数据信息。Obtain historical information corresponding to the storage place, and determine abnormal data information according to the historical information and the third attribute information.

结合第一方面和第一方面的第一种实现方式,本发明实施例在第一方面的第二种实现方式中,所述获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息,包括:In combination with the first aspect and the first implementation manner of the first aspect, in the second implementation manner of the first aspect in the embodiment of the present invention, the acquisition of historical information corresponding to the storage place, according to the first item information , the second item information and the historical information determine the abnormal data information, including:

根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息;determining a target item in the current image and fourth attribute information of the target item according to the first item information and the second item information;

获取所述目标物品对应的历史信息,并根据所述目标物品的历史信息和所述第四属性信息确定所述目标物品的异常数据信息。Obtain historical information corresponding to the target item, and determine abnormal data information of the target item according to the historical information of the target item and the fourth attribute information.

结合第一方面、第一方面的第一种实现方式和第一方面的第二种实现方式,本发明实施例在第一方面的第三种实现方式中,所述置物处设置有至少两个预设位置,所述预设位置放置有预设数量的物品。Combining the first aspect, the first implementation of the first aspect and the second implementation of the first aspect, in the third implementation of the first aspect in the embodiment of the present invention, at least two A preset position, where a preset number of items are placed.

结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式和第一方面的第三种实现方式,本发明实施例在第一方面的第四种实现方式中,所述根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息,包括:Combining the first aspect, the first implementation of the first aspect, the second implementation of the first aspect and the third implementation of the first aspect, the embodiment of the present invention is in the fourth implementation of the first aspect , the determining the target item in the current image and the fourth attribute information of the target item according to the first item information and the second item information includes:

根据所述第一物品信息确定所述预设位置对应的预设物品的第一属性信息;determining first attribute information of a preset item corresponding to the preset position according to the first item information;

根据所述第二物品信息确定所述预设位置对应的所述置物处物品的第二属性信息;determining second attribute information of the item in the storage place corresponding to the preset position according to the second item information;

对所述第一属性信息和所述第二属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。Comparing the first attribute information with the second attribute information to determine the target item and fourth attribute information of the target item.

结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式、第一方面的第三种实现方式和第一方面的第四种实现方式,本发明实施例在第一方面的第五种实现方式中,所述根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息,包括:In combination with the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, the third implementation of the first aspect, and the fourth implementation of the first aspect, the embodiment of the present invention is In the fifth implementation manner of the first aspect, the determining the target item in the current image and the fourth attribute information of the target item according to the first item information and the second item information includes:

根据所述第一物品信息确定预设物品的第五属性信息;determining fifth attribute information of preset items according to the first item information;

根据所述第二物品信息确定所述置物处物品的第六属性信息;determining sixth attribute information of the item at the storage place according to the second item information;

对所述第五属性信息和所述第六属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。Comparing the fifth attribute information and the sixth attribute information to determine the target item and fourth attribute information of the target item.

结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式、第一方面的第三种实现方式、第一方面的第四种实现方式和第一方面的第五种实现方式,本发明实施例在第一方面的第六种实现方式中,所述历史信息包括:初始放置数量、预设历史时间段内的历史补充数据、预设历史时间段内的历史销售数据和成本价格数据;Combining the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, the third implementation of the first aspect, the fourth implementation of the first aspect and the first implementation of the first aspect Five implementations. In the sixth implementation of the first aspect of the embodiment of the present invention, the historical information includes: initial placement quantity, historical supplementary data within a preset historical time period, historical data within a preset historical time period sales data and cost price data;

所述根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息,包括:The determining abnormal data information according to the first item information, the second item information and the historical information includes:

根据所述第一物品信息、所述第二物品信息和所述历史信息计算所述置物处物品的异常数量;calculating an abnormal number of items at the storage place according to the first item information, the second item information, and the historical information;

根据所述成本价格数据和所述异常数量,确定所述异常数据信息。The abnormal data information is determined according to the cost price data and the abnormal quantity.

结合第一方面、第一方面的第一种实现方式、第一方面的第二种实现方式、第一方面的第三种实现方式、第一方面的第四种实现方式、第一方面的第五种实现方式和第一方面的第六种实现方式,本发明实施例在第一方面的第七种实现方式中,还包括:Combining the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, the third implementation of the first aspect, the fourth implementation of the first aspect, the first implementation of the first aspect Five implementations and the sixth implementation of the first aspect, the embodiment of the present invention in the seventh implementation of the first aspect further includes:

将所述异常数据信息进行整合,得到所述置物处的异常状态数据信息;Integrating the abnormal data information to obtain abnormal state data information at the storage place;

根据所述置物处的异常状态数据信息执行预设操作。Preset operations are performed according to the abnormal state data information at the object.

第二方面,本发明实施例中提供了一种数据获取装置。In a second aspect, an embodiment of the present invention provides a data acquisition device.

具体的,所述数据获取装置,包括:Specifically, the data acquisition device includes:

获取模块,被配置为获取置物处的当前图像和所述置物处预设的第一物品信息;An acquisition module configured to acquire the current image of the storage place and the preset first item information of the storage place;

识别模块,被配置为对所述当前图像进行识别,确定所述置物处的第二物品信息;An identification module configured to identify the current image and determine the second item information at the storage place;

确定模块,被配置为获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。The determining module is configured to obtain historical information corresponding to the storage place, and determine abnormal data information according to the first item information, the second item information, and the historical information.

结合第二方面,本发明实施例在第二方面的第一种实现方式中,所述确定模块包括:With reference to the second aspect, in the first implementation manner of the second aspect of the embodiment of the present invention, the determination module includes:

第一确定子模块,被配置为根据所述第一物品信息和所述第二物品信息确定所述置物处物品的第三属性信息;The first determining submodule is configured to determine third attribute information of the item at the storage place according to the first item information and the second item information;

第二确定子模块,被配置为获取所述置物处对应的历史信息,根据所述历史信息和所述第三属性信息确定异常数据信息。The second determining submodule is configured to obtain historical information corresponding to the storage place, and determine abnormal data information according to the historical information and the third attribute information.

结合第二方面和第二方面的第一种实现方式,本发明实施例在第二方面的第二种实现方式中,所述确定模块包括:In combination with the second aspect and the first implementation manner of the second aspect, in the second implementation manner of the second aspect in the embodiment of the present invention, the determination module includes:

第三确定子模块,被配置为根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息;The third determining submodule is configured to determine the target item in the current image and fourth attribute information of the target item according to the first item information and the second item information;

第四确定子模块,被配置为获取所述目标物品对应的历史信息,并根据所述目标物品的历史信息和所述第四属性信息确定所述目标物品的异常数据信息。The fourth determining submodule is configured to acquire historical information corresponding to the target item, and determine abnormal data information of the target item according to the historical information of the target item and the fourth attribute information.

结合第二方面、第二方面的第一种实现方式和第二方面的第二种实现方式,本发明实施例在第二方面的第三种实现方式中,所述置物处设置有至少两个预设位置,所述预设位置放置有预设数量的物品。Combining the second aspect, the first implementation of the second aspect and the second implementation of the second aspect, in the third implementation of the second aspect in the embodiment of the present invention, at least two A preset position, where a preset number of items are placed.

结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式和第二方面的第三种实现方式,本发明实施例在第二方面的第四种实现方式中,所述第三确定子模块包括:Combining the second aspect, the first implementation of the second aspect, the second implementation of the second aspect and the third implementation of the second aspect, the embodiment of the present invention is in the fourth implementation of the second aspect , the third determining submodule includes:

第五确定子模块,被配置为根据所述第一物品信息确定所述预设位置对应的预设物品的第一属性信息;The fifth determining submodule is configured to determine the first attribute information of the preset item corresponding to the preset position according to the first item information;

第六确定子模块,被配置为根据所述第二物品信息确定所述预设位置对应的所述置物处物品的第二属性信息;The sixth determining submodule is configured to determine the second attribute information of the item in the storage place corresponding to the preset position according to the second item information;

第七确定子模块,被配置为对所述第一属性信息和所述第二属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。The seventh determining submodule is configured to compare the first attribute information with the second attribute information, and determine the target item and fourth attribute information of the target item.

结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式、第二方面的第三种实现方式和第二方面的第四种实现方式,本发明实施例在第二方面的第五种实现方式中,所述第三确定子模块包括:In combination with the second aspect, the first implementation of the second aspect, the second implementation of the second aspect, the third implementation of the second aspect, and the fourth implementation of the second aspect, the embodiments of the present invention are In a fifth implementation manner of the second aspect, the third determining submodule includes:

第八确定子模块,被配置为根据所述第一物品信息确定预设物品的第五属性信息;The eighth determining submodule is configured to determine the fifth attribute information of the preset item according to the first item information;

第九确定子模块,被配置为根据所述第二物品信息确定所述置物处物品的第六属性信息;The ninth determination submodule is configured to determine the sixth attribute information of the item in the storage place according to the second item information;

第十确定子模块,被配置为对所述第五属性信息和所述第六属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。The tenth determining submodule is configured to compare the fifth attribute information with the sixth attribute information, and determine the target item and fourth attribute information of the target item.

结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式、第二方面的第三种实现方式、第二方面的第四种实现方式和第二方面的第五种实现方式,本发明实施例在第二方面的第六种实现方式中,所述历史信息包括:初始放置数量、预设历史时间段内的历史补充数据、预设历史时间段内的历史销售数据和成本价格数据;Combining the second aspect, the first implementation of the second aspect, the second implementation of the second aspect, the third implementation of the second aspect, the fourth implementation of the second aspect and the first implementation of the second aspect Five implementations. In the sixth implementation of the second aspect of the embodiment of the present invention, the historical information includes: initial placement quantity, historical supplementary data within a preset historical time period, historical data within a preset historical time period sales data and cost price data;

所述确定模块包括:The determination module includes:

计算子模块,被配置为根据所述第一物品信息、所述第二物品信息和所述历史信息计算所述置物处物品的异常数量;A calculation submodule configured to calculate the abnormal number of items in the storage place according to the first item information, the second item information and the historical information;

第十一确定子模块,被配置为根据所述成本价格数据和所述异常数量,确定所述异常数据信息。The eleventh determining submodule is configured to determine the abnormal data information according to the cost price data and the abnormal quantity.

结合第二方面、第二方面的第一种实现方式、第二方面的第二种实现方式、第二方面的第三种实现方式、第二方面的第四种实现方式、第二方面的第五种实现方式和第二方面的第六种实现方式,本发明实施例在第二方面的第七种实现方式中,还包括:Combining the second aspect, the first implementation of the second aspect, the second implementation of the second aspect, the third implementation of the second aspect, the fourth implementation of the second aspect, and the first implementation of the second aspect Five implementations and the sixth implementation of the second aspect, the embodiment of the present invention in the seventh implementation of the second aspect further includes:

整合模块,被配置为将所述异常数据信息进行整合,得到所述置物处的异常状态数据信息;The integration module is configured to integrate the abnormal data information to obtain the abnormal state data information at the storage place;

执行模块,被配置为根据所述置物处的异常状态数据信息执行预设操作。The execution module is configured to execute preset operations according to the abnormal state data information at the object.

第三方面,本发明实施例提供了一种电子设备,包括存储器和处理器,所述存储器用于存储一条或多条支持数据获取装置执行上述第一方面中数据获取方法的计算机指令,所述处理器被配置为用于执行所述存储器中存储的计算机指令。所述数据获取装置还可以包括通信接口,用于数据获取装置与其他设备或通信网络通信。In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory is used to store one or more computer instructions that support the data acquisition device to execute the data acquisition method in the first aspect above, the The processor is configured to execute computer instructions stored in said memory. The data acquisition device may also include a communication interface for the data acquisition device to communicate with other devices or a communication network.

第四方面,本发明实施例提供了一种计算机可读存储介质,用于存储数据获取装置所用的计算机指令,其包含用于执行上述第一方面中数据获取方法为数据获取装置所涉及的计算机指令。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer instructions used by a data acquisition device, which includes a computer for performing the data acquisition method in the first aspect above as the data acquisition device instruction.

本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

上述技术方案首先获取置物处的当前图像和置物处预设的物品信息,然后对所述当前图像进行识别,确定所述置物处的第二物品信息,最后获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。该技术方案根据置物处当前图像获取的第二物品信息与预设物品信息的比较来自动确定异常物品的异常数据信息,这样能够大大减少人力投入的成本,提高数据统计效率,进而有效支撑无人售卖行业的规模性发展。The above technical solution first obtains the current image of the storage place and the preset item information of the storage place, then identifies the current image, determines the second item information of the storage place, and finally obtains the corresponding historical information of the storage place, Abnormal data information is determined according to the first item information, the second item information, and the history information. The technical solution automatically determines the abnormal data information of abnormal items according to the comparison of the second item information acquired by the current image of the storage place with the preset item information, which can greatly reduce the cost of manpower input, improve the efficiency of data statistics, and effectively support unmanned The large-scale development of the sales industry.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明实施例。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and are not intended to limit the embodiments of the present invention.

附图说明Description of drawings

结合附图,通过以下非限制性实施方式的详细描述,本发明实施例的其它特征、目的和优点将变得更加明显。在附图中:Other features, objects and advantages of the embodiments of the present invention will become more apparent through the following detailed description of the non-limiting embodiments in conjunction with the accompanying drawings. In the attached picture:

图1示出根据本发明一实施方式的数据获取方法的流程图;Fig. 1 shows the flowchart of the data acquisition method according to an embodiment of the present invention;

图2示出根据图1所示实施方式的数据获取方法的步骤S103的流程图;FIG. 2 shows a flow chart of step S103 of the data acquisition method according to the embodiment shown in FIG. 1;

图3示出根据另一实施方式的数据获取方法的步骤S103的流程图;FIG. 3 shows a flow chart of step S103 of a data acquisition method according to another embodiment;

图4示出根据图3所示实施方式的数据获取方法的步骤S301的流程图;FIG. 4 shows a flow chart of step S301 of the data acquisition method according to the embodiment shown in FIG. 3;

图5示出根据另一实施方式的数据获取方法的步骤S301的流程图;FIG. 5 shows a flow chart of step S301 of a data acquisition method according to another embodiment;

图6示出根据另一实施方式的数据获取方法的步骤S103的流程图;FIG. 6 shows a flow chart of step S103 of a data acquisition method according to another embodiment;

图7示出根据本发明另一实施方式的数据获取方法执行预设操作部分的流程图;FIG. 7 shows a flowchart of a part of executing a preset operation in a data acquisition method according to another embodiment of the present invention;

图8示出根据本发明一实施方式的数据获取装置的结构框图;Fig. 8 shows a structural block diagram of a data acquisition device according to an embodiment of the present invention;

图9示出根据图8所示实施方式的数据获取装置的确定模块803的结构框图;FIG. 9 shows a structural block diagram of a determination module 803 of the data acquisition device according to the embodiment shown in FIG. 8;

图10示出根据另一实施方式的数据获取装置的确定模块803的结构框图;FIG. 10 shows a structural block diagram of a determination module 803 of a data acquisition device according to another embodiment;

图11示出根据图10所示实施方式的数据获取装置的第三确定子模块1001的结构框图;Fig. 11 shows a structural block diagram of the third determining submodule 1001 of the data acquisition device according to the embodiment shown in Fig. 10;

图12示出根据另一实施方式的数据获取装置的第三确定子模块1001的结构框图;Fig. 12 shows a structural block diagram of a third determination submodule 1001 of a data acquisition device according to another embodiment;

图13示出根据另一实施方式的数据获取装置的确定模块803的结构框图;Fig. 13 shows a structural block diagram of a determination module 803 of a data acquisition device according to another embodiment;

图14示出根据本发明另一实施方式的数据获取装置的执行预设操作部分的结构框图;Fig. 14 shows a structural block diagram of a part for performing preset operations of a data acquisition device according to another embodiment of the present invention;

图15示出根据本发明一实施方式的电子设备的结构框图;Fig. 15 shows a structural block diagram of an electronic device according to an embodiment of the present invention;

图16是适于用来实现根据本发明一实施方式的数据获取方法的计算机系统的结构示意图。Fig. 16 is a schematic structural diagram of a computer system suitable for implementing a data acquisition method according to an embodiment of the present invention.

具体实施方式Detailed ways

下文中,将参考附图详细描述本发明实施例的示例性实施方式,以使本领域技术人员可容易地实现它们。此外,为了清楚起见,在附图中省略了与描述示例性实施方式无关的部分。Hereinafter, exemplary embodiments of embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily realize them. Also, for clarity, parts not related to describing the exemplary embodiments are omitted in the drawings.

在本发明实施例中,应理解,诸如“包括”或“具有”等的术语旨在指示本说明书中所公开的特征、数字、步骤、行为、部件、部分或其组合的存在,并且不欲排除一个或多个其他特征、数字、步骤、行为、部件、部分或其组合存在或被添加的可能性。In the embodiments of the present invention, it should be understood that terms such as "comprising" or "having" are intended to indicate the presence of features, numbers, steps, acts, components, parts or combinations thereof disclosed in this specification, and are not intended to The possibility that one or more other features, numbers, steps, acts, parts, parts or combinations thereof exist or be added is excluded.

另外还需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明实施例。In addition, it should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.

本发明实施例提供的技术方案首先获取置物处的当前图像和置物处预设的物品信息,然后对所述当前图像进行识别,确定所述置物处的第二物品信息,最后获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。该技术方案根据置物处当前图像获取的第二物品信息与预设物品信息的比较来自动确定异常物品的异常数据信息,这样能够大大减少人力投入的成本,提高数据统计效率,进而有效支撑无人售卖行业的规模性发展。The technical solution provided by the embodiment of the present invention first obtains the current image of the storage place and the preset item information of the storage place, then recognizes the current image, determines the second item information of the storage place, and finally obtains the information of the storage place Corresponding to the historical information, the abnormal data information is determined according to the first item information, the second item information, and the historical information. The technical solution automatically determines the abnormal data information of abnormal items according to the comparison of the second item information acquired by the current image of the storage place with the preset item information, which can greatly reduce the cost of manpower input, improve the efficiency of data statistics, and effectively support unmanned The scale development of the sales industry.

图1示出根据本发明一实施方式的数据获取方法的流程图,所述数据获取方法可以在智能售货机等客户端实施,也可以在服务器端实施。如图1所示,所述数据获取方法包括以下步骤S101-S103:FIG. 1 shows a flow chart of a data acquisition method according to an embodiment of the present invention. The data acquisition method can be implemented on a client such as a smart vending machine, or can be implemented on a server. As shown in Figure 1, the data acquisition method includes the following steps S101-S103:

在步骤S101中,获取置物处的当前图像和所述置物处预设的第一物品信息;In step S101, the current image of the storage place and the preset first item information of the storage place are acquired;

在步骤S102中,对所述当前图像进行识别,确定所述置物处的第二物品信息;In step S102, the current image is identified, and the second item information at the storage place is determined;

在步骤S103中,获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。In step S103, historical information corresponding to the storage place is obtained, and abnormal data information is determined according to the first item information, the second item information, and the historical information.

上文提及,随着互联网技术的发展、科技的进步,为了方便人们的使用,无人超市、无人售卖机、无人货架应运而生,实现完全的自主购物。但由于无人售卖环境中也无人对于用户的购买行为进行监管,因此,经常会出现购买行为以外的货物减少情况,进而导致商家发生经营损失。对于无人售卖行业,货损情况是业务运营不可或缺的核心数据,是点位运营质量评估最重要的参数之一,同时也是点位运营策略决策的重要依据。目前,货损数据的掌控主要依赖于周期性的人工盘点,但这种方式耗时较长,实时性差,且人力成本较高。As mentioned above, with the development of Internet technology and the advancement of science and technology, in order to facilitate people's use, unmanned supermarkets, unmanned vending machines, and unmanned shelves have emerged as the times require to realize completely independent shopping. However, since there is no one in the unmanned sales environment and no one supervises the purchase behavior of users, there will often be a reduction in goods other than purchase behavior, which will lead to business losses for merchants. For the unmanned vending industry, cargo damage is an indispensable core data for business operations, one of the most important parameters for evaluating the quality of point-of-sale operations, and an important basis for point-of-sale operation strategy decisions. At present, the control of cargo damage data mainly relies on periodic manual inventory, but this method takes a long time, has poor real-time performance, and has high labor costs.

考虑到上述缺陷,在该实施方式中,提出一种数据获取方法,该方法首先获取置物处的当前图像和置物处预设的物品信息;然后对当前图像进行识别,确定置物处当前的物品信息;最后获取置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。该技术方案通过置物处的当前物品信息、预设物品信息与置物处对应的历史信息相比较来自动确定置物处异常物品的异常数据信息,这样能够大大减少人力投入的成本,提高数据统计效率,进而有效支撑无人售卖行业的规模性发展。Considering the above defects, in this embodiment, a data acquisition method is proposed, the method first obtains the current image of the storage place and the preset item information of the storage place; then recognizes the current image and determines the current item information of the storage place ; Finally, obtain historical information corresponding to the storage place, and determine abnormal data information according to the first item information, the second item information, and the historical information. This technical solution automatically determines the abnormal data information of abnormal items in the storage place by comparing the current item information and preset item information in the storage place with the corresponding historical information in the storage place, which can greatly reduce the cost of manpower input and improve the efficiency of data statistics. This will effectively support the large-scale development of the unmanned vending industry.

其中,所述置物处可以为售货机、售卖机、货架等可放置可售物品的置物空间,上述仅为示例性说明,本发明实施例对于置物处的具体实现形式不作具体限定。Wherein, the storage place may be a storage space where vending machines, vending machines, shelves, etc. can place vendable items. The above is only an exemplary description, and the embodiment of the present invention does not specifically limit the specific implementation form of the storage place.

在本实施例的一个可选实现方式中,可通过放置在置物处附近的摄像头等图像采集装置按照预设时间间隔获取置物处的当前图像,也可以借助人工的方式来周期性采集置物处的当前图像,对于获取置物处当前图像的具体方式,本发明实施例不作特别限定。In an optional implementation of this embodiment, the current image of the storage place can be acquired at preset time intervals through an image acquisition device such as a camera placed near the storage place, or the current image of the storage place can be collected manually in a manual manner. For the current image, the embodiment of the present invention does not specifically limit the specific manner of acquiring the current image of the storage place.

在本实施例的一个可选实现方式中,在获取到置物处的当前图像后,借助图像目标识别技术可以得到置物处所摆放的物品的当前信息,即所述置物处的第二物品信息,其中,所述第二物品信息包括物品的当前数量信息、当前类别信息等等。比如,通过目标特征提取、匹配、分析来识别出当前图像中是否存在某个或某几个物品、各个物品的数量、分别在图像中所处的像素位置等信息,之后再通过将图像像素位置与实际位置相对应,即可得到置物处所摆放的物品的当前数量信息和当前类别信息等信息。当所述当前图像为深度图像时,可直接识别出当前物品的具体数量,所述深度图像指的是包含与视点的场景对象的表面的距离有关的信息的图像,其像素值与图像采集装置距离被采集图像物体的实际距离存在对应关系,也就是说,通过所述深度图像可以获知被采集图像物体与图像采集装置之间的距离信息。因此,借助包含有距离信息的当前深度图像可以确定在所述置物处预设位置对应放置的物品的具体当前数量。当所述当前图像为普通图像时,可识别出预设位置对应物品的数量是否为0。In an optional implementation of this embodiment, after the current image of the storage place is obtained, the current information of the items placed in the storage place can be obtained by means of image target recognition technology, that is, the second item information of the storage place, Wherein, the second item information includes current quantity information, current category information and the like of the item. For example, through target feature extraction, matching, and analysis to identify whether there is one or several items in the current image, the quantity of each item, and the respective pixel positions in the image, etc., and then pass the image pixel position Corresponding to the actual position, information such as the current quantity information and current category information of the items placed in the storage space can be obtained. When the current image is a depth image, the specific quantity of the current item can be directly identified, and the depth image refers to an image containing information about the distance from the surface of the scene object of the viewpoint, and its pixel value is the same as that of the image acquisition device There is a corresponding relationship between the actual distance from the captured image object, that is, the distance information between the captured image object and the image capture device can be known through the depth image. Therefore, with the help of the current depth image including the distance information, the specific current quantity of the items corresponding to the preset position of the storage place can be determined. When the current image is a normal image, it can be identified whether the number of items corresponding to the preset position is 0.

在本实施例的一个可选实现方式中,所述置物处预设的第一物品信息为在置物处预设位置放置有预设数量的物品信息,所述置物处可设置有至少两个预设位置,所述预设位置分别放置有预设数量的物品。其中,所述第一物品信息可以为一幅预设物品图像,也可以为一份预设物品清单,其中,所述预设物品图像可以是预先设置好的一幅图像,也可以理解为是一种置物处物品放置的标准图像,在这个图像中,置物处预设的位置处分别放置有预设数量的特定物品,实际售卖时,按照所述预设物品图像在置物处的相应位置放置相应的物品,以便于后续物品数量的比较,当然,不同预设位置处放置的物品可以相同也可以不同;其中,所述预设物品清单可包括放置预设物品的一个或多个预设位置、各个预设位置上所放置的预设物品的类别及数量,或者包括某一类预设物品所放置的不同位置信息,以及各个位置分别放置的该物品的数量等等。In an optional implementation manner of this embodiment, the first item information preset at the storage place is item information with a preset number placed at a preset position of the storage place, and at least two preset items may be set at the storage place. The preset positions are respectively placed with a preset number of items. Wherein, the first item information may be a preset item image, or a list of preset items, wherein the preset item image may be a preset image, or it may be understood as A standard image for placing items in the storage place. In this image, a preset number of specific items are respectively placed at the preset positions of the storage place. When actually selling, they are placed at the corresponding positions of the storage place according to the preset image of the items Corresponding items, in order to compare the quantity of subsequent items, of course, the items placed at different preset positions can be the same or different; wherein, the list of preset items can include one or more preset positions where preset items are placed , the category and quantity of preset items placed in each preset position, or information about different positions where a certain type of preset items are placed, and the quantities of the items placed in each position, etc.

比如,若置物处设有4个预设位置,分别为预设位置1、预设位置2、预设位置3和预设位置4,放置有4种预设物品,分别为预设物品1、预设物品2、预设物品3和预设物品4,那么当预设物品信息为预设物品图像时,图像中可以在预设位置1处放置第一数量的预设物品1,预设位置2处放置第二数量的预设物品2,预设位置3处放置第三数量的预设物品3,预设位置4处放置第四数量的预设物品4,或者,在预设位置1处放置第一数量的预设物品1,预设位置2处放置第二数量的预设物品2和第三数量的预设物品3,预设位置3处放置第四数量的预设物品3,预设位置4处放置第五数量的预设物品4,当然也可以采用其他物品摆放方式;当预设物品信息为预设物品清单时,所述预设物品清单可以呈现为:For example, if there are 4 preset positions in the storage place, which are respectively preset position 1, preset position 2, preset position 3 and preset position 4, there are 4 kinds of preset items placed, which are respectively preset item 1, preset item 2, preset item 3, and preset item 4, then when the preset item information is a preset item image, the first number of preset item 1 can be placed in the image at preset position 1, and the preset position The second number of preset items 2 is placed at 2, the third number of preset items 3 is placed at preset position 3, the fourth number of preset items 4 is placed at preset position 4, or, at preset position 1 The first number of preset items 1 is placed, the second number of preset items 2 and the third number of preset items 3 are placed at the preset position 2, and the fourth number of preset items 3 is placed at the preset position 3. Assume that the fifth quantity of preset items 4 is placed at position 4, and of course other items can also be placed; when the preset item information is a list of preset items, the list of preset items can be presented as:

位置Location 摆放内容display content 数量quantity 预设位置1Preset position 1 预设物品1Default item 1 第一数量first quantity 预设位置2Preset position 2 预设物品2Default item 2 第二数量second quantity 预设物品3Default item 3 第三数量third quantity 预设位置3Preset position 3 预设物品3Default item 3 第四数量fourth quantity 预设物品4Default Item 4 第五数量fifth quantity 预设位置4Preset position 4 预设物品4Default Item 4 第六数量sixth number

也可以呈现为:Can also be rendered as:

摆放内容display content 位置Location 数量quantity 预设物品1Default item 1 预设位置1Preset position 1 第一数量first quantity 预设位置2Preset position 2 第二数量second quantity 预设物品2Default item 2 预设位置2Preset position 2 第三数量third quantity 预设物品3Default item 3 预设位置3Preset position 3 第四数量fourth quantity 预设位置4Preset position 4 第五数量fifth quantity 预设物品4Default Item 4 预设位置4Preset position 4 第六数量sixth number

在本实施例的一个可选实现方式中,所述置物处对应的历史信息包括:物品初始放置数量、预设历史时间段内物品历史补充数据、预设历史时间段内物品历史销售数据和物品成本价格数据等等。其中,所述物品初始放置数量可以表示最初放置在置物处的物品的初始数量,为了减少数据量的储存,也可以每隔一段时间就更新下物品的历史信息,比如以前次异常数据计算结束时间作为下一统计时间段的初始时间,此时,所述初始放置数量就可以指代一更新时间段,或者是一预设历史时间段的初始时间放置在置物处的物品数量;所述物品成本价格数据可以指代物品进货成本价格数据,也可以指代物品售货价格数据,具体可根据实际应用的需要进行确定,本发明对其不作具体限定;所述物品历史补充数据指的是一预设历史时间段内,比如从当前时间至前次异常数据计算时间之间的历史时间段内的物品补充数据;所述物品历史销售数据指的是一预设历史时间段内,比如从当前时间至前次异常数据计算时间之间的历史时间段内的物品销售数据。In an optional implementation of this embodiment, the historical information corresponding to the storage place includes: the initial quantity of items placed, the historical supplementary data of the items in the preset historical time period, the historical sales data of the items in the preset historical time period, and the item cost price data, etc. Wherein, the initial quantity of items placed can represent the initial quantity of items initially placed in the storage place. In order to reduce the amount of data storage, the historical information of the items can also be updated every once in a while, such as the end time of the previous abnormal data calculation As the initial time of the next statistical time period, at this time, the initial placement quantity can refer to an update time period, or the number of items placed in the storage place at the initial time of a preset historical time period; the item cost The price data can refer to the item purchase cost price data, and can also refer to the item sales price data, which can be determined according to the needs of practical applications, and the present invention does not specifically limit it; the item historical supplementary data refers to a preset Set historical time period, such as item supplementary data in the historical time period from the current time to the previous abnormal data calculation time; the item historical sales data refers to a preset historical time period, such as from the current time Item sales data in the historical time period up to the time when the previous exception data was calculated.

其中,所述异常数据信息指的是除正常销售、正常损坏等正常物品流动数据外的数据,比如,由非销售行为导致的物品数量减少数据、非正常损坏数据等等,也可以统称为货损数据。所述异常数据信息可通过物品属性信息的比对来得到,比如,在得知某一商品的进货数量、销售数量和现存数量后,可通过将销售数量与现存数量之和与进货数量进行比较,再结合该商品的售价来得到。Wherein, the abnormal data information refers to data other than normal item flow data such as normal sales and normal damage, for example, item quantity reduction data caused by non-sales behavior, abnormal damage data, etc., which can also be collectively referred to as cargo damage. data. The abnormal data information can be obtained by comparing the item attribute information. For example, after knowing the purchase quantity, sales quantity and existing quantity of a certain commodity, the sum of the sales quantity and the existing quantity can be compared with the purchase quantity , combined with the selling price of the commodity to get.

在本实施例的一个可选实现方式中,如图2所示,所述步骤S103,即所述获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息的步骤,包括步骤S201-S202:In an optional implementation of this embodiment, as shown in FIG. 2, the step S103, that is, the acquisition of historical information corresponding to the storage place, according to the first item information, the second item information The step of determining abnormal data information based on the historical information includes steps S201-S202:

在步骤S201中,根据所述第一物品信息和所述第二物品信息确定所述置物处物品的第三属性信息;In step S201, according to the first item information and the second item information, determine the third attribute information of the item in the storage place;

在步骤S202中,获取所述置物处对应的历史信息,根据所述历史信息和所述第三属性信息确定异常数据信息。In step S202, historical information corresponding to the storage place is obtained, and abnormal data information is determined according to the historical information and the third attribute information.

考虑到无论置物处当前物品信息与预设物品信息是否对应一致,某种或某几种物品均有可能出现货损情况,比如若置物处当前物品信息与预设物品信息对应不一致,有可能是由于正常销售导致的物品信息不同,也有可能是因为货损而导致的物品信息不同;若置物处当前物品信息与预设物品信息对应一致,有可能是售货与补货数据完全相同,但也有可能在售货过程中出现货损,只是当前物品信息恰巧与预设物品信息一致。因此在该实现方式中,需要根据所述第一物品信息和所述第二物品信息确定置物处物品的第三属性信息,其中,所述第三属性信息包括置物处所放置的所有物品的数量信息、类别信息等信息,然后再将其与置物处对应的物品的历史信息相比对来确定异常数据信息。Considering that regardless of whether the current item information at the storage place is consistent with the preset item information, one or several items may be damaged. For example, if the current item information at the storage place is inconsistent with the preset item information, it may be due to The item information is different due to normal sales, or the item information may be different due to damage; The goods were damaged during the sales process, but the current item information happened to be consistent with the preset item information. Therefore, in this implementation, it is necessary to determine the third attribute information of the items in the storage place according to the first item information and the second item information, wherein the third attribute information includes the quantity information of all items placed in the storage place , category information and other information, and then compare it with the historical information of the item corresponding to the storage place to determine the abnormal data information.

在本实施例的一个可选实现方式中,为了能够快速估算得到置物处异常数据信息,考虑到当前物品信息与预设物品信息不一致的物品更有可能出现货损情况,因此,可将当前物品信息与预设物品信息不一致的物品作为目标物品,然后针对目标物品进行异常数据信息的估算。In an optional implementation of this embodiment, in order to quickly estimate and obtain the abnormal data information at the storage place, considering that items whose current item information is inconsistent with the preset item information are more likely to be damaged, the current item information can be Items that are inconsistent with the preset item information are used as target items, and then the abnormal data information is estimated for the target items.

在该实现方式中,如图3所示,所述步骤S103,即所述获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息的步骤,包括步骤S301-S302:In this implementation, as shown in FIG. 3, the step S103, that is, the acquisition of the historical information corresponding to the storage place, is determined according to the first item information, the second item information, and the historical information. The steps of abnormal data information include steps S301-S302:

在步骤S301中,根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息;In step S301, determining a target item in the current image and fourth attribute information of the target item according to the first item information and the second item information;

在步骤S302中,获取所述目标物品对应的历史信息,并根据所述目标物品的历史信息和所述第四属性信息确定所述目标物品的异常数据信息。In step S302, historical information corresponding to the target item is acquired, and abnormal data information of the target item is determined according to the historical information of the target item and the fourth attribute information.

在该实现方式中,根据当前的第一物品信息和预设的第二物品信息来确定当前图像中当前物品信息与预设物品信息不一致的目标物品,并获取所述目标物品的第四属性信息,其中,所述第四属性信息包括目标物品的数量信息、类别信息等信息,然后再将目标物品的第四属性信息与目标物品的历史信息相比对来确定目标物品的异常数据信息,作为对于置物处异常数据信息的估算。该实施方式能够在保证估算准确率的情况下,提高估算值的计算速度,节省计算时间。In this implementation, the target item whose current item information in the current image is inconsistent with the preset item information is determined according to the current first item information and the preset second item information, and the fourth attribute information of the target item is acquired , wherein the fourth attribute information includes information such as quantity information and category information of the target item, and then compares the fourth attribute information of the target item with the historical information of the target item to determine the abnormal data information of the target item, as Estimation of abnormal data information at the storage place. This embodiment can increase the calculation speed of the estimated value and save calculation time while ensuring the accuracy of the estimation.

其中,所述目标物品比如可以为数量短缺物品等等,本领域技术人员可根据实际应用的需要来设置目标物品。Wherein, the target item may be, for example, an item in short supply, etc., and those skilled in the art may set the target item according to actual application requirements.

在本实施例的一个可选实现方式中,所述置物处设置有至少两个预设位置,所述预设位置放置有预设数量的物品。当某一预设位置放置同类物品时,可直接将相应位置处的物品数量进行比较来确定所述目标物品,比如,对于预设位置1,假设置物处当前在预设位置1放置有3个物品1,而预设位置1处该物品的预设数量为6,物品1的当前数量3小于预设数量6,那么该物品就被认为是出现数量短缺的物品,即目标物品。In an optional implementation manner of this embodiment, at least two preset positions are set at the storage place, and a preset number of items are placed in the preset positions. When a similar item is placed at a certain preset position, the number of items at the corresponding position can be directly compared to determine the target item. For example, for the preset position 1, it is assumed that there are currently 3 items placed at the preset position 1 Item 1, and the preset quantity of the item at the preset position 1 is 6, and the current quantity 3 of the item 1 is less than the preset quantity 6, then the item is considered to be an item with a shortage in quantity, that is, the target item.

在该实现方式中,如图4所示,所述步骤S301,即根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息的步骤,包括步骤S401-S403:In this implementation, as shown in FIG. 4, the step S301 is to determine the target item in the current image and the fourth attribute of the target item according to the first item information and the second item information Information steps, including steps S401-S403:

在步骤S401中,根据所述第一物品信息确定所述预设位置对应的预设物品的第一属性信息;In step S401, determine the first attribute information of the preset item corresponding to the preset position according to the first item information;

在步骤S402中,根据所述第二物品信息确定所述预设位置对应的所述置物处物品的第二属性信息;In step S402, determining the second attribute information of the item in the storage place corresponding to the preset position according to the second item information;

在步骤S403中,对所述第一属性信息和所述第二属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。In step S403, the first attribute information and the second attribute information are compared to determine the target item and fourth attribute information of the target item.

其中,所述第一属性信息包括预设物品的数量信息、类别信息等信息,所述第二属性信息包括置物处物品的当前数量信息、类别信息等信息。Wherein, the first attribute information includes information such as quantity information and category information of preset items, and the second attribute information includes information such as current quantity information and category information of items at the storage place.

在该实现方式中,将在预设位置放置的预设物品的第一属性信息与对应预设位置放置的当前物品的第二属性信息相比较,可以确定哪些物品的属性信息存在不一致的情况,进而可以确定哪些物品为目标物品,在确定了目标物品后,为了后续进一步确定该目标物品是否确实为出现货损情况的物品,同时还应获取所述目标物品的第四属性信息,其中,所述第四属性信息包括所述目标物品的数量信息、类别信息等信息。In this implementation, by comparing the first attribute information of the preset item placed at the preset position with the second attribute information of the current item placed at the corresponding preset position, it can be determined which items have inconsistent attribute information, Furthermore, it can be determined which items are the target items. After the target item is determined, in order to further determine whether the target item is indeed an item with cargo damage, the fourth attribute information of the target item should also be obtained, wherein the The fourth attribute information includes information such as quantity information and category information of the target item.

考虑到在一些应用场景中,有可能多个不同位置放置的物品类别相同,也有可能同一位置放置的物品类别不同,再或者每个位置放置的物品类别随机变化,并不固定,因此,在本实施例的一个可选实现方式中,各个物品在置物处所放置的位置无需预先设定。比如,所述预设物品信息可以表现为:Considering that in some application scenarios, it is possible that multiple items placed in different locations may have the same type of item, or that the type of item placed in the same location may be different, or that the type of item placed in each location changes randomly and is not fixed. Therefore, in this In an optional implementation manner of the embodiment, the positions where the items are placed in the storage place do not need to be preset. For example, the preset item information may be expressed as:

摆放内容display content 数量quantity 预设物品1Default item 1 第一数量first quantity 预设物品2Default item 2 第二数量second quantity 预设物品3Default item 3 第三数量third quantity 预设物品4Default Item 4 第四数量fourth quantity

也就是说,所述置物处的某一预设位置可能放置同类的物品,也可能放置不同类的物品,即某一类物品有可能放置在同一预设位置,也有可能放置在不同的预设位置,此时可直接统计某一类物品的汇总数量,再与该类物品的预设数量相比较来确定所述目标物品,比如,对于物品1,其在预设位置1处有1个,在预设位置2处有3个,那么物品1在置物处放置的总数量为4个,而物品1在置物处放置的预设数量为6,物品1的当前数量4小于预设数量6,那么该物品就被认为是出现数量短缺的物品,即目标物品。That is to say, a certain preset position of the storage place may place items of the same type, or different types of items, that is, a certain type of item may be placed in the same preset position, or may be placed in different preset positions. position, at this time, the summary quantity of a certain type of item can be directly counted, and then compared with the preset quantity of this type of item to determine the target item, for example, for item 1, there is one at preset position 1, There are 3 at the preset position 2, then the total quantity of item 1 placed in the storage is 4, and the preset quantity of item 1 placed in the storage is 6, the current quantity of item 1 is 4 less than the preset quantity of 6, The item is then considered to be an item in which there is a shortage in quantity, the target item.

在该实现方式中,如图5所示,所述步骤S301,即根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息的步骤,包括步骤S501-S503:In this implementation, as shown in FIG. 5, the step S301 is to determine the target item in the current image and the fourth attribute of the target item according to the first item information and the second item information Information steps, including steps S501-S503:

在步骤S501中,根据所述第一物品信息确定预设物品的第五属性信息;In step S501, determining fifth attribute information of a preset item according to the first item information;

在步骤S502中,根据所述第二物品信息确定所述置物处物品的第六属性信息;In step S502, determining sixth attribute information of the item in the storage place according to the second item information;

在步骤S503中,对所述第五属性信息和所述第六属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。In step S503, the fifth attribute information and the sixth attribute information are compared to determine the target item and fourth attribute information of the target item.

其中,所述第五属性信息包括预设物品的数量信息、类别信息等信息,所述第六属性信息包括置物处物品的当前数量信息、类别信息等信息。在该实施方式中,由于预设物品在置物处所放置的位置无需预先设定,那么就可以直接识别当前图像中在置物处放置的物品的第六属性信息,比如物品的类别及每个类别对应的物品数量,其中,物品属性信息的识别方法如上文所述,此处不再赘述;然后将同一物品类别的第六属性信息与预设物品的第五属性信息进行比较,通过判断当前物品数量是否小于预设物品数量来确定哪些物品为目标物品,在确定了目标物品后,为了后续进一步确定该目标物品是否确实为出现货损情况的物品,同时还应获取所述目标物品的第四属性信息,其中,所述第四属性信息包括所述目标物品的数量信息、类别信息等信息。上文提及,当同一物品类别的当前物品数量小于预设物品数量时,可被认为是目标物品,在具体实施时,考虑到上述数量的差异有可能是由于正常销售行为导致的,因此,为了减少计算量,也为了减少计算误差,也可设置一数量阈值,当同一物品类别的当前物品数量与预设物品数量之间的差值大于所述数量阈值时,才被认为是目标物品。Wherein, the fifth attribute information includes information such as quantity information and category information of preset items, and the sixth attribute information includes information such as current quantity information and category information of items at the storage place. In this embodiment, since the position of the preset item placed in the storage place does not need to be preset, the sixth attribute information of the item placed in the storage place in the current image can be directly identified, such as the category of the item and the corresponding The number of items, wherein, the identification method of the item attribute information is as described above, and will not be repeated here; then the sixth attribute information of the same item category is compared with the fifth attribute information of the preset item, and by judging the current item quantity Determine which items are the target items if it is less than the preset number of items. After the target item is determined, in order to further determine whether the target item is indeed an item with cargo damage, the fourth attribute information of the target item should also be obtained. , wherein the fourth attribute information includes information such as quantity information and category information of the target item. As mentioned above, when the current number of items of the same item category is less than the preset number of items, it can be considered as the target item. In actual implementation, considering that the above-mentioned difference in quantity may be caused by normal sales behavior, therefore, In order to reduce the amount of calculation and the calculation error, a quantity threshold can also be set, and when the difference between the current quantity of items of the same category and the preset quantity of items is greater than the quantity threshold, it is considered as the target item.

上述方案通过属性信息的比较能够准确、快速地确定满足预设条件的目标物品,比如数量短缺物品,另外,该方案能够借助运算工具自动执行识别工作,从而能够有效节省人力成本,提高工作效率和识别准确率。The above scheme can accurately and quickly determine the target items that meet the preset conditions through the comparison of attribute information, such as items in short supply. In addition, the scheme can automatically perform identification work with the help of computing tools, which can effectively save labor costs, improve work efficiency and recognition accuracy.

在本实施例的一个可选实现方式中,如图6所示,所述步骤S103中,所述根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息的步骤,包括步骤S601-S602:In an optional implementation of this embodiment, as shown in FIG. 6, in step S103, determining the abnormal data information according to the first item information, the second item information, and the history information Steps, including steps S601-S602:

在步骤S601中,根据所述第一物品信息、所述第二物品信息和所述历史信息计算所述置物处物品的异常数量;In step S601, calculating the abnormal number of items in the storage place according to the first item information, the second item information and the historical information;

在步骤S602中,根据所述成本价格数据和所述异常数量,确定所述异常数据信息。In step S602, the abnormal data information is determined according to the cost price data and the abnormal quantity.

如上文所述,所述异常数据信息指的是除正常销售、正常损坏等正常物品流动数据外的数据,比如,由非销售行为导致的物品数量减少数据、非正常损坏数据等等,也可以统称为货损数据。所述异常数据信息可通过物品属性信息的比对来得到,比如,在得知某一商品的进货数量、销售数量和现存数量后,可通过将销售数量与现存数量之和与进货数量进行比较,再结合该商品的售价来得到。As mentioned above, the abnormal data information refers to data other than normal item flow data such as normal sales and normal damage, such as data on item quantity reduction caused by non-sales behavior, abnormal damage data, etc. Collectively referred to as cargo damage data. The abnormal data information can be obtained by comparing the item attribute information. For example, after knowing the purchase quantity, sales quantity and existing quantity of a certain commodity, the sum of the sales quantity and the existing quantity can be compared with the purchase quantity , combined with the selling price of the commodity to get.

在该实施方式中,在获取所述置物处对应的历史信息后,根据所述第一物品信息、所述第二物品信息和所述历史信息计算得到所述置物处物品的异常数量,比如,可利用下式计算所述置物处物品的异常数量:In this embodiment, after obtaining the historical information corresponding to the storage place, the abnormal number of items in the storage place is calculated according to the first item information, the second item information and the historical information, for example, The following formula can be used to calculate the abnormal number of items in the storage place:

置物处物品的异常数量=该物品的初始放置数据+预设历史时间段内该物品的历史补充数据–当前该物品放置数据–预设历史时间段内该物品的历史销售数据。The abnormal number of items in the storage place = the initial placement data of the item + the historical supplementary data of the item in the preset historical time period - the current placement data of the item - the historical sales data of the item in the preset historical time period.

然后根据所述物品的成本价格数据和异常数量,即可确定该物品的异常数据信息。比如:将该物品的成本价格数据与其异常数量相乘即可得到该物品的异常数据信息,即该物品的货损数据。Then, according to the cost price data and abnormal quantity of the item, the abnormal data information of the item can be determined. For example, by multiplying the cost price data of the item by its abnormal quantity, the abnormal data information of the item can be obtained, that is, the damage data of the item.

在本实施例的一个可选实现方式中,如图7所示,所述方法还包括步骤S701-S702:In an optional implementation of this embodiment, as shown in FIG. 7, the method further includes steps S701-S702:

在步骤S701中,将所述异常数据信息进行整合,得到所述置物处的异常状态数据信息;In step S701, the abnormal data information is integrated to obtain the abnormal state data information of the storage place;

在步骤S702中,根据所述置物处的异常状态数据信息执行预设操作。In step S702, a preset operation is performed according to the abnormal state data information at the object.

在该实施方式中,考虑到某一置物处有可能存在两种或多种异常物品,比如有两种或多种物品均出现数量短缺,因此,可将所述置物处数量短缺物品的异常数据信息进行整合统计,以得到所述置物处的异常状态数据信息,比如可以将不同种类的数量短缺物品的异常数量进行相加,或者将不同数量短缺物品的异常状态数据信息整合统计到一个数量短缺物品清单中,以掌握置物处的整体数量短缺情况。In this embodiment, considering that there may be two or more abnormal items in a storage place, for example, there are two or more items that are in short supply, therefore, the abnormal data of the items in short supply at the storage place can be The information is integrated and counted to obtain the abnormal state data information at the storage place. For example, the abnormal quantities of different types of items in short supply can be added, or the abnormal state data information of different quantities of insufficient items can be integrated and counted into a single quantity shortage In the item list, to grasp the overall quantity shortage of the storage place.

进一步地,在得到所述置物处的异常状态数据信息之后,可根据所述置物处的异常状态数据信息执行预设操作,其中,所述预设操作可以包括以下中的一种或多种:执行监控、人工监督、人工售卖等等。Further, after obtaining the abnormal state data information at the object, a preset operation may be performed according to the abnormal state data information at the object, wherein the preset operation may include one or more of the following: Execution monitoring, manual supervision, manual sales, etc.

在本实施例的一个可选实现方式中,所述步骤S702,即所述根据置物处的异常状态数据信息执行预设操作的步骤,包括步骤:In an optional implementation of this embodiment, the step S702, that is, the step of performing a preset operation according to the abnormal state data information at the object, includes the steps of:

当确定所述置物处的异常状态数据信息满足预设条件,比如异常物品的异常数量总量大于预设数量阈值或者异常物品的种类数量大于预设种类阈值时,对于所述置物处执行预设操作。When it is determined that the abnormal state data information at the storage place satisfies the preset condition, for example, when the total amount of abnormal items is greater than the preset quantity threshold or the number of types of abnormal items is greater than the preset category threshold, the preset is performed for the storage place. operate.

在该实施方式中,当确定所述置物处的异常状态数据信息满足所述预设条件时,可认为该置物处出现了严重的货损情况,那么就对该置物处实施监控、人工监督或人工售卖等措施,以对货损情况进行控制,避免出现更为严重的货损。In this embodiment, when it is determined that the abnormal state data information of the storage place satisfies the preset condition, it can be considered that a serious cargo damage has occurred in the storage place, and then the storage place is monitored, manually supervised, or manually monitored. Sales and other measures to control the damage to the goods and avoid more serious damage to the goods.

需要说明的是,本发明实施例技术方案并不限于在无人售卖行业中应用,在常规超市、商店等有人售卖环境下依然可以有效实施。It should be noted that the technical solutions of the embodiments of the present invention are not limited to the application in the unmanned vending industry, and can still be effectively implemented in conventional supermarkets, stores and other human vending environments.

下述为本发明装置实施例,可以用于执行本发明方法实施例。The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention.

图8示出根据本发明一实施方式的数据获取装置的结构框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部,所述数据获取装置可以实现为智能售货机等客户端,也可以实现为服务器端。如图8所示,所述数据获取装置包括:Fig. 8 shows a structural block diagram of a data acquisition device according to an embodiment of the present invention, the device can be implemented as part or all of electronic equipment through software, hardware or a combination of the two, and the data acquisition device can be implemented as a smart vending machine It can also be implemented as a server-side. As shown in Figure 8, the data acquisition device includes:

获取模块801,被配置为获取置物处的当前图像和所述置物处预设的第一物品信息;The obtaining module 801 is configured to obtain the current image of the storage place and the preset first item information of the storage place;

识别模块802,被配置为对所述当前图像进行识别,确定所述置物处的第二物品信息;The identification module 802 is configured to identify the current image and determine the second item information at the storage place;

确定模块803,被配置为获取所述置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。The determining module 803 is configured to acquire historical information corresponding to the storage place, and determine abnormal data information according to the first item information, the second item information, and the historical information.

上文提及,随着互联网技术的发展、科技的进步,为了方便人们的使用,无人超市、无人售卖机、无人货架应运而生,实现完全的自主购物。但由于无人售卖环境中也无人对于用户的购买行为进行监管,因此,经常会出现购买行为以外的货物减少情况,进而导致商家发生经营损失。对于无人售卖行业,货损情况是业务运营不可或缺的核心数据,是点位运营质量评估最重要的参数之一,同时也是点位运营策略决策的重要依据。目前,货损数据的掌控主要依赖于周期性的人工盘点,但这种方式耗时较长,实时性差,且人力成本较高。As mentioned above, with the development of Internet technology and the advancement of science and technology, in order to facilitate people's use, unmanned supermarkets, unmanned vending machines, and unmanned shelves have emerged as the times require to realize completely independent shopping. However, since there is no one in the unmanned sales environment and no one supervises the purchase behavior of users, there will often be a reduction in goods other than purchase behavior, which will lead to business losses for merchants. For the unmanned vending industry, cargo damage is an indispensable core data for business operations, one of the most important parameters for evaluating the quality of point-of-sale operations, and an important basis for point-of-sale operation strategy decisions. At present, the control of cargo damage data mainly relies on periodic manual inventory, but this method takes a long time, has poor real-time performance, and has high labor costs.

考虑到上述缺陷,在该实施方式中,提出一种数据获取装置,该装置通过获取模块801获取置物处的当前图像和置物处预设的物品信息;通过识别模块802对当前图像进行识别,确定置物处当前的物品信息;通过确定模块803获取置物处对应的历史信息,根据所述第一物品信息、所述第二物品信息和所述历史信息确定异常数据信息。该技术方案通过置物处的当前物品信息、预设物品信息与置物处对应的历史信息相比较来自动确定置物处的异常数据信息,这样能够大大减少人力投入的成本,提高数据统计效率,进而有效支撑无人售卖行业的规模性发展。Considering the above defects, in this embodiment, a data acquisition device is proposed, which acquires the current image of the storage place and the preset item information of the storage place through the acquisition module 801; identifies the current image through the identification module 802, and determines The current item information at the storage place; the history information corresponding to the storage place is obtained through the determining module 803, and the abnormal data information is determined according to the first item information, the second item information, and the historical information. This technical solution automatically determines the abnormal data information of the storage place by comparing the current item information and preset item information of the storage place with the corresponding historical information of the storage place, which can greatly reduce the cost of manpower input, improve the efficiency of data statistics, and effectively Support the large-scale development of the unmanned vending industry.

其中,所述置物处可以为售货机、售卖机、货架等可放置可售物品的置物空间,上述仅为示例性说明,本发明实施例对于置物处的具体实现形式不作具体限定。Wherein, the storage place may be a storage space where vending machines, vending machines, shelves, etc. can place vendable items. The above is only an exemplary description, and the embodiment of the present invention does not specifically limit the specific implementation form of the storage place.

在本实施例的一个可选实现方式中,可通过放置在置物处附近的摄像头等图像采集装置按照预设时间间隔获取置物处的当前图像,也可以借助人工的方式来周期性采集置物处的当前图像,对于获取置物处当前图像的具体方式,本发明实施例不作特别限定。In an optional implementation of this embodiment, the current image of the storage place can be acquired at preset time intervals through an image acquisition device such as a camera placed near the storage place, or the current image of the storage place can be collected manually in a manual manner. For the current image, the embodiment of the present invention does not specifically limit the specific manner of acquiring the current image of the storage place.

在本实施例的一个可选实现方式中,在获取到置物处的当前图像后,借助图像目标识别技术可以得到置物处所摆放的物品的当前信息,即所述置物处的第二物品信息,其中,所述第二物品信息包括物品的当前数量信息、当前类别信息等等。比如,通过目标特征提取、匹配、分析来识别出当前图像中是否存在某个或某几个物品、各个物品的数量、分别在图像中所处的像素位置等信息,之后再通过将图像像素位置与实际位置相对应,即可得到置物处所摆放的物品的当前数量信息和当前类别信息等信息。当所述当前图像为深度图像时,可直接识别出当前物品的具体数量,所述深度图像指的是包含与视点的场景对象的表面的距离有关的信息的图像,其像素值与图像采集装置距离被采集图像物体的实际距离存在对应关系,也就是说,通过所述深度图像可以获知被采集图像物体与图像采集装置之间的距离信息。因此,借助包含有距离信息的当前深度图像可以确定在所述置物处预设位置对应放置的物品的具体当前数量。当所述当前图像为普通图像时,可识别出预设位置对应物品的数量是否为0。In an optional implementation of this embodiment, after the current image of the storage place is obtained, the current information of the items placed in the storage place can be obtained by means of image target recognition technology, that is, the second item information of the storage place, Wherein, the second item information includes current quantity information, current category information and the like of the item. For example, through target feature extraction, matching, and analysis to identify whether there is one or several items in the current image, the quantity of each item, and the respective pixel positions in the image, etc., and then pass the image pixel position Corresponding to the actual position, information such as the current quantity information and current category information of the items placed in the storage space can be obtained. When the current image is a depth image, the specific quantity of the current item can be directly identified, and the depth image refers to an image containing information about the distance from the surface of the scene object of the viewpoint, and its pixel value is the same as that of the image acquisition device There is a corresponding relationship between the actual distance from the captured image object, that is, the distance information between the captured image object and the image capture device can be known through the depth image. Therefore, with the help of the current depth image including the distance information, the specific current quantity of the items corresponding to the preset position of the storage place can be determined. When the current image is a normal image, it can be identified whether the number of items corresponding to the preset position is 0.

在本实施例的一个可选实现方式中,所述置物处预设的第一物品信息为在置物处预设位置放置有预设数量的物品信息,所述置物处可设置有至少两个预设位置,所述预设位置分别放置有预设数量的物品。其中,所述第一物品信息可以为一幅预设物品图像,也可以为一份预设物品清单,其中,所述预设物品图像可以是预先设置好的一幅图像,也可以理解为是一种置物处物品放置的标准图像,在这个图像中,置物处预设的位置处分别放置有预设数量的特定物品,实际售卖时,按照所述预设物品图像在置物处的相应位置放置相应的物品,以便于后续物品数量的比较,当然,不同预设位置处放置的物品可以相同也可以不同;其中,所述预设物品清单可包括放置预设物品的一个或多个预设位置、各个预设位置上所放置的预设物品的类别及数量,或者包括某一类预设物品所放置的不同位置信息,以及各个位置分别放置的该物品的数量等等。In an optional implementation manner of this embodiment, the first item information preset at the storage place is item information with a preset number placed at a preset position of the storage place, and at least two preset items may be set at the storage place. The preset positions are respectively placed with a preset number of items. Wherein, the first item information may be a preset item image, or a list of preset items, wherein the preset item image may be a preset image, or it may be understood as A standard image for placing items in the storage place. In this image, a preset number of specific items are respectively placed at the preset positions of the storage place. When actually selling, they are placed at the corresponding positions of the storage place according to the preset image of the items Corresponding items, in order to compare the quantity of subsequent items, of course, the items placed at different preset positions can be the same or different; wherein, the list of preset items can include one or more preset positions where preset items are placed , the category and quantity of preset items placed in each preset position, or information about different positions where a certain type of preset items are placed, and the quantities of the items placed in each position, etc.

比如,若置物处设有4个预设位置,分别为预设位置1、预设位置2、预设位置3和预设位置4,放置有4种预设物品,分别为预设物品1、预设物品2、预设物品3和预设物品4,那么当预设物品信息为预设物品图像时,图像中可以在预设位置1处放置第一数量的预设物品1,预设位置2处放置第二数量的预设物品2,预设位置3处放置第三数量的预设物品3,预设位置4处放置第四数量的预设物品4,或者,在预设位置1处放置第一数量的预设物品1,预设位置2处放置第二数量的预设物品2和第三数量的预设物品3,预设位置3处放置第四数量的预设物品3,预设位置4处放置第五数量的预设物品4,当然也可以采用其他物品摆放方式;当预设物品信息为预设物品清单时,所述预设物品清单可以呈现为:For example, if there are 4 preset positions in the storage place, which are respectively preset position 1, preset position 2, preset position 3 and preset position 4, there are 4 kinds of preset items placed, which are respectively preset item 1, preset item 2, preset item 3, and preset item 4, then when the preset item information is a preset item image, the first number of preset item 1 can be placed in the image at preset position 1, and the preset position The second number of preset items 2 is placed at 2, the third number of preset items 3 is placed at preset position 3, the fourth number of preset items 4 is placed at preset position 4, or, at preset position 1 The first number of preset items 1 is placed, the second number of preset items 2 and the third number of preset items 3 are placed at the preset position 2, and the fourth number of preset items 3 is placed at the preset position 3. Assume that the fifth quantity of preset items 4 is placed at position 4, and of course other items can also be placed; when the preset item information is a list of preset items, the list of preset items can be presented as:

也可以呈现为:Can also be rendered as:

摆放内容display content 位置Location 数量quantity 预设物品1Default item 1 预设位置1Preset position 1 第一数量first quantity 预设位置2Preset position 2 第二数量second quantity 预设物品2Default item 2 预设位置2Preset position 2 第三数量third quantity 预设物品3Default item 3 预设位置3Preset position 3 第四数量fourth quantity 预设位置4Preset position 4 第五数量fifth quantity 预设物品4Default Item 4 预设位置4Preset position 4 第六数量sixth number

在本实施例的一个可选实现方式中,所述置物处对应的历史信息包括:物品初始放置数量、预设历史时间段内物品历史补充数据、预设历史时间段内物品历史销售数据和物品成本价格数据等等。其中,所述物品初始放置数量可以表示最初放置在置物处的物品的初始数量,为了减少数据量的储存,也可以每隔一段时间就更新下物品的历史信息,比如以前次异常数据计算结束时间作为下一统计时间段的初始时间,此时,所述初始放置数量就可以指代一更新时间段,或者是一预设历史时间段的初始时间放置在置物处的物品数量;所述物品成本价格数据可以指代物品进货成本价格数据,也可以指代物品售货价格数据,具体可根据实际应用的需要进行确定,本发明对其不作具体限定;所述物品历史补充数据指的是一预设历史时间段内,比如从当前时间至前次异常数据计算时间之间的历史时间段内的物品补充数据;所述物品历史销售数据指的是一预设历史时间段内,比如从当前时间至前次异常数据计算时间之间的历史时间段内的物品销售数据。In an optional implementation of this embodiment, the historical information corresponding to the storage place includes: the initial quantity of items placed, the historical supplementary data of the items in the preset historical time period, the historical sales data of the items in the preset historical time period, and the item cost price data, etc. Wherein, the initial quantity of items placed can represent the initial quantity of items initially placed in the storage place. In order to reduce the amount of data storage, the historical information of the items can also be updated every once in a while, such as the end time of the previous abnormal data calculation As the initial time of the next statistical time period, at this time, the initial placement quantity can refer to an update time period, or the number of items placed in the storage place at the initial time of a preset historical time period; the item cost The price data can refer to the item purchase cost price data, and can also refer to the item sales price data, which can be determined according to the needs of practical applications, and the present invention does not specifically limit it; the item historical supplementary data refers to a preset Set historical time period, such as item supplementary data in the historical time period from the current time to the previous abnormal data calculation time; the item historical sales data refers to a preset historical time period, such as from the current time Item sales data in the historical time period up to the time when the previous exception data was calculated.

其中,所述异常数据信息指的是除正常销售、正常损坏等正常物品流动数据外的数据,比如,由非销售行为导致的物品数量减少数据、非正常损坏数据等等,也可以统称为货损数据。所述异常数据信息可通过物品属性信息的比对来得到,比如,在得知某一商品的进货数量、销售数量和现存数量后,可通过将销售数量与现存数量之和与进货数量进行比较,再结合该商品的售价来得到。Wherein, the abnormal data information refers to data other than normal item flow data such as normal sales and normal damage, for example, item quantity reduction data caused by non-sales behavior, abnormal damage data, etc., which can also be collectively referred to as cargo damage. data. The abnormal data information can be obtained by comparing the item attribute information. For example, after knowing the purchase quantity, sales quantity and existing quantity of a certain commodity, the sum of the sales quantity and the existing quantity can be compared with the purchase quantity , combined with the selling price of the commodity to get.

在本实施例的一个可选实现方式中,如图9所示,所述确定模块803包括:In an optional implementation of this embodiment, as shown in FIG. 9, the determining module 803 includes:

第一确定子模块901,被配置为根据所述第一物品信息和所述第二物品信息确定所述置物处物品的第三属性信息;The first determining submodule 901 is configured to determine third attribute information of the item at the storage place according to the first item information and the second item information;

第二确定子模块902,被配置为获取所述置物处对应的历史信息,根据所述历史信息和所述第三属性信息确定异常数据信息。The second determination sub-module 902 is configured to obtain historical information corresponding to the storage place, and determine abnormal data information according to the historical information and the third attribute information.

考虑到无论置物处当前物品信息与预设物品信息是否对应一致,某种或某几种物品均有可能出现货损情况,比如若置物处当前物品信息与预设物品信息对应不一致,有可能是由于正常销售导致的物品信息不同,也有可能是因为货损而导致的物品信息不同;若置物处当前物品信息与预设物品信息对应一致,有可能是售货与补货数据完全相同,但也有可能在售货过程中出现货损,只是当前物品信息恰巧与预设物品信息一致。因此在该实现方式中,需要根据所述第一物品信息和所述第二物品信息确定置物处物品的第三属性信息,其中,所述第三属性信息包括置物处所放置的所有物品的数量信息、类别信息等信息,然后再将其与置物处对应的物品的历史信息相比对来确定异常数据信息。Considering that regardless of whether the current item information at the storage place is consistent with the preset item information, one or several items may be damaged. For example, if the current item information at the storage place is inconsistent with the preset item information, it may be due to The item information is different due to normal sales, or the item information may be different due to damage; The goods are damaged during the sales process, but the current item information happens to be consistent with the preset item information. Therefore, in this implementation, it is necessary to determine the third attribute information of the items in the storage place according to the first item information and the second item information, wherein the third attribute information includes the quantity information of all items placed in the storage place , category information and other information, and then compare it with the historical information of the item corresponding to the storage place to determine the abnormal data information.

在本实施例的一个可选实现方式中,为了能够快速估算得到置物处异常数据信息,考虑到当前物品信息与预设物品信息不一致的物品更有可能出现货损情况,因此,可将当前物品信息与预设物品信息不一致的物品作为目标物品,然后针对目标物品进行异常数据信息的估算。In an optional implementation of this embodiment, in order to quickly estimate and obtain the abnormal data information at the storage place, considering that items whose current item information is inconsistent with the preset item information are more likely to be damaged, the current item information can be Items that are inconsistent with the preset item information are used as target items, and then the abnormal data information is estimated for the target items.

在该实现方式中,如图10所示,所述确定模块803包括:In this implementation, as shown in FIG. 10, the determining module 803 includes:

第三确定子模块1001,被配置为根据所述第一物品信息和所述第二物品信息确定所述当前图像中的目标物品以及所述目标物品的第四属性信息;The third determining submodule 1001 is configured to determine the target item in the current image and fourth attribute information of the target item according to the first item information and the second item information;

第四确定子模块1002,被配置为获取所述目标物品对应的历史信息,并根据所述目标物品的历史信息和所述第四属性信息确定所述目标物品的异常数据信息。The fourth determination sub-module 1002 is configured to obtain historical information corresponding to the target item, and determine abnormal data information of the target item according to the historical information of the target item and the fourth attribute information.

在该实现方式中,根据当前的第一物品信息和预设的第二物品信息来确定当前图像中当前物品信息与预设物品信息不一致的目标物品,并获取所述目标物品的第四属性信息,其中,所述第四属性信息包括目标物品的数量信息、类别信息等信息,然后再将目标物品的第四属性信息与目标物品的历史信息相比对来确定目标物品的异常数据信息,作为对于置物处异常数据信息的估算。该实施方式能够在保证估算准确率的情况下,提高估算值的计算速度,节省计算时间。In this implementation, the target item whose current item information in the current image is inconsistent with the preset item information is determined according to the current first item information and the preset second item information, and the fourth attribute information of the target item is acquired , wherein the fourth attribute information includes information such as quantity information and category information of the target item, and then compares the fourth attribute information of the target item with the historical information of the target item to determine the abnormal data information of the target item, as Estimation of abnormal data information at the storage place. This embodiment can improve the calculation speed of the estimated value and save calculation time while ensuring the accuracy of the estimation.

其中,所述目标物品比如可以为数量短缺物品等等,本领域技术人员可根据实际应用的需要来设置目标物品。Wherein, the target item may be, for example, an item in short supply, etc., and those skilled in the art may set the target item according to actual application requirements.

在本实施例的一个可选实现方式中,所述置物处设置有至少两个预设位置,所述预设位置放置有预设数量的物品。当某一预设位置放置同类物品时,可直接将相应位置处的物品数量进行比较来确定所述目标物品,比如,对于预设位置1,假设置物处当前在预设位置1放置有3个物品1,而预设位置1处该物品的预设数量为6,物品1的当前数量3小于预设数量6,那么该物品就被认为是出现数量短缺的物品,即目标物品。In an optional implementation manner of this embodiment, at least two preset positions are set at the storage place, and a preset number of items are placed in the preset positions. When a similar item is placed at a certain preset position, the number of items at the corresponding position can be directly compared to determine the target item. For example, for the preset position 1, it is assumed that there are currently 3 items placed at the preset position 1 Item 1, and the preset quantity of the item at the preset position 1 is 6, and the current quantity 3 of the item 1 is less than the preset quantity 6, then the item is considered to be an item with a shortage in quantity, that is, the target item.

在该实现方式中,如图11所示,所述第三确定子模块1001包括:In this implementation, as shown in FIG. 11, the third determination submodule 1001 includes:

第五确定子模块1101,被配置为根据所述第一物品信息确定所述预设位置对应的预设物品的第一属性信息;The fifth determining submodule 1101 is configured to determine the first attribute information of the preset item corresponding to the preset position according to the first item information;

第六确定子模块1102,被配置为根据所述第二物品信息确定所述预设位置对应的所述置物处物品的第二属性信息;The sixth determining submodule 1102 is configured to determine the second attribute information of the item in the storage place corresponding to the preset position according to the second item information;

第七确定子模块1103,被配置为对所述第一属性信息和所述第二属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。The seventh determining submodule 1103 is configured to compare the first attribute information with the second attribute information, and determine the target item and fourth attribute information of the target item.

其中,所述第一属性信息包括预设物品的数量信息、类别信息等信息,所述第二属性信息包括置物处物品的当前数量信息、类别信息等信息。Wherein, the first attribute information includes information such as quantity information and category information of preset items, and the second attribute information includes information such as current quantity information and category information of items at the storage place.

在该实现方式中,将在预设位置放置的预设物品的第一属性信息与对应预设位置放置的当前物品的第二属性信息相比较,可以确定哪些物品的属性信息存在不一致的情况,进而可以确定哪些物品为目标物品,在确定了目标物品后,为了后续进一步确定该目标物品是否确实为出现货损情况的物品,同时还应获取所述目标物品的第四属性信息,其中,所述第四属性信息包括所述目标物品的数量信息、类别信息等信息。In this implementation, by comparing the first attribute information of the preset item placed at the preset position with the second attribute information of the current item placed at the corresponding preset position, it can be determined which items have inconsistent attribute information, Furthermore, it can be determined which items are the target items. After the target item is determined, in order to further determine whether the target item is indeed an item with cargo damage, the fourth attribute information of the target item should also be obtained, wherein the The fourth attribute information includes information such as quantity information and category information of the target item.

考虑到在一些应用场景中,有可能多个不同位置放置的物品类别相同,也有可能同一位置放置的物品类别不同,再或者每个位置放置的物品类别随机变化,并不固定,因此,在本实施例的一个可选实现方式中,各个物品在置物处所放置的位置无需预先设定。比如,所述预设物品信息可以表现为:Considering that in some application scenarios, it is possible to place items of the same type in multiple different locations, or different types of items placed in the same location, or the types of items placed in each location change randomly and are not fixed. Therefore, in this In an optional implementation manner of the embodiment, the position of each item in the storage place does not need to be preset. For example, the preset item information may be expressed as:

摆放内容display content 数量quantity 预设物品1Default item 1 第一数量first quantity 预设物品2Default item 2 第二数量second quantity 预设物品3Default item 3 第三数量third quantity 预设物品4Default Item 4 第四数量fourth quantity

也就是说,所述置物处的某一预设位置可能放置同类的物品,也可能放置不同类的物品,即某一类物品有可能放置在同一预设位置,也有可能放置在不同的预设位置,此时可直接统计某一类物品的汇总数量,再与该类物品的预设数量相比较来确定所述目标物品,比如,对于物品1,其在预设位置1处有1个,在预设位置2处有3个,那么物品1在置物处放置的总数量为4个,而物品1在置物处放置的预设数量为6,物品1的当前数量4小于预设数量6,那么该物品就被认为是出现数量短缺的物品,即目标物品。That is to say, a certain preset position of the storage place may place items of the same type, or different types of items, that is, a certain type of item may be placed in the same preset position, or may be placed in different preset positions. position, at this time, the summary quantity of a certain type of item can be directly counted, and then compared with the preset quantity of this type of item to determine the target item, for example, for item 1, there is one at preset position 1, There are 3 at the preset position 2, then the total quantity of item 1 placed in the storage is 4, and the preset quantity of item 1 placed in the storage is 6, the current quantity of item 1 is 4 less than the preset quantity of 6, The item is then considered to be an item in which there is a shortage in quantity, the target item.

在该实现方式中,如图12所示,所述第三确定子模块1001包括:In this implementation, as shown in FIG. 12, the third determining submodule 1001 includes:

第八确定子模块1201,被配置为根据所述第一物品信息确定预设物品的第五属性信息;The eighth determining submodule 1201 is configured to determine fifth attribute information of a preset item according to the first item information;

第九确定子模块1202,被配置为根据所述第二物品信息确定所述置物处物品的第六属性信息;The ninth determination submodule 1202 is configured to determine sixth attribute information of the item in the storage place according to the second item information;

第十确定子模块1203,被配置为对所述第五属性信息和所述第六属性信息进行比较,确定所述目标物品以及所述目标物品的第四属性信息。The tenth determining submodule 1203 is configured to compare the fifth attribute information with the sixth attribute information, and determine the target item and fourth attribute information of the target item.

其中,所述第五属性信息包括预设物品的数量信息、类别信息等信息,所述第六属性信息包括置物处物品的当前数量信息、类别信息等信息。在该实施方式中,由于预设物品在置物处所放置的位置无需预先设定,那么就可以直接识别当前图像中在置物处放置的物品的第六属性信息,比如物品的类别及每个类别对应的物品数量,其中,物品属性信息的识别方法如上文所述,此处不再赘述;然后将同一物品类别的第六属性信息与预设物品的第五属性信息进行比较,通过判断当前物品数量是否小于预设物品数量来确定哪些物品为目标物品,在确定了目标物品后,为了后续进一步确定该目标物品是否确实为出现货损情况的物品,同时还应获取所述目标物品的第四属性信息,其中,所述第四属性信息包括所述目标物品的数量信息、类别信息等信息。上文提及,当同一物品类别的当前物品数量小于预设物品数量时,可被认为是目标物品,在具体实施时,考虑到上述数量的差异有可能是由于正常销售行为导致的,因此,为了减少计算量,也为了减少计算误差,也可设置一数量阈值,当同一物品类别的当前物品数量与预设物品数量之间的差值大于所述数量阈值时,才被认为是目标物品。Wherein, the fifth attribute information includes information such as quantity information and category information of preset items, and the sixth attribute information includes information such as current quantity information and category information of items at the storage place. In this embodiment, since the position of the preset item placed in the storage place does not need to be preset, the sixth attribute information of the item placed in the storage place in the current image can be directly identified, such as the category of the item and the corresponding The number of items, wherein, the identification method of the item attribute information is as described above, and will not be repeated here; then the sixth attribute information of the same item category is compared with the fifth attribute information of the preset item, and by judging the current item quantity Determine which items are the target items if it is less than the preset number of items. After the target item is determined, in order to further determine whether the target item is indeed an item with cargo damage, the fourth attribute information of the target item should also be obtained. , wherein the fourth attribute information includes information such as quantity information and category information of the target item. As mentioned above, when the current number of items of the same item category is less than the preset number of items, it can be considered as the target item. In actual implementation, considering that the above-mentioned difference in quantity may be caused by normal sales behavior, therefore, In order to reduce the amount of calculation and the calculation error, a quantity threshold can also be set, and when the difference between the current quantity of items of the same category and the preset quantity of items is greater than the quantity threshold, it is considered as the target item.

上述方案通过属性信息的比较能够准确、快速地确定满足预设条件的目标物品,比如数量短缺物品,另外,该方案能够借助运算工具自动执行识别工作,从而能够有效节省人力成本,提高工作效率和识别准确率。The above scheme can accurately and quickly determine the target items that meet the preset conditions through the comparison of attribute information, such as items in short supply. In addition, the scheme can automatically perform identification work with the help of computing tools, which can effectively save labor costs, improve work efficiency and recognition accuracy.

在本实施例的一个可选实现方式中,如图13所示,所述确定模块803包括:In an optional implementation of this embodiment, as shown in FIG. 13 , the determining module 803 includes:

计算子模块1301,被配置为根据所述第一物品信息、所述第二物品信息和所述历史信息计算所述置物处物品的异常数量;The calculation submodule 1301 is configured to calculate the abnormal quantity of items in the storage place according to the first item information, the second item information and the historical information;

第十一确定子模块1302,被配置为根据所述成本价格数据和所述异常数量,确定所述异常数据信息。The eleventh determining submodule 1302 is configured to determine the abnormal data information according to the cost price data and the abnormal quantity.

如上文所述,所述异常数据信息指的是除正常销售、正常损坏等正常物品流动数据外的数据,比如,由非销售行为导致的物品数量减少数据、非正常损坏数据等等,也可以统称为货损数据。所述异常数据信息可通过物品属性信息的比对来得到,比如,在得知某一商品的进货数量、销售数量和现存数量后,可通过将销售数量与现存数量之和与进货数量进行比较,再结合该商品的售价来得到。As mentioned above, the abnormal data information refers to data other than normal item flow data such as normal sales and normal damage, such as data on item quantity reduction caused by non-sales behavior, abnormal damage data, etc. Collectively referred to as cargo damage data. The abnormal data information can be obtained by comparing the item attribute information. For example, after knowing the purchase quantity, sales quantity and existing quantity of a certain commodity, the sum of the sales quantity and the existing quantity can be compared with the purchase quantity , combined with the selling price of the commodity to get.

在该实施方式中,在获取所述置物处对应的历史信息后,根据所述第一物品信息、所述第二物品信息和所述历史信息计算得到所述置物处物品的异常数量,比如,可利用下式计算所述置物处物品的异常数量:In this embodiment, after obtaining the historical information corresponding to the storage place, the abnormal number of items in the storage place is calculated according to the first item information, the second item information and the historical information, for example, The following formula can be used to calculate the abnormal number of items in the storage place:

置物处物品的异常数量=该物品的初始放置数据+预设历史时间段内该物品的历史补充数据–当前该物品放置数据–预设历史时间段内该物品的历史销售数据。The abnormal number of items in the storage place = the initial placement data of the item + the historical supplementary data of the item in the preset historical time period - the current placement data of the item - the historical sales data of the item in the preset historical time period.

然后根据所述物品的成本价格数据和异常数量,即可确定该物品的异常数据信息。比如:将该物品的成本价格数据与其异常数量相乘即可得到该物品的异常数据信息,即该物品的货损数据。Then, according to the cost price data and abnormal quantity of the item, the abnormal data information of the item can be determined. For example, by multiplying the cost price data of the item by its abnormal quantity, the abnormal data information of the item can be obtained, that is, the damage data of the item.

在本实施例的一个可选实现方式中,如图14所示,所述装置还包括:In an optional implementation of this embodiment, as shown in FIG. 14, the device further includes:

整合模块1401,被配置为将所述异常数据信息进行整合,得到所述置物处的异常状态数据信息;The integration module 1401 is configured to integrate the abnormal data information to obtain the abnormal state data information at the storage place;

执行模块1402,被配置为根据所述置物处的异常状态数据信息执行预设操作。The execution module 1402 is configured to execute a preset operation according to the abnormal state data information at the object.

在该实施方式中,考虑到某一置物处有可能存在两种或多种异常物品,比如有两种或多种物品均出现数量短缺,因此,可将所述置物处数量短缺物品的异常数据信息进行整合统计,以得到所述置物处的异常状态数据信息,比如可以将不同种类的数量短缺物品的异常数量进行相加,或者将不同数量短缺物品的异常状态数据信息整合统计到一个数量短缺物品清单中,以掌握置物处的整体数量短缺情况。In this embodiment, considering that there may be two or more abnormal items in a storage place, for example, there are two or more items that are in short supply, therefore, the abnormal data of the items in short supply at the storage place can be The information is integrated and counted to obtain the abnormal state data information at the storage place. For example, the abnormal quantities of different types of items in short supply can be added, or the abnormal state data information of different quantities of insufficient items can be integrated and counted into a single quantity shortage In the item list, to grasp the overall quantity shortage of the storage place.

进一步地,在得到所述置物处的异常状态数据信息之后,可根据所述置物处的异常状态数据信息执行预设操作,其中,所述预设操作可以包括以下中的一种或多种:执行监控、人工监督、人工售卖等等。Further, after obtaining the abnormal state data information at the object, a preset operation may be performed according to the abnormal state data information at the object, wherein the preset operation may include one or more of the following: Execution monitoring, manual supervision, manual sales, etc.

在本实施例的一个可选实现方式中,所述执行模块1402被配置为:In an optional implementation manner of this embodiment, the executing module 1402 is configured to:

当确定所述置物处的异常状态数据信息满足预设条件,比如异常物品的异常数量总量大于预设数量阈值或者异常物品的种类数量大于预设种类阈值时,对于所述置物处执行预设操作。When it is determined that the abnormal state data information at the storage place satisfies the preset condition, for example, when the total amount of abnormal items is greater than the preset quantity threshold or the number of types of abnormal items is greater than the preset category threshold, the preset is performed for the storage place. operate.

在该实施方式中,当确定所述置物处的异常状态数据信息满足所述预设条件时,可认为该置物处出现了严重的货损情况,那么就对该置物处实施监控、人工监督或人工售卖等措施,以对货损情况进行控制,避免出现更为严重的货损。In this embodiment, when it is determined that the abnormal state data information of the storage place satisfies the preset condition, it can be considered that a serious cargo damage has occurred in the storage place, and then the storage place is monitored, manually supervised, or manually monitored. Sales and other measures to control the damage to the goods and avoid more serious damage to the goods.

需要说明的是,本发明实施例技术方案并不限于在无人售卖行业中应用,在常规超市、商店等有人售卖环境下依然可以有效实施。本发明实施例还公开了一种电子设备,图15示出根据本发明一实施方式的电子设备的结构框图,如图15所示,所述电子设备1500包括存储器1501和处理器1502;其中,It should be noted that the technical solutions of the embodiments of the present invention are not limited to the application in the unmanned vending industry, and can still be effectively implemented in conventional supermarkets, stores and other human vending environments. The embodiment of the present invention also discloses an electronic device. FIG. 15 shows a structural block diagram of an electronic device according to an embodiment of the present invention. As shown in FIG. 15 , the electronic device 1500 includes a memory 1501 and a processor 1502; wherein,

所述存储器1501用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器1502执行以实现上述任一方法步骤。The memory 1501 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1502 to implement any of the above method steps.

图16适于用来实现根据本发明实施方式的数据获取方法的计算机系统的结构示意图。Fig. 16 is a structural schematic diagram of a computer system suitable for realizing the data acquisition method according to the embodiment of the present invention.

如图16所示,计算机系统1600包括中央处理单元(CPU)1601,其可以根据存储在只读存储器(ROM)1602中的程序或者从存储部分1608加载到随机访问存储器(RAM)1603中的程序而执行上述实施方式中的各种处理。在RAM1603中,还存储有系统1600操作所需的各种程序和数据。CPU1601、ROM1602以及RAM1603通过总线1604彼此相连。输入/输出(I/O)接口1605也连接至总线1604。As shown in FIG. 16 , a computer system 1600 includes a central processing unit (CPU) 1601, which can operate according to a program stored in a read-only memory (ROM) 1602 or a program loaded from a storage section 1608 into a random access memory (RAM) 1603 Instead, various processes in the above-described embodiments are executed. In the RAM 1603, various programs and data necessary for the operation of the system 1600 are also stored. The CPU 1601 , ROM 1602 , and RAM 1603 are connected to each other via a bus 1604 . An input/output (I/O) interface 1605 is also connected to the bus 1604 .

以下部件连接至I/O接口1605:包括键盘、鼠标等的输入部分1606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1607;包括硬盘等的存储部分1608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1609。通信部分1609经由诸如因特网的网络执行通信处理。驱动器1610也根据需要连接至I/O接口1605。可拆卸介质1611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1610上,以便于从其上读出的计算机程序根据需要被安装入存储部分1608。The following components are connected to the I/O interface 1605: an input section 1606 including a keyboard, a mouse, etc.; an output section 1607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 1608 including a hard disk, etc. and a communication section 1609 including a network interface card such as a LAN card, a modem, or the like. The communication section 1609 performs communication processing via a network such as the Internet. A drive 1610 is also connected to the I/O interface 1605 as needed. A removable medium 1611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1610 as necessary so that a computer program read therefrom is installed into the storage section 1608 as necessary.

特别地,根据本发明的实施方式,上文描述的方法可以被实现为计算机软件程序。例如,本发明的实施方式包括一种计算机程序产品,其包括有形地包含在及其可读介质上的计算机程序,所述计算机程序包含用于执行所述数据获取方法的程序代码。在这样的实施方式中,该计算机程序可以通过通信部分1609从网络上被下载和安装,和/或从可拆卸介质1611被安装。In particular, according to an embodiment of the present invention, the methods described above may be implemented as a computer software program. For example, embodiments of the present invention include a computer program product comprising a computer program tangibly embodied on a medium readable therefrom, the computer program comprising program code for performing the data acquisition method. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 1609 and/or installed from removable media 1611 .

附图中的流程图和框图,图示了按照本发明各种实施方式的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,路程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a roadmap or block diagram may represent a module, program segment, or part of code that contains one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本发明实施方式中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present invention may be implemented by software or by hardware. The described units or modules may also be set in the processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

作为另一方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施方式中所述装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,所述程序被一个或者一个以上的处理器用来执行描述于本发明实施例的方法。As another aspect, an embodiment of the present invention also provides a computer-readable storage medium, which may be the computer-readable storage medium contained in the device described in the above implementation manner; or may exist independently , a computer-readable storage medium not incorporated into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present invention.

以上描述仅为本发明的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本发明实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本发明实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present invention and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) the embodiments of the present invention.

Claims (10)

1. A method of data acquisition, comprising:
acquiring a current image of a placement position and first article information preset in the placement position;
identifying the current image and determining second article information of the article placement position;
and acquiring historical information corresponding to the placement position, and determining abnormal data information according to the first article information, the second article information and the historical information.
2. The method according to claim 1, wherein the obtaining of the history information corresponding to the placement location and the determining of the abnormal data information according to the first item information, the second item information and the history information comprise:
determining third attribute information of the article at the placement position according to the first article information and the second article information;
and acquiring historical information corresponding to the object placing position, and determining abnormal data information according to the historical information and the third attribute information.
3. The method according to claim 1, wherein the obtaining of the history information corresponding to the placement location and the determining of the abnormal data information according to the first item information, the second item information and the history information comprise:
determining a target object in the current image and fourth attribute information of the target object according to the first object information and the second object information;
acquiring historical information corresponding to the target object, and determining abnormal data information of the target object according to the historical information of the target object and the fourth attribute information.
4. The method of any of claims 1-3, wherein the historical information comprises: the initial placement number, historical supplementary data in a preset historical time period, historical sales data and cost price data in the preset historical time period;
the determining abnormal data information according to the first item information, the second item information and the history information includes:
calculating the abnormal quantity of the articles at the placement position according to the first article information, the second article information and the historical information;
and determining the abnormal data information according to the cost price data and the abnormal quantity.
5. A data acquisition apparatus, comprising:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is configured to acquire a current image of a storage place and first item information preset by the storage place;
the identification module is configured to identify the current image and determine second item information of the object;
the determining module is configured to acquire historical information corresponding to the placement position and determine abnormal data information according to the first item information, the second item information and the historical information.
6. The apparatus of claim 5, wherein the determining module comprises:
a first determining sub-module configured to determine third attribute information of the item at the placement according to the first item information and the second item information;
and the second determining submodule is configured to acquire historical information corresponding to the placement position and determine abnormal data information according to the historical information and the third attribute information.
7. The apparatus of claim 5, wherein the determining module comprises:
a third determining sub-module configured to determine a target item in the current image and fourth attribute information of the target item according to the first item information and the second item information;
the fourth determining submodule is configured to acquire history information corresponding to the target object and determine abnormal data information of the target object according to the history information of the target object and the fourth attribute information.
8. The apparatus of any of claims 5-7, wherein the historical information comprises: the initial placement number, historical supplementary data in a preset historical time period, historical sales data and cost price data in the preset historical time period;
the determining module comprises:
the calculating submodule is configured to calculate the abnormal number of the articles at the placement position according to the first article information, the second article information and the historical information;
an eleventh determining sub-module configured to determine the anomaly data information according to the cost price data and the anomaly number.
9. An electronic device comprising a memory and a processor; wherein,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-4.
10. A computer-readable storage medium having stored thereon computer instructions, characterized in that the computer instructions, when executed by a processor, carry out the method steps of any of claims 1-4.
CN201810589381.XA 2018-06-08 2018-06-08 Data acquisition method and device, electronic equipment and computer readable storage medium Pending CN108875822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810589381.XA CN108875822A (en) 2018-06-08 2018-06-08 Data acquisition method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810589381.XA CN108875822A (en) 2018-06-08 2018-06-08 Data acquisition method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108875822A true CN108875822A (en) 2018-11-23

Family

ID=64338569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810589381.XA Pending CN108875822A (en) 2018-06-08 2018-06-08 Data acquisition method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108875822A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033324A (en) * 2019-04-11 2019-07-19 上海拉扎斯信息科技有限公司 Data processing method, device, electronic equipment and computer readable storage medium
CN111832420A (en) * 2020-06-17 2020-10-27 深圳达闼科技控股有限公司 Article handling method, device, medium and automatic vending machine
CN113569745A (en) * 2021-07-29 2021-10-29 上海商汤智能科技有限公司 Article identification method, device, system, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059270A1 (en) * 2007-08-31 2009-03-05 Agata Opalach Planogram Extraction Based On Image Processing
CN101853387A (en) * 2010-04-02 2010-10-06 北京物资学院 Three-dimensional warehouse goods inventory method and system
CN103593743A (en) * 2012-08-17 2014-02-19 东莞市领先电子科技有限公司 Warehouse management system based on RFID technology and free flight technology
CN104102989A (en) * 2014-07-08 2014-10-15 武汉理工大学 Storage anomaly management system and storage anomaly detection method based on radio frequency identification
CN106156968A (en) * 2015-04-10 2016-11-23 上海道拓文化传播有限公司 A kind of many storehouses checking method and system
CN107590926A (en) * 2017-09-16 2018-01-16 吴声隆 A kind of unattended marketing system
CN107993343A (en) * 2017-12-11 2018-05-04 深圳市满心科技有限公司 The method and storage medium of automatic vending machine and cargo of making an inventory

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059270A1 (en) * 2007-08-31 2009-03-05 Agata Opalach Planogram Extraction Based On Image Processing
CN101853387A (en) * 2010-04-02 2010-10-06 北京物资学院 Three-dimensional warehouse goods inventory method and system
CN103593743A (en) * 2012-08-17 2014-02-19 东莞市领先电子科技有限公司 Warehouse management system based on RFID technology and free flight technology
CN104102989A (en) * 2014-07-08 2014-10-15 武汉理工大学 Storage anomaly management system and storage anomaly detection method based on radio frequency identification
CN106156968A (en) * 2015-04-10 2016-11-23 上海道拓文化传播有限公司 A kind of many storehouses checking method and system
CN107590926A (en) * 2017-09-16 2018-01-16 吴声隆 A kind of unattended marketing system
CN107993343A (en) * 2017-12-11 2018-05-04 深圳市满心科技有限公司 The method and storage medium of automatic vending machine and cargo of making an inventory

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110033324A (en) * 2019-04-11 2019-07-19 上海拉扎斯信息科技有限公司 Data processing method, device, electronic equipment and computer readable storage medium
CN111832420A (en) * 2020-06-17 2020-10-27 深圳达闼科技控股有限公司 Article handling method, device, medium and automatic vending machine
CN111832420B (en) * 2020-06-17 2023-08-29 达闼机器人股份有限公司 Article processing method, device, medium and automatic vending machine
CN113569745A (en) * 2021-07-29 2021-10-29 上海商汤智能科技有限公司 Article identification method, device, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109117824B (en) Commodity management method and device, electronic equipment and storage medium
JP7142026B2 (en) Judgment of product placement conformity results
US11593821B2 (en) Mobile device based inventory management and sales trends analysis in a retail environment
US9754237B2 (en) Index image quality metric
WO2019165892A1 (en) Automatic vending method and apparatus, and computer-readable storage medium
WO2019071930A1 (en) Method and apparatus for sorting goods
CN111242524A (en) Method, system, equipment and storage medium for determining replenishment quantity of single article
CN111523620B (en) Dynamic adjustment method and commodity verification method for commodity identification model
CN112488602A (en) Replenishment method, device and system
CN108961548A (en) Article information acquisition method and device, electronic equipment and storage medium
CN113378958A (en) Automatic labeling method, device, equipment, storage medium and computer program product
CN108875822A (en) Data acquisition method and device, electronic equipment and computer readable storage medium
CN112434584B (en) Goods shelf allowance calculation method, device, computer equipment and storage medium
US20240037952A1 (en) Analysis device, analysis system, analysis method, and computer-readable medium
CN115359117B (en) Commodity display position determining method, commodity display position determining device and readable storage medium
WO2020015340A1 (en) Shelf short supply checking method and apparatus, and device and storage medium
CN111753614A (en) A monitoring method and device for a commodity shelf
CN112668365A (en) Material warehousing identification method, device, equipment and storage medium
CN113793081A (en) Warehouse monitoring method, device, computer readable medium and electronic device
JP7304566B2 (en) Information processing device and information processing method
CN116052139A (en) Method and device for detecting shelf space
CN108416406B (en) Commodity management method, device, system and equipment, and storage medium
CN111694872A (en) Method and device for providing data scheme of service handling
CN111563518B (en) Dish image recognition method and device based on edge calculation
US20250111331A1 (en) Computer vision AI/ML based system and methods for real-time smart inventory management on retail shelves

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication