WO2019033635A1 - Purchase settlement method, device, and system - Google Patents

Purchase settlement method, device, and system Download PDF

Info

Publication number
WO2019033635A1
WO2019033635A1 PCT/CN2017/115444 CN2017115444W WO2019033635A1 WO 2019033635 A1 WO2019033635 A1 WO 2019033635A1 CN 2017115444 W CN2017115444 W CN 2017115444W WO 2019033635 A1 WO2019033635 A1 WO 2019033635A1
Authority
WO
WIPO (PCT)
Prior art keywords
customer
action
product
shopping
identity information
Prior art date
Application number
PCT/CN2017/115444
Other languages
French (fr)
Chinese (zh)
Inventor
吴一黎
Original Assignee
图灵通诺(北京)科技有限公司
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
Priority claimed from CN201711213100.2A external-priority patent/CN109409175B/en
Application filed by 图灵通诺(北京)科技有限公司 filed Critical 图灵通诺(北京)科技有限公司
Priority to EP17921861.5A priority Critical patent/EP3671529A4/en
Priority to JP2019512641A priority patent/JP6743291B2/en
Priority to US16/330,076 priority patent/US10963947B2/en
Publication of WO2019033635A1 publication Critical patent/WO2019033635A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • the invention belongs to the technical field of computers, and in particular relates to a settlement method, device and system.
  • This method has the following drawbacks: due to the need to attach a small RF module to each item, this is extremely labor intensive and costly for the staff of the shopping place, and if the RF small module is dropped from the product or is itself damaged or Man-made damage, the counter can not identify the goods, will cause losses to the business. In addition, some metal products are affixed with RFID, and there may be problems with the signal being shielded.
  • the present invention provides a settlement method, which includes: Step S1, identifying a pre-registered customer to obtain the identity information of the customer.
  • the identity information includes the customer's face data and the payment account number; in step S2, the customer who has acquired the identity information is tracked in real time in the shopping place to obtain the customer Position S3, determining whether the location of the customer is consistent with the location of the product in the shopping place, and if so, correlating the customer with the take-in or put-back action of the product, and identifying or taking back the action And taking or returning the product for which the action is directed, generating a shopping list of the customer; and in step S4, performing settlement according to the shopping list.
  • step S3 it is determined whether the location of the customer is consistent with the location of the product in the shopping place, and specifically includes: facing forwardly mounted on the shelf carrying the product.
  • the position of the camera indicates the position of the product, and when the forward camera captures the customer identity information indicated by the picture containing the customer and the identity information acquired in step S1 is the same, the location of the customer and the goods in the shopping place are determined. The position is the same.
  • identifying the take-in or put-back action includes: obtaining a multi-frame consecutive hand image of the customer before the shelf carrying the product, for the multi-frame
  • the coherent hand image establishes a hand movement trajectory on the time axis; when it is detected that the movement trajectory of the hand is moved inward from the preset virtual action boundary line and the item is in the hand, the action is recognized as a reversal action
  • the action is recognized as a take action; wherein the virtual action boundary line is away from the shelf Direction, the virtual action boundary is a direction close to the shelf.
  • step S3 identifying the product for which the action is taken or returned, specifically comprising: S31, performing target detection on the acquired multi-frame hand image containing the commodity to obtain the corresponding a plurality of rectangular area images, the rectangular area image is an image corresponding to a rectangular area including the commodity, and the multi-frame hand image is in one-to-one correspondence with the plurality of cameras; S32, according to the plurality of rectangular area images and the pre-trained first-class classification
  • the model corresponds to obtaining a plurality of primary classification results, and the pre-trained primary classification model is a model based on a convolutional neural network image recognition technology and trained by all commodities in the shopping place, according to a plurality of primary classification results and a pre-trained one.
  • the hierarchical linear regression model obtains a primary classification result of the multi-frame hand image; S33, the first classification result is used as the first classification result; and S34, the first classification result is used as the commodity to be identified.
  • step S34 further comprising: S35, if the primary classification result is a similar commodity, according to the plurality of rectangular region images and the pre-trained secondary classification model Corresponding to obtaining multiple sub-category results, and then obtaining secondary classification results of multi-frame hand images according to multiple sub-category results and pre-trained two-level linear regression models, and
  • the second classification result is used as the first classification result
  • the secondary classification model is a model based on the image recognition technology architecture of the convolutional neural network in advance and trained by the commodity in the similar commodity group in the shopping place, otherwise step S33 is performed.
  • the other party also provides a settlement device, which includes: a registration module, configured to receive identity information input by the customer and obtain identity information of the customer who wants to enter the shopping place when registering; a real-time tracking module is connected to the registration module, And a method for obtaining a location of the customer by acquiring the identity information by the registration module in a shopping mall; generating a shopping list module, and connecting with the real-time tracking module, configured to determine the obtained by the real-time tracking module Whether the location of the customer is consistent with the location of the product in the shopping place, and if so, the customer is associated with the take-in or put-back action of the product, and recognizes the take-in or put-back action and takes or puts back the action
  • a shopping list of the customer is generated; and a settlement module is connected to the generated shopping list module for settlement according to the shopping list generated by the generated shopping list list module.
  • the generating the shopping list module includes: an associating unit configured to indicate the position of the product with a position of the forward facing camera photographed on the shelf on which the article is carried.
  • the forward camera captures that the customer identity information indicated by the picture containing the customer is the same as the identity information acquired by the registration module, it is determined that the location of the customer is consistent with the location of the product in the shopping place;
  • the action recognition unit uses Obtaining a multi-frame coherent hand image of the customer before the shelf carrying the product, establishing a hand motion trajectory on the time axis for the multi-frame consecutive hand image; when detecting the movement trajectory of the hand is pre-
  • the action boundary line is moved inwardly and the product is in the hand, the action is recognized as a return action; when it is detected that the motion track of the hand is moved outward from the virtual action boundary line and the product is in the hand, Identifying the action as a take action; wherein the virtual action boundary is a direction away from the shelf, the virtual action boundary
  • the item identification unit includes: a target detection sub-unit, configured to perform target detection according to the multi-frame hand image containing the item acquired by the action recognition unit to acquire multiple a rectangular area image, the rectangular area image is an image corresponding to a rectangular area including an item, and the multi-frame hand image is in one-to-one correspondence with the plurality of cameras; the first classification sub-unit, The method is configured to obtain a plurality of primary classification results according to a plurality of rectangular area images and a pre-trained first-level classification model, and the pre-trained first-level classification model is an image recognition technology architecture based on a convolutional neural network and passes through all the commodities in the shopping place.
  • a trained model which obtains a first-class classification result of a multi-frame hand image according to a plurality of primary classification results and a pre-trained first-order linear regression model; and a confirmation unit, configured to use the first-level classification result as a first classification result; And a result identification unit for using the first classification result as the item to be identified
  • a settlement device comprising: a top camera for photographing downward from the top of the shopping place to track the customer who has acquired the identity information in the shopping place in real time; the front camera for facing the shelf The front is photographed to obtain a picture of the customer located in front of the shelf carrying the merchandise; the lower camera is used for downward shooting to obtain the customer's hand image; the processor; and a memory for storing instructions executable by the processor;
  • the processor is configured to: identify a pre-registered customer to obtain identity information of the customer, the identity information includes a customer's facial data and a payment account; and control the top camera to track the acquired identity information in real time.
  • Still another aspect provides a settlement system, including: a client and a settlement device; the client is configured to receive identity information input by a customer when registering, and send the settlement information to the settlement device and the settlement device List; the settlement device is the above settlement device.
  • FIG. 5 is a schematic structural diagram of a shelf for a settlement device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a settlement method. Referring to FIG. 1, the method includes the following steps:
  • the customer After entering the store, the customer will move in the store. When the customer encounters the product he likes, he will stop in front of the shelf carrying the product, and then take the action to indicate that the product belongs to the item to be purchased, or put The action is returned to indicate that the item does not belong to the item to be purchased. Since the current location of the customer can be obtained through step 102, if the current location is consistent with the location of the product, the person who takes the action on the shelf or puts it back is marked as the customer, in other words, the customer and the shelf. The pick-up or put-back action related to the merchandise is associated to know which customer has taken or put back the merchandise on the shelf before the shelf.
  • a hand movement track is established on the time axis, and according to the hand movement track, it is determined whether the customer applies the taking action to the product or puts back the action.
  • the camera is deployed on the shelf, and the shooting angle is downward, so that the shooting range covers the shelf, and the number of the preferred cameras is plural. This ensures that the shooting is performed from multiple angles, and the accuracy of the product identification is improved.
  • the camera captures multiple frames of images per second, such as 30 frames.
  • the hand image of the customer captured by the camera is detected frame by frame, and the position of the hand in each hand image is marked and saved, repeating frame by frame.
  • the trained first-level classification model classifies the products in each rectangular area image to obtain the primary classification result, which is an n-dimensional vector, where n represents the total quantity of goods in the shopping place, and each element in the vector
  • the meaning indicates that the primary classification model considers that the commodity to be classified belongs to each of the n commodities, and which element in the vector has the largest value, which means that the model considers that the commodity to be classified is the commodity corresponding to the commodity.
  • the rectangular area image is five
  • the number of primary classification results is five n-dimensional vectors.
  • the trained secondary classification model classifies the products in each rectangular area image to obtain the secondary classification result.
  • the secondary classification result is also an m-dimensional vector.
  • the meaning of each element in the vector indicates that the secondary classification model considers The probability that a single item to be classified belongs to each of the m similar items.
  • the rectangular area image is five
  • the number of secondary classification results is five m-dimensional vectors, m is less than or equal to n, and represents the total number of similar items in the shopping place.
  • a secondary classification model can be trained for all groups of similar commodities.
  • a secondary classification model is trained for each group of similar commodities. At this time, if the primary classification result is a similar commodity, then the The secondary classification model corresponding to the primary classification result.
  • the secondary classification result output by the secondary classification model is used as the input of the secondary linear regression model, and the correct classification of the commodities included in the corresponding image of the secondary classification result is used as the secondary linear regression model.
  • Output to train a two-level linear regression model The trained secondary linear regression model performs data fusion on multiple sub-category results, and obtains a secondary classification result, which is used as the first classification result.
  • the secondary classification result represents the secondary linear regression model prediction image.
  • the item is which category of the item in the shopping place.
  • step S34 the first classification result is taken as the commodity to be identified.
  • the fee for the customer selected product is determined.
  • step S4 when the customer leaves the shopping place, the settlement is performed according to the customer's shopping list.
  • the customer After the customer selects the product, the customer leaves the shopping place through the door of the shopping place, and when passing through the door of the shopping place from the inside to the outside, it is judged that the customer is in the state of leaving the shopping place, and is settled according to the customer's shopping list, such as input from the customer registration.
  • the fee corresponding to the shopping list is deducted from the payment account.
  • the identification results will be sent to the customer in real time. If the identification result of each product is uploaded to the cloud server, then the cloud server delivers the recognition result to the app installed by the customer's mobile phone, and the app adds the recognition result to the virtual shopping cart to generate a shopping list, thereby taking the goods or After returning the goods, let the customer know the first time. When the customer comes to the store and intends to leave, the final payment link is completed at the store entrance.
  • FIG. 4 another embodiment of the present invention provides a settlement apparatus, including:
  • the registration module 401 is configured to receive identity information input by the customer and obtain identity information of the customer who wants to enter the shopping place when registering.
  • the item identification unit includes: performing target detection according to the multi-frame hand image containing the item acquired by the action recognition unit to acquire a plurality of rectangular area images corresponding to the rectangular area including the product,
  • the multi-frame hand image is in one-to-one correspondence with the plurality of cameras;
  • the first classification sub-unit is configured to obtain a plurality of primary classification results according to the plurality of rectangular area images and the pre-trained first-class classification model, and the pre-trained first-class classification
  • the model is a model based on the image recognition technology architecture of the convolutional neural network and trained by all the commodities in the shopping place, and obtains the first-class classification result of the multi-frame hand image according to the plurality of primary classification results and the pre-trained first-order linear regression model; a confirmation unit for using the primary classification result as the first classification result; and a result identification unit for using the first classification result as the commodity to be identified.
  • the registration module 401 can be referred to the related content of the step S1 in the foregoing embodiment.
  • the real-time tracking module 402 refer to the related content of step S2 in the foregoing embodiment.
  • the related content of step S3 and steps S31, 32, 33, 34 and 35 in the above embodiment and details are not described herein again.
  • Yet another embodiment of the present invention provides a settlement apparatus based on a convolutional neural network image recognition technology, including: a top camera, a forward facing camera 51, a lower camera 52, a processor, and a memory.
  • the top camera is used to shoot down from the top of the shopping venue to track customers who have obtained identity information in real time in the shopping venue;
  • the front camera is used to shoot toward the front of the shelf to get a picture of the customer in front of the shelf carrying the merchandise
  • the lower camera is used to photograph below to obtain a customer's hand image;
  • the processor and a memory for storing processor-executable instructions; wherein the processor is configured to:
  • the identity information includes customer's facial data and payment account number; controlling the top camera to track the acquired identity information in real time to obtain this The location of the customer; determining whether the location of the customer is consistent with the location of the product in the shopping venue obtained by controlling the front camera, and if so, correlating the customer with the take-in or put-back action of the product, and obtaining according to the camera below After the hand image recognition takes or puts back the action and takes or replaces the product targeted by the action, the customer's shopping list is generated; and the settlement is performed according to the shopping list.
  • the shelf carrying the merchandise includes a base 56 for providing support and placing it on the ground.
  • the post 55 is disposed on the base 56 and may be disposed in a vertical manner, such as may be disposed at one end of the base 56 such that the combination of the post 55 and the base 56 is L-shaped, or may be disposed at an intermediate portion of the upper surface of the base 56.
  • the combination of the column 55 and the base 56 is inverted T-shaped; it can also be disposed in an inclined manner, which is not limited in this embodiment.
  • the plurality of bearing platforms 53 are sequentially disposed on the same side of the column 55 in the vertical direction (when the column 55 is vertically disposed on the base 56, the vertical direction is the length direction of the column 55), and any two adjacent bearing platforms Spaces are left between the 53 to form a space for containing the goods to be placed, and the goods are mounted on each of the carrying platforms 53.
  • One end of the carrying platform 53 away from the pillar 55 is a free end, and the free end of the upper loading platform 53 of any two adjacent carrying platforms 53 is closer to the pillar 55 than the free end of the lower loading platform, that is, the plurality of carrying platforms 53
  • the width i.e., the length of the carrying platform 53 in the horizontal direction in Fig.
  • the racks may be referred to according to the number of the carrying platforms 53.
  • the racks may be referred to as multi-layer racks.
  • the number of carrying platforms 53 is preferably three or four.
  • the carrying platform 53 can include a crossbar and a plurality of hangers.
  • the crossbar is horizontally disposed on the column 55, and the plurality of hangers are vertically disposed on the crossbar in parallel with each other and spaced apart from each other.
  • the carrying platform 53 is a discontinuous body, and when the goods are placed, The cargo is suspended below the hanging rod, that is, the cargo is located below the carrying platform 53, so that the light is convenient and the package is easily deformed. The placement of the goods.
  • the shelf is particularly suitable for the ready-to-go shopping place.
  • the front camera 52 and the lower camera 52 are disposed at the upper portion of the column 52, and the front camera 51 is photographed in the front direction of the shelf (the left side in FIG. 6).
  • Shooting that is, photographing the customer who selects the goods in front of the shelf;
  • the lower camera 52 is located above the carrying platform 53, and the shooting direction is downward shooting from above the carrying platform 53, that is, photographing the goods on the carrying platform 53,
  • the camera's shooting range covers the goods on the shelves.
  • a further embodiment of the present invention provides a settlement system, which includes a client and a settlement device, and the client receives the identity information input by the customer and sends it to the settlement device and the shopping list delivered by the settlement device.
  • the settlement device is the aforementioned settlement device, and the specific content will not be described again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention discloses a purchase settlement method, device, and system, and belongs to the technical field of computers. The purchase settlement method comprises: identifying a pre-registered customer to obtain identity information of the customer, wherein the identity information comprises facial data and a payment account of the customer; tracking, in a shopping center in real time, the customer whose identity information has been obtained, so as to obtain a position of the customer; and determining whether the position of the customer is consistent with a position of goods in the shopping center, and if so, associating the customer with a taking or returning action related to the goods, and after the taking or returning action and the goods corresponding to the taking or returning action are identified, generating a shopping list of the customer; and performing purchase settlement according to the shopping list. The invention also discloses a purchase settlement device comprising a top camera, a front-facing camera, a downward camera, and a server. The invention also discloses the purchase settlement system comprising a client and a purchase settlement device. The above-described technical solution of the invention solves the problems that adhering RFID tags requires significant labor and the RFID tags are likely to be damaged.

