WO2017215362A1 - Intelligent shopping system based on supermarket shopping cart and control method therefor - Google Patents

Intelligent shopping system based on supermarket shopping cart and control method therefor Download PDF

Info

Publication number
WO2017215362A1
WO2017215362A1 PCT/CN2017/083075 CN2017083075W WO2017215362A1 WO 2017215362 A1 WO2017215362 A1 WO 2017215362A1 CN 2017083075 W CN2017083075 W CN 2017083075W WO 2017215362 A1 WO2017215362 A1 WO 2017215362A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
user
product
weight
monitoring area
Prior art date
Application number
PCT/CN2017/083075
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 CN201610414195.3A external-priority patent/CN105915857A/en
Priority claimed from CN201611025458.8A external-priority patent/CN106709422A/en
Priority claimed from CN201611022285.4A external-priority patent/CN106672042B/en
Application filed by 南京亿猫信息技术有限公司 filed Critical 南京亿猫信息技术有限公司
Publication of WO2017215362A1 publication Critical patent/WO2017215362A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62BHAND-PROPELLED VEHICLES, e.g. HAND CARTS OR PERAMBULATORS; SLEDGES
    • B62B3/00Hand carts having more than one axis carrying transport wheels; Steering devices therefor; Equipment therefor
    • B62B3/14Hand carts having more than one axis carrying transport wheels; Steering devices therefor; Equipment therefor characterised by provisions for nesting or stacking, e.g. shopping trolleys
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • the invention relates to the field of intelligent shopping control, in particular to a smart shopping system based on a supermarket shopping cart and a control method thereof.
  • This solution combines ordinary barcodes and intelligent operating systems of embedded operating systems to achieve indoor navigation, barcode scanning, Manage shopping lists, generate payment codes, etc., but the program does not involve the anti-theft feature of the shopping cart, so it cannot be widely used.
  • Liu Bing and others of Northeast Forestry University used the electronic product anti-theft system, ie EAS system, to burglar the shopping cart products.
  • the EAS system can be used to decode the soft label after the product is settled, thus realizing the anti-theft.
  • This is similar to RFID tags. It requires different soft tags for each product. It has a large workload and cannot be widely used.
  • the anti-theft measures of supermarkets are basically on the electronic gate of the supermarket door, including the patent CN201520043135.6 and the patent CN201510559549.9.
  • the logical judgment of this method is too simple, and the operation of stealing goods during the shopping process cannot be detected.
  • the existing skin color detection method is mainly based on the face detection method, in order to ensure that the face part is as much as possible. Included in the metering area, the size of the face frame must be increased, so that the background and hair data are more or less included in the face metering area, because the brightness information of the background changes under different scenes and illumination conditions. Large, and combined with the effects of hair and eye color, the face-based metering is very unstable, which greatly affects the metering effect.
  • the technical problem to be solved by the present invention is to provide a smart shopping system based on a supermarket shopping cart and a control method thereof for the deficiencies of the background technology, and utilize the barcode data of the products collected during the shopping process, the weight change data in the shopping basket, and the shopping cart.
  • the image analysis data in the central area realizes the anti-theft function of the shopping cart, and improves the user experience of the self-service settlement of the customer.
  • the specific judgment step is provided to prevent the user from accidentally operating or stealing the goods, and the merchant is guaranteed. Interests.
  • the present invention adopts the following technical solutions to solve the above technical problems.
  • a smart shopping system based on a supermarket shopping cart comprising a controller installed between the handle of the shopping cart, a scanner, a load cell placed at the bottom of the basket, and a camera at the upper end of the basket, the scanner Located on the lower side of the controller, opposite to the shopping cart basket mouth, the scanner, the weighing sensor and the camera are respectively connected with the controller, wherein two planes are sequentially set below the frame of the basket
  • the H1 plane and the H3 plane are respectively placed, wherein the load cell is placed at the bottom of the basket below the H3 plane, the scanning port of the scanner overlaps with the H1 plane, and the camera is placed above the H1 plane and monitors the H1 plane and above. Moving objects in space.
  • a further preferred solution of the smart shopping system based on the supermarket shopping cart of the present invention further includes a hand segmentation calculation module for judging and obtaining a picture of the product that the hand may hold according to the trend of the hand movement;
  • the skin color calculation module the opponent can not hold the picture of the product to do the skin color segmentation process
  • Hand-held commodity judgment module to determine whether the hand actually holds the commodity
  • the statistics module determines whether the user violates the rules by counting the statistics of the results of the handheld product judgment module.
  • a control method for a smart shopping system based on a supermarket shopping cart comprising the following steps:
  • each component operates according to the following state:
  • A0 state It is judged by the camera whether there is a hand entering the monitoring area
  • A1 status It is judged by the scanner and the camera whether there is a product scan operation and the action of putting the product into the bottom of the shopping basket below the H3 plane;
  • A2 status It is judged by the camera whether there is an empty hand in the monitoring area
  • A3 state the product is weighed by the load cell and the result is fed back to the controller for judgment;
  • A4 state Waiting for the weighing sensor to weigh the goods, the result is stable and prompt the user's hand not to enter the monitoring area during this period;
  • A5 status compare the product weight information obtained by the scanner with the result obtained by weighing, and if the two match, the shopping is completed;
  • B0 state the user operates the controller to enter the return procedure, and the camera monitors whether the user enters the shopping cart H1 plane empty hand;
  • B1 state the camera monitors whether the user holds the item from below the H1 plane into the monitoring area, and whether the user scans the code through the commodity scanner;
  • B2 status The camera monitors whether the user takes the item out of the monitoring area after scanning the code
  • B5 status Whether the actual product weight information is compared with the actual detected value of the B3 or B4 status.
  • the controller will prompt the scanning code to be successful, and proceeds to step S4 to detect whether there is a violation operation; If the code is not scanned, the camera collects the image information in the shopping basket and transmits it to the controller for image judgment to determine whether the empty hand is still a hand-held object; if the object is hand-held, the process proceeds to step S2, and if the hand is empty, the action is ignored;
  • the step is after determining that there is an item in the hand
  • step S4 If the weight of the weighing sensor does not change, the product does not enter the shopping basket, the controller prompts to scan the code, and when the scanning code is successful, the process proceeds to step S4;
  • the controller will prompt the illegal operation to take the artificial channel
  • step S6 If the weighing weight of the weighing sensor is increased, it means that the customer has placed a new product without scanning the code, and the controller will prompt the new product to be taken out, and proceed to step S6 to check whether the taken product is in conformity, so as to avoid stealing. commodity;
  • step S3 When the weight reduction signal is detected in step S1, the hand is already in the area detected by the camera, and the judgment is made according to the detected position of the center of mass of the moving target;
  • the real-time weight change information of the weight is collected; if the weight is unchanged, it means that the code needs to be scanned again during the normal return process, so the feedback code of the feedback determines whether the return is successful; If the code is not scanned, the controller will prompt the return, please scan the code; if the code has been scanned, the weight will be matched to determine whether the goods that are taken out meet the product of the scan code; if it meets the prompt, please take it out and proceed to step S5 to detect Take out the illegal operation in the process; if it does not, it means that the customer's goods are not correct, please prompt to take the manual channel; if the weight is increased, the weight matching will be carried out.
  • the controller prompts to take the artificial channel; if the match is met, the image is judged to prevent the customer from putting the same weight of the goods; if the weight is reduced, it is considered that the two items are returned at the same time, the controller will remind the customer
  • the image is judged by performing gradation conversion on the color original image, then performing motion detection and determining the moving target centroid, when the centroid is in the shopping basket monitoring After the region, the color original image is detected by the skin color, the motion detection result and the skin color detection result are summed to obtain the complete moving target image, and then the complete moving target result is subtracted from the skin color result to obtain the skin color moving target; then the skin color motion is calculated.
  • the number of pixels in the image with a pixel value of 255 is taken as the skin-removing area, and the information entropy of the complete moving target below the skin color centroid is calculated. If the area of the skin color detected by the continuous multi-frame is greater than the threshold A or the information entropy of the motion region below the skin color centroid is greater than The threshold B can be considered as a hand-held object in the shopping basket, and vice versa is considered to be an empty hand, and the background needs to be updated;
  • step S1 After the step S1 prompts that the scan code is successful, the camera detects the centroid position of the moving target. If the centroid is detected outside the central area of the shopping basket, the customer is deemed to be returning, so the user is prompted to rescan the code to complete the return process;
  • the real-time weight change information fed back by the weight is divided into three cases; when the weight is constant, only the position of the centroid is judged;
  • the product When the weight is increased, the product has been placed in the shopping cart, and the weight is matched at this time; if it is met, the image judges whether the customer's hand holds the item, and if the item is held, it is considered that the object has two objects of equal weight but not equal price.
  • the product of the scan code may be different from the product put in, so it is considered to be a violation of the operation and prompt to take the artificial channel; if it is empty, it is considered that the purchase is successful, it will prompt to continue shopping, and return to step S1; if not, Will remind you to take out new products, go to step S6, and check if there is any illegal operation during the process of taking out;
  • This step is to check whether there is a violation operation when the product is taken out after the weight is matched in the returning process;
  • step S1 is continued to continue shopping.
  • each state is specifically:
  • A0 state When the tablet controller responsible for the algorithm starts, the electronic weighing scale, the commodity scanner and the camera on the shopping cart start working; according to the image data fed back by the camera, the image processing algorithm gives the current monitoring area whether there is motion. If there is no motion, the judgment ends, the next logical judgment is still A0 state, until the movement occurs in the monitoring area, the user is considered to start the series of operations in the purchase behavior, and it is judged whether the user has multi-hand operation; if there is any monitoring area Multiple hands, end with ERROR, otherwise, according to whether the user enters the monitoring process whether the item is held, the flag variable flag is assigned as one of the basis for subsequent judgment in the A1 state, and the current logic judgment is ended in the A1 state;
  • A1 status In this state, the controller first determines whether the user completes the operation of scanning the product barcode; if the current scan code is performed, the user is considered to complete the product information entry by scanning the code, and the next action should be to put the scanned product in the hand.
  • the logic judgment is ended in the A2 state; if the code has not been scanned at this time, according to the image processing algorithm, there are two cases in which the monitoring area has motion and the monitoring area has no motion;
  • This logic judges to end with ERROR, waiting for the user to empty the shopping cart; the motion is lower than the H3 plane but the value of flag is true or the motion is higher than H3 plane, the logic judgment ends, the next judgment is still in the A1 state, with the A1 position as the starting position; if there is no motion in the monitoring area, it is considered that the movement into the monitoring area in the A0 state has ended, according to the movement The monitoring result determines the end point of this logical judgment. If it is found that there is a phenomenon that the hand-held item is out of the monitoring area during the monitoring process, it ends with ERROR, otherwise it ends normally, and the next time it judges to enter the A3 state;
  • A2 state The user enters the A3 state after completing the scan operation. Firstly, it is judged whether there is motion in the current monitoring area; if there is motion in the monitoring area, it is considered that the user has not completed the action of putting the scanned product in the shopping cart and withdrawing the hand from the field of view; in order to prevent the user from completing the theft by the replacement operation, the provision is not Allow multiple hands to operate on the merchandise; if there is multi-hand operation, end with ERROR, if one-handed operation, end the current logic judgment in A2 state; no motion in the monitoring area, next Steps to determine that the monitoring process is a hand-held commodity phenomenon, the existence ends with ERROR; does not exist, enters the A4 state, and ends the logic judgment;
  • A3 state the user enters the monitoring area, does not scan the code, and enters the A3 state after emptying the monitoring area; the A3 state completes the matching with the theoretical weight after waiting for the weight to stabilize, and does not allow the user to enter the monitoring area during the period; first judge the monitoring area The state of motion, the movement ends with ERROR; if there is no movement, the weight is determined according to the electronic weighing scale; the weight is unstable, and the logic judgment is still ended with A3; the weight is stable to match the current actual weight and the theoretical weight; The weight matching returns to the initial state A0, ending the current judgment; if it does not match, it ends with ERROR;
  • A4 status After scanning the code, the user puts the product into the shopping cart and exits the monitoring area to enter the A4 state; the A4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
  • A5 status After the user scans the product barcode, the algorithm needs to obtain information such as the theoretical weight of the product corresponding to the product barcode from the server through the network.
  • the network will have a certain degree of delay, so the A5 state is introduced, waiting for the actual information corresponding to the product barcode; after the weight is stable, waiting for the actual information of the scanned product, according to the weight value and the theoretical weight value provided by the current electronic weighing scale, Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this shopping is completed"; if it does not match, it ends with ERROR; similarly, the A5 state requires the user not to enter the monitoring area. To avoid the risk of theft, if the surveillance area has exercise during this period, it ends with ERROR;
  • B0 state the initial state of the return is B0. In this state, it is first determined whether there is motion in the current monitoring area; if there is no motion in the monitoring area, the user has not started the related operation of returning, and the current logical judgment is ended, and the state is still B0; There is motion in the monitoring area, and the user is considered to enter the monitoring area; if there is a phenomenon that the user enters the monitoring area with more hands, the image algorithm gives a "multi-hand operation" decision, ending with ERROR; for one-hand operation that conforms to the operating specification ", further determine whether the user holds the goods in the process of entering the monitoring area; there is a hand-held product entering the process, ending with ERROR; otherwise, entering the B1 state, ending this logical judgment;
  • B1 state The function completed in the B1 state is to wait for the user to pick up the goods to be returned in the shopping cart and scan the code; when the logic judges to enter B1, first check whether the current user completes the scanning operation; if the code has been scanned, the user enters the B2 state. End this logical judgment; if the code is not scanned, it is judged whether there is motion in the monitoring area; the monitoring area has no motion, and the user's behavior in this series is considered to be empty-handed to enter the shopping cart monitoring area, and finally the return is not returned, and the monitoring area is exited to enter the B3 state. End this logical judgment; if there is motion in the monitoring area, continue to judge whether there is multi-hand operation. If there are multiple hand operations, it ends with ERROR; if it does not exist, the B1 state is kept to end this logical judgment;
  • B2 state the user enters the B2 state after performing the return scan code; the function completed by the state is to wait for the user to take the scanned code product out of the monitoring area; firstly, it is judged whether the monitoring area has motion; if there is no motion, the user is considered to have taken out the already Scan the goods to enter the B4 state; after completing the scan code, the user is not allowed to be lower than the H3 plane to avoid the replacement risk; therefore, for the case of motion, if there is motion below the H3 surface, the ERROR ends. Otherwise keep the B2 state and end this logic Judgment
  • B3 state The user leaves the monitoring area before scanning the code, and enters the B3 state at this time; the B3 state function matches the current actual weight and the theoretical weight after waiting for the weight to stabilize; the user is not allowed to enter the monitoring area in the B3 state;
  • B4 state After the user scans the code, the product is taken out of the shopping cart and exits the monitoring area, and enters the B4 state; the B4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
  • the B5 status completion function is similar to the A5 status.
  • the weight value and the theoretical weight value provided by the current electronic weighing scale are obtained. Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this return is completed”; if it does not match, it ends with ERROR;
  • the B5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
  • the A0 state and the A2 state are specifically performed as follows:
  • the step (1) includes the following sub-steps:
  • the depth map is compared with H1, and the portion higher than the H1 surface is the foreground. If the area of the current scene is greater than a certain threshold, it is considered that the monitoring area has motion;
  • the step (2) includes the following sub-steps: (2.1) calculating the mean ⁇ of the image I in the RGB three-channel according to the formula 1,
  • Equation 2 The formula for calculating ⁇ i in Equation 2 is as follows:
  • the step (3) includes the following sub-steps:
  • a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention further includes the step of judging the handheld product, specifically:
  • the sub-step in the (4.4) includes:
  • the thresholds a and c are adaptively adjusted according to the actual use environment, and the clearer the image is, the larger the threshold a is; the resolution is 320*240.
  • the area threshold b in the image is equal to 50; under the premise of skin color detection, the information entropy of the pure hand is zero.
  • a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention further comprises determining whether the user operates in violation of the shopping and returning process; in the purchase process, starting from the monitoring field of view, the benchmark is The judgment of whether or not the hand-held product is carried out for each frame where the intersection area of the surface H1 is zero is saved, and whenever the intersection area changes from zero to a non-zero boundary, the judgment result of the stored hand-held commodity is cleared, and the intersection area is changed.
  • the hand-held product When it reaches zero, it restarts the judgment of whether or not the hand-held product is held for each frame with zero intersection area, and repeats these operations until there is no motion in the monitoring field of view, and the last saved data is counted, if the ratio of the hand-held goods is greater than If the threshold is certain, it can be determined that the hand-held commodity exits during the exit process, which is a violation operation; in the return process, starting from the motion in the monitoring field of view, the hand-held commodity is judged and saved for each frame with the intersection area of the reference plane H1 being zero. Judging the result, when the first occurrence of the intersection area is non-zero, the accumulated data is calculated. If the ratio of the hand-held goods is greater than a certain threshold, it can be determined that the hand-held goods enter, which is a violation operation, and then the result is cleared until the next return process is restarted.
  • the user is allowed to make the logical state by manually clicking the return button of the user interface if and only when the logic state is in the A0 state during the shopping process. Enter the B0 status of the return; the return process stipulates that the user can only use one hand to operate the goods, and the return is to pick up the goods from the shopping cart for return, so the user is allowed to hold the goods when entering the monitoring area to avoid replacement. The risk of theft caused by the act.
  • a single operation process only allows one item to be purchased; the user must purchase the item after entering the monitoring area, and pass the A1 status and the A2 status.
  • the monitoring process is judged whether the product is held by hand; the user is allowed to flip through the purchased goods in the A0 state during the purchase process, but the user is required to be empty when entering the monitoring area.
  • a single operation process only allows one item to be returned; the user is allowed to flip through the B0 state of the returned item to view the purchased item in the vehicle, but Users are required to be empty when entering the monitoring area.
  • the user is allowed to enter the return initial state B0 by clicking the "return" button in the initial A0 state, and only supports one purchased product at a time.
  • the return behavior includes scanning the barcode of the product to be returned in the shopping cart and taking out the process. After the end of the process, if it is judged as a normal return behavior, the logic state returns to the initial state A0.
  • the present invention has the following technical effects:
  • a plurality of image analysis algorithms implement an anti-theft function of the smart shopping cart system during the shopping process; and perform grayscale image statistical feature analysis or pattern recognition on the detected moving target image or skin color detection image to realize empty hand or handheld products in the monitoring area
  • the detection promptly remind and correct the customer's illegal operation, realize the judgment of the customer's illegal shopping behavior, and realize the payment-free queuing, reduce the labor cost and improve the shopping experience while preventing the anti-theft and the stop loss;
  • Figure a1 is a schematic structural view of a module of the present invention.
  • Figure a2 is a flow chart of step 1 of the method of the present invention.
  • Figure a3 is a flow chart of step 2 of the method of the present invention.
  • Figure a4 is a flow chart of step 3 of the method of the present invention.
  • Figure a5 is a flow chart of step 4 of the method of the present invention.
  • Figure a6 is a flow chart of step 5 of the method of the present invention.
  • Figure a7 is a flow chart of step 6 of the method of the present invention.
  • Figure a8 is a flow chart of image determination of the method of the present invention.
  • Figure b1 is a schematic structural view of a smart shopping cart
  • Figure b2 is a simplified diagram of the process of shopping and returning
  • Figure b3 is a schematic flow chart of the A0 state during the shopping process
  • Figure b4 is a schematic flow chart of the A1 state during the shopping process
  • Figure b5 is a schematic flow chart of the A2 state during the shopping process
  • Figure b6 is a schematic flow chart of the A3 state during the shopping process
  • Figure b7 is a schematic flow chart of the A4 state during the shopping process
  • Figure b8 is a schematic flow chart of the A5 state during the shopping process
  • Figure b9 is a schematic flow chart of the B0 state during the return process
  • Figure b10 is a schematic flow chart of the B1 state during the return process
  • Figure b11 is a schematic flow chart of the state of B2 in the return process
  • Figure b12 is a schematic flow chart of the B3 state during the return process
  • Figure b13 is a schematic flow chart of the B4 state during the return process
  • Figure b14 is a schematic flow chart of the B5 state during the return process
  • Figure c1 is a schematic flow chart of the first step of the present invention.
  • Figure c2 is a schematic flow chart of the second step of the present invention.
  • Figure c3 is to determine whether the user violates the rules during the shopping process
  • Figure c4 is to determine whether the user violates the rules during the return process.
  • the smart shopping system based on the supermarket shopping cart includes a controller installed between the handles of the shopping cart, a scanner, a load cell placed at the bottom of the basket, and a monitoring at the upper end of the basket, as shown in FIG.
  • the camera of the basket mouth, the scanner is located on the lower side of the controller, opposite to the shopping cart basket mouth, and the scanner, the weighing sensor and the camera are respectively connected with the controller.
  • the resolution of the camera is 40-50 (800 * 600) megapixels, and the frame rate is not less than 25 frames per second.
  • the load cell has a measuring range of 0-100 kg and a full-scale weighing accuracy of ⁇ 1 g.
  • the scanner is connected to the controller via a USB interface.
  • two planes are sequentially arranged under the frame of the basket as an H1 plane and an H3 plane, wherein the load cell is placed at the bottom of the basket below the H3 plane, and the scanning port of the scanner is H1.
  • the planes overlap, the camera is placed above the H1 plane and the moving objects in the H1 plane and the space above it are monitored.
  • the hand segmentation calculation module determines and obtains a picture of the hand holding the product according to the trend of the hand movement
  • the skin color calculation module the opponent can not hold the picture of the product to do the skin color segmentation process
  • Hand-held commodity judgment module to determine whether the hand actually holds the commodity
  • the statistics module determines whether the user violates the rules by counting the statistics of the results of the handheld product judgment module.
  • the controller will prompt the scanning code to be successful, and proceeds to step S4 to detect whether there is a violation operation; If the code is not scanned, the camera collects the image information in the shopping basket and transmits it to the controller for image judgment to determine whether the empty hand is still a hand-held object; if the object is hand-held, the process proceeds to step S2, and if the hand is empty, the action is ignored;
  • the step is after determining that there is an item in the hand; as shown in Figure a3,
  • step S4 If the weight of the weighing sensor does not change, the product does not enter the shopping basket, the controller prompts to scan the code, and when the scanning code is successful, the process proceeds to step S4;
  • the controller will prompt the illegal operation to take the artificial channel
  • step S6 If the weighing weight of the weighing sensor is increased, it means that the customer has placed a new product without scanning the code, and the controller will prompt the new product to be taken out, and proceed to step S6 to check whether the taken product is in conformity, so as to avoid stealing. commodity;
  • step S3 when the weight reduction signal is detected in step S1, the hand is already in the area detected by the camera, and the judgment is made according to the detected position of the center of mass of the moving target;
  • the real-time weight change information of the weight is collected; if the weight is unchanged, it means that the code needs to be scanned again during the normal return process, so the feedback code of the feedback determines whether the return is successful; If the code is not scanned, the controller will prompt the return, please scan the code; if the code has been scanned, the weight will be matched to determine whether the goods that are taken out meet the product of the scan code; if it meets the prompt, please take it out and proceed to step S5 to detect Take out the illegal operation in the process; if it does not, it means that the customer's goods are not correct, please prompt to take the manual channel; if the weight is increased, the weight matching will be carried out.
  • the controller prompts to take the artificial channel; if the match is met, the image is judged to prevent the customer from putting the same weight of the goods; if the weight is reduced, it is considered that the two items are returned at the same time, the controller will remind the customer ;
  • step S1 when the step S1 prompts the scan code to be successful, the camera detects the centroid position of the moving target. If the centroid is detected outside the center of the shopping basket, the customer is deemed to be returning, so the user is prompted to rescan the code. , complete the return process;
  • the real-time weight change information fed back by the weight is divided into three cases; when the weight is constant, only the position of the centroid is judged;
  • the weight When the weight is increased, the item has been placed in the shopping cart, and the weight is matched at this time. If it matches, the image judges whether the customer's hand holds the item. If the item is held, it means that there are two objects of equal weight but different price.
  • the product of the scanned code may be different from the inserted product, so it is considered to be Violation of the operation and prompting to take the artificial channel; if empty, the purchase is considered successful, will prompt to continue shopping, and return to step S1. If it does not meet, it will remind you to take out the new product, and proceed to step S6 to detect whether there is any illegal operation during the process of taking out;
  • this step is to check whether there is a violation operation when the goods are taken out after the weight matching in the return process;
  • the step is to detect a weight mismatch during the purchase process, and to prompt whether the detected product is the same as the inserted product when the product is taken out;
  • step S1 is continued to continue shopping.
  • Image judgment is performed by first performing gray scale conversion on the original color image, then performing motion detection and determining the motion target centroid.
  • the centroid is in the shopping basket monitoring center area
  • the color original image is detected by the skin color, and the motion detection result is obtained.
  • the skin color detection result is summed to obtain a complete moving target image, and then the complete moving target result is subtracted from the skin color result to obtain a skin color moving target; and then the number of pixels with a pixel value of 255 in the skin color moving image is calculated as the skin color removing area. And calculate the information entropy of the complete moving target below the skin color centroid.
  • the skin area of the continuous multi-frame detection is greater than the threshold A or the information entropy of the motion region below the skin color centroid is greater than the threshold B, it can be considered that the handheld object is in the shopping basket, and vice versa. Empty hand, need to update the background.
  • the complete shopping process is shown in Figure b2. It consists of purchase status A0, A1, A2, A3, A4, A5, return status B0, B1, B2, B3, B4, B5, as shown in Figure 1.
  • Each state is used as the starting position of each logical judgment. For example, if it is currently in the A0 state, in the logic judgment process, starting from A0, according to the sensor feedback data and the judgment flow, the branches in the A0 state are judged. To determine whether the next logical judgment process is still in the A0 state, enter other states, or end with ERROR. When the user has a violation operation, that is, the user behavior is judged to have a large risk of theft, the logical judgment ends with ERROR.
  • the logic state is set back to the initial state A0, allowing the user to restart the purchase and the like.
  • the A0 state is the initial state of the shopping cart.
  • the sensors of the shopping cart start working, including electronic weighing scales, commodity barcode scanners, and monitoring devices.
  • the image processing algorithm gives whether the current monitoring area has motion. If there is no motion, the judgment ends, and the next logical judgment is still in the A0 state until the movement occurs in the monitoring area. It is considered that the user starts the series operation in the purchase behavior, and starts to judge whether the user has multi-hand operation (the algorithm sees claim 4) .
  • the flag variable flag is assigned as one of the basis for subsequent judgment in the A1 state, and the current logic judgment is ended in the A1 state.
  • the logic algorithm first determines whether the user has completed the operation of scanning the commodity barcode. If the code has been scanned, the user is considered to complete the product information entry by scanning the code. The next action should be to put the scanned product in the shopping cart into the shopping cart and end the logic judgment in the A2 state; if the code has not been scanned at this time, According to the image processing algorithm, there are two cases in which the monitoring area has motion and the monitoring area has no motion.
  • the user enters the A3 state after completing the scan operation. First, it is judged whether there is motion in the current monitoring area.
  • the next step is to judge that there is a hand-held product phenomenon in the monitoring process. If it exists, it ends with ERROR. If it does not exist, it enters the A4 state and ends the logic judgment.
  • the user enters the monitoring area, does not scan the code, and enters the A3 state after emptying the monitoring area. What is done in the A3 state is to wait for the weight to stabilize and match the theoretical weight, and the user is not allowed to enter the monitoring area.
  • the weight is unstable, and the logic judgment is still ended with A3; the weight is stable to match the current actual weight and the theoretical weight.
  • the weight matching returns to the initial state A0, ending the current judgment; if it does not match, it ends with ERROR.
  • the user After scanning the code, the user puts the product into the shopping cart and exits the monitoring area to enter the A4 state.
  • the A4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period.
  • the algorithm needs to obtain information such as the theoretical weight of the product corresponding to the product barcode from the server through the network.
  • the network will have a certain degree of delay, so the A5 state is introduced, waiting for the actual barcode information to be obtained.
  • the two are matched according to the weight value provided by the current electronic weighing scale and the theoretical weight value. If it matches, the current shopping process is completed, returning to the initial state A0, prompting the user to "this shopping is completed”; if not, ending with ERROR.
  • the A5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
  • the user is allowed to enter the return status by manually clicking the "Return" button of the user interface.
  • the return process stipulates that the user can only use one hand to operate the goods. The return is to pick up the goods from the shopping cart and return the goods. Therefore, the user is not allowed to hold the goods when entering the monitoring area to avoid the risk of theft caused by the replacement behavior. .
  • the initial status of the return is B0. In this state, it is first determined whether there is motion in the current monitoring area.
  • the user For the monitoring area to have motion, the user is considered to enter the monitoring area. If there is a phenomenon that the user enters the monitoring area with more hands at this time, the image algorithm gives a "multi-hand operation" decision, ending with ERROR. For "one-handed operation” that complies with the operating specifications, It is further determined whether the user holds the goods in the process of entering the monitoring area. There is a hand-held product entering the process, ending with ERROR; otherwise, entering the B1 state, the current logic judgment is ended.
  • the function completed in the B1 state is to wait for the user to pick up the item to be returned in the shopping cart and scan the code.
  • the logic judges to enter B1, it first checks whether the current user completes the scan operation. If the code has been scanned, the logic judgment is terminated by entering the B2 state; if the code is not scanned, it is judged whether there is motion in the monitoring area.
  • the user enters the B2 state after performing the return scan code.
  • the function completed by this state is to wait for the user to take the scanned goods out of the monitoring area.
  • the user leaves the monitoring area before scanning the code, and enters the B3 state at this time.
  • the B3 status function matches the current actual weight and theoretical weight after waiting for the weight to stabilize.
  • the user is not allowed to enter the monitoring area in the B3 state.
  • the execution process is similar to the A3 status in the purchase.
  • the user After scanning the code, the user takes the product out of the shopping cart and exits the monitoring area to enter the B4 state.
  • the B4 state is completed by waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period. Similar to the A4 status.
  • the B5 status completion function is similar to the A5 status, waiting to obtain the actual information corresponding to the product barcode.
  • the two are matched according to the weight value provided by the current electronic weighing scale and the theoretical weight value. If it matches, the current shopping process is completed, returning to the initial state A0, prompting the user to "this return is completed”; if it does not match, it ends with ERROR.
  • the B5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
  • This process framework has the following user behavior specifications:
  • a single operation allows only one item to be purchased or returned
  • the user In the purchase state, the user must purchase the goods after entering the monitoring area, which is reflected in the judgment of whether the monitoring process is holding the goods in the A1 and A2 states;
  • the goods to be purchased should be scanned first and then placed in the shopping cart;
  • the user In the initial A0 state, the user is allowed to enter the return initial state B0 by clicking the "return” button, and only supports the return behavior of one purchased item at a time, including the process of scanning the barcode of the product to be returned in the shopping cart and taking out the process. After the end, if it is judged as a normal return behavior, the logic state returns to the initial state A0;
  • the H1 plane is updated.
  • the gray value of the corresponding position of the original H1 surface is covered by the non-zero portion in the foreground, that is, the H1 surface is updated.
  • a supermarket shopping cart hand identification method such as state B0 and state B2 is performed as follows:
  • the step (1) includes the following sub-steps: (1.1) comparing the depth map to the H1 surface, the portion higher than the H1 surface is the foreground, and the area of the current scene is greater than a certain threshold, then the monitoring area is considered Have exercise;
  • Image processing processing the image obtained in the first step by establishing a skin color model
  • step (2) includes the following sub-steps: (2.1) calculating the mean ⁇ of the image I in the RGB three-channel according to the formula 1,
  • Equation 2 The formula for calculating ⁇ i in Equation 2 is as follows:
  • the state of the object is judged, and the image obtained in the second step is judged twice.
  • Step (3) includes the following sub-steps:
  • the sub-step includes (4.4.1) calculating the information entropy on the grayscale image after the setting;
  • the sub-step is (4.5.1) to calculate the channel information entropy, and the fifth judgment is performed. If the information entropy is greater than the threshold c, it is judged to carry the commodity, otherwise it is judged to be empty.
  • the thresholds a and c are adaptively adjusted according to the actual use environment, and the clearer the image is, the larger the threshold a is; in the image with the resolution of 320*240, the area threshold b is equal to 50; under the premise of the skin color detection, the pure hand information Entropy is zero.
  • the invention finally obtains the judgment of whether the hand holds the commodity through the steps of motion detection, skin color detection and hand and commodity judgment; the method does not impose additional burdens and requirements on the user, and the whole judging process is fully automatic. Very simple and convenient.