Description

结算方法、装置和系统Settlement method, device and system 技术领域Technical field
本发明属于计算机技术领域,特别涉及一种结算方法、装置和系统。The invention belongs to the technical field of computers, and in particular relates to a settlement method, device and system.
背景技术Background technique
顾客在超市、商店等购物场所看到自己喜欢或需要的商品时,需与购物场所的经营者进行结算才能得到该商品。通常是以在收银台排队的方式进行结算。When a customer sees a product he likes or needs in a shopping place such as a supermarket or a store, he/she needs to settle with the operator of the shopping place to obtain the product. It is usually settled by queuing at the checkout counter.
随着人工智能技术的发展,结算方式也发生了变化,如走进购物场所后,挑选好自己的商品,不用在收营台处排队等待结账,可以立马离开,俗称“即拿即走”结算方式。With the development of artificial intelligence technology, the settlement method has also changed. For example, after entering the shopping place, picking up your own goods, you don’t have to wait in line at the receiving station to wait for the checkout, you can leave immediately, commonly known as “get it right away”. the way.
现有技术中,主要是基于RFID(无线射频识别,Radio Frequency Identification)技术实现“即拿即走”方案。应用时,在商品上贴一个不需要电池的射频小模块,当该商品通过设置有RFID检测设置的结算台(或结算区域)时,结算台会向该商品发射无线信号,该射频小模块接收到该信号之后会回馈一个信号给结算台,该回馈的信号中带有商品的ID信息,结算台据此生成账单并进行结算。该方法具有如下缺陷:由于需要在每件商品上贴射频小模块,这对购物场所的工作人员来说工作量极大且成本较高,而且如果射频小模块从商品上掉落或本身损坏或人为损坏,结算台则无法识别该商品,会给商家造成损失。此外,有些金属商品贴上RFID,可能存在信号被屏蔽的问题。In the prior art, it is mainly based on RFID (Radio Frequency Identification) technology to realize the "get it right away" solution. When applying, a small radio frequency module that does not require a battery is attached to the product. When the product passes through a settlement station (or settlement area) provided with an RFID detection setting, the settlement station transmits a wireless signal to the commodity, and the radio frequency small module receives After the signal, a signal is sent back to the settlement counter, and the feedback signal carries the ID information of the commodity, and the settlement counter generates a bill and settles the bill accordingly. This method has the following drawbacks: due to the need to attach a small RF module to each item, this is extremely labor intensive and costly for the staff of the shopping place, and if the RF small module is dropped from the product or is itself damaged or Man-made damage, the counter can not identify the goods, will cause losses to the business. In addition, some metal products are affixed with RFID, and there may be problems with the signal being shielded.
发明内容Summary of the invention
为了解决现有技术中存在的粘贴RFID标签工作量大、RFID标签易损坏的问题,本发明一方面提供了一种结算方法,其包括:步骤S1,识别预先注册的顾客以获取顾客的身份信息,所述身份信息包括顾客的脸部数据和支付账号;步骤S2,在购物场所内实时跟踪已获取身份信息的顾客以获取此顾客 的位置;步骤S3,判断此顾客的位置与购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在识别拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;步骤S4,根据所述购物清单清单进行结算。In order to solve the problem that the pasting RFID tag existing in the prior art has a large workload and the RFID tag is easily damaged, the present invention provides a settlement method, which includes: Step S1, identifying a pre-registered customer to obtain the identity information of the customer. The identity information includes the customer's face data and the payment account number; in step S2, the customer who has acquired the identity information is tracked in real time in the shopping place to obtain the customer Position S3, determining whether the location of the customer is consistent with the location of the product in the shopping place, and if so, correlating the customer with the take-in or put-back action of the product, and identifying or taking back the action And taking or returning the product for which the action is directed, generating a shopping list of the customer; and in step S4, performing settlement according to the shopping list.
在如上所述的结算方法中,优选地,步骤S3中,判断此顾客的位置与购物场所内商品的位置是否一致,具体包括:以承载所述商品的货架上安装的朝前方拍摄的朝前摄像头的位置表示所述商品的位置,当所述朝前摄像头拍摄到含有顾客的图片所表示的顾客身份信息与所述步骤S1获取的身份信息相同时,则判断顾客的位置与购物场所内商品的位置一致。In the settlement method as described above, preferably, in step S3, it is determined whether the location of the customer is consistent with the location of the product in the shopping place, and specifically includes: facing forwardly mounted on the shelf carrying the product. The position of the camera indicates the position of the product, and when the forward camera captures the customer identity information indicated by the picture containing the customer and the identity information acquired in step S1 is the same, the location of the customer and the goods in the shopping place are determined. The position is the same.
在如上所述的结算方法中,优选地,步骤S3中,识别拿取或放回动作,具体包括:获取此顾客在承载所述商品的货架前的多帧连贯的手部图像,对多帧连贯的手部图像在时间轴上建立一条手部运动轨迹;当检测到手部的运动轨迹为由预设的虚拟动作分界线外向内移动且手中拿有商品时,则将动作识别为放回动作;当检测到手部的运动轨迹为由所述虚拟动作分界线内向外移动且手中拿有商品时,则将动作识别为拿取动作;其中,所述虚拟动作分界线外为远离所述货架的方向,所述虚拟动作分界线内为靠近所述货架的方向。In the settlement method as described above, preferably, in step S3, identifying the take-in or put-back action includes: obtaining a multi-frame consecutive hand image of the customer before the shelf carrying the product, for the multi-frame The coherent hand image establishes a hand movement trajectory on the time axis; when it is detected that the movement trajectory of the hand is moved inward from the preset virtual action boundary line and the item is in the hand, the action is recognized as a reversal action When it is detected that the movement track of the hand is moved outward from the virtual action boundary line and the product is in the hand, the action is recognized as a take action; wherein the virtual action boundary line is away from the shelf Direction, the virtual action boundary is a direction close to the shelf.
在如上所述的结算方法中,优选地,步骤S3中,识别拿取或放回动作所针对的商品,具体包括:S31,对获取的含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,所述矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应;S32,根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果;S33,以所述一级分类结果作为第一次分类结果;S34,将所述第一次分类结果作为待识别的商品。In the settlement method as described above, preferably, in step S3, identifying the product for which the action is taken or returned, specifically comprising: S31, performing target detection on the acquired multi-frame hand image containing the commodity to obtain the corresponding a plurality of rectangular area images, the rectangular area image is an image corresponding to a rectangular area including the commodity, and the multi-frame hand image is in one-to-one correspondence with the plurality of cameras; S32, according to the plurality of rectangular area images and the pre-trained first-class classification The model corresponds to obtaining a plurality of primary classification results, and the pre-trained primary classification model is a model based on a convolutional neural network image recognition technology and trained by all commodities in the shopping place, according to a plurality of primary classification results and a pre-trained one. The hierarchical linear regression model obtains a primary classification result of the multi-frame hand image; S33, the first classification result is used as the first classification result; and S34, the first classification result is used as the commodity to be identified.
在如上所述的结算方法中,优选地,在步骤S32之后,步骤S34之前,还包括:S35,若一级分类结果为相似商品,则根据多个矩形区域图像和预先训练的二级分类模型,对应获得多个次级分类结果,再根据多个次级分类结果和预先训练的二级线性回归模型获取多帧手部图像的二级分类结果,并 以二级分类结果作为第一次分类结果,二级分类模型为预先基于卷积神经网络的图像识别技术架构且经购物场所内相似商品组中商品训练的模型,否则执行步骤S33。In the settlement method as described above, preferably, after step S32, before step S34, further comprising: S35, if the primary classification result is a similar commodity, according to the plurality of rectangular region images and the pre-trained secondary classification model Corresponding to obtaining multiple sub-category results, and then obtaining secondary classification results of multi-frame hand images according to multiple sub-category results and pre-trained two-level linear regression models, and The second classification result is used as the first classification result, and the secondary classification model is a model based on the image recognition technology architecture of the convolutional neural network in advance and trained by the commodity in the similar commodity group in the shopping place, otherwise step S33 is performed.
另一方还提供了一种结算装置,其包括:注册模块,用于在注册时接收顾客输入的身份信息及获取欲进入购物场所的顾客的身份信息;实时跟踪模块,与所述注册模块连接,用于在购物场所内实时跟踪经所述注册模块获取身份信息的顾客以获取此顾客的位置;生成购物清单模块,与所述实时跟踪模块连接,用于判断经所述实时跟踪模块获取的此顾客的位置与购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在识别拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;和结算模块,与所述生成购物清单模块连接,用于根据所述生成购物清单清单模块生成的购物清单进行结算。The other party also provides a settlement device, which includes: a registration module, configured to receive identity information input by the customer and obtain identity information of the customer who wants to enter the shopping place when registering; a real-time tracking module is connected to the registration module, And a method for obtaining a location of the customer by acquiring the identity information by the registration module in a shopping mall; generating a shopping list module, and connecting with the real-time tracking module, configured to determine the obtained by the real-time tracking module Whether the location of the customer is consistent with the location of the product in the shopping place, and if so, the customer is associated with the take-in or put-back action of the product, and recognizes the take-in or put-back action and takes or puts back the action After the targeted product, a shopping list of the customer is generated; and a settlement module is connected to the generated shopping list module for settlement according to the shopping list generated by the generated shopping list list module.
在如上所述的结算装置中,优选地,所述生成购物清单模块包括:关联单元,用于以承载所述商品的货架上安装的朝前方拍摄的朝前摄像头的位置表示所述商品的位置,当所述朝前摄像头拍摄到含有顾客的图片所表示的顾客身份信息与所述注册模块获取的身份信息相同时,则判断顾客的位置与购物场所内商品的位置一致;动作识别单元,用于获取此顾客在承载所述商品的货架前的多帧连贯的手部图像,对多帧连贯的手部图像在时间轴上建立一条手部运动轨迹;当检测到手部的运动轨迹为由预设的虚拟动作分界线外向内移动且手中拿有商品时,则将动作识别为放回动作;当检测到手部的运动轨迹为由所述虚拟动作分界线内向外移动且手中拿有商品时,则将动作识别为拿取动作;其中,所述虚拟动作分界线外为远离所述货架的方向,所述虚拟动作分界线内为靠近所述货架的方向;商品识别单元,用于识别所述拿取或放回动作所针对的商品;和购物清单生成单元,根据所述关联单元确认的此顾客的身份信息、所述动作识别单元识别的拿取或放回动作、所述商品识别单元识别的拿取或放回动作所针对的商品,生成此顾客的购物清单。In the settlement device as described above, preferably, the generating the shopping list module includes: an associating unit configured to indicate the position of the product with a position of the forward facing camera photographed on the shelf on which the article is carried. When the forward camera captures that the customer identity information indicated by the picture containing the customer is the same as the identity information acquired by the registration module, it is determined that the location of the customer is consistent with the location of the product in the shopping place; the action recognition unit uses Obtaining a multi-frame coherent hand image of the customer before the shelf carrying the product, establishing a hand motion trajectory on the time axis for the multi-frame consecutive hand image; when detecting the movement trajectory of the hand is pre- When the virtual action boundary line is moved inwardly and the product is in the hand, the action is recognized as a return action; when it is detected that the motion track of the hand is moved outward from the virtual action boundary line and the product is in the hand, Identifying the action as a take action; wherein the virtual action boundary is a direction away from the shelf, the virtual action boundary The inside is a direction close to the shelf; the item identification unit is configured to identify the item for which the take-in or put-back action is directed; and the shopping list generating unit, according to the identity information of the customer confirmed by the associated unit, The take-in or put-back action recognized by the motion recognition unit, the product for which the product identification unit recognizes the take-in or put-back action, generates the customer's shopping list.
在如上所述的结算装置中,优选地,所述商品识别单元包括:目标检测子单元,用于根据所述动作识别单元获取的含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,所述矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应;第一分类子单元, 用于根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果;确认单元,用于以所述一级分类结果作为第一次分类结果;和结果认定单元,用于将所述第一次分类结果作为待识别的商品In the settlement device as described above, preferably, the item identification unit includes: a target detection sub-unit, configured to perform target detection according to the multi-frame hand image containing the item acquired by the action recognition unit to acquire multiple a rectangular area image, the rectangular area image is an image corresponding to a rectangular area including an item, and the multi-frame hand image is in one-to-one correspondence with the plurality of cameras; the first classification sub-unit, The method is configured to obtain a plurality of primary classification results according to a plurality of rectangular area images and a pre-trained first-level classification model, and the pre-trained first-level classification model is an image recognition technology architecture based on a convolutional neural network and passes through all the commodities in the shopping place. a trained model, which obtains a first-class classification result of a multi-frame hand image according to a plurality of primary classification results and a pre-trained first-order linear regression model; and a confirmation unit, configured to use the first-level classification result as a first classification result; And a result identification unit for using the first classification result as the item to be identified
又一方面还提供了一种结算装置,其包括:顶部摄像头,用于自购物场所的顶部向下进行拍摄以在购物场所内实时跟踪已获取身份信息的顾客;朝前摄像头,用于朝货架的前方进行拍摄以获取位于承载商品的货架前的顾客的图片;下方摄像头,用于向下进行拍摄以获取顾客的手部图像;处理器;和用于存储处理器可执行的指令的存储器;其中,所述处理器被配置为:识别预先注册的顾客以获取顾客的身份信息,所述身份信息包括顾客的脸部数据和支付账号;控制所述顶部摄像头实时跟踪已获取身份信息的顾客以获取此顾客的位置;判断此顾客的位置与控制所述朝前摄像头而获取的购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在根据所述下方摄像头获取的手部图像识别的拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;根据所述购物清单清单进行结算。Yet another aspect provides a settlement device, comprising: a top camera for photographing downward from the top of the shopping place to track the customer who has acquired the identity information in the shopping place in real time; the front camera for facing the shelf The front is photographed to obtain a picture of the customer located in front of the shelf carrying the merchandise; the lower camera is used for downward shooting to obtain the customer's hand image; the processor; and a memory for storing instructions executable by the processor; The processor is configured to: identify a pre-registered customer to obtain identity information of the customer, the identity information includes a customer's facial data and a payment account; and control the top camera to track the acquired identity information in real time. Obtaining the location of the customer; determining whether the location of the customer is consistent with the location of the product in the shopping venue obtained by controlling the forward camera, and if so, correlating the customer with the take-in or return action of the product; And taking or retrieving the action according to the hand image acquired by the lower camera and taking or returning After the work for which goods to produce this customer's shopping list; be settled according to the shopping list list.
再一方面还提供了一种结算系统,其包括:客户端和结算装置;所述客户端用于注册时接收顾客输入的身份信息并发送给所述结算装置和所述结算装置下发的购物清单;所述结算装置为上述结算装置。Still another aspect provides a settlement system, including: a client and a settlement device; the client is configured to receive identity information input by a customer when registering, and send the settlement information to the settlement device and the settlement device List; the settlement device is the above settlement device.
本发明实施例通过上述技术方案带来的有益效果如下:The beneficial effects brought by the above technical solutions in the embodiments of the present invention are as follows:
运营成本低:相比于RFID方案,节省粘贴RFID带来的工作量。Low operating costs: saves the workload of pasting RFID compared to RFID solutions.
适用范围广:适用于任意商品,不受商品形态、材质等属性的约束。Wide range of applications: Applicable to any product, not subject to the properties of the product, material and other attributes.
用户体验好:顾客在拿取商品后,可以第一时间获取相关信息。User experience is good: customers can get relevant information in the first time after taking the goods.
附图说明DRAWINGS
图1为本发明实施例提供的一种结算方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a settlement method according to an embodiment of the present invention;
图2为本发明实施例提供的一种基于卷积神经网络的图像识别技术的结算方法的流程示意图; 2 is a schematic flowchart of a settlement method of an image recognition technology based on a convolutional neural network according to an embodiment of the present invention;
图3为本发明实施例提供的另一种基于卷积神经网络的图像识别方法的流程示意图;3 is a schematic flowchart diagram of another image recognition method based on a convolutional neural network according to an embodiment of the present invention;
图4为本发明实施例提供的一种结算装置的结构示意图;4 is a schematic structural diagram of a settlement apparatus according to an embodiment of the present invention;
图5为本发明实施例提供的一种结算装置用货架的结构示意图。FIG. 5 is a schematic structural diagram of a shelf for a settlement device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明实施例提供了一种结算方法,参见图1,该方法包括以下步骤:An embodiment of the present invention provides a settlement method. Referring to FIG. 1, the method includes the following steps:
步骤S1,识别预先注册的顾客以获取顾客的身份信息。In step S1, the pre-registered customer is identified to obtain the identity information of the customer.
具体地,在顾客进入购物场所前,如商店、超市,需在其移动通信设备上,如手机、平板电脑,安装与该结算方法对应的App(Application,应用软件),完成顾客的注册,注册时需采集的顾客身份信息(ID)包括但不限于:顾客的脸部数据、支付账号,支付账号可以为银行账号,也可以为第三方支付账号,如余额宝、微信支付、QQ钱包、京东钱包等,还可以包括姓名、手机号、身份证号、性别、职业。也可以通过微信(WeChat)内与该结算方法对应的小程序(或称微信小程序)完成顾客的注册,还可以通过关注与该结算方法对应的微信公众号完成顾客的注册。然后,顾客通过该App或小程序或公众号扫描购物场所门口处的二维码或商店扫描经顾客所持移动通信设备上App生成的二维码实现商店对顾客ID的验证,即识别出顾客为已注册用户中的一员,从而获取与该顾客对应的身份信息,换言之,知道进入购物场所内的顾客是谁。获取顾客的身份信息后,购物场所的门锁可以自动打开,顾客在门自动打开后或以向里推或向外拉或平推的方式将门打开,然后进入购物场所内挑选商品。若顾客未完成注册,则能识别出顾客为非注册用户,购物场所内的门锁继续关闭,顾客无法进入购物场所内。在其他的实施例中,可以在购物场所门口处设置生物识别器,如指纹识别器、人脸识别器,通过生物识别技术购物场所实现对顾客ID的认定,顾客在该App上注册时会采集顾客的生物数据,如指纹数据。购物场所的门可以在获取顾客身份信息后由工作人员打开。Specifically, before the customer enters the shopping place, such as a store or a supermarket, an App (Application, application software) corresponding to the settlement method is installed on the mobile communication device, such as a mobile phone or a tablet computer, to complete the registration and registration of the customer. The customer identification information (ID) to be collected includes but is not limited to: customer's face data, payment account, payment account can be a bank account, or a third party payment account, such as Yu'ebao, WeChat payment, QQ wallet, Jingdong Wallets, etc., can also include name, mobile number, ID number, gender, occupation. The customer registration can also be completed by a small program (or WeChat applet) corresponding to the settlement method in WeChat, and the customer registration can be completed by paying attention to the WeChat public number corresponding to the settlement method. Then, the customer scans the QR code at the door of the shopping place or the store scans the QR code generated by the App on the mobile communication device held by the customer through the App or applet or the public number to realize the verification of the customer ID by the store, that is, the customer is identified as One of the registered users obtains the identity information corresponding to the customer, in other words, who is the customer who enters the shopping place. After obtaining the identity information of the customer, the door lock of the shopping place can be automatically opened, and the customer opens the door after the door is automatically opened or pushes in or out or pushes, and then enters the shopping place to select the goods. If the customer does not complete the registration, the customer can be identified as a non-registered user, the door lock in the shopping place continues to be closed, and the customer cannot enter the shopping place. In other embodiments, a biometric identifier, such as a fingerprint recognizer and a face recognizer, may be disposed at the entrance of the shopping place, and the identification of the customer ID is realized by the biometric technology shopping place, and the customer collects when registering on the App. Customer's biological data, such as fingerprint data. The door of the shopping venue can be opened by the staff member after obtaining the customer identity information.
步骤S2,在购物场所内实时跟踪已获取身份信息的顾客以获取此顾客的 位置。Step S2, tracking the customer who has acquired the identity information in real time in the shopping place to obtain the customer's position.
顾客在进入购物场所时需进行身份的识别,之后被识别出的顾客在购物场所内自由移动,并拿取、放回商品。若要随时掌握购物场所内每一个顾客的身份信息,需要在顾客进购物场所时进行身份确认后,保持对该顾客在购物场所内轨迹的持续追踪,即需要对顾客进行实时定位。The customer needs to identify the identity when entering the shopping place, and then the identified customer moves freely in the shopping place, and takes and returns the product. In order to keep track of the identity information of each customer in the shopping place, it is necessary to keep track of the trajectory of the customer in the shopping place after the customer confirms the identity when entering the shopping place, that is, the customer needs to be positioned in real time.
具体地,在购物场所内的顶部部署顶部摄像头,其会拍摄顾客在购物场所内移动的视频流,通过对视频流进行分析,比较视频流中前后帧之间的差异来实现对顾客在购物场所内的实时定位。可以在天花板上部署多个顶部摄像头,以使拍摄范围覆盖整个店面,顶部摄像头的拍摄方向为斜向下。入店时顾客的身份已识别,入店后,天花板上的顶部摄像头从上往下进行拍摄,会实时采集到该顾客的图像,并将图像与该顾客的身份信息进行绑定,即知晓在店内移动的顾客的身份信息。随着该顾客在购物场所内移动到不同位置,其他顶部摄像头会一直保持对该顾客的跟踪,实现对该顾客在购物场所内的定位。Specifically, a top camera is deployed on the top of the shopping place, which captures the video stream moved by the customer in the shopping place, and analyzes the video stream to compare the difference between the front and back frames in the video stream to realize the customer in the shopping place. Real-time positioning within. Multiple top cameras can be deployed on the ceiling to cover the entire storefront, with the top camera shooting down diagonally. When the store enters the store, the identity of the customer has been identified. After entering the store, the top camera on the ceiling is photographed from top to bottom, the image of the customer is collected in real time, and the image is bound to the identity information of the customer, that is, The identity information of the customers moving in the store. As the customer moves to a different location within the shopping venue, the other top cameras will keep track of the customer and achieve positioning of the customer within the shopping venue.
步骤S3,若此顾客的位置与购物场所内商品的位置一致,则将此顾客与所述商品涉及的拿取或放回动作关联,并在识别拿取或放回动作所针对的商品后,生成此顾客的购物清单。In step S3, if the location of the customer matches the location of the product in the shopping place, the customer is associated with the take-in or put-back action related to the product, and after identifying the product for which the action is taken, Generate a shopping list for this customer.
具体地,入店后,顾客会在店内移动,当顾客遇到自己喜欢的商品时,会在承载商品的货架前停留,然后对商品进行拿取动作以表明该商品属于待购商品,或放回动作以表明该商品不属于待购商品。由于经步骤102能获取顾客的当前位置,若当前位置与商品所处位置一致,则将对货架上的商品进行拿取或放回动作的人标记为该顾客,换言之,将此顾客与货架上的商品涉及的拿取或放回动作进行关联,从而知道是哪位顾客在该货架前对该货架上的商品进行了拿取或放回动作。在识别出拿取或放回动作所针对的商品是什么商品后,即可生成与该顾客对应的购物清单。商品的位置可以用在货架上设置的朝前方拍摄的摄像头的位置来表示,当顾客移动到货架前挑选商品时,朝前方拍摄的摄像头会拍摄到顾客的图片,若图片中所含的顾客信息与已识别的顾客的身份信息一致,则判断顾客的位置与商品的位置一致。当顾客对商品施加拿取动作时,该顾客的购物清单上会对应地增加该商品,当顾客对商品施加放回动作时,购物清单上会对应地减去该商品,即购物清单会根据 顾客的拿取或放回动作进行实时更新。Specifically, after entering the store, the customer will move in the store. When the customer encounters the product he likes, he will stop in front of the shelf carrying the product, and then take the action to indicate that the product belongs to the item to be purchased, or put The action is returned to indicate that the item does not belong to the item to be purchased. Since the current location of the customer can be obtained through step 102, if the current location is consistent with the location of the product, the person who takes the action on the shelf or puts it back is marked as the customer, in other words, the customer and the shelf. The pick-up or put-back action related to the merchandise is associated to know which customer has taken or put back the merchandise on the shelf before the shelf. After identifying the item for which the item targeted for the action is taken or returned, a shopping list corresponding to the customer can be generated. The position of the product can be indicated by the position of the camera photographed on the shelf facing forward. When the customer selects the product before moving to the shelf, the camera shooting toward the front will take a picture of the customer, if the customer information contained in the picture In accordance with the identity information of the identified customer, it is determined that the location of the customer is consistent with the location of the product. When the customer applies the take-up action to the product, the customer's shopping list will correspondingly increase the product. When the customer applies the put-back action to the product, the item will be correspondingly subtracted from the shopping list, that is, the shopping list will be based on The customer's take or put back action is updated in real time.
关于如何判断对商品的动作是拿取,还是放回的方法可以采用如下:The method of how to judge whether the action of the product is taken or returned can be as follows:
根据采集到的顾客在货架前的多帧连贯的手部图像在时间轴上建立一条手部运动轨迹,根据手部运动轨迹判断顾客对商品施加的是拿取动作,还是放回动作。例如,在货架上部署摄像头,拍摄角度为向下,以使拍摄范围覆盖货架,优选摄像头的数量为多个,如此可以确保从多角度进行拍摄,提高对商品识别的准确率。摄像头每秒会拍到多帧图像,如30帧,对摄像头采集的顾客的手部图像逐帧进行检测,对每帧手部图像中手部的位置进行标记并保存下来,一帧一帧重复前述操作,这样在时间轴上会得到一条手部的运动轨迹,不仅会得到每一帧图像中手部的位置,还会根据某一帧手部图像判断手上是否拿有商品以及对商品的类别进行确认。According to the collected multi-frame continuous hand image of the customer in front of the shelf, a hand movement track is established on the time axis, and according to the hand movement track, it is determined whether the customer applies the taking action to the product or puts back the action. For example, the camera is deployed on the shelf, and the shooting angle is downward, so that the shooting range covers the shelf, and the number of the preferred cameras is plural. This ensures that the shooting is performed from multiple angles, and the accuracy of the product identification is improved. The camera captures multiple frames of images per second, such as 30 frames. The hand image of the customer captured by the camera is detected frame by frame, and the position of the hand in each hand image is marked and saved, repeating frame by frame. The foregoing operation, so that a movement track of the hand is obtained on the time axis, not only the position of the hand in each frame of the image is obtained, but also whether the hand holds the product and the product is determined according to the hand image of a certain frame. The category is confirmed.
具体地,在手部图像中标记一条虚拟动作分界线,该动作分界线与货架间隔一定距离,如10cm、20cm。当检测到手部的运动轨迹由远离货架的位置穿过动作分界线运动到靠近货架的位置,简单地说,由动作分界线外运动到动作分界线内,且手部拿有商品,则认为手部动作为商品的放回动作;当检测到手部的运动轨迹由靠近货架的位置穿过动作分界线运动到远离货架的位置,简单地说,由动作分界线内运动到动作分界线外,且手部拿有商品,则认为手部动作为商品的拿取动作。Specifically, a virtual action boundary line is marked in the hand image, and the action boundary line is spaced apart from the shelf by a certain distance, such as 10 cm and 20 cm. When it is detected that the movement trajectory of the hand moves from the position away from the shelf through the action boundary line to the position close to the shelf, simply speaking, moving from the action boundary line to the action boundary line, and the hand has the commodity, the hand is considered The action of the part is the reversal action of the product; when it is detected that the movement track of the hand moves from the position close to the shelf through the action boundary line to the position away from the shelf, simply moves from the action boundary line to the action boundary line, and If you have a product in your hand, you will think that the hand movement is the taking action of the product.
摄像头持续采集视频数据,每秒拍摄获得多帧手部图像,如几十帧,可以每隔一秒取一帧手部图像,截取手部位置,对手中的商品进行分类(或称识别),可以通过预先训练好的下述分类模型实现。The camera continuously collects video data, and captures multiple frames of hand images per second, such as tens of frames. It can take a frame of hand images every second, intercept the hand position, and classify (or identify) the products in the opponent. This can be achieved by pre-training the following classification model.
参见图2,对拿取或放回动作所针对的商品进行识别的方法可以采用如下步骤:Referring to FIG. 2, the method for identifying the product for which the action is taken or returned may be as follows:
步骤S31,对含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,该矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应。Step S31, performing target detection on the multi-frame hand image containing the product to acquire a plurality of rectangular area images corresponding to the rectangular area including the product, the multi-frame hand image and the plurality of cameras. correspond.
具体地,在对手部图像进行目标检测时,会在手部图像上拉出一个包含商品的矩形框(或称矩形区域),该矩形框所对应的图像是用于对商品进行分类的图像。为了获取多帧手部图像需布置多个摄像头,其可以布置在商品的正上方,此时从正上方向下拍摄;也可以布置在商品的斜上方,此时斜向下 对商品进行拍摄;还可以部分布置在商品的正上方,另一部分布置在商品的斜上方。需要说明的是,不管布置在何位置,各摄像头距离地面的距离可以相等,也可以不相等,本实施例对此不进行限定。Specifically, when the target image is detected by the target image, a rectangular frame (or rectangular area) including the product is drawn on the hand image, and the image corresponding to the rectangular frame is an image for classifying the product. In order to acquire a multi-frame hand image, a plurality of cameras are arranged, which may be arranged directly above the merchandise, at this time from below; or may be arranged obliquely above the merchandise, at this time obliquely downward The merchandise is photographed; it may be partially arranged directly above the merchandise, and the other portion is placed obliquely above the merchandise. It should be noted that the distance between the cameras and the ground may be equal or not equal, which is not limited in this embodiment.
步骤S32,根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果。Step S32, correspondingly acquiring a plurality of primary classification results according to the plurality of rectangular area images and the pre-trained first-class classification model, and the pre-trained first-level classification model is an image recognition technology architecture based on a convolutional neural network and is all in the shopping place. The model of commodity training acquires the primary classification result of the multi-frame hand image according to the plurality of primary classification results and the pre-trained first-order linear regression model.
具体地,预先采集数据建立数据集,采集数据的过程包括:1)对购物场所内所有商品从各个角度以及在各个姿态下拍照来获取大量的照片。2)然后对这些照片进行标注:对照片中商品的位置、大小以及类别进行标注。数据集包括的数据是指前述这些照片以及这些照片上进行的标注。一级分类模型为基于卷积神经网络的图像识别技术架构的模型,并使用购物场所内所有商品的数据对一级分类模型进行了训练,训练时可以通过梯度下降的方式进行。Specifically, the data collection data set is collected in advance, and the process of collecting data includes: 1) taking a photo of all the goods in the shopping place from various angles and in each posture to obtain a large number of photos. 2) Then mark these photos: mark the location, size, and category of the items in the photo. The data included in the data set refers to the aforementioned photos and the annotations made on these photos. The first-level classification model is a model based on the convolutional neural network image recognition technology architecture, and the first-level classification model is trained using the data of all commodities in the shopping place, and the training can be performed by gradient descent.
训练好的一级分类模型对每张矩形区域图像中的商品进行分类,得到初级分类结果,该初级分类结果为一个n维向量,n表示购物场所内商品的总数量,向量中每个元素的含义表示一级分类模型认为待分类的商品属于n个商品中每个商品的概率,向量中哪个元素的值最大,那意味着模型认为待分类的商品为该元素对应的商品。当矩形区域图像为5个时,初级分类结果的数量为5个n维向量。The trained first-level classification model classifies the products in each rectangular area image to obtain the primary classification result, which is an n-dimensional vector, where n represents the total quantity of goods in the shopping place, and each element in the vector The meaning indicates that the primary classification model considers that the commodity to be classified belongs to each of the n commodities, and which element in the vector has the largest value, which means that the model considers that the commodity to be classified is the commodity corresponding to the commodity. When the rectangular area image is five, the number of primary classification results is five n-dimensional vectors.
训练一级分类模型时,一级分类模型输出的初级分类结果作为一级线性回归模型的输入,该初级分类结果对应的手部图像中所包含的商品的正确分类作为一级线性回归模型的输出,以此来训练一级线性回归模型。训练好的一级线性回归模型对多个初级分类结果进行数据融合,得到一个一级分类结果,该一级分类结果表示一级线性回归模型预测图片中商品为购物场所内商品中哪个类别。When training the first-level classification model, the primary classification result output by the primary classification model is used as the input of the first-order linear regression model, and the correct classification of the commodities contained in the hand image corresponding to the primary classification result is used as the output of the first-order linear regression model. In order to train a linear regression model. The trained first-order linear regression model performs data fusion on multiple primary classification results to obtain a first-level classification result, which indicates that the first-order linear regression model predicts which category of the goods in the shopping place in the image.
步骤S33,以一级分类结果作为第一次分类结果。In step S33, the first classification result is used as the first classification result.
购物场所内的商品有多种,在该多种商品中会存在一些外观相近及通过视觉易混淆的商品,将这些商品称为相似商品,如黄元帅苹果和黄色的雪花梨。若待分类的单个商品为相似商品时,一级分类模型难以准确地对该商品进行分类,如把黄元帅的苹果与黄色的雪花梨弄混,将黄元帅的苹果分类为 黄色的雪花梨,因此参见图3,在步骤S32之后,需要执行下述步骤S35,否则执行步骤S33,即直接将一级分类结果作为第一次分类结果,用于结算。There are many kinds of goods in the shopping place, and there are some goods that are similar in appearance and visually confusing, and these goods are called similar goods, such as the yellow marshal apple and the yellow snow pear. If the individual commodity to be classified is a similar commodity, the primary classification model is difficult to accurately classify the commodity, such as mingling Huang Yuanshuai's apple with the yellow snow pear, and classifying Huang Yuanshuai's apple as Yellow snow pear, so referring to FIG. 3, after step S32, the following step S35 needs to be performed, otherwise step S33 is performed, that is, the first classification result is directly used as the first classification result for settlement.
具体地,步骤35,若一级分类结果为相似商品,则根据多个矩形区域图像和预先训练的二级分类模型,对应获得多个次级分类结果,再根据多个次级分类结果和预先训练的二级线性回归模型获取多帧手部图像的二级分类结果,并以二级分类结果作为第一次分类结果,二级分类模型为预先基于卷积神经网络的图像识别技术架构且经购物场所内相似商品组中商品训练的模型。Specifically, in step 35, if the primary classification result is a similar commodity, according to the plurality of rectangular region images and the pre-trained secondary classification model, multiple secondary classification results are obtained correspondingly, and then according to the multiple secondary classification results and the advance The trained secondary linear regression model obtains the secondary classification results of the multi-frame hand image, and uses the secondary classification result as the first classification result. The secondary classification model is the image recognition technology architecture based on the convolutional neural network in advance and A model of merchandise training in a similar group of goods in a shopping establishment.
具体地,利用在步骤S32中建立的数据集中的相似商品的数据对二级分类模型进行训练,训练时可以通过梯度下降的方式进行。二级分类模型和一级分类模型的区别在于训练时所使用的数据不同,一级分类模型使用的数据为购物场所内所有商品的数据,二级分类模型使用的数据为购物场所内相似商品数据。Specifically, the secondary classification model is trained using the data of similar commodities in the data set established in step S32, and the training can be performed by gradient descent. The difference between the secondary classification model and the primary classification model is that the data used in the training is different. The data used by the primary classification model is the data of all the commodities in the shopping place, and the data used by the secondary classification model is the similar commodity data in the shopping place. .
训练好的二级分类模型对每个矩形区域图像中的商品进行分类,得到次级分类结果,该次级分类结果也为一个m维向量,向量中每个元素的含义表示二级分类模型认为待分类的单个商品属于m个相似商品中每个商品的概率。当矩形区域图像为5个时,次级分类结果的数量为5个m维向量,m小于等于n,且表示购物场所内相似商品的总数量。The trained secondary classification model classifies the products in each rectangular area image to obtain the secondary classification result. The secondary classification result is also an m-dimensional vector. The meaning of each element in the vector indicates that the secondary classification model considers The probability that a single item to be classified belongs to each of the m similar items. When the rectangular area image is five, the number of secondary classification results is five m-dimensional vectors, m is less than or equal to n, and represents the total number of similar items in the shopping place.
实际中,购物场所内的相似商品有多组,如一组相似商品中包括黄元帅苹果和黄色的雪花梨,另一组相似商品中包括散装的盐和散装的白糖;再一组相似商品中包括碱面和面粉。可以针对所有组相似商品训练一个二级分类模型,为了进一步提高对商品分类的准确率,针对每组相似商品训练一个二级分类模型,此时,若一级分类结果为相似商品,则调用该一级分类结果对应的二级分类模型。In practice, there are multiple groups of similar goods in the shopping place, such as a group of similar goods including Huang Yuanshuai apple and yellow snow pear, and another group of similar products including bulk salt and bulk sugar; another group of similar products include Alkali noodles and flour. A secondary classification model can be trained for all groups of similar commodities. In order to further improve the accuracy of classification of commodities, a secondary classification model is trained for each group of similar commodities. At this time, if the primary classification result is a similar commodity, then the The secondary classification model corresponding to the primary classification result.
将训练二级分类模型时,二级分类模型输出的次级分类结果作为二级线性回归模型的输入,该次级分类结果对应的图片中所包含的商品的正确分类作为二级线性回归模型的输出,以此来训练二级线性回归模型。训练好的二级线性回归模型对多个次级分类结果进行数据融合,得到一个二级分类结果,并以其作为第一次分类结果,该二级分类结果表示二级线性回归模型预测图片中商品为购物场所内商品中哪个类别。 When the secondary classification model is to be trained, the secondary classification result output by the secondary classification model is used as the input of the secondary linear regression model, and the correct classification of the commodities included in the corresponding image of the secondary classification result is used as the secondary linear regression model. Output to train a two-level linear regression model. The trained secondary linear regression model performs data fusion on multiple sub-category results, and obtains a secondary classification result, which is used as the first classification result. The secondary classification result represents the secondary linear regression model prediction image. The item is which category of the item in the shopping place.
步骤S34,将第一次分类结果作为待识别的商品。In step S34, the first classification result is taken as the commodity to be identified.
第一次分类结果获取后,再获取与第一次分类结果对应的商品价格,则顾客选取的商品所需支付的费用就确定了After the first classification result is obtained, and the commodity price corresponding to the first classification result is obtained, the fee for the customer selected product is determined.
步骤S4,待顾客离开购物场所时,根据该顾客的购物清单进行结算。In step S4, when the customer leaves the shopping place, the settlement is performed according to the customer's shopping list.
顾客挑选完商品后,经购物场所的门离开购物场所,在由内向外经过购物场所的门时,判断此顾客为离开购物场所状态,根据此顾客的购物清单进行结算,如从顾客注册时输入的支付账号中扣除与购物清单对应的费用。After the customer selects the product, the customer leaves the shopping place through the door of the shopping place, and when passing through the door of the shopping place from the inside to the outside, it is judged that the customer is in the state of leaving the shopping place, and is settled according to the customer's shopping list, such as input from the customer registration. The fee corresponding to the shopping list is deducted from the payment account.
为了方便顾客对所购商品进行核实,还会将识别结果实时发送至客户。如每个商品的识别结果会上传到云端服务器,然后云端服务器将识别结果下发到顾客手机安装的App,该App将识别结果添加到虚拟购物车里,生成购物清单,从而在拿取商品或放回商品后,第一时间告知顾客。当顾客来到店门口打算离开时,在店门口完成最终的支付环节。In order to facilitate the customer to verify the purchased goods, the identification results will be sent to the customer in real time. If the identification result of each product is uploaded to the cloud server, then the cloud server delivers the recognition result to the app installed by the customer's mobile phone, and the app adds the recognition result to the virtual shopping cart to generate a shopping list, thereby taking the goods or After returning the goods, let the customer know the first time. When the customer comes to the store and intends to leave, the final payment link is completed at the store entrance.
参见图4,本发明另一实施例提供了一种结算装置,其包括:Referring to FIG. 4, another embodiment of the present invention provides a settlement apparatus, including:
注册模块401,用于在注册时接收顾客输入的身份信息及获取欲进入购物场所的顾客的身份信息。The registration module 401 is configured to receive identity information input by the customer and obtain identity information of the customer who wants to enter the shopping place when registering.
实时跟踪模块402,与注册模块401连接,用于在购物场所内实时跟踪经注册模块获取身份信息的顾客以获取此顾客的位置。The real-time tracking module 402 is connected to the registration module 401 for tracking the customer who obtains the identity information by the registration module in the shopping place in real time to obtain the location of the customer.
生成购物清单模块403,与实时跟踪模块402连接,用于判断经实时跟踪模块获取的此顾客的位置与购物场所内商品的位置是否一致,若一致则将此顾客与商品涉及的拿取或放回动作关联,并在识别拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;和The generated shopping list module 403 is connected to the real-time tracking module 402, and is configured to determine whether the location of the customer acquired by the real-time tracking module is consistent with the location of the product in the shopping place, and if the content is consistent, the customer and the product are taken or placed. Retrieving the action association, and generating a shopping list of the customer after identifying the item taken or putting back the action and taking or returning the action;
结算模块404,与生成购物清单模块403连接,用于根据生成购物清单模块404生成的购物清单进行结算。The settlement module 404 is coupled to the generated shopping list module 403 for settlement based on the shopping list generated by the generated shopping list module 404.
具体地,生成购物清单模块403包括:关联单元,用于以承载商品的货架上安装的朝前方拍摄的朝前摄像头的位置表示商品的位置,当朝前摄像头拍摄到含有顾客的图片所表示的顾客身份信息与注册模块获取的身份信息相同时,则判断顾客的位置与购物场所内商品的位置一致;动作识别单元,用于获取此顾客在承载商品的货架前的多帧连贯的手部图像,对多帧连贯的手部图像在时间轴上建立一条手部运动轨迹;当检测到手部的运动轨迹为由预 设的虚拟动作分界线外向内移动且手中拿有商品时,则将动作识别为放回动作;当检测到手部的运动轨迹为由虚拟动作分界线内向外移动且手中拿有商品时,则将动作识别为拿取动作;其中,虚拟动作分界线外为远离货架的方向,虚拟动作分界线内为靠近货架的方向;商品识别单元,用于识别拿取或放回动作所针对的商品;和购物清单生成单元,根据关联单元确认的此顾客的身份信息、动作识别单元识别的拿取或放回动作、商品识别单元识别的拿取或放回动作所针对的商品,生成此顾客的购物清单。Specifically, the generated shopping list module 403 includes: an associating unit configured to indicate the position of the product with the position of the forward facing camera photographed on the shelf mounted on the product, when the front camera captures the image represented by the customer When the customer identity information is the same as the identity information obtained by the registration module, the location of the customer is determined to be consistent with the location of the product in the shopping place; the action recognition unit is configured to obtain a multi-frame consecutive hand image of the customer before the shelf of the product. , for a multi-frame coherent hand image to establish a hand movement trajectory on the time axis; when detecting the movement trajectory of the hand is pre- When the virtual action boundary line is moved inward and the product is in the hand, the action is recognized as a return action; when it is detected that the motion track of the hand is moved outward from the virtual action boundary line and the product is in the hand, The action recognition is a take action; wherein, the virtual action boundary line is away from the shelf direction, the virtual action boundary line is a direction close to the shelf; the product identification unit is configured to identify the product targeted for taking or returning the action; The shopping list generating unit generates the shopping list of the customer based on the identity information of the customer confirmed by the association unit, the take-in or put-back action recognized by the action recognition unit, and the product for which the product identification unit recognizes the take-in or put-back action. .
具体地,商品识别单元包括:用于根据动作识别单元获取的含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应;第一分类子单元,用于根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果;确认单元,用于以一级分类结果作为第一次分类结果;和结果认定单元,用于将第一次分类结果作为待识别的商品。Specifically, the item identification unit includes: performing target detection according to the multi-frame hand image containing the item acquired by the action recognition unit to acquire a plurality of rectangular area images corresponding to the rectangular area including the product, The multi-frame hand image is in one-to-one correspondence with the plurality of cameras; the first classification sub-unit is configured to obtain a plurality of primary classification results according to the plurality of rectangular area images and the pre-trained first-class classification model, and the pre-trained first-class classification The model is a model based on the image recognition technology architecture of the convolutional neural network and trained by all the commodities in the shopping place, and obtains the first-class classification result of the multi-frame hand image according to the plurality of primary classification results and the pre-trained first-order linear regression model; a confirmation unit for using the primary classification result as the first classification result; and a result identification unit for using the first classification result as the commodity to be identified.
需要说明的是,关于注册模块401的具体描述可参见上述实施例中步骤S1的相关内容,关于实时跟踪模块402的具体描述可参见上述实施例中步骤S2的相关内容,关于生成购物清单模块403的具体描述可参见上述实施例中步骤S3及步骤S31、32、33、34和35的相关内容,此处不再一一赘述。It should be noted that the specific description of the registration module 401 can be referred to the related content of the step S1 in the foregoing embodiment. For a detailed description of the real-time tracking module 402, refer to the related content of step S2 in the foregoing embodiment. For details, refer to the related content of step S3 and steps S31, 32, 33, 34 and 35 in the above embodiment, and details are not described herein again.
本发明又一实施例提供了一种基于卷积神经网络的图像识别技术的结算装置,其包括:顶部摄像头、朝前摄像51、下方摄像头52、处理器和存储器。Yet another embodiment of the present invention provides a settlement apparatus based on a convolutional neural network image recognition technology, including: a top camera, a forward facing camera 51, a lower camera 52, a processor, and a memory.
顶部摄像头用于自购物场所的顶部向下进行拍摄以在购物场所内实时跟踪已获取身份信息的顾客;朝前摄像头用于朝货架的前方进行拍摄以获取位于承载商品的货架前的顾客的图片;下方摄像头用于向下方进行拍摄以获取顾客的手部图像;处理器;和用于存储处理器可执行的指令的存储器;其中,处理器被配置为:The top camera is used to shoot down from the top of the shopping venue to track customers who have obtained identity information in real time in the shopping venue; the front camera is used to shoot toward the front of the shelf to get a picture of the customer in front of the shelf carrying the merchandise The lower camera is used to photograph below to obtain a customer's hand image; the processor; and a memory for storing processor-executable instructions; wherein the processor is configured to:
识别预先注册的顾客以获取顾客的身份信息,身份信息包括顾客的脸部数据和支付账号;控制顶部摄像头实时跟踪已获取身份信息的顾客以获取此 顾客的位置;判断此顾客的位置与控制朝前摄像头而获取的购物场所内商品的位置是否一致,若一致则将此顾客与商品涉及的拿取或放回动作关联,并在根据下方摄像头获取的手部图像识别的拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;根据购物清单清单进行结算。Identifying pre-registered customers to obtain customer identity information, the identity information includes customer's facial data and payment account number; controlling the top camera to track the acquired identity information in real time to obtain this The location of the customer; determining whether the location of the customer is consistent with the location of the product in the shopping venue obtained by controlling the front camera, and if so, correlating the customer with the take-in or put-back action of the product, and obtaining according to the camera below After the hand image recognition takes or puts back the action and takes or replaces the product targeted by the action, the customer's shopping list is generated; and the settlement is performed according to the shopping list.
参见图5,为了便于在结算方法或结算装置以及下述的结算系统中对商品进行准确地识别以及拍摄时能够更清晰、准确地看到每个承载平台53上货物的排列情况。承载商品的货架(或称结算装置用货架)包括:底座56用于提供支撑,置于地面上。立柱55设置在底座56上,可以以竖直方式设置,如可设置在底座56的一端以使立柱55和底座56的组合体呈L型,也可设置在底座56的上表面的中间部位以使立柱55和底座56的组合体呈倒置的T型;还可以以倾斜方式设置,本实施例对此不进行限定。多个承载平台53沿竖直方向(当立柱55竖直地设置在底座56上时,竖直方向即为立柱55的长度方向)依次设置于立柱55的同一侧,任意相邻两个承载平台53之间留有间隔以形成容纳待摆放货物的空间,货物安装在每个承载平台53上。承载平台53远离立柱55的一端为自由端,任意相邻两个承载平台53中位于上方的承载平台53的自由端比位于下方的承载平台的自由端靠近立柱55,即多个承载平台53的宽度(即图6中承载平台53在水平方向上的长度)从上往下越来越宽,位于最下方的承载平台53的宽度最宽,位于最上方的承载平台53的宽度最窄,如此在从上往下对货物进行拍摄时能够更清晰、准确地看到每个承载平台53上货物的排列情况。Referring to Fig. 5, in order to facilitate accurate identification and photographing of goods in the settlement method or settlement device and the settlement system described below, it is possible to more clearly and accurately see the arrangement of goods on each of the carrying platforms 53. The shelf carrying the merchandise (or the shelf for the settlement device) includes a base 56 for providing support and placing it on the ground. The post 55 is disposed on the base 56 and may be disposed in a vertical manner, such as may be disposed at one end of the base 56 such that the combination of the post 55 and the base 56 is L-shaped, or may be disposed at an intermediate portion of the upper surface of the base 56. The combination of the column 55 and the base 56 is inverted T-shaped; it can also be disposed in an inclined manner, which is not limited in this embodiment. The plurality of bearing platforms 53 are sequentially disposed on the same side of the column 55 in the vertical direction (when the column 55 is vertically disposed on the base 56, the vertical direction is the length direction of the column 55), and any two adjacent bearing platforms Spaces are left between the 53 to form a space for containing the goods to be placed, and the goods are mounted on each of the carrying platforms 53. One end of the carrying platform 53 away from the pillar 55 is a free end, and the free end of the upper loading platform 53 of any two adjacent carrying platforms 53 is closer to the pillar 55 than the free end of the lower loading platform, that is, the plurality of carrying platforms 53 The width (i.e., the length of the carrying platform 53 in the horizontal direction in Fig. 6) is wider and wider from the top to the bottom, the width of the lowermost carrying platform 53 is the widest, and the width of the uppermost carrying platform 53 is the narrowest, so When the goods are photographed from top to bottom, the arrangement of the goods on each of the carrying platforms 53 can be seen more clearly and accurately.
实际中,可以根据承载平台53的数量对货架进行称呼,当承载平台53为多个时,可以将货架称为多层货架。承载平台53的数量优选为3个或4个。In practice, the racks may be referred to according to the number of the carrying platforms 53. When the carrying platform 53 is plural, the racks may be referred to as multi-layer racks. The number of carrying platforms 53 is preferably three or four.
承载平台53可以为平板,承载平台53为一个连续体,摆放货物时,将货物放置在承载平台53上,如此可以方便较重、不易悬挂的货物的摆放。The carrying platform 53 can be a flat plate, and the carrying platform 53 is a continuous body. When the goods are placed, the goods are placed on the carrying platform 53, so that the placing of the heavy and difficult hanging goods can be facilitated.
在其他的实施例中,承载平台53可以包括:横杆和多个挂杆。横杆水平地设置在立柱55上,多个挂杆以相互平行且相互之间留有间隔的方式垂直设置在横杆上,此时承载平台53为一个断续体,摆放货物时,将货物悬挂在挂杆的下方,即货物位于承载平台53的下方,如此可以方便较轻、包装易变形 的货物的摆放。In other embodiments, the carrying platform 53 can include a crossbar and a plurality of hangers. The crossbar is horizontally disposed on the column 55, and the plurality of hangers are vertically disposed on the crossbar in parallel with each other and spaced apart from each other. At this time, the carrying platform 53 is a discontinuous body, and when the goods are placed, The cargo is suspended below the hanging rod, that is, the cargo is located below the carrying platform 53, so that the light is convenient and the package is easily deformed. The placement of the goods.
该货架尤其适用于即拿即走购物场所,在立柱52的上部设置有朝前摄像头51和下方摄像头52,朝前摄像头51的拍摄方向为向货架的前方(如图6中的左侧)进行拍摄,即对位于货架前方的挑选货物的顾客进行拍摄;下方摄像头52位于承载平台53的上方,其拍摄方向为从承载平台53上方向下拍摄,即对承载平台53上的货物进行拍摄,该摄像头的拍摄范围覆盖货架上的货物。The shelf is particularly suitable for the ready-to-go shopping place. The front camera 52 and the lower camera 52 are disposed at the upper portion of the column 52, and the front camera 51 is photographed in the front direction of the shelf (the left side in FIG. 6). Shooting, that is, photographing the customer who selects the goods in front of the shelf; the lower camera 52 is located above the carrying platform 53, and the shooting direction is downward shooting from above the carrying platform 53, that is, photographing the goods on the carrying platform 53, The camera's shooting range covers the goods on the shelves.
下方摄像头52的数量优选为多个,如此可以确保顾客挑选的货物被拍摄到。多个下方摄像头52可以沿承载平台53的长度方向L依次分布在承载平台53的上方,各自的高度可以相等,也可以不等;多个下方摄像头52可以沿承载平台53的宽度方向W依次分布在承载平台53的上方,各自的高度可以相等,也可以不等;多个下方摄像头52中的一部分可以沿承载平台的长度方向L依次分布在承载平台53的上方,多个下方摄像头52中的另一部分可以沿承载平台的宽度方向W依次分布在承载平台53的上方,本实施例对此不进行限定。优选地,下方摄像头的数量为4个,在承载平台53的长度方向L上依次分布2个,在承载平台53的宽度方向W上依次分布2个。The number of lower cameras 52 is preferably a plurality, so that the goods selected by the customer are captured. The plurality of lower cameras 52 may be sequentially distributed along the longitudinal direction L of the carrying platform 53 above the carrying platform 53, and the heights may be equal or unequal; the plurality of lower cameras 52 may be sequentially distributed along the width direction W of the carrying platform 53. Above the carrying platform 53, the respective heights may be equal or unequal; a part of the plurality of lower cameras 52 may be sequentially distributed above the carrying platform 53 along the length direction L of the carrying platform, in the plurality of lower cameras 52. The other part may be distributed on the top of the carrying platform 53 in the width direction W of the carrying platform. This embodiment does not limit this. Preferably, the number of the lower cameras is four, two in the longitudinal direction L of the carrying platform 53, and two in the width direction W of the carrying platform 53.
本发明再一实施例提供了一种结算系统,包括客户端和结算装置,客户端用于注册时接收顾客输入的身份信息并发送给结算装置和结算装置下发的购物清单。结算装置为前述的结算装置,具体内容不再此一一赘述。A further embodiment of the present invention provides a settlement system, which includes a client and a settlement device, and the client receives the identity information input by the customer and sends it to the settlement device and the shopping list delivered by the settlement device. The settlement device is the aforementioned settlement device, and the specific content will not be described again.
综上,本发明实施例带来的有益效果如下:In summary, the beneficial effects brought by the embodiments of the present invention are as follows:
运营成本低:相比于RFID方案,节省粘贴RFID带来的工作量。Low operating costs: saves the workload of pasting RFID compared to RFID solutions.
适用范围广:适用于任意商品,不受商品形态、材质等属性的约束。Wide range of applications: Applicable to any product, not subject to the properties of the product, material and other attributes.
用户体验好:顾客在拿取商品后,可以第一时间获取相关信息Good user experience: customers can get relevant information in the first time after taking the goods.
由技术常识可知,本发明可以通过其它的不脱离其精神实质或必要特征的实施方案来实现。因此,上述公开的实施方案,就各方面而言,都只是举例说明,并不是仅有的。所有在本发明范围内或在等同于本发明的范围内的改变均被本发明包含。 It is apparent from the technical knowledge that the invention can be implemented by other embodiments without departing from the spirit or essential characteristics thereof. Therefore, the above-disclosed embodiments are merely illustrative and not exclusive in all respects. All changes which are within the scope of the invention or equivalent to the scope of the invention are encompassed by the invention.

Claims (10)

  1. 一种结算方法,其特征在于,所述结算方法包括:A settlement method, characterized in that the settlement method comprises:
    步骤S1,识别预先注册的顾客以获取顾客的身份信息,所述身份信息包括顾客的脸部数据和支付账号;Step S1, identifying a pre-registered customer to obtain identity information of the customer, the identity information including the customer's face data and a payment account;
    步骤S2,在购物场所内实时跟踪已获取身份信息的顾客以获取此顾客的位置;Step S2, tracking the customer who has obtained the identity information in real time in the shopping place to obtain the location of the customer;
    步骤S3,判断此顾客的位置与购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在识别拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;In step S3, it is determined whether the location of the customer is consistent with the location of the product in the shopping place. If the location is consistent, the customer is associated with the take-in or put-back action of the product, and the action is taken or retrieved. Or returning the item targeted by the action, generating a shopping list for the customer;
    步骤S4,根据所述购物清单清单进行结算。In step S4, settlement is performed according to the shopping list.
  2. 根据权利要求1所述的结算方法,其特征在于,步骤S3中,判断此顾客的位置与购物场所内商品的位置是否一致,具体包括:The settlement method according to claim 1, wherein in step S3, it is determined whether the location of the customer is consistent with the location of the product in the shopping place, and specifically includes:
    以承载所述商品的货架上安装的朝前方拍摄的朝前摄像头的位置表示所述商品的位置,当所述朝前摄像头拍摄到含有顾客的图片所表示的顾客身份信息与所述步骤S1获取的身份信息相同时,则判断顾客的位置与购物场所内商品的位置一致。The position of the front-facing camera photographed toward the front mounted on the shelf carrying the product indicates the position of the product, and when the forward-facing camera captures the customer identity information indicated by the picture containing the customer, the step S1 is acquired. When the identity information is the same, it is determined that the location of the customer is consistent with the location of the product in the shopping place.
  3. 根据权利要求1或2所述的结算方法,其特征在于,步骤S3中,识别拿取或放回动作,具体包括:The settlement method according to claim 1 or 2, wherein in step S3, identifying the take-in or put-back action comprises:
    获取此顾客在承载所述商品的货架前的多帧连贯的手部图像,对多帧连贯的手部图像在时间轴上建立一条手部运动轨迹;Obtaining a multi-frame coherent hand image of the customer before carrying the shelf of the product, and establishing a hand movement trajectory on the time axis for the multi-frame consecutive hand image;
    当检测到手部的运动轨迹为由预设的虚拟动作分界线外向内移动且手中拿有商品时,则将动作识别为放回动作;When it is detected that the movement track of the hand is moved inward from the preset virtual action boundary line and the item is in the hand, the action is recognized as a return action;
    当检测到手部的运动轨迹为由所述虚拟动作分界线内向外移动且手中拿有商品时,则将动作识别为拿取动作;When it is detected that the movement track of the hand is moved outward from the virtual action boundary line and the product is in the hand, the action is recognized as a take action;
    其中,所述虚拟动作分界线外为远离所述货架的方向,所述虚拟动作分界线内为靠近所述货架的方向。Wherein, the virtual action boundary line is a direction away from the shelf, and the virtual action boundary line is a direction close to the shelf.
  4. 根据权利要求1所述的结算方法,其特征在于,步骤S3中,识别拿 取或放回动作所针对的商品,具体包括:The settlement method according to claim 1, wherein in step S3, the identification is taken Take or replace the goods targeted by the action, including:
    S31,对获取的含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,所述矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应;S31, performing target detection on the acquired multi-frame hand image containing the commodity, corresponding to acquiring a plurality of rectangular area images, the rectangular area image being an image corresponding to the rectangular area including the commodity, the multi-frame hand image and the plurality of cameras One-to-one correspondence;
    S32,根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果;S32. Acquire a plurality of primary classification results according to the plurality of rectangular area images and the pre-trained first-class classification model, and the pre-trained first-level classification model is an image recognition technology architecture based on a convolutional neural network and passes through all the commodities in the shopping place. The trained model obtains the first-class classification result of the multi-frame hand image according to the plurality of primary classification results and the pre-trained first-order linear regression model;
    S33,以所述一级分类结果作为第一次分类结果;S33, the first classification result is used as the first classification result;
    S34,将所述第一次分类结果作为待识别的商品。S34, the first classification result is taken as an item to be identified.
  5. 根据权利要求4所述的结算方法,其特征在于,在步骤S32之后,步骤S34之前,还包括:The settlement method according to claim 4, further comprising, after step S32, before step S34, further comprising:
    S35,若一级分类结果为相似商品,则根据多个矩形区域图像和预先训练的二级分类模型,对应获得多个次级分类结果,再根据多个次级分类结果和预先训练的二级线性回归模型获取多帧手部图像的二级分类结果,并以二级分类结果作为第一次分类结果,二级分类模型为预先基于卷积神经网络的图像识别技术架构且经购物场所内相似商品组中商品训练的模型,否则执行步骤S33。S35. If the primary classification result is a similar commodity, according to the plurality of rectangular region images and the pre-trained secondary classification model, correspondingly obtaining a plurality of secondary classification results, and then according to the plurality of secondary classification results and the pre-trained secondary The linear regression model obtains the secondary classification result of the multi-frame hand image, and uses the secondary classification result as the first classification result. The secondary classification model is the image recognition technology architecture based on the convolutional neural network in advance and is similar in the shopping place. The model of commodity training in the commodity group, otherwise step S33 is performed.
  6. 一种结算装置,其特征在于,所述结算装置包括:A settlement device, characterized in that the settlement device comprises:
    注册模块,用于在注册时接收顾客输入的身份信息及获取欲进入购物场所的顾客的身份信息;a registration module, configured to receive identity information input by the customer at the time of registration and obtain identity information of the customer who wants to enter the shopping place;
    实时跟踪模块,与所述注册模块连接,用于在购物场所内实时跟踪经所述注册模块获取身份信息的顾客以获取此顾客的位置;a real-time tracking module, connected to the registration module, for tracking a customer who obtains identity information by the registration module in a shopping place to obtain the location of the customer;
    生成购物清单模块,与所述实时跟踪模块连接,用于判断经所述实时跟踪模块获取的此顾客的位置与购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在识别拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;和Generating a shopping list module, and connecting with the real-time tracking module, configured to determine whether the location of the customer acquired by the real-time tracking module is consistent with the location of the product in the shopping place, and if the customer is consistent with the product Taking or returning an action association, and generating a shopping list of the customer after identifying the item taken or putting back the action and taking or returning the action;
    结算模块,与所述生成购物清单模块连接,用于根据所述生成购物清单 模块生成的购物清单进行结算。a settlement module, coupled to the generated shopping list module, for generating a shopping list according to the The shopping list generated by the module is settled.
  7. 根据权利要求6所述的结算装置,其特征在于,所述生成购物清单模块包括:The settlement device according to claim 6, wherein the generating a shopping list module comprises:
    关联单元,用于以承载所述商品的货架上安装的朝前方拍摄的朝前摄像头的位置表示所述商品的位置,当所述朝前摄像头拍摄到含有顾客的图片所表示的顾客身份信息与所述注册模块获取的身份信息相同时,则判断顾客的位置与购物场所内商品的位置一致;And an associating unit, configured to indicate a position of the product with a forward facing camera mounted on a shelf carrying the product, and when the front camera captures customer identity information represented by a picture containing a customer When the identity information acquired by the registration module is the same, it is determined that the location of the customer is consistent with the location of the product in the shopping place;
    动作识别单元,用于获取此顾客在承载所述商品的货架前的多帧连贯的手部图像,对多帧连贯的手部图像在时间轴上建立一条手部运动轨迹;当检测到手部的运动轨迹为由预设的虚拟动作分界线外向内移动且手中拿有商品时,则将动作识别为放回动作;当检测到手部的运动轨迹为由所述虚拟动作分界线内向外移动且手中拿有商品时,则将动作识别为拿取动作;其中,所述虚拟动作分界线外为远离所述货架的方向,所述虚拟动作分界线内为靠近所述货架的方向;a motion recognition unit, configured to acquire a multi-frame coherent hand image of the customer before the shelf carrying the product, and establish a hand motion trajectory on the time axis for the multi-frame consecutive hand image; when the hand is detected When the motion trajectory moves outward from the preset virtual motion boundary line and the product is in the hand, the motion is recognized as a return motion; when the motion trajectory of the hand is detected to be moved outward by the virtual motion boundary line When the product is taken, the action is recognized as a take-up action; wherein, the virtual action boundary line is a direction away from the shelf, and the virtual action boundary line is a direction close to the shelf;
    商品识别单元,用于识别所述拿取或放回动作所针对的商品;和a commodity identification unit for identifying an item for which the taking or putting back action is directed; and
    购物清单生成单元,根据所述关联单元确认的此顾客的身份信息、所述动作识别单元识别的拿取或放回动作、所述商品识别单元识别的拿取或放回动作所针对的商品,生成此顾客的购物清单。a shopping list generating unit, based on the identity information of the customer confirmed by the association unit, the take-in or put-back action recognized by the action recognition unit, and the product targeted by the take-in or put-back action recognized by the product identification unit, Generate a shopping list for this customer.
  8. 根据权利要求6所述的结算装置,其特征在于,所述商品识别单元包括:The settlement device according to claim 6, wherein the item identification unit comprises:
    目标检测子单元,用于根据所述动作识别单元获取的含有商品的多帧手部图像进行目标检测以对应获取多个矩形区域图像,所述矩形区域图像为与包含商品的矩形区域对应的图像,多帧手部图像与多个摄像头一一对应;a target detection subunit, configured to perform target detection according to the multi-frame hand image containing the commodity acquired by the motion recognition unit to acquire a plurality of rectangular region images, where the rectangular region image is an image corresponding to the rectangular region including the commodity a multi-frame hand image corresponding to a plurality of cameras;
    第一分类子单元,用于根据多个矩形区域图像和预先训练的一级分类模型,对应获取多个初级分类结果,预先训练的一级分类模型为基于卷积神经网络的图像识别技术架构且经购物场所内所有商品训练的模型,根据多个初级分类结果和预先训练的一级线性回归模型获取多帧手部图像的一级分类结果; a first classification sub-unit, configured to acquire a plurality of primary classification results according to the plurality of rectangular area images and the pre-trained first-level classification model, wherein the pre-trained first-level classification model is an image recognition technology architecture based on a convolutional neural network and A model for training all commodities in a shopping mall, and obtaining a first-class classification result of a multi-frame hand image according to a plurality of primary classification results and a pre-trained first-order linear regression model;
    确认单元,用于以所述一级分类结果作为第一次分类结果;和a confirmation unit for using the first-class classification result as the first classification result; and
    结果认定单元,用于将所述第一次分类结果作为待识别的商品。The result determining unit is configured to use the first classification result as the item to be identified.
  9. 一种结算装置,其特征在于,所述结算装置包括:A settlement device, characterized in that the settlement device comprises:
    顶部摄像头,用于自购物场所的顶部向下进行拍摄以在购物场所内实时跟踪已获取身份信息的顾客;a top camera for capturing from the top of the shopping venue to track customers who have obtained identity information in real time in the shopping venue;
    朝前摄像头,用于朝货架的前方进行拍摄以获取位于承载商品的货架前的顾客的图片;a forward facing camera for photographing the front of the shelf to obtain a picture of the customer located in front of the shelf carrying the merchandise;
    下方摄像头,用于向下进行拍摄以获取顾客的手部图像;The lower camera is used to shoot down to get the customer's hand image;
    处理器;和Processor; and
    用于存储处理器可执行的指令的存储器;a memory for storing instructions executable by the processor;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    识别预先注册的顾客以获取顾客的身份信息,所述身份信息包括顾客的脸部数据和支付账号;控制所述顶部摄像头实时跟踪已获取身份信息的顾客以获取此顾客的位置;判断此顾客的位置与控制所述朝前摄像头而获取的购物场所内商品的位置是否一致,若一致则将此顾客与所述商品涉及的拿取或放回动作关联,并在根据所述下方摄像头获取的手部图像识别的拿取或放回动作及拿取或放回动作所针对的商品后,生成此顾客的购物清单;根据所述购物清单清单进行结算。Identifying a pre-registered customer to obtain identity information of the customer, the identity information including the customer's facial data and a payment account; controlling the top camera to track the customer who has acquired the identity information in real time to obtain the location of the customer; determining the customer's location The position is consistent with the position of the product in the shopping place obtained by controlling the front camera, and if it is consistent, the customer is associated with the taking or putting back action of the product, and the hand is obtained according to the lower camera. After the image recognition takes or puts back the action and takes or replaces the product targeted by the action, the customer's shopping list is generated; and the settlement is performed according to the shopping list.
  10. 一种结算系统,其特征在于,所述结算系统包括:客户端和结算装置;A settlement system, characterized in that the settlement system comprises: a client and a settlement device;
    所述客户端用于注册时接收顾客输入的身份信息并发送给所述结算装置和所述结算装置下发的购物清单;The client is configured to receive the identity information input by the customer and send it to the settlement device and the shopping list delivered by the settlement device;
    所述结算装置为权利要求6~9中任一项所述的结算装置。 The settlement device is the settlement device according to any one of claims 6 to 9.