Abstract

Disclosed are an intelligent shopping system based on a supermarket shopping cart and a control method therefor. The complete shopping process of a customer is divided into six states; and in each state, an anti-theft function of the intelligent shopping cart system in the shopping process is realised by utilising, to different degrees and in combination with a plurality of image analysis algorithms, weight change information fed back by a weight sensor in real time, image information about each frame collected by a monitor apparatus, and commodity information acquired by a code scanner. By performing grey scale image statistics and feature analysis or pattern recognition on a detected moving target image or a skin colour detection image, the detection of an empty hand or a hand holding a commodity within a monitoring area is realised, the customer is timely reminded about rule-breaking operations and same are corrected, and judgement on a rule-breaking behaviour of the customer is realised. Payment free from queuing, labour cost reduction and improvement of shopping experience are realised while guarding against theft and stopping loss.

Description

一种基于超市购物车的智能购物系统及其控制方法Intelligent shopping system based on supermarket shopping cart and control method thereof 技术领域Technical field
本发明涉及智能购物控制领域,尤其涉及一种基于超市购物车的智能购物系统及其控制方法。The invention relates to the field of intelligent shopping control, in particular to a smart shopping system based on a supermarket shopping cart and a control method thereof.
背景技术Background technique
虽然如今网购很方便,但是超市购物依然是人们重要的购物途径和生活方式,特别在一二线城市或者节假日,排队付款的现象突出,这使得原本快捷的购物方式由于排队等候结账的时间长,落后的购物体验降低了顾客的消费欲望,却增加了超市的运营成本。因此,研究开发集自助扫码结账和实时监控偷盗行为于一体的智能购物系统,具有广阔的市场前景和重大的商业价值。Although online shopping is very convenient today, supermarket shopping is still an important shopping route and lifestyle. Especially in the first-tier cities or holidays, the phenomenon of queuing and paying is prominent, which makes the original fast shopping method long after waiting in line for checkout. The shopping experience reduces the consumer's desire to consume, but increases the operating costs of the supermarket. Therefore, research and development of a smart shopping system that integrates self-scanning code checkout and real-time monitoring of theft, has broad market prospects and significant commercial value.
国内外已有很多类似的研究,沃尔玛先在零售业研发了RFID技术,并研发了基于RFID的智能购物车并在部分沃尔玛超市试用,随后大连理工大学、上海交通大学等研究了基于RFID的购物智能终端,该研究使用了RFID标签取代多维条形码,该标签不仅包含了商品各项信息,而且有很好的防伪技术、加密技术和信息控制,然而RFID标签目前还无法长时间取代普通的二维码,故现如今只有沃尔玛极个别超市在推广应用。另外还有中南大学、信息科学与工程学院、电子科技大学等研究了基于嵌入式系统的智能购物车,该方案结合普通的条形码和嵌入式操作系统的智能终端,实现了室内导航、条码扫描、管理购物列表、生成付款码等功能,但该方案没有涉及到购物车的防盗功能,因此也无法广泛使用。但东北林业大学的刘兵等人根据电子商品防盗系统即EAS系统对购物车商品进行防盗,利用每个商品的软标签,在商品结算后才可以用EAS系统对软标签进行解码,从而实现防盗,这与RFID标签类似,需要对每个商品都做不同的软标签,工作量较大,不能广泛使用。目前超市有的防盗措施基本都是在出超市门的电子闸门上,包括专利CN201520043135.6和专利CN201510559549.9该方法逻辑判断过于简单,且不能检测购物过程中的偷换商品操作。There have been many similar studies at home and abroad. Wal-Mart first developed RFID technology in the retail industry, and developed an RFID-based smart shopping cart and tried it in some Wal-Mart supermarkets. Then Dalian University of Technology and Shanghai Jiaotong University studied RFID-based shopping. Intelligent terminal, the research uses RFID tags to replace multi-dimensional barcodes, which not only contains various information of commodities, but also has good anti-counterfeiting technology, encryption technology and information control. However, RFID tags can not replace ordinary two-dimensional for a long time. Code, so now only Wal-Mart is very popular in some supermarkets. In addition, Central South University, School of Information Science and Engineering, University of Electronic Science and Technology, etc. have studied intelligent shopping carts based on embedded systems. This solution combines ordinary barcodes and intelligent operating systems of embedded operating systems to achieve indoor navigation, barcode scanning, Manage shopping lists, generate payment codes, etc., but the program does not involve the anti-theft feature of the shopping cart, so it cannot be widely used. However, Liu Bing and others of Northeast Forestry University used the electronic product anti-theft system, ie EAS system, to burglar the shopping cart products. Using the soft label of each product, the EAS system can be used to decode the soft label after the product is settled, thus realizing the anti-theft. This is similar to RFID tags. It requires different soft tags for each product. It has a large workload and cannot be widely used. At present, the anti-theft measures of supermarkets are basically on the electronic gate of the supermarket door, including the patent CN201520043135.6 and the patent CN201510559549.9. The logical judgment of this method is too simple, and the operation of stealing goods during the shopping process cannot be detected.
目前我国各种大型购物超市商品种类数以万计,伴随超市规模的扩大和消费者购物选择多元化,会遇到诸如无法快捷地在超市里准确找到想要购买的商品、对同类商品不同品牌的商品信息了解不充分、对智能购物车内购买商品的数量和价格明细不了解、购物高峰时期在交款台边排很长的队等待结算等等问题。现有智能购物车RFID读取附近商品,导致屏幕上会出现附近货架上几十或十几种商品目录,其本身对用户来讲从根本改变顾客购物习惯,导致选取时科目繁多选择错误率高,由于一次读取几十种商品反应速度势必减慢。并且遇到生鲜称重等商品时,价格不定,如给每件称重商品粘贴RFID标签,又会带来巨大成本增加,不 能解决该类现实问题。防盗问题仅依靠压力测控根本不能解决,超市内有很多商品重量一样,价格却不一样,如很多商品规格一致,但价格相差几元甚至上百元。仅靠重量错误率很高给一些不诚信顾客带来张冠李戴的可乘之机,给超市带来损失。At present, there are tens of thousands of types of large-scale shopping supermarkets in China. With the expansion of supermarkets and the diversification of consumers' shopping choices, they will encounter such things as being unable to quickly find the products they want to buy in supermarkets, and different brands for similar products. I don’t know enough about the product information, I don’t know the quantity and price of the items purchased in the smart shopping cart, and the queues that are long queued at the cashier’s desk during the peak shopping period are waiting to be settled. The existing smart shopping cart RFID reads nearby goods, resulting in dozens or dozens of catalogues on the nearby shelves on the screen, which itself changes the customer's shopping habits to the user, resulting in a high selection error rate in the selection of subjects. Because of the speed of response to reading dozens of commodities at a time, it is bound to slow down. And when encountering fresh weighing and other commodities, the price is uncertain. For example, if you attach an RFID tag to each weighing product, it will bring huge cost increase. Can solve this kind of real problem. The problem of anti-theft can only be solved by pressure measurement and control. There are many goods in the supermarket with the same weight, but the price is not the same. For example, many products have the same specifications, but the price difference is a few yuan or even hundreds of yuan. Only relying on a high rate of weight error to bring some unscrupulous customers to the opportunity of Zhang Guan Li Dai, bringing losses to the supermarket.
超市智能购物车的一个主要功能就是能够识别顾客的手以及其手上是否拿有货物,现有的肤色检测方法主要是以人脸为主的检测方法,为了了保证人脸部分尽可能多的被包含在测光区域中,必须增加人脸框的大小,这样或多或少的在人脸测光区域中包含了背景和头发的数据,由于背景的亮度信息在不同场景和光照条件下变化较大,并且加之头发和眼睛颜色的影响,导致基于人脸为主的测光非常的不稳定,极大的影响了测光的效果。One of the main functions of the supermarket smart shopping cart is to be able to identify the customer's hand and whether there is goods on the hand. The existing skin color detection method is mainly based on the face detection method, in order to ensure that the face part is as much as possible. Included in the metering area, the size of the face frame must be increased, so that the background and hair data are more or less included in the face metering area, because the brightness information of the background changes under different scenes and illumination conditions. Large, and combined with the effects of hair and eye color, the face-based metering is very unstable, which greatly affects the metering effect.
发明内容Summary of the invention
本发明所要解决的技术问题是针对背景技术的不足提供了一种基于超市购物车的智能购物系统及其控制方法,利用购物过程中采集到的商品条码数据、购物筐内重量变化数据和购物车中心区域内的图像分析数据,实现购物车防偷盗的功能,提高了客户自助结算的用户体验,通过内设具体的判断步骤很好的防范了用户误操作或者偷盗商品的事件发生,保证了商家的利益。The technical problem to be solved by the present invention is to provide a smart shopping system based on a supermarket shopping cart and a control method thereof for the deficiencies of the background technology, and utilize the barcode data of the products collected during the shopping process, the weight change data in the shopping basket, and the shopping cart. The image analysis data in the central area realizes the anti-theft function of the shopping cart, and improves the user experience of the self-service settlement of the customer. The specific judgment step is provided to prevent the user from accidentally operating or stealing the goods, and the merchant is guaranteed. Interests.
本发明为解决上述技术问题采用以下技术方案The present invention adopts the following technical solutions to solve the above technical problems.
一种基于超市购物车的智能购物系统,包括安装于购物车把手之间的控制器、扫码器、置于车筐底部的称重传感器和位于车筐上端监控筐口的摄像头,所述扫码器位于所述控制器下侧,与购物车筐口相对,所述扫码器、所述称重传感器和所述摄像头分别与所述控制器通讯连接,其中车筐的框口下方顺序设定两个平面分别为H1平面和H3平面,其中称重传感器置于H3平面下方的车筐筐底,所述扫码器的扫描口与H1平面重叠,所述摄像头置于H1平面上方并且监控H1平面及其上方空间的运动物体。A smart shopping system based on a supermarket shopping cart, comprising a controller installed between the handle of the shopping cart, a scanner, a load cell placed at the bottom of the basket, and a camera at the upper end of the basket, the scanner Located on the lower side of the controller, opposite to the shopping cart basket mouth, the scanner, the weighing sensor and the camera are respectively connected with the controller, wherein two planes are sequentially set below the frame of the basket The H1 plane and the H3 plane are respectively placed, wherein the load cell is placed at the bottom of the basket below the H3 plane, the scanning port of the scanner overlaps with the H1 plane, and the camera is placed above the H1 plane and monitors the H1 plane and above. Moving objects in space.
作为本发明一种基于超市购物车的智能购物系统的进一步优选方案,还包含手部分割计算模块,根据手部运动趋势,判断并获得手部可能持有商品的图片;A further preferred solution of the smart shopping system based on the supermarket shopping cart of the present invention further includes a hand segmentation calculation module for judging and obtaining a picture of the product that the hand may hold according to the trend of the hand movement;
肤色计算模块,对手不可能持有商品的图片做肤色分割处理;The skin color calculation module, the opponent can not hold the picture of the product to do the skin color segmentation process;
手持商品判断模块,判断手部是否真的持有商品;Hand-held commodity judgment module to determine whether the hand actually holds the commodity;
统计模块,通过对手持商品判断模块结果的统计判断用户是否违规操作。The statistics module determines whether the user violates the rules by counting the statistics of the results of the handheld product judgment module.
一种基于超市购物车的智能购物系统的控制方法,具体包含如下步骤:A control method for a smart shopping system based on a supermarket shopping cart, comprising the following steps:
S1、启动控制器,扫码器、称重传感器和摄像头开始采集数据信息;其中,各个部件按照如下状态运行工作:S1, the start controller, the scanner, the load cell and the camera start collecting data information; wherein each component operates according to the following state:
A0状态:通过摄像头判断是否有手进入监控区域; A0 state: It is judged by the camera whether there is a hand entering the monitoring area;
A1状态:通过扫码器和摄像头判断是否存在商品扫码动作和将商品放入H3平面下方的购物筐底动作;A1 status: It is judged by the scanner and the camera whether there is a product scan operation and the action of putting the product into the bottom of the shopping basket below the H3 plane;
A2状态:通过摄像头判断监控区域是否有空手;A2 status: It is judged by the camera whether there is an empty hand in the monitoring area;
A3状态:通过称重传感器对产品称重并将结果反馈给控制器做判断;A3 state: the product is weighed by the load cell and the result is fed back to the controller for judgment;
A4状态:等待称重传感器称量商品的结果稳定并提示用户的手在此期间不要进入监控区域;A4 state: Waiting for the weighing sensor to weigh the goods, the result is stable and prompt the user's hand not to enter the monitoring area during this period;
A5状态:将扫码器获得的商品重量信息与称量获得的结果做比较,如果两者匹配则购物完成;A5 status: compare the product weight information obtained by the scanner with the result obtained by weighing, and if the two match, the shopping is completed;
B0状态:用户操作控制器进入退货程序,摄像头监控用户是否空手进入购物车H1平面以下;B0 state: the user operates the controller to enter the return procedure, and the camera monitors whether the user enters the shopping cart H1 plane empty hand;
B1状态:摄像头监控用户是否手持物品从H1平面以下进入监控区域同时,用户是否通过商品扫码器扫码;B1 state: the camera monitors whether the user holds the item from below the H1 plane into the monitoring area, and whether the user scans the code through the commodity scanner;
B2状态:摄像头监控用户是否在扫码后手持物品拿出监控区域;B2 status: The camera monitors whether the user takes the item out of the monitoring area after scanning the code;
B3状态:用户未扫码即将物品拿出监控区域的,控制器等待称重传感器减少值并查询是否与已购买任意一个产品的理论重量相同;B3 state: If the user does not scan the code and takes out the item out of the monitoring area, the controller waits for the load cell to decrease the value and queries whether it is the same as the theoretical weight of any product purchased;
B4状态:用户扫码后将物品拿出监控区域的,控制器等待称重传感器减少值并查询是否与已扫码的产品理论重量相同;B4 state: After the user scans the code and takes the item out of the monitoring area, the controller waits for the weighing sensor to reduce the value and queries whether it is the same as the theoretical weight of the scanned product;
B5状态:将实际产品重量信息和B3或B4状态实际检测值做比对是否一致。B5 status: Whether the actual product weight information is compared with the actual detected value of the B3 or B4 status.
当称重传感器计重不变时,则顾客没有将商品放进购物筐里或者空手操作,若商品已扫码,控制器会提示扫码成功,进入步骤S4,检测是否有违规操作;若商品未扫码,摄像头采集购物筐内的图像信息传递至控制器进行图像判断,判断空手还是手持物体;若手持物体则进入步骤S2,若空手则忽略此次动作;When the weight of the weighing sensor is constant, the customer does not put the product into the shopping basket or operates empty hand. If the product has been scanned, the controller will prompt the scanning code to be successful, and proceeds to step S4 to detect whether there is a violation operation; If the code is not scanned, the camera collects the image information in the shopping basket and transmits it to the controller for image judgment to determine whether the empty hand is still a hand-held object; if the object is hand-held, the process proceeds to step S2, and if the hand is empty, the action is ignored;
当称重传感器计重增加时,表示商品未扫码或者扫码未成功直接放入了购物筐里,则会提示拿出重新扫码,进入步骤S6,检测拿出的商品是否为刚才放入的商品;When the weighing weight of the weighing sensor increases, it indicates that the product has not been scanned or the scanning code is not successfully placed directly into the shopping basket, and then prompts to take out the rescanning code, and proceeds to step S6 to detect whether the taken product is just placed. Products of;
当称重传感器计重计重减小时,表示已经完成一次购买过程,则会提示退货请扫码,并进入步骤S3,检测是否有不符合退货的违规操作;When the weight of the weighing sensor is reduced, it means that the purchase process has been completed, then the return code is scanned, and the process proceeds to step S3 to check whether there is a violation operation that does not meet the return;
S2、该步骤是在确定了手中有物品后;S2, the step is after determining that there is an item in the hand;
若称重传感器计重不变,则说明商品未进入购物筐,控制器提示扫码,当扫码成功后进入步骤S4;If the weight of the weighing sensor does not change, the product does not enter the shopping basket, the controller prompts to scan the code, and when the scanning code is successful, the process proceeds to step S4;
若称重传感器计重计重减小,则说明顾客存在偷换商品的违规操作,控制器会提示违规操作走人工通道; If the weight of the weighing sensor is reduced, it means that the customer has the illegal operation of stealing the goods, and the controller will prompt the illegal operation to take the artificial channel;
若称重传感器计重增加,则说明顾客在未扫码的情况下又放入了新商品,控制器会提示新商品请拿出,进入步骤S6,检测拿出的商品是否符合,以免偷换商品;If the weighing weight of the weighing sensor is increased, it means that the customer has placed a new product without scanning the code, and the controller will prompt the new product to be taken out, and proceed to step S6 to check whether the taken product is in conformity, so as to avoid stealing. commodity;
S3、当步骤S1中检测到计重减小信号,此时手已经在摄像头检测的区域内,根据检测到的运动目标质心所在位置进行判断;S3. When the weight reduction signal is detected in step S1, the hand is already in the area detected by the camera, and the judgment is made according to the detected position of the center of mass of the moving target;
当质心在购物筐中心区域外,则认为顾客已经将商品拿出且未扫码,而不能确定顾客拿出的是哪一个商品,故会提示违规操作,请走人工通道;When the center of mass is outside the center of the shopping basket, it is considered that the customer has taken out the product and has not scanned the code, and cannot determine which product the customer took out, so the illegal operation will be prompted, please take the artificial channel;
当质心在购物筐中心区域内,会采集计重器的实时重量变化信息;如果计重不变,说明在正常退货过程,需要再扫码,故此时由反馈的扫码信号确定是否退货成功;若未扫码则控制器会提示退货请扫码;若已扫码则会进行重量匹配,判断拿出的商品是否符合扫码的商品;若符合则会提示请拿出并进入步骤S5,检测拿出过程中的违规操作;若不符合,则认为顾客拿出的商品不正确,提示请走人工通道;如果计重增加,则进行重量匹配,若匹配不符合,则认为顾客放入了其他商品,控制器提示请走人工通道;若匹配符合,则进行图像判断,以防顾客放入同重量的商品;如果计重减小,则认为同时拿出两件商品退货,控制器会提醒顾客;所述图像判断是通过先对彩色原图进行灰度转换后,再对其进行运动检测并确定运动目标质心,当质心在购物筐监控中心区域内后,对彩色原图进行肤色检测,将运动检测结果和肤色检测结果求和得到完整运动目标图像,接着将完整运动目标结果与肤色结果相减得到去肤色运动目标;然后计算出去肤色运动图像中像素值为255的像素点个数作为去肤色面积,并算出肤色质心以下完整运动目标的信息熵,如果连续多帧检测的去肤色面积大于阈值A或者肤色质心以下运动区域的信息熵大于阈值B,可认为是手持物体在购物筐中,反之认为是空手,需对背景进行更新;When the center of mass is in the center of the shopping basket, the real-time weight change information of the weight is collected; if the weight is unchanged, it means that the code needs to be scanned again during the normal return process, so the feedback code of the feedback determines whether the return is successful; If the code is not scanned, the controller will prompt the return, please scan the code; if the code has been scanned, the weight will be matched to determine whether the goods that are taken out meet the product of the scan code; if it meets the prompt, please take it out and proceed to step S5 to detect Take out the illegal operation in the process; if it does not, it means that the customer's goods are not correct, please prompt to take the manual channel; if the weight is increased, the weight matching will be carried out. If the matching does not match, the customer is considered to have placed other Goods, the controller prompts to take the artificial channel; if the match is met, the image is judged to prevent the customer from putting the same weight of the goods; if the weight is reduced, it is considered that the two items are returned at the same time, the controller will remind the customer The image is judged by performing gradation conversion on the color original image, then performing motion detection and determining the moving target centroid, when the centroid is in the shopping basket monitoring After the region, the color original image is detected by the skin color, the motion detection result and the skin color detection result are summed to obtain the complete moving target image, and then the complete moving target result is subtracted from the skin color result to obtain the skin color moving target; then the skin color motion is calculated. The number of pixels in the image with a pixel value of 255 is taken as the skin-removing area, and the information entropy of the complete moving target below the skin color centroid is calculated. If the area of the skin color detected by the continuous multi-frame is greater than the threshold A or the information entropy of the motion region below the skin color centroid is greater than The threshold B can be considered as a hand-held object in the shopping basket, and vice versa is considered to be an empty hand, and the background needs to be updated;
S4、当步骤S1提示扫码成功后,摄像头会检测运动目标的质心位置,若检测到质心在购物筐中心区域外,则认为顾客在退货,故会提示其重新扫码,完成退货过程;S4. After the step S1 prompts that the scan code is successful, the camera detects the centroid position of the moving target. If the centroid is detected outside the central area of the shopping basket, the customer is deemed to be returning, so the user is prompted to rescan the code to complete the return process;
由计重器反馈的实时重量变化信息分成三种情况;计重不变时,只需判断质心的位置;The real-time weight change information fed back by the weight is divided into three cases; when the weight is constant, only the position of the centroid is judged;
计重减小时;则认为顾客未扫码就拿出商品,提醒顾客违规操作,需走人工通道;When the weight is reduced, it is considered that the customer takes out the goods without scanning the code, reminding the customer to operate illegally, and needs to take the artificial passage;
计重增加时,商品已经放入购物车,此时进行重量匹配;如果符合,图像判断顾客的手是否持有物品,若手持物品,则认为手中拿有两个等重量但不等价格的物体,扫码的商品可能会和放入的商品不同,故会认为是违规操作并提示走人工通道;若空手,则认为购买成功,会提示可继续购物,并回到步骤S1;如果不符合,则会提醒拿出新商品,进入步骤S6,检测拿出过程中是否有违规操作;When the weight is increased, the product has been placed in the shopping cart, and the weight is matched at this time; if it is met, the image judges whether the customer's hand holds the item, and if the item is held, it is considered that the object has two objects of equal weight but not equal price. The product of the scan code may be different from the product put in, so it is considered to be a violation of the operation and prompt to take the artificial channel; if it is empty, it is considered that the purchase is successful, it will prompt to continue shopping, and return to step S1; if not, Will remind you to take out new products, go to step S6, and check if there is any illegal operation during the process of taking out;
S5、该步骤是退货过程中重量匹配后,检测拿出商品时是否有违规操作;S5. This step is to check whether there is a violation operation when the product is taken out after the weight is matched in the returning process;
当计重增加或计重减小都认为是违规操作; When the weight is increased or the weight is reduced, it is considered to be a violation operation;
当计重不变时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,退货结束,返回到步骤S1,继续购物;When the weight is constant, according to the difference binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the commodity has exited the monitoring area, the return is over, and the process returns to step S1 to continue shopping;
S6、该步骤是在购买过程中检测出重量不匹配,提示拿出商品时检测拿出的商品是否与放入的商品相同;S6. In this step, the weight mismatch is detected during the purchase process, and the product detected when the product is taken out is the same as the inserted product;
当计重增加时,认为未拿出商品还继续放入新商品是非常规购物操作,会提醒顾客;When the weight is increased, it is an unconventional shopping operation that the product is not taken out and continues to be placed in the new product, which will remind the customer;
当计重减小时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,将正确的商品拿出后会步骤S1,继续购物。When the weight is reduced, according to the differential binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the product has exited the monitoring area, and after the correct product is taken out, step S1 is continued to continue shopping. .
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,各状态具体为:As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, each state is specifically:
A0状态:当负责算法的平板控制器启动时,购物车上的电子称重秤、商品扫码器和摄像头开始工作;根据摄像头反馈的图像数据,图像处理算法给出当前时刻监控区域是否有运动;若无运动,本次判断结束,下次逻辑判断依然为A0状态,直到监控区域出现运动,认为用户开始进行购买行为中的系列操作,开始判断用户是否存在多手操作;若监控区域内存在多只手,以ERROR结束,否则,根据用户进入监控过程中是否手持物品,将标志位变量flag赋值,作为A1状态中后续判断的依据之一,并以A1状态结束当前逻辑判断;A0 state: When the tablet controller responsible for the algorithm starts, the electronic weighing scale, the commodity scanner and the camera on the shopping cart start working; according to the image data fed back by the camera, the image processing algorithm gives the current monitoring area whether there is motion. If there is no motion, the judgment ends, the next logical judgment is still A0 state, until the movement occurs in the monitoring area, the user is considered to start the series of operations in the purchase behavior, and it is judged whether the user has multi-hand operation; if there is any monitoring area Multiple hands, end with ERROR, otherwise, according to whether the user enters the monitoring process whether the item is held, the flag variable flag is assigned as one of the basis for subsequent judgment in the A1 state, and the current logic judgment is ended in the A1 state;
A1状态:此状态中,控制器首先判断是用户是否完成扫描商品条码的操作;若当前已扫码,则认为用户通过扫码完成商品信息录入,下一个动作应为将手中已扫码商品放入购物车中,以A2状态结束此次逻辑判断;若此时尚未扫码,则根据图像处理算法,分为监控区域有运动和监控区域无运动两种情况;A1 status: In this state, the controller first determines whether the user completes the operation of scanning the product barcode; if the current scan code is performed, the user is considered to complete the product information entry by scanning the code, and the next action should be to put the scanned product in the hand. In the shopping cart, the logic judgment is ended in the A2 state; if the code has not been scanned at this time, according to the image processing algorithm, there are two cases in which the monitoring area has motion and the monitoring area has no motion;
监控区域有运动时,判断是否有运动低于H3平面,以结合A0状态中得到的标志位变量flag的值,防止用户在扫描条码前违规用手中未购买商品替换购物车内已购买商品;运动低于H3面时,若flag的值为false,认为存在潜在的替换偷盗风险,本次逻辑判断以ERROR结束,等待用户清空购物车;运动低于H3平面但flag的值为true或运动高于H3平面,本次逻辑判断结束,下次判断依然处于A1状态,以A1位置作为起始位置;监控区域没有运动,则认为在A0状态中进入监控区域的运动已结束,此时根据运动过程中的监控结果,决定本次逻辑判断的终点,若发现出监控过程中存在手持物品出监控区域的现象,以ERROR结束,否则正常结束,下次判断进入A3状态;When there is motion in the monitoring area, it is judged whether the motion is lower than the H3 plane, and the value of the flag variable flag obtained in the A0 state is combined to prevent the user from replacing the purchased item in the shopping cart by the unpurchased item before scanning the barcode; Below the H3 face, if the value of flag is false, it is considered that there is a potential risk of replacing theft. This logic judges to end with ERROR, waiting for the user to empty the shopping cart; the motion is lower than the H3 plane but the value of flag is true or the motion is higher than H3 plane, the logic judgment ends, the next judgment is still in the A1 state, with the A1 position as the starting position; if there is no motion in the monitoring area, it is considered that the movement into the monitoring area in the A0 state has ended, according to the movement The monitoring result determines the end point of this logical judgment. If it is found that there is a phenomenon that the hand-held item is out of the monitoring area during the monitoring process, it ends with ERROR, otherwise it ends normally, and the next time it judges to enter the A3 state;
A2状态:用户完成扫码操作后进入A3状态。首先判断当前监控区域是否存在运动;监控区域有运动,则认为用户尚未完成将手中已扫码商品放入购物车并将手退出视场的动作;为防止用户通过替换操作完成偷盗行为,规定不允许多只手对商品进行操作;若存在多手操作,以ERROR结束,若单手操作,则以A2状态结束当前逻辑判断;监控区域无运动,下一 步判断出监控过程是存在手持商品现象,存在则以ERROR结束;不存在,进入A4状态,结束此次逻辑判断;A2 state: The user enters the A3 state after completing the scan operation. Firstly, it is judged whether there is motion in the current monitoring area; if there is motion in the monitoring area, it is considered that the user has not completed the action of putting the scanned product in the shopping cart and withdrawing the hand from the field of view; in order to prevent the user from completing the theft by the replacement operation, the provision is not Allow multiple hands to operate on the merchandise; if there is multi-hand operation, end with ERROR, if one-handed operation, end the current logic judgment in A2 state; no motion in the monitoring area, next Steps to determine that the monitoring process is a hand-held commodity phenomenon, the existence ends with ERROR; does not exist, enters the A4 state, and ends the logic judgment;
A3状态:用户进入监控区域,未扫码,空手出监控区域后,进入A3状态;A3状态下完成的是等待重量稳定后与理论重量进行匹配,期间不允许用户进入监控区域;首先判断监控区域的运动状态,有运动则以ERROR结束;无运动则根据电子称重秤判断重量是否稳定;重量不稳定,依旧以A3结束本次逻辑判断;重量稳定则对当前实际重量及理论重量进行匹配;重量匹配则回到初始状态A0,结束本次判断;不匹配则以ERROR结束;A3 state: the user enters the monitoring area, does not scan the code, and enters the A3 state after emptying the monitoring area; the A3 state completes the matching with the theoretical weight after waiting for the weight to stabilize, and does not allow the user to enter the monitoring area during the period; first judge the monitoring area The state of motion, the movement ends with ERROR; if there is no movement, the weight is determined according to the electronic weighing scale; the weight is unstable, and the logic judgment is still ended with A3; the weight is stable to match the current actual weight and the theoretical weight; The weight matching returns to the initial state A0, ending the current judgment; if it does not match, it ends with ERROR;
A4状态:用户扫码后将商品放入购物车并退出监控区域,进入A4状态;A4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域;A4 status: After scanning the code, the user puts the product into the shopping cart and exits the monitoring area to enter the A4 state; the A4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
A5状态:用户扫描商品条码后,算法需要通过网络,从服务器端取得与商品条码对应的商品理论重量等信息。网络会有一定程度的延迟,因此引入A5状态,等待获取商品条码对应实际信息;重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配;若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次购物完成”;若不匹配,则以ERROR结束;同样,A5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束;A5 status: After the user scans the product barcode, the algorithm needs to obtain information such as the theoretical weight of the product corresponding to the product barcode from the server through the network. The network will have a certain degree of delay, so the A5 state is introduced, waiting for the actual information corresponding to the product barcode; after the weight is stable, waiting for the actual information of the scanned product, according to the weight value and the theoretical weight value provided by the current electronic weighing scale, Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this shopping is completed"; if it does not match, it ends with ERROR; similarly, the A5 state requires the user not to enter the monitoring area. To avoid the risk of theft, if the surveillance area has exercise during this period, it ends with ERROR;
B0状态,退货的初始状态为B0,此状态中首先判断的是当前监控区域是否有运动;若监控区域无运动,认为用户尚未开始退货的相关操作,结束当前逻辑判断,状态依然为B0;对于监控区域有运动,认为用户进入监控区域;若此时存在用户多只手进入监控区域的现象,图像算法给出“多手操作”的判定,以ERROR结束;对于符合操作规范的“单手操作”,进一步判断用户在进入监控区域的过程中是否手中持有商品;存在进入过程手持商品,以ERROR结束;否则进入B1状态,结束本次逻辑判断;B0 state, the initial state of the return is B0. In this state, it is first determined whether there is motion in the current monitoring area; if there is no motion in the monitoring area, the user has not started the related operation of returning, and the current logical judgment is ended, and the state is still B0; There is motion in the monitoring area, and the user is considered to enter the monitoring area; if there is a phenomenon that the user enters the monitoring area with more hands, the image algorithm gives a "multi-hand operation" decision, ending with ERROR; for one-hand operation that conforms to the operating specification ", further determine whether the user holds the goods in the process of entering the monitoring area; there is a hand-held product entering the process, ending with ERROR; otherwise, entering the B1 state, ending this logical judgment;
B1状态:B1状态中完成的功能为等待用户拿起购物车内待退货商品并扫码;当逻辑判断进入B1时,首先检查当前用户是否完成扫码动作;已扫码,则以进入B2状态结束本次逻辑判断;未扫码,则判断监控区域是否有运动;监控区域无运动,认为用户这一系列的行为为空手进入购物车监控区域,最后未退货,出监控区域,以进入B3状态结束此次逻辑判断;监控区域有运动,则继续判断是否存在多手操作。存在多只手操作,则以ERROR结束;不存在则保持B1状态结束本次逻辑判断;B1 state: The function completed in the B1 state is to wait for the user to pick up the goods to be returned in the shopping cart and scan the code; when the logic judges to enter B1, first check whether the current user completes the scanning operation; if the code has been scanned, the user enters the B2 state. End this logical judgment; if the code is not scanned, it is judged whether there is motion in the monitoring area; the monitoring area has no motion, and the user's behavior in this series is considered to be empty-handed to enter the shopping cart monitoring area, and finally the return is not returned, and the monitoring area is exited to enter the B3 state. End this logical judgment; if there is motion in the monitoring area, continue to judge whether there is multi-hand operation. If there are multiple hand operations, it ends with ERROR; if it does not exist, the B1 state is kept to end this logical judgment;
B2状态:用户进行退货扫码后进入B2状态;该状态完成的功能是等待用户将已扫码商品拿出监控区域;首先判断监控区域是否有运动;若无运动,则认为用户已经拿出已扫码商品,以进入B4状态结束;在完成扫码后,不允许用户低于H3平面,以规避替换风险;因此,对于有运动的情况,若低于H3面有运动,则以ERROR结束,否则保持B2状态结束本次逻 辑判断;B2 state: the user enters the B2 state after performing the return scan code; the function completed by the state is to wait for the user to take the scanned code product out of the monitoring area; firstly, it is judged whether the monitoring area has motion; if there is no motion, the user is considered to have taken out the already Scan the goods to enter the B4 state; after completing the scan code, the user is not allowed to be lower than the H3 plane to avoid the replacement risk; therefore, for the case of motion, if there is motion below the H3 surface, the ERROR ends. Otherwise keep the B2 state and end this logic Judgment
B3状态:用户在扫码前离开监控区域,此时进入B3状态;B3状态功能为等待重量稳定后,匹配当前实际重量和理论重量;B3状态中不允许用户进入监控区域;B3 state: The user leaves the monitoring area before scanning the code, and enters the B3 state at this time; the B3 state function matches the current actual weight and the theoretical weight after waiting for the weight to stabilize; the user is not allowed to enter the monitoring area in the B3 state;
B4状态:用户扫码后将商品拿出购物车并退出监控区域,进入B4状态;B4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域;B4 state: After the user scans the code, the product is taken out of the shopping cart and exits the monitoring area, and enters the B4 state; the B4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
B5状态:B5状态完成功能与A5状态类似,为等待获取商品条码对应实际信息;重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配;若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次退货完成”;若不匹配,则以ERROR结束;B5 status: The B5 status completion function is similar to the A5 status. In order to wait for the actual barcode information corresponding to the product, after waiting for the actual information of the scanned product, the weight value and the theoretical weight value provided by the current electronic weighing scale are obtained. Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this return is completed"; if it does not match, it ends with ERROR;
同样,B5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束。Similarly, the B5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,所述A0状态、A2状态具体按照如下步骤进行:As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the A0 state and the A2 state are specifically performed as follows:
(1)判断手的位置,以购物车开口为基准面H1,监控基准面上方是否存在目标,如有则保存图片;(1) Determine the position of the hand, use the shopping cart opening as the reference surface H1, monitor whether there is a target above the reference plane, and save the picture if any;
(2)图像处理,通过建立肤色模型对第一步获得的图像进行处理;(2) image processing, processing the image obtained in the first step by establishing a skin color model;
(3)判断持物状态,将第二步获得的图像进行二次判断。(3) Judging the holding state, and performing the second judgment on the image obtained in the second step.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,第(1)步中包括如下分步骤:As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the step (1) includes the following sub-steps:
(1.1)将深度图与H1面对比,高于H1面的部分为前景,当前景的面积大于一定阈值,则认为监控区域有运动;(1.1) The depth map is compared with H1, and the portion higher than the H1 surface is the foreground. If the area of the current scene is greater than a certain threshold, it is considered that the monitoring area has motion;
(1.2)统计前景运动与监控区域各边的交点个数,将交点个数最大的边认为时运动物体进入的方向;(1.2) Statistic foreground movement and the number of intersections on each side of the monitoring area, and the side with the largest number of intersection points is considered to be the direction in which the moving object enters;
(1.3)做一个将所有前景包含在内的前景的外接矩形;(1.3) Make a circumscribing rectangle of the foreground that includes all foregrounds;
(1.4)取外接矩形的内切圆中离步骤2中得到的进入边界最远的圆;(1.4) taking the circle farthest from the entry boundary obtained in step 2 in the inscribed circle of the circumscribed rectangle;
(1.5)将彩色图像中圆所在部分的图像抠出,该图像即手或商品所在位置。(1.5) Pull out the image of the part of the circle in the color image, which is the position of the hand or the product.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,第(2)步中包括如下分步骤:(2.1)按照公式1计算图像I在RGB三通道的均值μ,
Figure PCTCN2017083075-appb-000001
As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the step (2) includes the following sub-steps: (2.1) calculating the mean μ of the image I in the RGB three-channel according to the formula 1,
Figure PCTCN2017083075-appb-000001
(2.2)根据(2.1)计算出的均值按照公式2计算出图像I的协方差矩阵Cov, (2.2) Calculate the covariance matrix Cov of the image I according to the mean calculated according to (2.1) according to formula 2,
Figure PCTCN2017083075-appb-000002
Figure PCTCN2017083075-appb-000002
公式2中ωi的计算公式如下:
Figure PCTCN2017083075-appb-000003
The formula for calculating ω i in Equation 2 is as follows:
Figure PCTCN2017083075-appb-000003
(2.3)根据(2.1)、(2.2)计算得到的均值和协方差矩阵计算出投影矩阵Pro,Pro=μ*Cov。(2.3) Calculate the projection matrix Pro, Pro=μ*Cov according to the mean and covariance matrix calculated by (2.1) and (2.2).
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,第(3)步中包括如下分步骤:As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the step (3) includes the following sub-steps:
(3.1)采集以肤色为主的图像集,要求除肤色区域外,其它区域灰度值为0;(3.1) Collecting a skin color-based image set, requiring that the grayscale value of other regions be 0 other than the skin color region;
(3.2)利用(3.1)中图像集,并依据第(2)步中的方法计算得出图像集肤色区域的均值,协方差矩阵以及投影矩阵,并根据投影矩阵确定肤色区域的投影范围;(3.2) Using the image set in (3.1), and calculating the mean, covariance matrix and projection matrix of the skin color region of the image set according to the method in step (2), and determining the projection range of the skin color region according to the projection matrix;
(3.3)输入一张具有肤色区域的图像,利用(3.2)中求得的均值与协方差矩阵计算该图像每个像素点对应的投影矩阵,若该投影矩阵在(3.2)中所计算的投影矩阵范围内,则认为该像素点为肤色,否则为非肤色。(3.3) Input an image with a skin color region, calculate the projection matrix corresponding to each pixel of the image by using the mean and covariance matrix obtained in (3.2), if the projection matrix is calculated in (3.2) Within the matrix, the pixel is considered to be skin color, otherwise it is not skin color.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,还包括手持商品判断步骤,具体为:A further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention further includes the step of judging the handheld product, specifically:
(4.1)将模块二中提供的切割过后有效运动图像进行第一判断,若图像为空即切割后图像没有运动部分,那么直接判定为空手;(4.1) Performing the first judgment on the cut effective moving image provided in the second module, and if the image is empty, that is, the cut image has no moving part, then the direct determination is empty;
(4.2)若第一判断中图像不为空,对切割后肤色二值图像进行第二判断,若图像为空,即运动切割图像中不存在肤色部分,那么直接判定为手持物品;(4.2) If the image in the first judgment is not empty, the second determination of the skin color binary image after cutting is performed, and if the image is empty, that is, there is no skin color portion in the motion cut image, then the hand-held article is directly determined;
(4.3)若第二判断中图像不为空,计算运动灰度图像的最大轮廓面积与面积阈值b进行第二判断;(4.3) if the image is not empty in the second determination, calculate a maximum contour area of the motion gray image and an area threshold b to perform a second determination;
(4.4)如果最大轮廓面积大于面积阈值b,那么进行肤色置位;(4.4) If the maximum contour area is larger than the area threshold b, then the skin color is set;
(4.5)如果最大轮廓面积小于面积阈值,那么将彩色图像转换到HSV颜色空间,提取S通道。(4.5) If the maximum contour area is smaller than the area threshold, the color image is converted to the HSV color space, and the S channel is extracted.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,第(4.4)中包括分步骤为:As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the sub-step in the (4.4) includes:
(4.4.1)对置位后灰度图像计算信息熵;(4.4.1) calculating the information entropy of the grayscale image after the setting;
(4.4.2)对信息熵进行第四判断,如果信息熵大于阈值a,那么判断为携带商品,否则判断为空手;(4.4.2) The fourth judgment is made on the information entropy. If the information entropy is greater than the threshold a, then it is judged to carry the commodity, otherwise it is judged to be empty;
第(4.5)中包括分步骤为:The sub-steps included in (4.5) are:
(4.5.1)计算该通道信息熵,进行第五判断,如果信息熵大于阈值c,那么判断为携带商 品,否则判断为空手。(4.5.1) Calculate the information entropy of the channel, and perform a fifth judgment. If the information entropy is greater than the threshold c, then it is determined to be a carrier. Product, otherwise judged to be empty.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,阈值a和c是根据实际使用环境进行适应性调整,图像越清晰阈值a越大;在分辨率为320*240的图像中面积阈值b等于50;在肤色检测完整前提下,纯手的信息熵为零。As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the thresholds a and c are adaptively adjusted according to the actual use environment, and the clearer the image is, the larger the threshold a is; the resolution is 320*240. The area threshold b in the image is equal to 50; under the premise of skin color detection, the information entropy of the pure hand is zero.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,在光照充足实验室条件下我们给予一个经验值a=1.4,c=6.5。As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, we give an empirical value a=1.4, c=6.5 under the condition of sufficient illumination.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,还包括判断用户购物和退货过程中是否违规操作;在购买过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行是否手持商品的判断,并保存下来,每当出现交集面积从零变换到非零的交界,便对保存的手持商品判断结果清零,当交集面积变换到零时,重新开始对交集面积为零的每一帧进行是否手持商品的判断并保存,反复进行这些操作直到监控视野内无运动,将最后保存下来的数据进行统计,若手持商品的比率大于一定阈值,则可判定该退出过程中手持商品退出,为违规操作;在退货过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行手持商品判断并保存判断结果,第一次出现交集面积为非零时,就对保存的数据累计计算手持商品的比率,若大于一定阈值,则可判定为手持商品进入,则为违规操作,然后将结果清零直到下一次退货过程重新开始。A further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention further comprises determining whether the user operates in violation of the shopping and returning process; in the purchase process, starting from the monitoring field of view, the benchmark is The judgment of whether or not the hand-held product is carried out for each frame where the intersection area of the surface H1 is zero is saved, and whenever the intersection area changes from zero to a non-zero boundary, the judgment result of the stored hand-held commodity is cleared, and the intersection area is changed. When it reaches zero, it restarts the judgment of whether or not the hand-held product is held for each frame with zero intersection area, and repeats these operations until there is no motion in the monitoring field of view, and the last saved data is counted, if the ratio of the hand-held goods is greater than If the threshold is certain, it can be determined that the hand-held commodity exits during the exit process, which is a violation operation; in the return process, starting from the motion in the monitoring field of view, the hand-held commodity is judged and saved for each frame with the intersection area of the reference plane H1 being zero. Judging the result, when the first occurrence of the intersection area is non-zero, the accumulated data is calculated. If the ratio of the hand-held goods is greater than a certain threshold, it can be determined that the hand-held goods enter, which is a violation operation, and then the result is cleared until the next return process is restarted.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,当且仅当逻辑状态处于购物过程中的A0状态时,允许用户通过手动点击用户界面的退货按钮,使逻辑状态进入退货的B0状态;退货过程规定用户只能使用一只手来对商品进行操作,退货是从购物车内拿起商品进行退货,因此规定用户进入监控区域时手中不得持有商品,以规避替换行为带来的偷盗风险。As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the user is allowed to make the logical state by manually clicking the return button of the user interface if and only when the logic state is in the A0 state during the shopping process. Enter the B0 status of the return; the return process stipulates that the user can only use one hand to operate the goods, and the return is to pick up the goods from the shopping cart for return, so the user is allowed to hold the goods when entering the monitoring area to avoid replacement. The risk of theft caused by the act.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,单个操作过程只允许购买一件商品;用户将商品拿入监控区域后必须购买,通过A1状态和A2状态的出监控过程是否手持商品来判断;允许用户在购买过程中的A0状态下翻动查看车内已购买商品,但均要求用户在进入监控区域时必须空手。As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, a single operation process only allows one item to be purchased; the user must purchase the item after entering the monitoring area, and pass the A1 status and the A2 status. The monitoring process is judged whether the product is held by hand; the user is allowed to flip through the purchased goods in the A0 state during the purchase process, but the user is required to be empty when entering the monitoring area.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,单个操作过程只允许退掉一件商品;允许用户在退货的B0状态下翻动查看车内已购买商品,但均要求用户在进入监控区域时必须空手。As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, a single operation process only allows one item to be returned; the user is allowed to flip through the B0 state of the returned item to view the purchased item in the vehicle, but Users are required to be empty when entering the monitoring area.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,用户完成扫描条码、放入购物车、手退出监控区域后,等待“本次购物完成”出现后,一次完整的购买操作结束,才允许进行下一次的购买等操作,体现在A4、A5状态中的监控区域是否有 运动的判断。As a further preferred solution of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, after the user completes scanning the barcode, puts in the shopping cart, and withdraws from the monitoring area, the user waits for the “this shopping is completed” to appear, and a complete At the end of the purchase operation, the next purchase is allowed, and the monitoring area reflected in the A4 and A5 states is Judgment of movement.
作为本发明一种基于超市购物车的智能购物系统的控制方法的进一步优选方案,在初始A0状态时允许用户通过点击“退货”按钮进入退货初始状态B0,每次只支持一件已购买商品的退货行为,包括扫描购物车内待退货商品条码并拿出的过程,在此过程结束后,如判断为正常的退货行为,逻辑状态回到初始状态A0As a further preferred embodiment of the control method of the smart shopping system based on the supermarket shopping cart of the present invention, the user is allowed to enter the return initial state B0 by clicking the "return" button in the initial A0 state, and only supports one purchased product at a time. The return behavior includes scanning the barcode of the product to be returned in the shopping cart and taking out the process. After the end of the process, if it is judged as a normal return behavior, the logic state returns to the initial state A0.
本发明采用以上技术方案与现有技术相比,具有以下技术效果:Compared with the prior art, the present invention has the following technical effects:
1、将顾客的完整购物过程分为六个状态,在每个状态不同程度地利用称重传感器实时反馈的重量变化信息、监控装置采集的每帧图像信息、扫码器获取的商品信息,结合多个图像分析算法实现智能购物车系统在购物过程中的防偷盗功能;通过对检测出的运动目标图像或肤色检测图像进行灰度图像统计特征分析或模式识别,实现监控区域内空手或手持商品的检测,及时提醒并纠正顾客的违规操作,实现对顾客违规购物行为的判断,并且在防盗止损的同时,实现付款免排队,降低人工成本,提高购物体验;1. Divide the customer's complete shopping process into six states. In each state, the weight change information of the real-time feedback of the load cell, the image information of each frame collected by the monitoring device, and the product information acquired by the scanner are combined to some extent. A plurality of image analysis algorithms implement an anti-theft function of the smart shopping cart system during the shopping process; and perform grayscale image statistical feature analysis or pattern recognition on the detected moving target image or skin color detection image to realize empty hand or handheld products in the monitoring area The detection, promptly remind and correct the customer's illegal operation, realize the judgment of the customer's illegal shopping behavior, and realize the payment-free queuing, reduce the labor cost and improve the shopping experience while preventing the anti-theft and the stop loss;
2、本发明采用上述智能购物车进行购物和退货操作时,提高了客户自助结算的用户体验,通过内设具体的判断步骤很好的防范了用户误操作或者偷盗商品的事件发生,保证了商家的利益。2. When the above-mentioned smart shopping cart is used for shopping and returning operations, the user experience is improved by the customer self-checkout, and the specific judgment step is used to prevent the user from accidentally operating or stealing the goods, thereby ensuring the merchant. Interests.
附图说明DRAWINGS
图a1是本发明的模块结构示意图;Figure a1 is a schematic structural view of a module of the present invention;
图a2为本发明方法步骤一的流程图;Figure a2 is a flow chart of step 1 of the method of the present invention;
图a3为本发明方法步骤二的流程图;Figure a3 is a flow chart of step 2 of the method of the present invention;
图a4为本发明方法步骤三的流程图;Figure a4 is a flow chart of step 3 of the method of the present invention;
图a5为本发明方法步骤四的流程图;Figure a5 is a flow chart of step 4 of the method of the present invention;
图a6为本发明方法步骤五的流程图;Figure a6 is a flow chart of step 5 of the method of the present invention;
图a7为本发明方法步骤六的流程图;Figure a7 is a flow chart of step 6 of the method of the present invention;
图a8为本发明方法图像判断的流程图;Figure a8 is a flow chart of image determination of the method of the present invention;
图b1是智能购物车的结构示意图;Figure b1 is a schematic structural view of a smart shopping cart;
图b2是购物和退货的流程简图;Figure b2 is a simplified diagram of the process of shopping and returning;
图b3是购物过程中A0状态的流程示意图;Figure b3 is a schematic flow chart of the A0 state during the shopping process;
图b4是购物过程中A1状态的流程示意图;Figure b4 is a schematic flow chart of the A1 state during the shopping process;
图b5是购物过程中A2状态的流程示意图;Figure b5 is a schematic flow chart of the A2 state during the shopping process;
图b6是购物过程中A3状态的流程示意图; Figure b6 is a schematic flow chart of the A3 state during the shopping process;
图b7是购物过程中A4状态的流程示意图;Figure b7 is a schematic flow chart of the A4 state during the shopping process;
图b8是购物过程中A5状态的流程示意图;Figure b8 is a schematic flow chart of the A5 state during the shopping process;
图b9是退货过程中B0状态的流程示意图;Figure b9 is a schematic flow chart of the B0 state during the return process;
图b10是退货过程中B1状态的流程示意图;Figure b10 is a schematic flow chart of the B1 state during the return process;
图b11是退货过程中B2状态的流程示意图;Figure b11 is a schematic flow chart of the state of B2 in the return process;
图b12是退货过程中B3状态的流程示意图;Figure b12 is a schematic flow chart of the B3 state during the return process;
图b13是退货过程中B4状态的流程示意图;Figure b13 is a schematic flow chart of the B4 state during the return process;
图b14是退货过程中B5状态的流程示意图;Figure b14 is a schematic flow chart of the B5 state during the return process;
图c1是本发明第1步的流程示意图;Figure c1 is a schematic flow chart of the first step of the present invention;
图c2是本发明第2步的流程示意图;Figure c2 is a schematic flow chart of the second step of the present invention;
图c3是判断用户购物过程中是否违规操作;Figure c3 is to determine whether the user violates the rules during the shopping process;
图c4是判断用户退货过程中是否违规操作。Figure c4 is to determine whether the user violates the rules during the return process.
具体实施方式detailed description
下面结合附图对本发明的技术方案做进一步的详细说明:The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings:
实施例一Embodiment 1
本实施例提供的一种基于超市购物车的智能购物系统,如图a1所示包括安装于购物车把手之间的控制器、扫码器、置于车筐底部的称重传感器和位于车筐上端监控筐口的摄像头,扫码器位于控制器下侧,与购物车筐口相对,扫码器、称重传感器和摄像头分别与控制器通讯连接。The smart shopping system based on the supermarket shopping cart provided by the embodiment includes a controller installed between the handles of the shopping cart, a scanner, a load cell placed at the bottom of the basket, and a monitoring at the upper end of the basket, as shown in FIG. The camera of the basket mouth, the scanner is located on the lower side of the controller, opposite to the shopping cart basket mouth, and the scanner, the weighing sensor and the camera are respectively connected with the controller.
摄像的分辨率谓40-50(800*600)万像素,帧频不低于25帧/秒。The resolution of the camera is 40-50 (800 * 600) megapixels, and the frame rate is not less than 25 frames per second.
称重传感器的测量范围为0-100公斤,全量程称重精度为±1克。The load cell has a measuring range of 0-100 kg and a full-scale weighing accuracy of ±1 g.
扫码器通过USB接口与控制器相连。The scanner is connected to the controller via a USB interface.
如图b1所示,其中车筐的框口下方顺序设定两个平面分别为H1平面和H3平面,其中称重传感器置于H3平面下方的车筐筐底,所述扫码器的扫描口与H1平面重叠,所述摄像头置于H1平面上方并且监控H1平面及其上方空间的运动物体。As shown in FIG. b1, two planes are sequentially arranged under the frame of the basket as an H1 plane and an H3 plane, wherein the load cell is placed at the bottom of the basket below the H3 plane, and the scanning port of the scanner is H1. The planes overlap, the camera is placed above the H1 plane and the moving objects in the H1 plane and the space above it are monitored.
还包括:Also includes:
手部分割计算模块,根据手部运动趋势,判断并获得手部可能持有商品的图片;The hand segmentation calculation module determines and obtains a picture of the hand holding the product according to the trend of the hand movement;
肤色计算模块,对手不可能持有商品的图片做肤色分割处理;The skin color calculation module, the opponent can not hold the picture of the product to do the skin color segmentation process;
手持商品判断模块,判断手部是否真的持有商品;Hand-held commodity judgment module to determine whether the hand actually holds the commodity;
统计模块,通过对手持商品判断模块结果的统计判断用户是否违规操作。 The statistics module determines whether the user violates the rules by counting the statistics of the results of the handheld product judgment module.
一种基于超市购物车的智能购物系统及其控制方法,包括如下步骤,A smart shopping system based on a supermarket shopping cart and a control method thereof, comprising the following steps,
S1、启动控制器,扫码器、称重传感器和摄像头开始采集数据信息;如图a2所示,S1, start controller, scanner, load cell and camera start collecting data information; as shown in Figure a2,
当称重传感器计重不变时,则顾客没有将商品放进购物筐里或者空手操作,若商品已扫码,控制器会提示扫码成功,进入步骤S4,检测是否有违规操作;若商品未扫码,摄像头采集购物筐内的图像信息传递至控制器进行图像判断,判断空手还是手持物体;若手持物体则进入步骤S2,若空手则忽略此次动作;When the weight of the weighing sensor is constant, the customer does not put the product into the shopping basket or operates empty hand. If the product has been scanned, the controller will prompt the scanning code to be successful, and proceeds to step S4 to detect whether there is a violation operation; If the code is not scanned, the camera collects the image information in the shopping basket and transmits it to the controller for image judgment to determine whether the empty hand is still a hand-held object; if the object is hand-held, the process proceeds to step S2, and if the hand is empty, the action is ignored;
当称重传感器计重增加时,表示商品未扫码或者扫码未成功直接放入了购物筐里,则会提示拿出重新扫码,进入步骤S6,检测拿出的商品是否为刚才放入的商品;When the weighing weight of the weighing sensor increases, it indicates that the product has not been scanned or the scanning code is not successfully placed directly into the shopping basket, and then prompts to take out the rescanning code, and proceeds to step S6 to detect whether the taken product is just placed. Products of;
当称重传感器计重计重减小时,表示已经完成一次购买过程,则会提示退货请扫码,并进入步骤S3,检测是否有不符合退货的违规操作;When the weight of the weighing sensor is reduced, it means that the purchase process has been completed, then the return code is scanned, and the process proceeds to step S3 to check whether there is a violation operation that does not meet the return;
S2、该步骤是在确定了手中有物品后;如图a3所示,S2, the step is after determining that there is an item in the hand; as shown in Figure a3,
若称重传感器计重不变,则说明商品未进入购物筐,控制器提示扫码,当扫码成功后进入步骤S4;If the weight of the weighing sensor does not change, the product does not enter the shopping basket, the controller prompts to scan the code, and when the scanning code is successful, the process proceeds to step S4;
若称重传感器计重计重减小,则说明顾客存在偷换商品的违规操作,控制器会提示违规操作走人工通道;If the weight of the weighing sensor is reduced, it means that the customer has the illegal operation of stealing the goods, and the controller will prompt the illegal operation to take the artificial channel;
若称重传感器计重增加,则说明顾客在未扫码的情况下又放入了新商品,控制器会提示新商品请拿出,进入步骤S6,检测拿出的商品是否符合,以免偷换商品;If the weighing weight of the weighing sensor is increased, it means that the customer has placed a new product without scanning the code, and the controller will prompt the new product to be taken out, and proceed to step S6 to check whether the taken product is in conformity, so as to avoid stealing. commodity;
S3、如图a4所示,当步骤S1中检测到计重减小信号,此时手已经在摄像头检测的区域内,根据检测到的运动目标质心所在位置进行判断;S3, as shown in FIG. a4, when the weight reduction signal is detected in step S1, the hand is already in the area detected by the camera, and the judgment is made according to the detected position of the center of mass of the moving target;
当质心在购物筐中心区域外,则认为顾客已经将商品拿出且未扫码,而不能确定顾客拿出的是哪一个商品,故会提示违规操作,请走人工通道;When the center of mass is outside the center of the shopping basket, it is considered that the customer has taken out the product and has not scanned the code, and cannot determine which product the customer took out, so the illegal operation will be prompted, please take the artificial channel;
当质心在购物筐中心区域内,会采集计重器的实时重量变化信息;如果计重不变,说明在正常退货过程,需要再扫码,故此时由反馈的扫码信号确定是否退货成功;若未扫码则控制器会提示退货请扫码;若已扫码则会进行重量匹配,判断拿出的商品是否符合扫码的商品;若符合则会提示请拿出并进入步骤S5,检测拿出过程中的违规操作;若不符合,则认为顾客拿出的商品不正确,提示请走人工通道;如果计重增加,则进行重量匹配,若匹配不符合,则认为顾客放入了其他商品,控制器提示请走人工通道;若匹配符合,则进行图像判断,以防顾客放入同重量的商品;如果计重减小,则认为同时拿出两件商品退货,控制器会提醒顾客;When the center of mass is in the center of the shopping basket, the real-time weight change information of the weight is collected; if the weight is unchanged, it means that the code needs to be scanned again during the normal return process, so the feedback code of the feedback determines whether the return is successful; If the code is not scanned, the controller will prompt the return, please scan the code; if the code has been scanned, the weight will be matched to determine whether the goods that are taken out meet the product of the scan code; if it meets the prompt, please take it out and proceed to step S5 to detect Take out the illegal operation in the process; if it does not, it means that the customer's goods are not correct, please prompt to take the manual channel; if the weight is increased, the weight matching will be carried out. If the matching does not match, the customer is considered to have placed other Goods, the controller prompts to take the artificial channel; if the match is met, the image is judged to prevent the customer from putting the same weight of the goods; if the weight is reduced, it is considered that the two items are returned at the same time, the controller will remind the customer ;
S4、如图a5所示,当步骤S1提示扫码成功后,摄像头会检测运动目标的质心位置,若检测到质心在购物筐中心区域外,则认为顾客在退货,故会提示其重新扫码,完成退货过程; S4, as shown in FIG. 5, when the step S1 prompts the scan code to be successful, the camera detects the centroid position of the moving target. If the centroid is detected outside the center of the shopping basket, the customer is deemed to be returning, so the user is prompted to rescan the code. , complete the return process;
由计重器反馈的实时重量变化信息分成三种情况;计重不变时,只需判断质心的位置;The real-time weight change information fed back by the weight is divided into three cases; when the weight is constant, only the position of the centroid is judged;
计重减小时;则认为顾客未扫码就拿出商品,提醒顾客违规操作,需走人工通道;When the weight is reduced, it is considered that the customer takes out the goods without scanning the code, reminding the customer to operate illegally, and needs to take the artificial passage;
计重增加时,商品已经放入购物车,此时进行重量匹配。如果符合,图像判断顾客的手是否持有物品,若手持物品,则认为手中拿有两个等重量但不等价格的物体,扫码的商品可能会和放入的商品不同,故会认为是违规操作并提示走人工通道;若空手,则认为购买成功,会提示可继续购物,并回到步骤S1。如果不符合,则会提醒拿出新商品,进入步骤S6,检测拿出过程中是否有违规操作;When the weight is increased, the item has been placed in the shopping cart, and the weight is matched at this time. If it matches, the image judges whether the customer's hand holds the item. If the item is held, it means that there are two objects of equal weight but different price. The product of the scanned code may be different from the inserted product, so it is considered to be Violation of the operation and prompting to take the artificial channel; if empty, the purchase is considered successful, will prompt to continue shopping, and return to step S1. If it does not meet, it will remind you to take out the new product, and proceed to step S6 to detect whether there is any illegal operation during the process of taking out;
S5、如图a6所示,该步骤是退货过程中重量匹配后,检测拿出商品时是否有违规操作;S5, as shown in Figure a6, this step is to check whether there is a violation operation when the goods are taken out after the weight matching in the return process;
当计重增加或计重减小都认为是违规操作;When the weight is increased or the weight is reduced, it is considered to be a violation operation;
当计重不变时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,退货结束,返回到步骤S1,继续购物;When the weight is constant, according to the difference binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the commodity has exited the monitoring area, the return is over, and the process returns to step S1 to continue shopping;
S6、如图a7所示,该步骤是在购买过程中检测出重量不匹配,提示拿出商品时检测拿出的商品是否与放入的商品相同;S6, as shown in FIG. a7, the step is to detect a weight mismatch during the purchase process, and to prompt whether the detected product is the same as the inserted product when the product is taken out;
当计重增加时,认为未拿出商品还继续放入新商品是非常规购物操作,会提醒顾客;When the weight is increased, it is an unconventional shopping operation that the product is not taken out and continues to be placed in the new product, which will remind the customer;
当计重减小时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,将正确的商品拿出后会步骤S1,继续购物。When the weight is reduced, according to the differential binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the product has exited the monitoring area, and after the correct product is taken out, step S1 is continued to continue shopping. .
图像判断是通过先对彩色原图进行灰度转换后,再对其进行运动检测并确定运动目标质心,当质心在购物筐监控中心区域内后,对彩色原图进行肤色检测,将运动检测结果和肤色检测结果求和得到完整运动目标图像,接着将完整运动目标结果与肤色结果相减得到去肤色运动目标;然后计算出去肤色运动图像中像素值为255的像素点个数作为去肤色面积,并算出肤色质心以下完整运动目标的信息熵,如果连续多帧检测的去肤色面积大于阈值A或者肤色质心以下运动区域的信息熵大于阈值B,可认为是手持物体在购物筐中,反之认为是空手,需对背景进行更新。Image judgment is performed by first performing gray scale conversion on the original color image, then performing motion detection and determining the motion target centroid. When the centroid is in the shopping basket monitoring center area, the color original image is detected by the skin color, and the motion detection result is obtained. And the skin color detection result is summed to obtain a complete moving target image, and then the complete moving target result is subtracted from the skin color result to obtain a skin color moving target; and then the number of pixels with a pixel value of 255 in the skin color moving image is calculated as the skin color removing area. And calculate the information entropy of the complete moving target below the skin color centroid. If the skin area of the continuous multi-frame detection is greater than the threshold A or the information entropy of the motion region below the skin color centroid is greater than the threshold B, it can be considered that the handheld object is in the shopping basket, and vice versa. Empty hand, need to update the background.
购物过程完全统计流程Shopping process complete statistical process
1.综述:1. Summary:
完整购物流程如图b2所示,由购买状态A0、A1、A2、A3、A4、A5,退货状态B0、B1、B2、B3、B4、B5组成,如图1所示。以各个状态作为每次逻辑判断的起点位置,如:若当前处于A0状态,则在此次逻辑判断过程中,以A0为起始,根据传感器反馈数据及判断流程,完成A0状态中各个分支判断,以决定下个逻辑判断过程仍然是A0状态、进入其他状态,还是以ERROR结束。当用户存在违规操作,即用户行为被判断为有很大的偷盗风险时,逻辑判断以ERROR结束。之后等待用户将购物车内所有商品拿出,清空购物车。通过一系列图像处 理算法判断用户已完成清空购物车操作后,逻辑状态置回初始状态A0,允许用户重新开始进行购买等操作。The complete shopping process is shown in Figure b2. It consists of purchase status A0, A1, A2, A3, A4, A5, return status B0, B1, B2, B3, B4, B5, as shown in Figure 1. Each state is used as the starting position of each logical judgment. For example, if it is currently in the A0 state, in the logic judgment process, starting from A0, according to the sensor feedback data and the judgment flow, the branches in the A0 state are judged. To determine whether the next logical judgment process is still in the A0 state, enter other states, or end with ERROR. When the user has a violation operation, that is, the user behavior is judged to have a large risk of theft, the logical judgment ends with ERROR. Then wait for the user to take out all the items in the shopping cart and empty the shopping cart. Through a series of images After the algorithm determines that the user has finished emptying the shopping cart operation, the logic state is set back to the initial state A0, allowing the user to restart the purchase and the like.
2购物过程:2 shopping process:
(1)A0状态如图b3所示(1) A0 state is shown in Figure b3
A0状态为购物车的初始状态。当负责算法的平板电脑启动时,购物车各传感器开始工作,包括电子称重秤、商品条码扫描器和监控装置。The A0 state is the initial state of the shopping cart. When the tablet responsible for the algorithm is started, the sensors of the shopping cart start working, including electronic weighing scales, commodity barcode scanners, and monitoring devices.
根据监控装置反馈的图像数据,图像处理算法给出当前时刻监控区域是否有运动。若无运动,本次判断结束,下次逻辑判断依然为A0状态,直到监控区域出现运动,认为用户开始进行购买行为中的系列操作,开始判断用户是否存在多手操作(算法见权利要求四)。According to the image data fed back by the monitoring device, the image processing algorithm gives whether the current monitoring area has motion. If there is no motion, the judgment ends, and the next logical judgment is still in the A0 state until the movement occurs in the monitoring area. It is considered that the user starts the series operation in the purchase behavior, and starts to judge whether the user has multi-hand operation (the algorithm sees claim 4) .
若监控区域内存在多只手。以ERROR结束;否则,根据用户进入监控过程中是否手持物品,将标志位变量flag赋值,作为A1状态中后续判断的依据之一,并以A1状态结束当前逻辑判断。If there are many hands in the monitoring area. End with ERROR; otherwise, according to whether the user enters the monitoring process whether the item is hand-held, the flag variable flag is assigned as one of the basis for subsequent judgment in the A1 state, and the current logic judgment is ended in the A1 state.
(2)A1状态如图b4所示(2) A1 state is shown in Figure b4
此状态中,逻辑算法首先判断是用户是否完成扫描商品条码的操作。若当前已扫码,则认为用户通过扫码完成商品信息录入,下一个动作应为将手中已扫码商品放入购物车中,以A2状态结束此次逻辑判断;若此时尚未扫码,则根据图像处理算法,分为监控区域有运动和监控区域无运动两种情况。In this state, the logic algorithm first determines whether the user has completed the operation of scanning the commodity barcode. If the code has been scanned, the user is considered to complete the product information entry by scanning the code. The next action should be to put the scanned product in the shopping cart into the shopping cart and end the logic judgment in the A2 state; if the code has not been scanned at this time, According to the image processing algorithm, there are two cases in which the monitoring area has motion and the monitoring area has no motion.
监控区域有运动时,判断是否有运动低于H3平面(算法见权利要求三),以结合A0状态中得到的标志位变量flag的值,防止用户在扫描条码前违规用手中未购买商品替换购物车内已购买商品。运动低于H3面时,若flag的值为false(即在A0状态时用户进入监控区域时手持物品),认为存在潜在的替换偷盗风险,本次逻辑判断以ERROR结束,等待用户清空购物车;运动低于H3平面但flag的值为true或运动高于H3平面,本次逻辑判断结束,下次判断依然处于A1状态,以A1位置作为起始位置。When there is motion in the monitoring area, it is judged whether there is motion below the H3 plane (the algorithm sees claim 3), in combination with the value of the flag variable flag obtained in the A0 state, preventing the user from replacing the unpurchased item in the hand before scanning the barcode. The goods have been purchased in the car. When the motion is lower than the H3 plane, if the value of the flag is false (that is, the user holds the item when entering the monitoring area in the A0 state), it is considered that there is a potential risk of replacing theft. This logic judges to end with ERROR, waiting for the user to empty the shopping cart; The motion is lower than the H3 plane, but the value of the flag is true or the motion is higher than the H3 plane. The logic judgment ends, and the next judgment is still in the A1 state, with the A1 position as the starting position.
监控区域没有运动,则认为在A0状态中进入监控区域的运动已结束,此时根据运动过程中的监控结果,决定本次逻辑判断的终点。若发现出监控过程中存在手持物品出监控区域的现象,以ERROR结束;否则正常结束,下次判断进入A3状态。If there is no motion in the monitoring area, it is considered that the movement into the monitoring area in the A0 state has ended. At this time, the end point of this logical judgment is determined according to the monitoring result in the motion process. If it is found that there is a phenomenon that the hand-held item is out of the monitoring area during the monitoring process, it ends with ERROR; otherwise, it ends normally, and the next time it is judged to enter the A3 state.
(3)A2状态如图b5所示(3) A2 state is shown in Figure b5
用户完成扫码操作后进入A3状态。首先判断当前监控区域是否存在运动。The user enters the A3 state after completing the scan operation. First, it is judged whether there is motion in the current monitoring area.
监控区域有运动,则认为用户尚未完成将手中已扫码商品放入购物车并将手退出视场的动作。为防止用户通过替换操作完成偷盗行为,规定不允许多只手对商品进行操作。若存在多手操作。以ERROR结束;若单手操作,则以A2状态结束当前逻辑判断。 If there is motion in the surveillance area, the user is considered to have not completed the action of placing the scanned product in the shopping cart and withdrawing the hand from the field of view. In order to prevent the user from completing the theft by the replacement operation, it is stipulated that many hands are not allowed to operate on the goods. If there is a multi-hand operation. End with ERROR; if one-handed operation, the current logic judgment is ended in the A2 state.
监控区域无运动,下一步判断出监控过程是存在手持商品现象,存在则以ERROR结束;不存在,进入A4状态,结束此次逻辑判断。There is no motion in the monitoring area. The next step is to judge that there is a hand-held product phenomenon in the monitoring process. If it exists, it ends with ERROR. If it does not exist, it enters the A4 state and ends the logic judgment.
(4)A3状态如图b6所示(4) The A3 state is shown in Figure b6.
用户进入监控区域,未扫码,空手出监控区域后,进入A3状态。A3状态下完成的是等待重量稳定后与理论重量进行匹配,期间不允许用户进入监控区域。The user enters the monitoring area, does not scan the code, and enters the A3 state after emptying the monitoring area. What is done in the A3 state is to wait for the weight to stabilize and match the theoretical weight, and the user is not allowed to enter the monitoring area.
首先判断监控区域的运动状态,有运动则以ERROR结束;无运动则根据电子称重秤判断重量是否稳定。First, judge the motion state of the monitoring area. If there is motion, it ends with ERROR. If there is no motion, judge whether the weight is stable according to the electronic weighing scale.
重量不稳定,依旧以A3结束本次逻辑判断;重量稳定则对当前实际重量及理论重量进行匹配。重量匹配则回到初始状态A0,结束本次判断;不匹配则以ERROR结束。The weight is unstable, and the logic judgment is still ended with A3; the weight is stable to match the current actual weight and the theoretical weight. The weight matching returns to the initial state A0, ending the current judgment; if it does not match, it ends with ERROR.
(5)A4状态如图b7所示(5) The A4 state is shown in Figure b7.
用户扫码后将商品放入购物车并退出监控区域,进入A4状态。A4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域。After scanning the code, the user puts the product into the shopping cart and exits the monitoring area to enter the A4 state. The A4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period.
(6)A5状态如图b8所示(6) A5 status as shown in Figure b8
用户扫描商品条码后,算法需要通过网络,从服务器端取得与商品条码对应的商品理论重量等信息。网络会有一定程度的延迟,因此引入A5状态,等待获取商品条码对应实际信息。After the user scans the product barcode, the algorithm needs to obtain information such as the theoretical weight of the product corresponding to the product barcode from the server through the network. The network will have a certain degree of delay, so the A5 state is introduced, waiting for the actual barcode information to be obtained.
重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配。若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次购物完成”;若不匹配,则以ERROR结束。After the weight is stable, after waiting for the actual information of the scanned product, the two are matched according to the weight value provided by the current electronic weighing scale and the theoretical weight value. If it matches, the current shopping process is completed, returning to the initial state A0, prompting the user to "this shopping is completed"; if not, ending with ERROR.
同样,A5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束。Similarly, the A5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
3.退货过程3. Return process
(1)B0状态如图b9所示(1) B0 state is shown in Figure b9
当且仅当逻辑状态处于A0时,允许用户通过手动点击用户界面的“退货”按钮,使逻辑状态进入退货。退货过程规定用户只能使用一只手来对商品进行操作,退货是从购物车内拿起商品进行退货,因此规定用户进入监控区域时手中不得持有商品,以规避替换行为带来的偷盗风险。If and only if the logic state is at A0, the user is allowed to enter the return status by manually clicking the "Return" button of the user interface. The return process stipulates that the user can only use one hand to operate the goods. The return is to pick up the goods from the shopping cart and return the goods. Therefore, the user is not allowed to hold the goods when entering the monitoring area to avoid the risk of theft caused by the replacement behavior. .
退货的初始状态为B0,此状态中首先判断的是当前监控区域是否有运动。The initial status of the return is B0. In this state, it is first determined whether there is motion in the current monitoring area.
若监控区域无运动,认为用户尚未开始退货的相关操作,结束当前逻辑判断,状态依然为B0。If the monitoring area has no motion, it is considered that the user has not started the operation related to the return, and the current logic judgment is ended, and the status is still B0.
对于监控区域有运动,认为用户进入监控区域。若此时存在用户多只手进入监控区域的现象,图像算法给出“多手操作”的判定,以ERROR结束。对于符合操作规范的“单手操作”, 进一步判断用户在进入监控区域的过程中是否手中持有商品。存在进入过程手持商品,以ERROR结束;否则进入B1状态,结束本次逻辑判断。For the monitoring area to have motion, the user is considered to enter the monitoring area. If there is a phenomenon that the user enters the monitoring area with more hands at this time, the image algorithm gives a "multi-hand operation" decision, ending with ERROR. For "one-handed operation" that complies with the operating specifications, It is further determined whether the user holds the goods in the process of entering the monitoring area. There is a hand-held product entering the process, ending with ERROR; otherwise, entering the B1 state, the current logic judgment is ended.
(2)B1状态如图b10所示(2) The B1 state is as shown in Figure b10.
B1状态中完成的功能为等待用户拿起购物车内待退货商品并扫码。The function completed in the B1 state is to wait for the user to pick up the item to be returned in the shopping cart and scan the code.
当逻辑判断进入B1时,首先检查当前用户是否完成扫码动作。已扫码,则以进入B2状态结束本次逻辑判断;未扫码,则判断监控区域是否有运动。When the logic judges to enter B1, it first checks whether the current user completes the scan operation. If the code has been scanned, the logic judgment is terminated by entering the B2 state; if the code is not scanned, it is judged whether there is motion in the monitoring area.
监控区域无运动,认为用户这一系列的行为为空手进入购物车监控区域,最后未退货,出监控区域,以进入B3状态结束此次逻辑判断。There is no movement in the monitoring area. It is considered that the user's behavior in this series is empty hand entering the shopping cart monitoring area, and finally the return is not returned, and the monitoring area is exited to enter the B3 state to end the logic judgment.
监控区域有运动,则继续判断是否存在多手操作。存在多只手操作,则以ERROR结束;不存在则保持B1状态结束本次逻辑判断。If there is motion in the surveillance area, continue to determine if there is a multi-hand operation. If there are multiple hand operations, it ends with ERROR; if it does not exist, it keeps the B1 state and ends this logic judgment.
(3)B2状态如图b11所示(3) The B2 state is as shown in Figure b11.
用户进行退货扫码后进入B2状态。该状态完成的功能是等待用户将已扫码商品拿出监控区域。The user enters the B2 state after performing the return scan code. The function completed by this state is to wait for the user to take the scanned goods out of the monitoring area.
首先判断监控区域是否有运动。First, determine if there is motion in the monitored area.
若无运动,则认为用户已经拿出已扫码商品,以进入B4状态结束。If there is no movement, it is considered that the user has taken out the scanned product to end the B4 state.
在完成扫码后,不允许用户低于H3平面,以规避替换风险。因此,对于有运动的情况,若低于H3面有运动,则以ERROR结束,否则保持B2状态结束本次逻辑判断。After the scan code is completed, the user is not allowed to be below the H3 plane to avoid the risk of replacement. Therefore, in the case of motion, if there is motion below the H3 plane, it ends with ERROR, otherwise the B2 state is maintained to end this logic determination.
(4)B3状态如图b12所示(4) The B3 state is shown in Figure b12.
用户在扫码前离开监控区域,此时进入B3状态。B3状态功能为等待重量稳定后,匹配当前实际重量和理论重量。B3状态中不允许用户进入监控区域。执行过程与购买中的A3状态类似。The user leaves the monitoring area before scanning the code, and enters the B3 state at this time. The B3 status function matches the current actual weight and theoretical weight after waiting for the weight to stabilize. The user is not allowed to enter the monitoring area in the B3 state. The execution process is similar to the A3 status in the purchase.
(5)B4状态如图b13所示(5) The B4 state is as shown in Figure b13.
用户扫码后将商品拿出购物车并退出监控区域,进入B4状态。B4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域。与A4状态类似。After scanning the code, the user takes the product out of the shopping cart and exits the monitoring area to enter the B4 state. The B4 state is completed by waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period. Similar to the A4 status.
(6)B5状态如图14所示(6) B5 state is shown in Figure 14.
B5状态完成功能与A5状态类似,为等待获取商品条码对应实际信息。The B5 status completion function is similar to the A5 status, waiting to obtain the actual information corresponding to the product barcode.
重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配。若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次退货完成”;若不匹配,则以ERROR结束。After the weight is stable, after waiting for the actual information of the scanned product, the two are matched according to the weight value provided by the current electronic weighing scale and the theoretical weight value. If it matches, the current shopping process is completed, returning to the initial state A0, prompting the user to "this return is completed"; if it does not match, it ends with ERROR.
同样,B5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束。 Similarly, the B5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
4.用户行为规范:4. User Code of Conduct:
本流程框架有如下用户行为规范:This process framework has the following user behavior specifications:
单个操作过程只允许购买或退掉一件商品;A single operation allows only one item to be purchased or returned;
购买状态下,用户将商品拿入监控区域后必须购买,体现在A1和A2状态的“出监控过程是否手持商品”的判断中;In the purchase state, the user must purchase the goods after entering the monitoring area, which is reflected in the judgment of whether the monitoring process is holding the goods in the A1 and A2 states;
用户完成扫描条码、放入购物车、手退出监控区域后,等待“本次购物完成”出现后,一次完整的购买操作结束,才允许进行下一次的购买等操作,体现在A4、A5状态中的监控区域是否有运动的判断;After the user finishes scanning the barcode, puts it into the shopping cart, and withdraws from the monitoring area, after waiting for the “this shopping is completed”, a complete purchase operation is completed, and the next purchase is allowed, which is reflected in the A4 and A5 states. Whether the monitoring area has a judgment of movement;
购物和退货过程中不允许使用多只手进行操作,以规避替换风险,体现在A2、B0和B1中的单/多手操作判断;It is not allowed to use multiple hands during the shopping and return process to avoid the risk of replacement, which is reflected in the single/multi-hand operation judgments in A2, B0 and B1;
对于购买过程,应当先将待购买商品扫码,然后放入购物车中;For the purchase process, the goods to be purchased should be scanned first and then placed in the shopping cart;
在初始A0状态时允许用户通过点击“退货”按钮进入退货初始状态B0,每次只支持一件已购买商品的退货行为,包括扫描购物车内待退货商品条码并拿出的过程,在此过程结束后,如判断为正常的退货行为,逻辑状态回到初始状态A0;In the initial A0 state, the user is allowed to enter the return initial state B0 by clicking the "return" button, and only supports the return behavior of one purchased item at a time, including the process of scanning the barcode of the product to be returned in the shopping cart and taking out the process. After the end, if it is judged as a normal return behavior, the logic state returns to the initial state A0;
允许用户在购买或退货的初始状态下翻动查看车内已购买商品,但均要求用户在进入监控区域时必须空手。Allows the user to flip through the in-car purchases in the initial state of purchase or return, but requires the user to be empty when entering the surveillance area.
二、H1面更新部分Second, the H1 surface update part
当商品堆到超过H1面时,会影响前景,此时应该对H1面进行更新。When the product piles over the H1 surface, it will affect the foreground. At this time, the H1 surface should be updated.
如下图,步骤:As shown below, the steps:
用最原始的H1面获取高于H1面的前景;Use the most primitive H1 surface to obtain a foreground above the H1 surface;
计算运动前景中是否与边界有交集,如果与边界有交集,则认为是运动的物体(手),否则,为高出H1面的物体;Calculate whether there is an intersection with the boundary in the foreground of the motion. If there is an intersection with the boundary, it is considered to be a moving object (hand); otherwise, it is an object higher than the H1 surface;
若运动前景与边界无交集,则更新H1面。用前景中的非0部分覆盖原来H1面相应位置的灰度值,即更新了H1面。If there is no intersection between the motion foreground and the boundary, the H1 plane is updated. The gray value of the corresponding position of the original H1 surface is covered by the non-zero portion in the foreground, that is, the H1 surface is updated.
除上述实施例外,本发明还可以有其他实施方式。凡采用等同替换或等效变换形成的技术方案,均落在本发明要求的保护范围。Other than the above-described embodiments, the present invention may have other embodiments. Any technical solution formed by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
一种超市购物车手部识别方法如状态B0和状态B2,按照如下步骤进行:A supermarket shopping cart hand identification method such as state B0 and state B2 is performed as follows:
判断手的位置,以购物车开口为基准面H1,监控基准面上方是否存在目标,如有则保存图片,Judging the position of the hand, using the shopping cart opening as the reference surface H1, monitoring whether there is a target above the reference plane, and if so, saving the picture.
如图c1所示;第(1)步中包括如下分步骤:(1.1)将深度图与H1面对比,高于H1面的部分为前景,当前景的面积大于一定阈值,则认为监控区域有运动; As shown in Figure c1; the step (1) includes the following sub-steps: (1.1) comparing the depth map to the H1 surface, the portion higher than the H1 surface is the foreground, and the area of the current scene is greater than a certain threshold, then the monitoring area is considered Have exercise;
(1.2)统计前景运动与监控区域各边的交点个数,将交点个数最大的边认为时运动物体进入的方向;(1.2) Statistic foreground movement and the number of intersections on each side of the monitoring area, and the side with the largest number of intersection points is considered to be the direction in which the moving object enters;
(1.3)做一个将所有前景包含在内的前景的外接矩形;(1.3) Make a circumscribing rectangle of the foreground that includes all foregrounds;
(1.4)取外接矩形的内切圆中离步骤2中得到的进入边界最远的圆;(1.4) taking the circle farthest from the entry boundary obtained in step 2 in the inscribed circle of the circumscribed rectangle;
(1.5)将彩色图像中圆所在部分的图像抠出,该图像即手或商品所在位置。(1.5) Pull out the image of the part of the circle in the color image, which is the position of the hand or the product.
图像处理,通过建立肤色模型对第一步获得的图像进行处理;Image processing, processing the image obtained in the first step by establishing a skin color model;
如图c2所示,第(2)步中包括如下分步骤:(2.1)按照公式1计算图像I在RGB三通道的均值μ,
Figure PCTCN2017083075-appb-000004
As shown in FIG. c2, step (2) includes the following sub-steps: (2.1) calculating the mean μ of the image I in the RGB three-channel according to the formula 1,
Figure PCTCN2017083075-appb-000004
(2.2)根据(2.1)计算出的均值μ,按照公式2计算出图像I的协方差矩阵Cov,
Figure PCTCN2017083075-appb-000005
(2.2) Calculate the covariance matrix Cov of the image I according to the formula 2 according to the mean μ calculated by (2.1),
Figure PCTCN2017083075-appb-000005
公式2中ωi的计算公式如下:
Figure PCTCN2017083075-appb-000006
The formula for calculating ω i in Equation 2 is as follows:
Figure PCTCN2017083075-appb-000006
(2.3)根据(2.1)、(2.2)计算得到的均值和协方差矩阵计算出投影矩阵Pro,Pro=μ*Cov。(2.3) Calculate the projection matrix Pro, Pro=μ*Cov according to the mean and covariance matrix calculated by (2.1) and (2.2).
判断持物状态,将第二步获得的图像进行二次判断。The state of the object is judged, and the image obtained in the second step is judged twice.
第(3)步中包括如下分步骤:Step (3) includes the following sub-steps:
(3.1)采集以肤色为主的图像集,要求除肤色区域外,其它区域灰度值为0。(3.1) Collecting a skin color-based image set requires that the gray value of other areas be 0 except for the skin color area.
(3.2)利用(3.1)中图像集,并依据第(2)步中的方法计算得出图像集肤色区域的均值,协方差矩阵以及投影矩阵,并根据投影矩阵确定肤色区域的投影范围;(3.2) Using the image set in (3.1), and calculating the mean, covariance matrix and projection matrix of the skin color region of the image set according to the method in step (2), and determining the projection range of the skin color region according to the projection matrix;
(3.3)输入一张具有肤色区域的图像,利用(3.2)中求得的均值与协方差矩阵计算该图像每个像素点对应的投影矩阵,若该投影矩阵在(3.2)中所计算的投影矩阵范围内,则认为该像素点为肤色,否则为非肤色。(3.3) Input an image with a skin color region, calculate the projection matrix corresponding to each pixel of the image by using the mean and covariance matrix obtained in (3.2), if the projection matrix is calculated in (3.2) Within the matrix, the pixel is considered to be skin color, otherwise it is not skin color.
(4)手持商品判断步骤,具体为:(4) Handheld commodity judgment steps, specifically:
(4.1)将模块二中提供的切割过后有效运动图像进行第一判断,若图像为空即切割后图像没有运动部分,那么直接判定为空手;(4.1) Performing the first judgment on the cut effective moving image provided in the second module, and if the image is empty, that is, the cut image has no moving part, then the direct determination is empty;
(4.2)若第一判断中图像不为空,对切割后肤色二值图像进行第二判断,若图像为空,即运动切割图像中不存在肤色部分,那么直接判定为手持物品;(4.2) If the image in the first judgment is not empty, the second determination of the skin color binary image after cutting is performed, and if the image is empty, that is, there is no skin color portion in the motion cut image, then the hand-held article is directly determined;
(4.3)若第二判断中图像不为空,计算运动灰度图像的最大轮廓面积与面积阈值b进行第二判断;(4.3) if the image is not empty in the second determination, calculate a maximum contour area of the motion gray image and an area threshold b to perform a second determination;
(4.4)如果最大轮廓面积大于面积阈值b,那么进行肤色置位; (4.4) If the maximum contour area is larger than the area threshold b, then the skin color is set;
第(4.4)中包括分步骤为(4.4.1)对置位后灰度图像计算信息熵;In (4.4), the sub-step includes (4.4.1) calculating the information entropy on the grayscale image after the setting;
(4.4.2)对信息熵进行第四判断,如果信息熵大于阈值a,那么判断为携带商品,否则判断为空手;(4.4.2) The fourth judgment is made on the information entropy. If the information entropy is greater than the threshold a, then it is judged to carry the commodity, otherwise it is judged to be empty;
第(4.5)中包括分步骤为(4.5.1)计算该通道信息熵,进行第五判断,如果信息熵大于阈值c,那么判断为携带商品,否则判断为空手。In (4.5), the sub-step is (4.5.1) to calculate the channel information entropy, and the fifth judgment is performed. If the information entropy is greater than the threshold c, it is judged to carry the commodity, otherwise it is judged to be empty.
(4.5)如果最大轮廓面积小于面积阈值,那么将彩色图像转换到HSV颜色空间,提取S通道。(4.5) If the maximum contour area is smaller than the area threshold, the color image is converted to the HSV color space, and the S channel is extracted.
其中阈值a和c是根据实际使用环境进行适应性调整,图像越清晰阈值a越大;在分辨率为320*240的图像中面积阈值b等于50;在肤色检测完整前提下,纯手的信息熵为零。在光照充足实验室条件下我们给予一个经验值a=1.4,c=6.5。The thresholds a and c are adaptively adjusted according to the actual use environment, and the clearer the image is, the larger the threshold a is; in the image with the resolution of 320*240, the area threshold b is equal to 50; under the premise of the skin color detection, the pure hand information Entropy is zero. We gave an empirical value a = 1.4, c = 6.5 under well-lit laboratory conditions.
(5)判断用户购物和退货过程中是否违规操作;如图c3所示,在购买过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行是否手持商品的判断,并保存下来,每当出现交集面积从零变换到非零的交界,便对保存的手持商品判断结果清零,当交集面积变换到零时,重新开始对交集面积为零的每一帧进行是否手持商品的判断并保存,反复进行这些操作直到监控视野内无运动,将最后保存下来的数据进行统计,若手持商品的比率大于一定阈值,则可判定该退出过程中手持商品退出,如图c4所示,为违规操作;在退货过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行手持商品判断并保存判断结果,第一次出现交集面积为非零时,就对保存的数据累计计算手持商品的比率,若大于一定阈值,则可判定为手持商品进入,则为违规操作,然后将结果清零直到下一次退货过程重新开始。(5) Judging whether the user violates the rules during the shopping and returning process; as shown in Figure c3, in the purchase process, starting from the motion in the monitoring field of view, whether to hold the product for each frame with the intersection area of the reference plane H1 is zero. The judgment is saved and saved. Whenever the intersection area changes from zero to a non-zero boundary, the judgment result of the saved hand-held goods is cleared. When the intersection area is changed to zero, each of the intersection areas is zero. The frame performs judgment and storage of the hand-held product, and repeats these operations until there is no motion in the monitoring field of view, and the last saved data is counted. If the ratio of the hand-held product is greater than a certain threshold, it can be determined that the hand-held product exits during the exit process. As shown in Figure c4, it is a violation operation; in the return process, starting from the motion in the monitoring field of view, the hand-held commodity is judged for each frame with the intersection area of the reference plane H1 is zero, and the judgment result is saved, and the first intersection occurs. When the area is non-zero, the ratio of the hand-held goods is calculated cumulatively for the saved data. If it is greater than a certain threshold, it can be determined as a hand-held product. Into, for the illegal operations, and the result is clear until the next re-start the return process.
本发明通过运动检测、肤色检测以及手和商品的判断这几个步骤来最终精确得到手部是否持有商品的判断;该方法不会对用户产生额外的负担和要求,整个判断过程全自动进行,非常简单方便。The invention finally obtains the judgment of whether the hand holds the commodity through the steps of motion detection, skin color detection and hand and commodity judgment; the method does not impose additional burdens and requirements on the user, and the whole judging process is fully automatic. Very simple and convenient.
除上述实施例外,本发明还可以有其他实施方式。凡采用等同替换或等效变换形成的技术方案,均落在本发明要求的保护范围。 Other than the above-described embodiments, the present invention may have other embodiments. Any technical solution formed by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims (18)

  1. 一种基于超市购物车的智能购物系统,其特征在于:包括安装于购物车把手之间的控制器、扫码器、置于车筐底部的称重传感器和位于车筐上端监控筐口的摄像头,所述扫码器位于所述控制器下侧,与购物车筐口相对,所述扫码器、所述称重传感器和所述摄像头分别与所述控制器通讯连接,其中车筐的框口下方顺序设定两个平面分别为H1平面和H3平面,其中称重传感器置于H3平面下方的车筐筐底,所述扫码器的扫描口与H1平面重叠,所述摄像头置于H1平面上方并且监控H1平面及其上方空间的运动物体。A smart shopping system based on a supermarket shopping cart, comprising: a controller mounted between the handles of the shopping cart, a scanner, a load cell placed at the bottom of the basket, and a camera positioned at the upper end of the basket. The scanner is located on the lower side of the controller, opposite to the shopping cart basket mouth, and the scanner, the load cell and the camera are respectively connected with the controller, wherein the frame of the basket is sequentially arranged below The two planes are respectively an H1 plane and an H3 plane, wherein the load cell is placed at the bottom of the basket below the H3 plane, the scanning port of the scanner overlaps with the H1 plane, the camera is placed above the H1 plane and the H1 is monitored A moving object in the plane and the space above it.
  2. 一种基于超市购物车的智能购物系统,其特征在于,还包含手部分割计算模块,根据手部运动趋势,判断并获得手部可能持有商品的图片;A smart shopping system based on a supermarket shopping cart, characterized in that it further comprises a hand segmentation calculation module, which determines and obtains a picture of a hand that may be held by the hand according to the trend of the hand movement;
    肤色计算模块,对手不可能持有商品的图片做肤色分割处理;The skin color calculation module, the opponent can not hold the picture of the product to do the skin color segmentation process;
    手持商品判断模块,判断手部是否真的持有商品;Hand-held commodity judgment module to determine whether the hand actually holds the commodity;
    统计模块,通过对手持商品判断模块结果的统计判断用户是否违规操作。The statistics module determines whether the user violates the rules by counting the statistics of the results of the handheld product judgment module.
  3. 一种基于超市购物车的智能购物系统的控制方法,其特征在于,具体包含如下步骤:A method for controlling a smart shopping system based on a supermarket shopping cart, characterized in that the method comprises the following steps:
    S1、启动控制器,扫码器、称重传感器和摄像头开始采集数据信息;其中,各个部件按照如下状态运行工作:S1, the start controller, the scanner, the load cell and the camera start collecting data information; wherein each component operates according to the following state:
    A0状态:通过摄像头判断是否有手进入监控区域;A0 state: It is judged by the camera whether there is a hand entering the monitoring area;
    A1状态:通过扫码器和摄像头判断是否存在商品扫码动作和将商品放入H3平面下方的购物筐底动作;A1 status: It is judged by the scanner and the camera whether there is a product scan operation and the action of putting the product into the bottom of the shopping basket below the H3 plane;
    A2状态:通过摄像头判断监控区域是否有空手;A2 status: It is judged by the camera whether there is an empty hand in the monitoring area;
    A3状态:通过称重传感器对产品称重并将结果反馈给控制器做判断;A3 state: the product is weighed by the load cell and the result is fed back to the controller for judgment;
    A4状态:等待称重传感器称量商品的结果稳定并提示用户的手在此期间不要进入监控区域;A4 state: Waiting for the weighing sensor to weigh the goods, the result is stable and prompt the user's hand not to enter the monitoring area during this period;
    A5状态:将扫码器获得的商品重量信息与称量获得的结果做比较,如果两者匹配则购物完成;A5 status: compare the product weight information obtained by the scanner with the result obtained by weighing, and if the two match, the shopping is completed;
    B0状态:用户操作控制器进入退货程序,摄像头监控用户是否空手进入购物车H1平面以下;B0 state: the user operates the controller to enter the return procedure, and the camera monitors whether the user enters the shopping cart H1 plane empty hand;
    B1状态:摄像头监控用户是否手持物品从H1平面以下进入监控区域同时,用户是否通过商品扫码器扫码;B1 state: the camera monitors whether the user holds the item from below the H1 plane into the monitoring area, and whether the user scans the code through the commodity scanner;
    B2状态:摄像头监控用户是否在扫码后手持物品拿出监控区域;B2 status: The camera monitors whether the user takes the item out of the monitoring area after scanning the code;
    B3状态:用户未扫码即将物品拿出监控区域的,控制器等待称重传感器减少值并查询是否与已购买任意一个产品的理论重量相同;B3 state: If the user does not scan the code and takes out the item out of the monitoring area, the controller waits for the load cell to decrease the value and queries whether it is the same as the theoretical weight of any product purchased;
    B4状态:用户扫码后将物品拿出监控区域的,控制器等待称重传感器减少值并查询是否 与已扫码的产品理论重量相同;B4 state: After the user scans the code and takes the item out of the monitoring area, the controller waits for the load cell to reduce the value and queries whether The theoretical weight is the same as the product scanned code;
    B5状态:将实际产品重量信息和B3或B4状态实际检测值做比对是否一致。B5 status: Whether the actual product weight information is compared with the actual detected value of the B3 or B4 status.
    当称重传感器计重不变时,则顾客没有将商品放进购物筐里或者空手操作,若商品已扫码,控制器会提示扫码成功,进入步骤S4,检测是否有违规操作;若商品未扫码,摄像头采集购物筐内的图像信息传递至控制器进行图像判断,判断空手还是手持物体;若手持物体则进入步骤S2,若空手则忽略此次动作;When the weight of the weighing sensor is constant, the customer does not put the product into the shopping basket or operates empty hand. If the product has been scanned, the controller will prompt the scanning code to be successful, and proceeds to step S4 to detect whether there is a violation operation; If the code is not scanned, the camera collects the image information in the shopping basket and transmits it to the controller for image judgment to determine whether the empty hand is still a hand-held object; if the object is hand-held, the process proceeds to step S2, and if the hand is empty, the action is ignored;
    当称重传感器计重增加时,表示商品未扫码或者扫码未成功直接放入了购物筐里,则会提示拿出重新扫码,进入步骤S6,检测拿出的商品是否为刚才放入的商品;When the weighing weight of the weighing sensor increases, it indicates that the product has not been scanned or the scanning code is not successfully placed directly into the shopping basket, and then prompts to take out the rescanning code, and proceeds to step S6 to detect whether the taken product is just placed. Products of;
    当称重传感器计重计重减小时,表示已经完成一次购买过程,则会提示退货请扫码,并进入步骤S3,检测是否有不符合退货的违规操作;When the weight of the weighing sensor is reduced, it means that the purchase process has been completed, then the return code is scanned, and the process proceeds to step S3 to check whether there is a violation operation that does not meet the return;
    S2、该步骤是在确定了手中有物品后;S2, the step is after determining that there is an item in the hand;
    若称重传感器计重不变,则说明商品未进入购物筐,控制器提示扫码,当扫码成功后进入步骤S4;If the weight of the weighing sensor does not change, the product does not enter the shopping basket, the controller prompts to scan the code, and when the scanning code is successful, the process proceeds to step S4;
    若称重传感器计重计重减小,则说明顾客存在偷换商品的违规操作,控制器会提示违规操作走人工通道;If the weight of the weighing sensor is reduced, it means that the customer has the illegal operation of stealing the goods, and the controller will prompt the illegal operation to take the artificial channel;
    若称重传感器计重增加,则说明顾客在未扫码的情况下又放入了新商品,控制器会提示新商品请拿出,进入步骤S6,检测拿出的商品是否符合,以免偷换商品;If the weighing weight of the weighing sensor is increased, it means that the customer has placed a new product without scanning the code, and the controller will prompt the new product to be taken out, and proceed to step S6 to check whether the taken product is in conformity, so as to avoid stealing. commodity;
    S3、当步骤S1中检测到计重减小信号,此时手已经在摄像头检测的区域内,根据检测到的运动目标质心所在位置进行判断;S3. When the weight reduction signal is detected in step S1, the hand is already in the area detected by the camera, and the judgment is made according to the detected position of the center of mass of the moving target;
    当质心在购物筐中心区域外,则认为顾客已经将商品拿出且未扫码,而不能确定顾客拿出的是哪一个商品,故会提示违规操作,请走人工通道;When the center of mass is outside the center of the shopping basket, it is considered that the customer has taken out the product and has not scanned the code, and cannot determine which product the customer took out, so the illegal operation will be prompted, please take the artificial channel;
    当质心在购物筐中心区域内,会采集计重器的实时重量变化信息;如果计重不变,说明在正常退货过程,需要再扫码,故此时由反馈的扫码信号确定是否退货成功;若未扫码则控制器会提示退货请扫码;若已扫码则会进行重量匹配,判断拿出的商品是否符合扫码的商品;若符合则会提示请拿出并进入步骤S5,检测拿出过程中的违规操作;若不符合,则认为顾客拿出的商品不正确,提示请走人工通道;如果计重增加,则进行重量匹配,若匹配不符合,则认为顾客放入了其他商品,控制器提示请走人工通道;若匹配符合,则进行图像判断,以防顾客放入同重量的商品;如果计重减小,则认为同时拿出两件商品退货,控制器会提醒顾客;所述图像判断是通过先对彩色原图进行灰度转换后,再对其进行运动检测并确定运动目标质心,当质心在购物筐监控中心区域内后,对彩色原图进行肤色检测,将运动检测结果和肤色检测结果求和得到完整运动目标图像,接着将完整运动目标结果与肤色结果相减得到去 肤色运动目标;然后计算出去肤色运动图像中像素值为255的像素点个数作为去肤色面积,并算出肤色质心以下完整运动目标的信息熵,如果连续多帧检测的去肤色面积大于阈值A或者肤色质心以下运动区域的信息熵大于阈值B,可认为是手持物体在购物筐中,反之认为是空手,需对背景进行更新;When the center of mass is in the center of the shopping basket, the real-time weight change information of the weight is collected; if the weight is unchanged, it means that the code needs to be scanned again during the normal return process, so the feedback code of the feedback determines whether the return is successful; If the code is not scanned, the controller will prompt the return, please scan the code; if the code has been scanned, the weight will be matched to determine whether the goods that are taken out meet the product of the scan code; if it meets the prompt, please take it out and proceed to step S5 to detect Take out the illegal operation in the process; if it does not, it means that the customer's goods are not correct, please prompt to take the manual channel; if the weight is increased, the weight matching will be carried out. If the matching does not match, the customer is considered to have placed other Goods, the controller prompts to take the artificial channel; if the match is met, the image is judged to prevent the customer from putting the same weight of the goods; if the weight is reduced, it is considered that the two items are returned at the same time, the controller will remind the customer The image is judged by performing gradation conversion on the color original image, then performing motion detection and determining the moving target centroid, when the centroid is in the shopping basket monitoring After the region of the color original skin color detection, skin color motion detection result and the detection result obtained by summing target image full motion, full motion then the target color and the results obtained to the subtraction result The skin color moving target; then calculating the number of pixel points in the skin color moving image with the pixel value of 255 as the skin color area, and calculating the information entropy of the complete moving object below the skin color center of mass, if the skin color area of the continuous multi-frame detection is greater than the threshold A or The information entropy of the motion region below the skin color center of mass is greater than the threshold B, which can be considered as a hand-held object in the shopping basket, and vice versa is considered to be an empty hand, and the background needs to be updated;
    S4、当步骤S1提示扫码成功后,摄像头会检测运动目标的质心位置,若检测到质心在购物筐中心区域外,则认为顾客在退货,故会提示其重新扫码,完成退货过程;S4. After the step S1 prompts that the scan code is successful, the camera detects the centroid position of the moving target. If the centroid is detected outside the central area of the shopping basket, the customer is deemed to be returning, so the user is prompted to rescan the code to complete the return process;
    由计重器反馈的实时重量变化信息分成三种情况;计重不变时,只需判断质心的位置;The real-time weight change information fed back by the weight is divided into three cases; when the weight is constant, only the position of the centroid is judged;
    计重减小时;则认为顾客未扫码就拿出商品,提醒顾客违规操作,需走人工通道;When the weight is reduced, it is considered that the customer takes out the goods without scanning the code, reminding the customer to operate illegally, and needs to take the artificial passage;
    计重增加时,商品已经放入购物车,此时进行重量匹配;如果符合,图像判断顾客的手是否持有物品,若手持物品,则认为手中拿有两个等重量但不等价格的物体,扫码的商品可能会和放入的商品不同,故会认为是违规操作并提示走人工通道;若空手,则认为购买成功,会提示可继续购物,并回到步骤S1;如果不符合,则会提醒拿出新商品,进入步骤S6,检测拿出过程中是否有违规操作;When the weight is increased, the product has been placed in the shopping cart, and the weight is matched at this time; if it is met, the image judges whether the customer's hand holds the item, and if the item is held, it is considered that the object has two objects of equal weight but not equal price. The product of the scan code may be different from the product put in, so it is considered to be a violation of the operation and prompt to take the artificial channel; if it is empty, it is considered that the purchase is successful, it will prompt to continue shopping, and return to step S1; if not, Will remind you to take out new products, go to step S6, and check if there is any illegal operation during the process of taking out;
    S5、该步骤是退货过程中重量匹配后,检测拿出商品时是否有违规操作;S5. This step is to check whether there is a violation operation when the product is taken out after the weight is matched in the returning process;
    当计重增加或计重减小都认为是违规操作;When the weight is increased or the weight is reduced, it is considered to be a violation operation;
    当计重不变时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,退货结束,返回到步骤S1,继续购物;When the weight is constant, according to the difference binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the commodity has exited the monitoring area, the return is over, and the process returns to step S1 to continue shopping;
    S6、该步骤是在购买过程中检测出重量不匹配,提示拿出商品时检测拿出的商品是否与放入的商品相同;S6. In this step, the weight mismatch is detected during the purchase process, and the product detected when the product is taken out is the same as the inserted product;
    当计重增加时,认为未拿出商品还继续放入新商品是非常规购物操作,会提醒顾客;When the weight is increased, it is an unconventional shopping operation that the product is not taken out and continues to be placed in the new product, which will remind the customer;
    当计重减小时,根据前一帧与当前帧的差分二值图像,若白色像素面积小于很小的阈值以内就说明商品已退出监控区域,将正确的商品拿出后会步骤S1,继续购物。When the weight is reduced, according to the differential binary image of the previous frame and the current frame, if the white pixel area is less than a small threshold, the product has exited the monitoring area, and after the correct product is taken out, step S1 is continued to continue shopping. .
  4. 根据权利要求2所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:各状态具体为:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 2, wherein each state is specifically:
    A0状态:当负责算法的平板控制器启动时,购物车上的电子称重秤、商品扫码器和摄像头开始工作;根据摄像头反馈的图像数据,图像处理算法给出当前时刻监控区域是否有运动;若无运动,本次判断结束,下次逻辑判断依然为A0状态,直到监控区域出现运动,认为用户开始进行购买行为中的系列操作,开始判断用户是否存在多手操作;若监控区域内存在多只手,以ERROR结束,否则,根据用户进入监控过程中是否手持物品,将标志位变量flag赋值,作为A1状态中后续判断的依据之一,并以A1状态结束当前逻辑判断;A0 state: When the tablet controller responsible for the algorithm starts, the electronic weighing scale, the commodity scanner and the camera on the shopping cart start working; according to the image data fed back by the camera, the image processing algorithm gives the current monitoring area whether there is motion. If there is no motion, the judgment ends, the next logical judgment is still A0 state, until the movement occurs in the monitoring area, the user is considered to start the series of operations in the purchase behavior, and it is judged whether the user has multi-hand operation; if there is any monitoring area Multiple hands, end with ERROR, otherwise, according to whether the user enters the monitoring process whether the item is held, the flag variable flag is assigned as one of the basis for subsequent judgment in the A1 state, and the current logic judgment is ended in the A1 state;
    A1状态:此状态中,控制器首先判断是用户是否完成扫描商品条码的操作;若当前已扫 码,则认为用户通过扫码完成商品信息录入,下一个动作应为将手中已扫码商品放入购物车中,以A2状态结束此次逻辑判断;若此时尚未扫码,则根据图像处理算法,分为监控区域有运动和监控区域无运动两种情况;A1 state: In this state, the controller first determines whether the user completes the operation of scanning the product barcode; if the current scan has been performed Code, it is considered that the user completes the product information entry by scanning the code. The next action should be to put the scanned product in the shopping cart into the shopping cart, and end the logic judgment in the A2 state; if the code has not been scanned at this time, according to the image processing The algorithm is divided into two situations: the monitoring area has motion and the monitoring area has no motion;
    监控区域有运动时,判断是否有运动低于H3平面,以结合A0状态中得到的标志位变量flag的值,防止用户在扫描条码前违规用手中未购买商品替换购物车内已购买商品;运动低于H3面时,若flag的值为false,认为存在潜在的替换偷盗风险,本次逻辑判断以ERROR结束,等待用户清空购物车;运动低于H3平面但flag的值为true或运动高于H3平面,本次逻辑判断结束,下次判断依然处于A1状态,以A1位置作为起始位置;监控区域没有运动,则认为在A0状态中进入监控区域的运动已结束,此时根据运动过程中的监控结果,决定本次逻辑判断的终点,若发现出监控过程中存在手持物品出监控区域的现象,以ERROR结束,否则正常结束,下次判断进入A3状态;When there is motion in the monitoring area, it is judged whether the motion is lower than the H3 plane, and the value of the flag variable flag obtained in the A0 state is combined to prevent the user from replacing the purchased item in the shopping cart by the unpurchased item before scanning the barcode; Below the H3 face, if the value of flag is false, it is considered that there is a potential risk of replacing theft. This logic judges to end with ERROR, waiting for the user to empty the shopping cart; the motion is lower than the H3 plane but the value of flag is true or the motion is higher than H3 plane, the logic judgment ends, the next judgment is still in the A1 state, with the A1 position as the starting position; if there is no motion in the monitoring area, it is considered that the movement into the monitoring area in the A0 state has ended, according to the movement The monitoring result determines the end point of this logical judgment. If it is found that there is a phenomenon that the hand-held item is out of the monitoring area during the monitoring process, it ends with ERROR, otherwise it ends normally, and the next time it judges to enter the A3 state;
    A2状态:用户完成扫码操作后进入A3状态。首先判断当前监控区域是否存在运动;监控区域有运动,则认为用户尚未完成将手中已扫码商品放入购物车并将手退出视场的动作;为防止用户通过替换操作完成偷盗行为,规定不允许多只手对商品进行操作;若存在多手操作,以ERROR结束,若单手操作,则以A2状态结束当前逻辑判断;监控区域无运动,下一步判断出监控过程是存在手持商品现象,存在则以ERROR结束;不存在,进入A4状态,结束此次逻辑判断;A2 state: The user enters the A3 state after completing the scan operation. Firstly, it is judged whether there is motion in the current monitoring area; if there is motion in the monitoring area, it is considered that the user has not completed the action of putting the scanned product in the shopping cart and withdrawing the hand from the field of view; in order to prevent the user from completing the theft by the replacement operation, the provision is not Allow multiple hands to operate on the merchandise; if there is multi-hand operation, end with ERROR, if one-handed operation, the current logic judgment is ended in the A2 state; there is no motion in the monitoring area, and the next step is to judge that there is a hand-held commodity phenomenon in the monitoring process. Existence ends with ERROR; does not exist, enters the A4 state, and ends this logic judgment;
    A3状态:用户进入监控区域,未扫码,空手出监控区域后,进入A3状态;A3状态下完成的是等待重量稳定后与理论重量进行匹配,期间不允许用户进入监控区域;首先判断监控区域的运动状态,有运动则以ERROR结束;无运动则根据电子称重秤判断重量是否稳定;重量不稳定,依旧以A3结束本次逻辑判断;重量稳定则对当前实际重量及理论重量进行匹配;重量匹配则回到初始状态A0,结束本次判断;不匹配则以ERROR结束;A3 state: the user enters the monitoring area, does not scan the code, and enters the A3 state after emptying the monitoring area; the A3 state completes the matching with the theoretical weight after waiting for the weight to stabilize, and does not allow the user to enter the monitoring area during the period; first judge the monitoring area The state of motion, the movement ends with ERROR; if there is no movement, the weight is determined according to the electronic weighing scale; the weight is unstable, and the logic judgment is still ended with A3; the weight is stable to match the current actual weight and the theoretical weight; The weight matching returns to the initial state A0, ending the current judgment; if it does not match, it ends with ERROR;
    A4状态:用户扫码后将商品放入购物车并退出监控区域,进入A4状态;A4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域;A4 status: After scanning the code, the user puts the product into the shopping cart and exits the monitoring area to enter the A4 state; the A4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
    A5状态:用户扫描商品条码后,算法需要通过网络,从服务器端取得与商品条码对应的商品理论重量等信息。网络会有一定程度的延迟,因此引入A5状态,等待获取商品条码对应实际信息;重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配;若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次购物完成”;若不匹配,则以ERROR结束;同样,A5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束;A5 status: After the user scans the product barcode, the algorithm needs to obtain information such as the theoretical weight of the product corresponding to the product barcode from the server through the network. The network will have a certain degree of delay, so the A5 state is introduced, waiting for the actual information corresponding to the product barcode; after the weight is stable, waiting for the actual information of the scanned product, according to the weight value and the theoretical weight value provided by the current electronic weighing scale, Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this shopping is completed"; if it does not match, it ends with ERROR; similarly, the A5 state requires the user not to enter the monitoring area. To avoid the risk of theft, if the surveillance area has exercise during this period, it ends with ERROR;
    B0状态,退货的初始状态为B0,此状态中首先判断的是当前监控区域是否有运动;若 监控区域无运动,认为用户尚未开始退货的相关操作,结束当前逻辑判断,状态依然为B0;对于监控区域有运动,认为用户进入监控区域;若此时存在用户多只手进入监控区域的现象,图像算法给出“多手操作”的判定,以ERROR结束;对于符合操作规范的“单手操作”,进一步判断用户在进入监控区域的过程中是否手中持有商品;存在进入过程手持商品,以ERROR结束;否则进入B1状态,结束本次逻辑判断;B0 state, the initial state of the return is B0, the first judgment in this state is whether the current monitoring area has motion; There is no motion in the monitoring area. The user has not started the operation related to the return of the goods. The current logic judges that the status is still B0. If there is motion in the monitoring area, the user is considered to enter the monitoring area. If there are multiple users entering the monitoring area at this time, The image algorithm gives a "multi-hand operation" decision, ending with ERROR; for the "one-hand operation" that conforms to the operating specification, it is further determined whether the user holds the goods in the process of entering the monitoring area; ERROR ends; otherwise, enter the B1 state, and end this logical judgment;
    B1状态:B1状态中完成的功能为等待用户拿起购物车内待退货商品并扫码;当逻辑判断进入B1时,首先检查当前用户是否完成扫码动作;已扫码,则以进入B2状态结束本次逻辑判断;未扫码,则判断监控区域是否有运动;监控区域无运动,认为用户这一系列的行为为空手进入购物车监控区域,最后未退货,出监控区域,以进入B3状态结束此次逻辑判断;监控区域有运动,则继续判断是否存在多手操作。存在多只手操作,则以ERROR结束;不存在则保持B1状态结束本次逻辑判断;B1 state: The function completed in the B1 state is to wait for the user to pick up the goods to be returned in the shopping cart and scan the code; when the logic judges to enter B1, first check whether the current user completes the scanning operation; if the code has been scanned, the user enters the B2 state. End this logical judgment; if the code is not scanned, it is judged whether there is motion in the monitoring area; the monitoring area has no motion, and the user's behavior in this series is considered to be empty-handed to enter the shopping cart monitoring area, and finally the return is not returned, and the monitoring area is exited to enter the B3 state. End this logical judgment; if there is motion in the monitoring area, continue to judge whether there is multi-hand operation. If there are multiple hand operations, it ends with ERROR; if it does not exist, the B1 state is kept to end this logical judgment;
    B2状态:用户进行退货扫码后进入B2状态;该状态完成的功能是等待用户将已扫码商品拿出监控区域;首先判断监控区域是否有运动;若无运动,则认为用户已经拿出已扫码商品,以进入B4状态结束;在完成扫码后,不允许用户低于H3平面,以规避替换风险;因此,对于有运动的情况,若低于H3面有运动,则以ERROR结束,否则保持B2状态结束本次逻辑判断;B2 state: the user enters the B2 state after performing the return scan code; the function completed by the state is to wait for the user to take the scanned code product out of the monitoring area; firstly, it is judged whether the monitoring area has motion; if there is no motion, the user is considered to have taken out the already Scan the goods to enter the B4 state; after completing the scan code, the user is not allowed to be lower than the H3 plane to avoid the replacement risk; therefore, for the case of motion, if there is motion below the H3 surface, the ERROR ends. Otherwise, the B2 state is maintained to end this logical judgment;
    B3状态:用户在扫码前离开监控区域,此时进入B3状态;B3状态功能为等待重量稳定后,匹配当前实际重量和理论重量;B3状态中不允许用户进入监控区域;B3 state: The user leaves the monitoring area before scanning the code, and enters the B3 state at this time; the B3 state function matches the current actual weight and the theoretical weight after waiting for the weight to stabilize; the user is not allowed to enter the monitoring area in the B3 state;
    B4状态:用户扫码后将商品拿出购物车并退出监控区域,进入B4状态;B4状态完成的是等待重量稳定,并规定期间不允许用户进入监控区域;B4 state: After the user scans the code, the product is taken out of the shopping cart and exits the monitoring area, and enters the B4 state; the B4 state is completed waiting for the weight to be stable, and the user is not allowed to enter the monitoring area during the specified period;
    B5状态:B5状态完成功能与A5状态类似,为等待获取商品条码对应实际信息;重量稳定后,等待获取扫码商品的实际信息后,根据当前电子称重秤提供的重量值与理论重量值,将二者进行匹配;若匹配,则当前购物过程完成,回到初始状态A0,提示用户“本次退货完成”;若不匹配,则以ERROR结束;B5 status: The B5 status completion function is similar to the A5 status. In order to wait for the actual barcode information corresponding to the product, after waiting for the actual information of the scanned product, the weight value and the theoretical weight value provided by the current electronic weighing scale are obtained. Match the two; if it matches, the current shopping process is completed, return to the initial state A0, prompting the user to "this return is completed"; if it does not match, it ends with ERROR;
    同样,B5状态要求用户不得进入监控区域,以规避偷盗风险,若监控区域在此期间出现运动,则以ERROR结束。Similarly, the B5 status requires the user not to enter the surveillance area to avoid the risk of theft. If the surveillance area has motion during this period, it ends with ERROR.
  5. 根据权利要求2所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:所述A0状态、A2状态具体按照如下步骤进行:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 2, wherein the A0 state and the A2 state are specifically performed according to the following steps:
    (1)判断手的位置,以购物车开口为基准面H1,监控基准面上方是否存在目标,如有则保存图片;(1) Determine the position of the hand, use the shopping cart opening as the reference surface H1, monitor whether there is a target above the reference plane, and save the picture if any;
    (2)图像处理,通过建立肤色模型对第一步获得的图像进行处理; (2) image processing, processing the image obtained in the first step by establishing a skin color model;
    (3)判断持物状态,将第二步获得的图像进行二次判断。(3) Judging the holding state, and performing the second judgment on the image obtained in the second step.
  6. 根据权利要求5所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:第(1)步中包括如下分步骤:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 5, wherein the step (1) comprises the following sub-steps:
    (1.1)将深度图与H1面对比,高于H1面的部分为前景,当前景的面积大于一定阈值,则认为监控区域有运动;(1.1) The depth map is compared with H1, and the portion higher than the H1 surface is the foreground. If the area of the current scene is greater than a certain threshold, it is considered that the monitoring area has motion;
    (1.2)统计前景运动与监控区域各边的交点个数,将交点个数最大的边认为时运动物体进入的方向;(1.2) Statistic foreground movement and the number of intersections on each side of the monitoring area, and the side with the largest number of intersection points is considered to be the direction in which the moving object enters;
    (1.3)做一个将所有前景包含在内的前景的外接矩形;(1.3) Make a circumscribing rectangle of the foreground that includes all foregrounds;
    (1.4)取外接矩形的内切圆中离步骤2中得到的进入边界最远的圆;(1.4) taking the circle farthest from the entry boundary obtained in step 2 in the inscribed circle of the circumscribed rectangle;
    (1.5)将彩色图像中圆所在部分的图像抠出,该图像即手或商品所在位置。(1.5) Pull out the image of the part of the circle in the color image, which is the position of the hand or the product.
  7. 根据权利要求5所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:第(2)步中包括如下分步骤:(2.1)按照公式1计算图像I在RGB三通道的均值μ,
    Figure PCTCN2017083075-appb-100001
    The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 5, wherein the step (2) comprises the following sub-steps: (2.1) calculating the image I in the RGB three-channel according to the formula 1. Mean μ,
    Figure PCTCN2017083075-appb-100001
    (2.2)根据(2.1)计算出的均值μ,按照公式2计算出图像I的协方差矩阵Cov,
    Figure PCTCN2017083075-appb-100002
    (2.2) Calculate the covariance matrix Cov of the image I according to the formula 2 according to the mean μ calculated by (2.1),
    Figure PCTCN2017083075-appb-100002
    公式2中ωi的计算公式如下:
    Figure PCTCN2017083075-appb-100003
    The formula for calculating ω i in Equation 2 is as follows:
    Figure PCTCN2017083075-appb-100003
    (2.3)根据(2.1)、(2.2)计算得到的均值和协方差矩阵计算出投影矩阵Pro,Pro=μ*Cov。(2.3) Calculate the projection matrix Pro, Pro=μ*Cov according to the mean and covariance matrix calculated by (2.1) and (2.2).
  8. 根据权利要求5所述的一种基于超市购物车的智能购物系统的控制方法,,其特征在于:第(3)步中包括如下分步骤:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 5, wherein the step (3) comprises the following sub-steps:
    (3.1)采集以肤色为主的图像集,要求除肤色区域外,其它区域灰度值为0;(3.1) Collecting a skin color-based image set, requiring that the grayscale value of other regions be 0 other than the skin color region;
    (3.2)利用(3.1)中图像集,并依据第(2)步中的方法计算得出图像集肤色区域的均值,协方差矩阵以及投影矩阵,并根据投影矩阵确定肤色区域的投影范围;(3.2) Using the image set in (3.1), and calculating the mean, covariance matrix and projection matrix of the skin color region of the image set according to the method in step (2), and determining the projection range of the skin color region according to the projection matrix;
    (3.3)输入一张具有肤色区域的图像,利用(3.2)中求得的均值与协方差矩阵计算该图像每个像素点对应的投影矩阵,若该投影矩阵在(3.2)中所计算的投影矩阵范围内,则认为该像素点为肤色,否则为非肤色。(3.3) Input an image with a skin color region, calculate the projection matrix corresponding to each pixel of the image by using the mean and covariance matrix obtained in (3.2), if the projection matrix is calculated in (3.2) Within the matrix, the pixel is considered to be skin color, otherwise it is not skin color.
  9. 根据权利要求5所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:还包括手持商品判断步骤,具体为:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 5, further comprising: a step of determining a hand-held product, specifically:
    (4.1)将模块二中提供的切割过后有效运动图像进行第一判断,若图像为空即切割后图 像没有运动部分,那么直接判定为空手;(4.1) Perform the first judgment on the cut effective motion image provided in Module 2, and if the image is empty, the cut image Like no moving part, it is directly judged to be empty;
    (4.2)若第一判断中图像不为空,对切割后肤色二值图像进行第二判断,若图像为空,即运动切割图像中不存在肤色部分,那么直接判定为手持物品;(4.2) If the image in the first judgment is not empty, the second determination of the skin color binary image after cutting is performed, and if the image is empty, that is, there is no skin color portion in the motion cut image, then the hand-held article is directly determined;
    (4.3)若第二判断中图像不为空,计算运动灰度图像的最大轮廓面积与面积阈值b进行第二判断;(4.3) if the image is not empty in the second determination, calculate a maximum contour area of the motion gray image and an area threshold b to perform a second determination;
    (4.4)如果最大轮廓面积大于面积阈值b,那么进行肤色置位;(4.4) If the maximum contour area is larger than the area threshold b, then the skin color is set;
    (4.5)如果最大轮廓面积小于面积阈值,那么将彩色图像转换到HSV颜色空间,提取S通道。(4.5) If the maximum contour area is smaller than the area threshold, the color image is converted to the HSV color space, and the S channel is extracted.
  10. 根据权利要求9所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:第(4.4)中包括分步骤为:The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 9, wherein the step (4.4) comprises the following steps:
    (4.4.1)对置位后灰度图像计算信息熵;(4.4.1) calculating the information entropy of the grayscale image after the setting;
    (4.4.2)对信息熵进行第四判断,如果信息熵大于阈值a,那么判断为携带商品,否则判断为空手;(4.4.2) The fourth judgment is made on the information entropy. If the information entropy is greater than the threshold a, then it is judged to carry the commodity, otherwise it is judged to be empty;
    第(4.5)中包括分步骤为:The sub-steps included in (4.5) are:
    (4.5.1)计算该通道信息熵,进行第五判断,如果信息熵大于阈值c,那么判断为携带商品,否则判断为空手。(4.5.1) Calculate the information entropy of the channel, and perform a fifth judgment. If the information entropy is greater than the threshold c, it is determined to carry the commodity, otherwise it is judged to be empty.
  11. 根据权利要求10所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:阈值a和c是根据实际使用环境进行适应性调整,图像越清晰阈值a越大;在分辨率为320*240的图像中面积阈值b等于50;在肤色检测完整前提下,纯手的信息熵为零。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 10, wherein the thresholds a and c are adaptively adjusted according to the actual use environment, and the clearer the image, the larger the threshold a; The area threshold b is equal to 50 in the image of 320*240; under the premise of skin color detection, the information entropy of the pure hand is zero.
  12. 根据权利要求11所述的一种基于超市购物车的智能购物系统的控制方法,,其特征在于:在光照充足实验室条件下我们给予一个经验值a=1.4,c=6.5。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 11, characterized in that, under the condition of sufficient light, we give an experience value a=1.4, c=6.5.
  13. 根据权利要求5所述的一种基于超市购物车的智能购物系统的控制方法,,其特征在于:还包括判断用户购物和退货过程中是否违规操作;在购买过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行是否手持商品的判断,并保存下来,每当出现交集面积从零变换到非零的交界,便对保存的手持商品判断结果清零,当交集面积变换到零时,重新开始对交集面积为零的每一帧进行是否手持商品的判断并保存,反复进行这些操作直到监控视野内无运动,将最后保存下来的数据进行统计,若手持商品的比率大于一定阈值,则可判定该退出过程中手持商品退出,为违规操作;在退货过程中,从监控视野内有运动开始,对与基准面H1交集面积为零的每一帧进行手持商品判断并保存判断结果,第一次出现交集面积为非零时,就对保存的数据累计计算手持商品的比率,若大于一定阈值,则可判定为手持商品进入,则为违规操作,然后将结果清零直到下一次退货过程重新开始。 The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 5, further comprising: determining whether the user operates illegally during the shopping and returning process; and during the purchasing process, there is motion from the monitoring field of view. Initially, whether or not the hand-held product is judged for each frame having the intersection area of the reference plane H1 is zero, and is saved, and whenever the intersection area changes from zero to a non-zero boundary, the judgment result of the stored hand-held product is cleared. When the intersection area is changed to zero, the judgment of whether or not the hand-held product is judged and saved for each frame with the intersection area of zero is restarted, and these operations are repeated until there is no motion in the monitoring field of view, and the last saved data is counted. If the ratio of the hand-held goods is greater than a certain threshold, it can be determined that the hand-held goods are withdrawn during the exiting process, which is an illegal operation; in the returning process, starting from the motion in the monitoring field of view, each frame having an intersection area with the reference plane H1 is zero. Hand-held goods judge and save the judgment result. When the intersection area is non-zero for the first time, the saved data is saved. Calculating a ratio of the count holding goods, if more than a certain threshold, can be determined for the goods into a handheld, for the illegal operation, and the result is returned until the next clear the process begins anew.
  14. 根据权利要求3所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:当且仅当逻辑状态处于购物过程中的A0状态时,允许用户通过手动点击用户界面的退货按钮,使逻辑状态进入退货的B0状态;退货过程规定用户只能使用一只手来对商品进行操作,退货是从购物车内拿起商品进行退货,因此规定用户进入监控区域时手中不得持有商品,以规避替换行为带来的偷盗风险。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 3, wherein the user is allowed to manually click the return button of the user interface if and only when the logic state is in the A0 state during the shopping process. , the logic state enters the B0 state of the return; the return process stipulates that the user can only use one hand to operate the goods, and the return is to pick up the goods from the shopping cart for return, so the user is allowed to hold the goods when entering the monitoring area. To avoid the risk of theft caused by the replacement behavior.
  15. 根据权利要求3所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:单个操作过程只允许购买一件商品;用户将商品拿入监控区域后必须购买,通过A1状态和A2状态的出监控过程是否手持商品来判断;允许用户在购买过程中的A0状态下翻动查看车内已购买商品,但均要求用户在进入监控区域时必须空手。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 3, wherein: a single operation process only allows one item to be purchased; the user must purchase the item after entering the monitoring area, and pass the A1 status and Whether the monitoring process of the A2 state is held by the handhold product; the user is allowed to flip through the purchased goods in the A0 state during the purchase process, but the user is required to be empty when entering the monitoring area.
  16. 根据权利要求3所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:单个操作过程只允许退掉一件商品;允许用户在退货的B0状态下翻动查看车内已购买商品,但均要求用户在进入监控区域时必须空手。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 3, wherein: a single operation process only allows one item to be returned; allowing the user to flip through the returned B0 state to view the purchased item in the vehicle. Commodities, but all require users to be empty when entering the surveillance area.
  17. 根据权利要求3所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:用户完成扫描条码、放入购物车、手退出监控区域后,等待“本次购物完成”出现后,一次完整的购买操作结束,才允许进行下一次的购买等操作,体现在A4、A5状态中的监控区域是否有运动的判断。The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 3, wherein after the user completes scanning the barcode, puts it into the shopping cart, and exits the monitoring area, the user waits for the "this shopping is completed" to appear. At the end of a complete purchase operation, the next purchase is allowed, and the movement in the monitoring area in the A4 and A5 states is judged.
  18. 根据权利要求3所述的一种基于超市购物车的智能购物系统的控制方法,其特征在于:在初始A0状态时允许用户通过点击“退货”按钮进入退货初始状态B0,每次只支持一件已购买商品的退货行为,包括扫描购物车内待退货商品条码并拿出的过程,在此过程结束后,如判断为正常的退货行为,逻辑状态回到初始状态A0。 The method for controlling a smart shopping system based on a supermarket shopping cart according to claim 3, characterized in that: in the initial A0 state, the user is allowed to enter the return initial state B0 by clicking the "return" button, and only one piece is supported at a time. The return behavior of the purchased goods, including the process of scanning the barcode of the goods to be returned in the shopping cart and taking out the process, after the end of the process, if it is judged to be a normal return behavior, the logic state returns to the initial state A0.