PCT/CN2017/115444 2017-08-16 2017-12-11 Purchase settlement method, device, and system WO2019033635A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17921861.5A EP3671529A4 (en) 2017-08-16 2017-12-11 Purchase settlement method, device, and system
JP2019512641A JP6743291B2 (en) 2017-08-16 2017-12-11 Accounting method, device and system
US16/330,076 US10963947B2 (en) 2017-08-16 2017-12-11 Method, a device and a system for checkout

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201710701938 2017-08-16
CN201710701938.X 2017-08-16
CN201711213100.2A CN109409175B (en) 2017-08-16 2017-11-28 Settlement method, device and system
CN201711213100.2 2017-11-28

Publications (1)

Publication Number Publication Date
WO2019033635A1 true WO2019033635A1 (en) 2019-02-21

Family

ID=65362051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115444 WO2019033635A1 (en) 2017-08-16 2017-12-11 Purchase settlement method, device, and system

Country Status (1)

Country Link
WO (1) WO2019033635A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934571A (en) * 2019-03-15 2019-06-25 山东一脉物联网科技有限公司 A kind of self-service commodity detection and vending method of fixing a price
CN111680657A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Method, device and equipment for determining triggering personnel of article picking and placing event
CN111680654A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN111985440A (en) * 2020-08-31 2020-11-24 杭州海康威视数字技术股份有限公司 Intelligent auditing method and device and electronic equipment
CN112183306A (en) * 2020-09-24 2021-01-05 杭州华慧物联科技有限公司 Method for noninductive payment of digital canteens
JP2021047747A (en) * 2019-09-19 2021-03-25 キヤノンマーケティングジャパン株式会社 Information processor, method for processing information, and program
CN114640797A (en) * 2021-11-03 2022-06-17 深圳友朋智能商业科技有限公司 Order generation method and device for synchronously optimizing commodity track and intelligent vending machine
CN117253194A (en) * 2023-11-13 2023-12-19 网思科技股份有限公司 Commodity damage detection method, commodity damage detection device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787003A (en) * 2004-12-09 2006-06-14 国际商业机器公司 Virtual shopping environment and method for enabling shopper to purchase items
US20070185756A1 (en) * 2004-08-23 2007-08-09 Jae Ahn Shopping pattern analysis system and method based on rfid
CN105518734A (en) * 2013-09-06 2016-04-20 日本电气株式会社 Customer behavior analysis system, customer behavior analysis method, non-temporary computer-readable medium, and shelf system
CN106204240A (en) * 2016-07-23 2016-12-07 山东华旗新能源科技有限公司 Wisdom shopping management system
CN106557791A (en) * 2016-10-20 2017-04-05 徐州赛欧电子科技有限公司 A kind of supermarket shopping management system and its method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070185756A1 (en) * 2004-08-23 2007-08-09 Jae Ahn Shopping pattern analysis system and method based on rfid
CN1787003A (en) * 2004-12-09 2006-06-14 国际商业机器公司 Virtual shopping environment and method for enabling shopper to purchase items
CN105518734A (en) * 2013-09-06 2016-04-20 日本电气株式会社 Customer behavior analysis system, customer behavior analysis method, non-temporary computer-readable medium, and shelf system
CN106204240A (en) * 2016-07-23 2016-12-07 山东华旗新能源科技有限公司 Wisdom shopping management system
CN106557791A (en) * 2016-10-20 2017-04-05 徐州赛欧电子科技有限公司 A kind of supermarket shopping management system and its method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3671529A4 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934571A (en) * 2019-03-15 2019-06-25 山东一脉物联网科技有限公司 A kind of self-service commodity detection and vending method of fixing a price
CN109934571B (en) * 2019-03-15 2023-06-16 山东一脉物联网科技有限公司 Self-service commodity detection and pricing selling method
JP2021047747A (en) * 2019-09-19 2021-03-25 キヤノンマーケティングジャパン株式会社 Information processor, method for processing information, and program
CN111680657B (en) * 2020-06-15 2023-05-05 杭州海康威视数字技术股份有限公司 Method, device and equipment for determining trigger personnel of article picking and placing event
CN111680657A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Method, device and equipment for determining triggering personnel of article picking and placing event
CN111680654A (en) * 2020-06-15 2020-09-18 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN111680654B (en) * 2020-06-15 2023-10-13 杭州海康威视数字技术股份有限公司 Personnel information acquisition method, device and equipment based on article picking and placing event
CN111985440A (en) * 2020-08-31 2020-11-24 杭州海康威视数字技术股份有限公司 Intelligent auditing method and device and electronic equipment
CN111985440B (en) * 2020-08-31 2023-10-27 杭州海康威视数字技术股份有限公司 Intelligent auditing method and device and electronic equipment
CN112183306A (en) * 2020-09-24 2021-01-05 杭州华慧物联科技有限公司 Method for noninductive payment of digital canteens
CN114640797A (en) * 2021-11-03 2022-06-17 深圳友朋智能商业科技有限公司 Order generation method and device for synchronously optimizing commodity track and intelligent vending machine
CN117253194A (en) * 2023-11-13 2023-12-19 网思科技股份有限公司 Commodity damage detection method, commodity damage detection device and storage medium
CN117253194B (en) * 2023-11-13 2024-03-19 网思科技股份有限公司 Commodity damage detection method, commodity damage detection device and storage medium