PCT/CN2017/083075 2016-06-13 2017-05-04 Intelligent shopping system based on supermarket shopping cart and control method therefor WO2017215362A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201610414195.3 2016-06-13
CN201610414195.3A CN105915857A (en) 2016-06-13 2016-06-13 Monitoring system and monitoring method for supermarket shopping cart
CN201611025458.8A CN106709422A (en) 2016-11-16 2016-11-16 Supermarket shopping cart hand identification method and identification system thereof
CN201611022285.4A CN106672042B (en) 2016-11-16 2016-11-16 Method for judging shopping and goods returning process of intelligent shopping cart
CN201611022285.4 2016-11-16
CN201611025458.8 2016-11-16

Publications (1)

Publication Number Publication Date
WO2017215362A1 true WO2017215362A1 (en) 2017-12-21

Family

ID=60663441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083075 WO2017215362A1 (en) 2016-06-13 2017-05-04 Intelligent shopping system based on supermarket shopping cart and control method therefor

Country Status (1)

Country Link
WO (1) WO2017215362A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038999A (en) * 2018-02-05 2018-05-15 徐天宏 Intelligent unattended antitheft system for supermarket and its control method
CN108875664A (en) * 2018-06-27 2018-11-23 北京京东尚科信息技术有限公司 Recognition methods, device and the vending machine of selective purchase
CN111242094A (en) * 2020-02-25 2020-06-05 深圳前海达闼云端智能科技有限公司 Commodity identification method, intelligent container and intelligent container system
CN113781730A (en) * 2021-09-15 2021-12-10 深圳市智享科技发展有限公司 Intelligent supermarket with intelligent monitoring function
CN114757522A (en) * 2022-04-07 2022-07-15 南京邮电大学 Granary management system and method based on big data
US11526871B2 (en) * 2019-06-18 2022-12-13 Lg Electronics Inc. Cart robot
CN117422937A (en) * 2023-12-18 2024-01-19 成都阿加犀智能科技有限公司 Intelligent shopping cart state identification method, device, equipment and storage medium
CN117906734A (en) * 2024-03-20 2024-04-19 深圳桑达银络科技有限公司 Automatic leveling weighing cashing system and method based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102881100A (en) * 2012-08-24 2013-01-16 济南纳维信息技术有限公司 Video-analysis-based antitheft monitoring method for physical store
CN104766225A (en) * 2015-04-14 2015-07-08 广州智瞳信息科技有限公司 Self-service shopping device and method capable of recognizing improper shopping behaviors in shopping mall
CN104787102A (en) * 2015-04-28 2015-07-22 成坤 Intelligent shopping cart, intelligent shopping system and using method thereof
CN105083354A (en) * 2015-09-07 2015-11-25 张俊 Self-help shopping system, shopping cart and self-help shopping method
CN105915857A (en) * 2016-06-13 2016-08-31 南京亿猫信息技术有限公司 Monitoring system and monitoring method for supermarket shopping cart

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102881100A (en) * 2012-08-24 2013-01-16 济南纳维信息技术有限公司 Video-analysis-based antitheft monitoring method for physical store
CN104766225A (en) * 2015-04-14 2015-07-08 广州智瞳信息科技有限公司 Self-service shopping device and method capable of recognizing improper shopping behaviors in shopping mall
CN104787102A (en) * 2015-04-28 2015-07-22 成坤 Intelligent shopping cart, intelligent shopping system and using method thereof
CN105083354A (en) * 2015-09-07 2015-11-25 张俊 Self-help shopping system, shopping cart and self-help shopping method
CN105915857A (en) * 2016-06-13 2016-08-31 南京亿猫信息技术有限公司 Monitoring system and monitoring method for supermarket shopping cart

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038999A (en) * 2018-02-05 2018-05-15 徐天宏 Intelligent unattended antitheft system for supermarket and its control method
CN108038999B (en) * 2018-02-05 2024-04-05 徐天宏 Intelligent unmanned supermarket anti-theft system and control method thereof
CN108875664A (en) * 2018-06-27 2018-11-23 北京京东尚科信息技术有限公司 Recognition methods, device and the vending machine of selective purchase
US11526871B2 (en) * 2019-06-18 2022-12-13 Lg Electronics Inc. Cart robot
CN111242094A (en) * 2020-02-25 2020-06-05 深圳前海达闼云端智能科技有限公司 Commodity identification method, intelligent container and intelligent container system
CN113781730A (en) * 2021-09-15 2021-12-10 深圳市智享科技发展有限公司 Intelligent supermarket with intelligent monitoring function
CN114757522A (en) * 2022-04-07 2022-07-15 南京邮电大学 Granary management system and method based on big data
CN117422937A (en) * 2023-12-18 2024-01-19 成都阿加犀智能科技有限公司 Intelligent shopping cart state identification method, device, equipment and storage medium
CN117422937B (en) * 2023-12-18 2024-03-15 成都阿加犀智能科技有限公司 Intelligent shopping cart state identification method, device, equipment and storage medium
CN117906734A (en) * 2024-03-20 2024-04-19 深圳桑达银络科技有限公司 Automatic leveling weighing cashing system and method based on artificial intelligence