Similar Documents

Publication Publication Date Title
CN109409175B (en) Settlement method, device and system
WO2019033635A1 (en) Purchase settlement method, device, and system
US11501523B2 (en) Goods sensing system and method for goods sensing based on image monitoring
US20210158053A1 (en) Constructing shopper carts using video surveillance
JP6709862B6 (en) Accounting method and equipment by convolutional neural network image recognition technology
US10290031B2 (en) Method and system for automated retail checkout using context recognition
US11176597B2 (en) Associating shoppers together
WO2019127618A1 (en) Settlement method, device and system
US20210312772A1 (en) Storefront device, storefront management method, and program
JP7260022B2 (en) Store equipment, store system, store management method, program
CN111222870B (en) Settlement method, device and system
EP3901841A1 (en) Settlement method, apparatus, and system
CN109934569B (en) Settlement method, device and system
CN110689389A (en) Computer vision-based shopping list automatic maintenance method and device, storage medium and terminal
EP3629276A1 (en) Context-aided machine vision item differentiation
CN108171286B (en) Unmanned selling method and system
CN108279946B (en) Method and device for calling seller application
KR102612284B1 (en) Method and system for providing auto payment service using cartrail
JP2024037466A (en) Information processing system, information processing method and program

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019512641

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17921861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017921861

Country of ref document: EP

Effective date: 20200316