Similar Documents

Publication Publication Date Title
WO2017215362A1 (en) Intelligent shopping system based on supermarket shopping cart and control method therefor
CN105915857A (en) Monitoring system and monitoring method for supermarket shopping cart
KR102378059B1 (en) Weight monitoring-based article detection system and article detection method
RU2727084C1 (en) Device and method for determining order information
EP3262562B1 (en) System and method for the identification of products in a shopping cart
CN110866429B (en) Missing scanning identification method, device, self-service cashing terminal and system
CN108140209B (en) Information processing apparatus, information processing method, and recording medium having program stored therein
WO2020103487A1 (en) Self-service settlement method and device and storage medium
US8146811B2 (en) Cart inspection for suspicious items
RU2739542C1 (en) Automatic registration system for a sales outlet
US10503961B2 (en) Object recognition for bottom of basket detection using neural network
US10372998B2 (en) Object recognition for bottom of basket detection
JP2017068717A (en) Information processing apparatus, information processing method, and program
JP7257403B2 (en) Method and system for assisting purchases at a physical point of sale
CN108960132A (en) The purchasing method and its device of commodity in a kind of open automatic vending machine
CN109003403B (en) Shopping cart commodity weighing and pricing method, device and system
WO2019123714A1 (en) Information processing device, merchandise recommendation method, and program
US10248943B2 (en) Object recognition system for checkout lane management
US20220076322A1 (en) Frictionless inquiry processing
CN104778618A (en) Shopping and storing device
US20220414632A1 (en) Operation of a self-check out surface area of a retail store
CN112154488B (en) Information processing apparatus, control method, and program
Kaushik et al. Revamping Supermarkets With AI and RSSi
RU2785327C1 (en) Computer vision system in retail
US20220270061A1 (en) System and method for indicating payment method availability on a smart shopping bin

Legal Events

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

Ref document number: 17812474

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17812474

Country of ref document: EP

Kind code of ref document: A1