WO2022142899A1 - Store sales data analysis method, apparatus, electronic device, and storage medium - Google Patents

Store sales data analysis method, apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022142899A1
WO2022142899A1 PCT/CN2021/133107 CN2021133107W WO2022142899A1 WO 2022142899 A1 WO2022142899 A1 WO 2022142899A1 CN 2021133107 W CN2021133107 W CN 2021133107W WO 2022142899 A1 WO2022142899 A1 WO 2022142899A1
Authority
WO
WIPO (PCT)
Prior art keywords
statistical data
face
data
face statistical
store
Prior art date
Application number
PCT/CN2021/133107
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
Application filed by 深圳云天励飞技术股份有限公司 filed Critical 深圳云天励飞技术股份有限公司
Publication of WO2022142899A1 publication Critical patent/WO2022142899A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Definitions

  • the invention relates to the field of artificial intelligence processing, in particular to a method, device, electronic device and storage medium for analyzing store sales data.
  • the embodiment of the present invention provides a method for analyzing store sales data, which can analyze the implicit relationship among customers, employees, and commodities that affect store sales through face statistical data in various areas of the store, so as to improve the performance of the store in each area.
  • Dimensional sales data can help stores locate customers' purchasing expectations, thereby reducing trial and error costs during the purchase process.
  • an embodiment of the present invention provides a method for analyzing store sales data, the method comprising:
  • the statistical data includes face statistics of pedestrians passing through the shop;
  • the data includes facial statistics of customers entering the store;
  • Obtain a third designated area image perform face detection on the third designated area image, and obtain third face statistical data
  • the third designated area is located in the shelf area of the store, and the third face statistical data Data includes browsing product data, employee and browsing customer facial statistics;
  • Obtain a fourth designated area image perform face detection on the fourth designated area image, and obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data
  • the data includes the facial statistics of the checkout customer and the checkout item data;
  • the sales analysis of the store is performed according to the first face statistics data, the second face statistics data, the third face statistics data, and the fourth face statistics data.
  • the sales analysis includes sales data analysis and sales forecast analysis.
  • the store conducts sales analysis, including:
  • the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation calculation is carried out according to the result of the correlation calculation. Sales forecast analysis.
  • the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation is calculated according to the correlation.
  • the results of the calculation are carried out for the sales forecast analysis, including:
  • the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between the any two items Calculate the correlation between the any two items, and carry out the correlation according to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data.
  • the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation is calculated according to the correlation.
  • the results of the calculation are carried out for the sales forecast analysis, including:
  • the standard deviation of the first face statistical data calculates the first correlation between the first face statistics and the fourth face statistics.
  • the standard deviation of the second human face statistical data calculates the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the second human face statistical data and the fourth human face statistical data, calculate the a second correlation between the second face statistics and the fourth face statistics;
  • the standard deviation of the third human face statistical data calculates the The third correlation of the fourth face statistical data of the third face statistical data is performed, and the sales forecast analysis is performed according to the first correlation and/or the second correlation and/or the third correlation.
  • the standard deviation of the first human face statistical data the standard deviation of the fourth human face statistical data, the difference between the first human face statistical data and the fourth human face statistical data Calculate the first correlation between the first face statistics and the fourth face statistics, including:
  • the traffic flow of the pedestrians in the shop is obtained according to statistics
  • the number of checkout products is obtained by statistics
  • the standard deviation of the pedestrian flow calculates the difference between the pedestrian flow rate and the checkout item quantity correlation as the first correlation.
  • the standard deviation of the second human face statistical data the standard deviation of the fourth human face statistical data, the difference between the second human face statistical data and the fourth human face statistical data
  • the covariance of calculating the second correlation between the second face statistics and the fourth face statistics, including:
  • the number of customers entering the store is obtained by statistics
  • the standard deviation of the third human face statistical data calculates the third correlation of the fourth face statistical data of the third face statistical data, including:
  • the number of times or time of commodity wandering is obtained according to statistics
  • the standard deviation of the number of times of commodity wandering calculates the difference between the number of times of commodity wandering and the number of checkout commodities, respectively correlation as a third correlation;
  • the difference between the commodity lingering time and the checkout commodity quantity is calculated respectively. correlation as a third correlation.
  • an embodiment of the present invention further provides a store sales data analysis device, the device comprising:
  • the first acquisition module is used to acquire a first designated area image, and perform face detection on the first designated area image to obtain first face statistical data, and the first designated area is located in the area outside the store.
  • the first face statistical data includes the face statistical data of pedestrians passing through the store;
  • the second acquisition module is configured to acquire an image of a second designated area, perform face detection on the image of the second designated area, and obtain second face statistical data, and the second designated area is located in the door area of the store,
  • the second face statistical data includes face statistical data of customers entering the store;
  • a third acquisition module configured to acquire an image of a third designated area, perform face detection on the image of the third designated area, and obtain third face statistical data, and the third designated area is located in the shelf area of the store,
  • the third face statistical data includes browsing product data, employee and browsing customer face statistical data
  • a fourth acquisition module configured to acquire a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, where the fourth designated area is located in the cashier area of the store,
  • the fourth face statistical data includes face statistical data of checkout customers and checkout commodity data;
  • the analysis module is used to analyze the sales of the shop according to the first face statistics data, the second face statistics data, the third face statistics data and the fourth face statistics data.
  • an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program
  • the steps in the store sales data analysis method provided by the embodiment of the present invention are implemented.
  • an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for analyzing store sales data provided by the embodiment of the present invention is implemented steps in .
  • an image of a first designated area is acquired, and face detection is performed on the image of the first designated area to obtain first statistical data of faces, and the first designated area is located in an area outside the shop,
  • the first face statistical data includes face statistical data of pedestrians passing through the store;
  • a second designated area image is obtained, and face detection is performed on the second designated area image to obtain second face statistical data
  • the second designated area is located at the entrance area of the store, and the second face statistical data includes the face statistical data of customers entering the store;
  • the image of the third designated area is acquired, and the image of the third designated area is processed.
  • the third designated area is located in the shelf area of the store, and the third face statistical data includes browsing product data, employee and browsing customer face statistical data;
  • Four designated area images, and face detection is performed on the fourth designated area image to obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data includes The facial statistics data of the checkout customer and the checkout commodity data;
  • the sales analysis of the store is performed according to the first facial statistics data, the second facial statistics data, the third facial statistics data, and the fourth facial statistics data.
  • the present invention can analyze the implicit relationship among customers, employees and commodities that affect the sales of the store through the acquired face statistics data in various areas of the store, thereby improving the sales data of the store in various dimensions and helping the store to locate. Customers' purchase expectations, thereby reducing the trial and error cost in the purchase process, and ensuring the continuous operation of the store.
  • FIG. 1 is a flowchart of a method for analyzing store sales data provided by an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a store sales data analysis device provided by an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an analysis module provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a second processing submodule provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a first computing unit provided by an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a second computing unit provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a third computing unit provided by an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for analyzing store sales data provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • the above-mentioned first designated area is located in an area outside the shop door, and the first face statistics data include face statistics data of pedestrians passing by the shop.
  • the image of the first designated area may be collected by a first camera set at the door of the shop and shooting toward the outside of the shop.
  • the first camera will capture images regardless of whether the pedestrian enters the store or not.
  • the above-mentioned face detection for the first designated area may be performed by a first face detection engine, and the image of the first designated area is a large image, and the large image includes at least one pedestrian.
  • the first face detection engine you can Detect how many pedestrians are included in the large image, and output the pedestrian's face map, face feature values, etc.
  • the above-mentioned first face statistical data may include camera ID, camera position, pedestrian's face map, pedestrian's face feature value, capture time, number of shots, etc.
  • the above-mentioned pedestrian's face feature value may include the age of the pedestrian. , gender, etc.
  • the above-mentioned first face detection engine may be integrated in the first camera, and perform face detection on the captured image of the first designated area in real time.
  • the above-mentioned second designated area is located in the above-mentioned store entrance area, and the above-mentioned second face statistical data may include face statistical data of customers entering the store.
  • the above-mentioned second designated area image may be collected by a second camera disposed in the store and photographing at the entrance of the store.
  • the second camera When there is a customer entering the store in the second designated area of the store entrance area (which may be an area directly below the store entrance), the second camera will capture images regardless of whether the entering customer will buy a product.
  • the above-mentioned face detection on the image of the second designated area may be performed by a second face detection engine, and the image of the second designated area is a large image, and the large image includes at least one customer entering the store.
  • the engine can detect how many customers enter the store in the big picture, and output the face map and face feature values of the customers corresponding to the store.
  • the above-mentioned second face statistical data may include the camera ID, the position of the camera, the face map of the customer entering the store, the facial feature value of the customer entering the store, the capture time, etc.
  • the above-mentioned facial feature value of the customer entering the store may include: Age, gender, glasses, hats, accessories, etc. of customers entering the store.
  • the above-mentioned second face detection engine may be integrated in the second camera to perform face detection on the captured image of the second designated area in real time.
  • the above-mentioned third designated area is located in the shelf area of the store, and the above-mentioned third face statistical data may include browsing product data, employee and browsing customer face statistical data.
  • the image of the above-mentioned third designated area may be collected by a third camera that is arranged in the store and shoots at the shelf.
  • the third camera will capture images regardless of whether the browsing customer will purchase a product.
  • the above-mentioned face detection on the image of the third designated area may be carried out by a third face detection engine, and the image of the third designated area is a large image, and the large image includes at least one browsing customer. , you can detect how many browsing customers and whether there are employees in the big picture, and output the products browsed by the browsing customers, the face maps of employees and browsing customers, and the facial feature values, etc. correspondingly.
  • the above-mentioned third face statistical data may include camera ID, camera position, browsing customer's face map, browsing customer's facial feature value, capture time, browsing products, employee's face map, etc.
  • the facial feature values may include the browsing customer's age, gender, glasses, hats, accessories, and the like.
  • the above-mentioned third face detection engine may be integrated in a third camera to perform face detection on the captured image of the third designated area in real time.
  • the fourth designated area is located in the cash register area of the store, and the fourth face statistical data may include face statistical data of checkout customers and checkout commodity data.
  • the image of the above-mentioned fourth designated area may be collected by a fourth camera that is set in the shop and shoots in front of the cashier.
  • the fourth camera will perform image capture.
  • the above-mentioned face detection on the image of the fourth designated area may be performed by a fourth face detection engine, and the image of the fourth designated area is a large image, and the large image includes at least one checkout customer. , you can detect how many checkout customers and corresponding checkout products are included in the big picture, and output the checkout products that the checkout customer needs to checkout, the face map of the checkout customer, and the facial feature values, etc.
  • the above-mentioned fourth face statistical data may include the camera ID, the position of the camera, the face map of the checkout customer, the face feature value of the checkout customer, the capture time, the checkout product, etc.
  • the face feature value of the above-mentioned checkout customer may include: Checkout customer's age, gender, glasses, hats, accessories, etc.
  • human body detection can also be performed on the image of the fourth designated area to obtain the characteristic values of the checkout customer's wearing, such as the characteristic values corresponding to tops and bottoms, and the wearing characteristic values are bound to the fourth face statistical data.
  • the above-mentioned fourth face detection engine may be integrated in the third camera to perform face detection on the captured image of the fourth designated area in real time.
  • the sales analysis of the store may be performed according to a single item of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, for example, by
  • the traffic flow of pedestrians in the first face statistics data can be used to analyze the sales of shops. For example, if there are a lot of people after get off work at noon and in the afternoon, you can sell food and beverage products.
  • the sales analysis of the store is carried out through the age and gender of the customers entering the store in the second face statistics data. Further, for example, if most of the customers entering the store are young women, jewelry-type products can be sold.
  • the sales analysis of the store is carried out through the browsing customer and browsing product data in the third-party face statistical data.
  • the similar products of the browsing product can be sold.
  • the checkout customers and checkout products in the fourth face statistical data we can perform a shadowless analysis on the store. For example, if the checkout customer buys a shirt and pays the bill, the checkout product is a shirt, and the shirt can continue to be sold.
  • the above-mentioned sales analysis includes sales data analysis and sales forecast analysis
  • the above-mentioned first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data can be formed into graphic reports.
  • carry out the above sales data analysis according to the above-mentioned graphic report carry out correlation calculation according to at least two of the above-mentioned first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data , and conduct sales forecast analysis based on the results of the above correlation calculation.
  • sales data analysis can be called static analysis, and the sales forecast analysis can be called dynamic analysis.
  • the above-mentioned graphic report may be pedestrian traffic statistics, specifically, time-sharing traffic and facial feature value statistics. For example, from 8:00 to 9:00 on September 11, 2020, The total flow of people is 235, the flow of people over 20 is 200, the flow of men is 111, the flow of women is 124, etc.
  • the above-mentioned graphic report can be the traffic flow of customers entering the store, and specifically can be time-sharing traffic flow and facial feature value statistics, for example, from 8:00 to 9:00 on September 11, 2020 , the total number of people entering the store is 21, the number of people over the age of 20 is 18, the number of people who enter the store is 10, the number of people who wear a hat is 11, the number of people wearing hats is 3, the number of people wearing glasses is 4, and the number of people wearing jeans
  • the traffic flow is 21, the traffic flow of people wearing black tops is 13, etc.
  • the above-mentioned graphic and text report can be the wandering time or the number of wandering times of customers browsing in front of the shelves, and specifically can be the time-sharing face statistics on each shelf, the number of people wandering on each shelf, and the total wandering time statistics on each shelf. , Statistics on the number of shelf wanderings, and statistics on employee turnover. For example, from 8:00 to 9:00 on September 11, 2020, there were 5 people wandering on shelf A, and the total wandering time on shelf B was 4 hours (the wandering time in the case of multiple people is superimposed ), the number of wanderings on the C shelf is 24 times, and the staff on the D shelf has visited once, etc.
  • the above-mentioned graphic and text report can be the statistics of the number of customers who check out before the checkout and the type of goods to be checked out. For example, from 8:00 to 9:00 on September 11, 2020, 4 customers purchased goods And checkout, the goods purchased by checkout customer A are a, b, and the goods purchased by checkout customer B are a, c, and so on.
  • the above-mentioned graphic and text report can also be a time-sharing graph, a time-sharing trend graph, etc. of the first face statistical data and the second face statistical data, or can also be the distribution map of each shelf hot spot of the third face statistical data,
  • the histogram, the proportion of employees and browsing customers in the time period, etc. can also be the distribution and placement map of the proportion of checkout customers in the third face statistical data in the fourth face statistical data, and the placement map of checkout products, etc. .
  • the above-mentioned sales forecast analysis may be correlation analysis based on historical first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data.
  • historical first face statistics and second face statistics it is possible to analyze whether the flow of pedestrians is positively correlated with the flow of customers entering the store.
  • the historical first face statistical data and the fourth face statistical data it can be analyzed whether there is a positive correlation between the flow of pedestrians and the number of checkout customers (or the number of checkout items).
  • the historical second face statistics and fourth face statistics it can be analyzed whether there is a positive correlation between the flow of people entering the store and the number of checkout customers (or the number of checkout items).
  • third face statistical data and the fourth face statistical data it can be analyzed whether the wandering time or the number of wandering times of browsing customers is positively correlated with the number of checkout customers (or the number of checkout items), and so on.
  • the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between any two items may be used. , calculate the correlation between any two items, and carry out the sales according to the correlation of any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data Predictive analytics.
  • the above ⁇ xy is the correlation between the two variables of X and Y
  • the above Cov(X, Y) is the covariance between the two variables of X and Y
  • the above is the standard deviation of the X variable
  • the above is the standard deviation of the Y variable.
  • X can be any one of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data
  • Y can be any of the remaining three items. one.
  • the first face statistical data is X
  • Y may be any one of the second face statistical data, the third face statistical data, and the fourth face statistical data.
  • the above X is the mean value of the X variable
  • Y is the mean value of the Y variable.
  • the two variables X and Y have no relationship.
  • the value of X increases (decreases) and the value of Y increases (decreases)
  • the two variables are positively correlated, and the correlation is between 0.00 and 1.00.
  • the value of X increases (decreases) and the value of Y decreases (increases)
  • the two variables are negatively correlated, and the correlation is between -1.00 and 0.00.
  • the first face can be calculated according to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the first face statistical data and the fourth face statistical data.
  • the first correlation of the statistical data with the fourth human face statistical data; and/or according to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the second human face statistical data and the fourth human face covariance between statistical data calculating the second correlation between the second statistical data and the fourth statistical data; and/or according to the standard deviation of the third statistical data, the fourth statistical data
  • the standard deviation, the covariance between the third face statistical data and the fourth face statistical data calculate the third correlation of the third face statistical data and the fourth face statistical data, and based on the first correlation and/ Or second correlation and/or third correlation for sales forecast analysis.
  • the first face statistics are calculated according to the standard deviation of the first face statistics, the standard deviation of the fourth face statistics, and the covariance between the first face statistics and the fourth face statistics.
  • the first correlation between the data and the fourth face statistical data may specifically be that, according to the face statistical data of the pedestrians passing through the shop, the pedestrian flow of the shop is obtained by statistics; the standard deviation of the pedestrian flow is calculated; according to the checkout commodity data, Calculate the number of checkout items; calculate the standard deviation of the checkout items; calculate the covariance between the pedestrian flow and the checkout item; The covariance between the quantities is calculated, and the correlation between the flow of people and the number of checkout items is calculated as the first correlation.
  • the above-mentioned first correlation can determine whether the number of goods sold by the store is proportional to the flow of pedestrians, and it can also be understood as whether the more pedestrians, the better the goods are sold.
  • the second face statistics are calculated according to the standard deviation of the second face statistics, the standard deviation of the fourth face statistics, and the covariance between the second face statistics and the fourth face statistics.
  • the second correlation between the data and the fourth face statistical data specifically, the number of customers entering the store can be obtained according to the statistical data of the faces of the customers entering the store; ); according to the standard deviation of the number of customers entering the store, the standard deviation of the number of checkout items, and the covariance between the number of customers entering the store and the number of items checked out, the correlation between the number of customers entering the store and the number of items checked out is calculated as the second Correlation.
  • the above-mentioned second correlation can determine whether the number of goods sold by the store is proportional to the number of customers entering the store, and it can also be understood whether the more people who enter the store, the better the goods are sold.
  • calculate the third face statistics according to the standard deviation of the third face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the third face statistical data and the fourth face statistical data The third correlation of the data fourth face statistics, you can count the number or time of product wandering according to the browsing customer’s face statistics and browsing product data; calculate the standard deviation corresponding to the number of product wandering or time; The standard deviation of , the standard deviation of the number of items at checkout, and the covariance between the number of items lingering and the number of items at checkout are calculated, and the correlation between the number of items lingering and the number of items at checkout is calculated as the third correlation; or according to the standard of lingering time of items The difference, the standard deviation of the checkout item quantity, and the covariance between the item lingering time and the checkout item quantity, respectively calculate the correlation between the item lingering time and the checkout item quantity as the third correlation.
  • the above-mentioned third correlation can determine whether the number of products sold by the store is proportional to the wandering time or
  • an image of a first designated area is acquired, and face detection is performed on the image of the first designated area to obtain first statistical data of faces, and the first designated area is located in the area outside the store.
  • the first face statistical data includes the face statistical data of pedestrians passing through the store; obtain a second designated area image, and perform face detection on the second designated area image to obtain second face statistical data , the second designated area is located in the door area of the store, and the second face statistical data includes the face statistical data of customers entering the store;
  • the third designated area image is acquired, and the third designated area image is processed.
  • the third designated area is located in the shelf area of the store, and the third face statistical data includes browsing product data, employee and browsing customer face statistical data; obtaining a fourth designated area image, and performing face detection on the fourth designated area image to obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data Including the face statistics data of checkout customers and checkout commodity data; according to the first face statistics data, the second face statistics data, the third face statistics data, the fourth face statistics data, the sales analysis of the store is carried out .
  • the embodiment of the present invention can analyze the implicit relationship among customers, employees, and commodities that affect the sales of the store through the acquired face statistical data in various areas of the store, thereby improving the sales data of the store in various dimensions, helping to The store locates the customer's purchase expectations, thereby reducing the trial and error cost in the purchase process and ensuring the continuous operation of the store.
  • the store sales data analysis method provided by the embodiment of the present invention, it is possible to successfully predict whether the products of the store conform to the population in the area, and which type of people the products of the store are biased towards, so as to assist the store in purchasing better types of goods and optimize the shelf life.
  • Staff arrangement, optimization of shelf arrangement, etc. can effectively predict the future business direction of the store, and guide different groups of people to consume different products, and ultimately increase the overall turnover of the store.
  • the method for analyzing store sales data provided by the embodiments of the present invention can be applied to devices such as mobile phones, monitors, computers, and servers that can analyze store sales data.
  • Fig. 2 is the structural representation of a kind of shop sales data analysis device that the embodiment of the present invention provides, as shown in Fig. 2, described device comprises:
  • the first acquisition module 201 is used to acquire an image of a first designated area, perform face detection on the image of the first designated area, and obtain first face statistical data, and the first designated area is located outside the door of the store area, the first face statistical data includes the face statistical data of pedestrians passing through the store;
  • the second obtaining module 202 is configured to obtain an image of a second designated area, perform face detection on the image of the second designated area, and obtain second face statistical data, and the second designated area is located in the door area of the store , the second face statistical data includes face statistical data of customers entering the store;
  • the third acquisition module 203 is configured to acquire a third designated area image, perform face detection on the third designated area image, and obtain third face statistical data, and the third designated area is located in the shelf area of the store , the third face statistical data includes browsing product data, employee and browsing customer face statistical data;
  • the fourth acquisition module 204 is configured to acquire a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, and the fourth designated area is located in the cashier area of the store , the fourth face statistical data includes face statistical data of checkout customers and checkout commodity data;
  • the analysis module 205 is configured to perform a sales analysis on the store according to the first face statistics data, the second face statistics data, the third face statistics data and the fourth face statistics data.
  • the sales analysis includes sales data analysis and sales forecast analysis
  • the analysis module 205 includes:
  • the first processing submodule 2051 is used to form the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data into a graphic report, and according to the graphic Reports to analyze the sales data;
  • the second processing submodule 2052 is configured to perform correlation calculation according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and according to the The sales forecast analysis is performed according to the result of the correlation calculation.
  • the second processing sub-module 2052 is further configured to correspond to any two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data.
  • the standard deviation and the covariance between the any two items calculate the correlation between the any two items, and according to the first face statistical data, the second face statistical data, the third face statistical data and the correlation between any two items in the fourth face statistical data to perform the sales forecast analysis.
  • the second processing sub-module 2052 includes:
  • the first calculation unit 20521 is configured to calculate according to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, the first face statistical data and the fourth face statistical data covariance between, calculating the first correlation between the first face statistics and the fourth face statistics; and/or
  • the second calculation unit 20522 is configured to calculate according to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the second human face statistical data and the fourth human face statistical data covariance between, calculating the second correlation between the second face statistics and the fourth face statistics; and/or
  • the third calculation unit 20523 is configured to calculate according to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, the third human face statistical data and the fourth human face statistical data covariance between, calculate the third correlation of the fourth face statistical data of the third face statistical data, and according to the first correlation and/or the second correlation and/or the third correlation to conduct the sales forecast analysis.
  • the first computing unit 20521 includes:
  • the first statistical subunit 205211 is used to obtain statistics on the flow of pedestrians in the store according to the face statistics data of the pedestrians passing through the store;
  • a first calculation subunit 205212 configured to calculate the standard deviation of the pedestrian flow
  • the second statistics subunit 205213 is used to obtain the number of checkout commodities according to the checkout commodity data
  • the second calculation subunit 205214 is used to calculate the standard deviation of the checkout commodity quantity
  • the third calculation subunit 205215 is configured to calculate the said pedestrian flow according to the standard deviation of the pedestrian flow, the standard deviation of the checkout item quantity, and the covariance between the pedestrian flow rate and the checkout item quantity
  • the correlation between the flow of pedestrians and the quantity of the checkout commodities is taken as the first correlation.
  • the second computing unit 20522 includes:
  • the third statistical subunit 205221 is used to count the number of customers entering the store according to the face statistical data of the customers entering the store;
  • the fourth calculation subunit 205222 is used to calculate the standard deviation of the number of customers entering the store;
  • the fifth calculation subunit 205223 is configured to calculate the The correlation between the number of customers entering the store and the number of the checkout commodities is used as the second correlation.
  • the third computing unit 20523 includes:
  • the fourth statistical subunit 205231 is used to obtain statistics on the wandering times or time of commodities according to the browsing customer's face statistics data and browsing commodity data;
  • the sixth calculation subunit 205232 is used to calculate the standard deviation corresponding to the number of times or time the commodity lingers;
  • the seventh calculation subunit 205233 is configured to calculate the commodity wandering according to the standard deviation of the commodity wandering times, the standard deviation of the checkout commodity quantity, and the covariance between the commodity wandering frequency and the checkout commodity quantity
  • the correlation between the number of times and the number of the checkout commodities is used as the third correlation; or the seventh calculation subunit 205233 is further used to calculate the standard deviation of the lingering time of the commodity, the standard deviation of the checkout commodity quantity, and the lingering time of the commodity and the covariance between the checkout item quantity, respectively calculate the correlation between the item lingering time and the checkout item quantity as a third correlation.
  • the apparatus for analyzing store sales data provided by the embodiments of the present invention can be applied to devices such as mobile phones, monitors, computers, and servers that can analyze store sales data.
  • the store sales data analysis device provided by the embodiment of the present invention can realize the various processes implemented by the store sales data analysis method in the above method embodiments, and can achieve the same beneficial effects. In order to avoid repetition, details are not repeated here.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 8, it includes: a memory 802, a processor 801, and a memory 802 and a processor 801 stored in the memory 802 and available on the processor A computer program running on 801, which:
  • the processor 801 is used for calling the computer program stored in the memory 802, and performs the following steps:
  • the statistical data includes face statistics of pedestrians passing through the shop;
  • the data includes facial statistics of customers entering the store;
  • Obtain a third designated area image perform face detection on the third designated area image, and obtain third face statistical data
  • the third designated area is located in the shelf area of the store, and the third face statistical data Data includes browsing product data, employee and browsing customer facial statistics;
  • Obtain a fourth designated area image perform face detection on the fourth designated area image, and obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data
  • the data includes the facial statistics of the checkout customer and the checkout item data;
  • the sales analysis of the store is performed according to the first face statistics data, the second face statistics data, the third face statistics data, and the fourth face statistics data.
  • the sales analysis includes sales data analysis and sales forecast analysis.
  • the sales analysis of the store is carried out on the face statistics, including:
  • the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation calculation is carried out according to the result of the correlation calculation. Sales forecast analysis.
  • the correlation calculation performed by the processor 801 is performed according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data,
  • the sales forecast analysis is performed according to the result of the correlation calculation, including:
  • the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between the any two items Calculate the correlation between the any two items, and carry out the correlation according to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data.
  • the correlation calculation performed by the processor 801 is performed according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data,
  • the sales forecast analysis is performed according to the result of the correlation calculation, including:
  • the standard deviation of the first face statistical data calculates the first correlation between the first face statistics and the fourth face statistics.
  • the standard deviation of the second human face statistical data calculates the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the second human face statistical data and the fourth human face statistical data, calculate the a second correlation between the second face statistics and the fourth face statistics;
  • the standard deviation of the third human face statistical data calculates the The third correlation of the fourth face statistical data of the third face statistical data is performed, and the sales forecast analysis is performed according to the first correlation and/or the second correlation and/or the third correlation.
  • the standard deviation of the first face statistical data the standard deviation of the fourth face statistical data, the first face statistical data and the fourth person executed by the processor 801 Covariance between face statistics, calculating the first correlation between the first face statistics and the fourth face statistics, including:
  • the traffic flow of the pedestrians in the shop is obtained according to statistics
  • the number of checkout products is obtained by statistics
  • the standard deviation of the pedestrian flow calculates the difference between the pedestrian flow rate and the checkout item quantity correlation as the first correlation.
  • the standard deviation of the second face statistical data the standard deviation of the fourth face statistical data, the second face statistical data and the fourth person executed by the processor 801 Covariance between face statistics, calculating the second correlation between the second face statistics and the fourth face statistics, including:
  • the number of customers entering the store is obtained by statistics
  • the standard deviation of the third face statistical data the standard deviation of the fourth face statistical data, the third face statistical data and the fourth person executed by the processor 801
  • the covariance between the face statistical data, and the third correlation of the fourth face statistical data of the third face statistical data is calculated, including:
  • the number of times or time of commodity wandering is obtained according to statistics
  • the standard deviation of the number of times of commodity wandering calculates the difference between the number of times of commodity wandering and the number of checkout commodities, respectively correlation as a third correlation;
  • the difference between the commodity lingering time and the checkout commodity quantity is calculated respectively. correlation as a third correlation.
  • the above-mentioned electronic device may be a mobile phone, a monitor, a computer, a server and other devices that can be applied to analyze the sales data of a store.
  • the electronic device provided by the embodiment of the present invention can realize the various processes realized by the method for analyzing the store sales data in the above method embodiment, and can achieve the same beneficial effect. In order to avoid repetition, details are not repeated here.
  • Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the method for analyzing store sales data provided by the embodiments of the present invention is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

Provided are a store sales data analysis method, apparatus, electronic device, and storage medium, said method comprising: obtaining a first designated area image and performing face detection on said first designated area image to obtain first face statistical data (101); obtaining a second designated area image and performing face detection on said second designated area image to obtain second face statistical data (102); obtaining a third designated area image and performing face detection on said third designated area image to obtain third face statistical data (103); obtaining a fourth designated area image and performing face detection on said fourth designated area image to obtain fourth face statistical data (104); said fourth designated area being located in the checkout area of said store; according to said first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data, performing sales analysis of the store. The described method can help a store to reduce the trial-and-error costs during the stocking process.

Description

商铺销售数据分析方法、装置、电子设备及存储介质Store sales data analysis method, device, electronic device and storage medium
本申请要求于2020年12月31日提交中国专利局,申请号为202011640061.6、发明名称为“商铺销售数据分析方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 31, 2020 with the application number 202011640061.6 and the invention name is "store sales data analysis method, device, electronic device and storage medium", the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本发明涉及人工智能处理领域,尤其涉及一种商铺销售数据分析方法、装置、电子设备及存储介质。The invention relates to the field of artificial intelligence processing, in particular to a method, device, electronic device and storage medium for analyzing store sales data.
背景技术Background technique
随着信息化技术的快速发展,人工智能应用已逐步融入到大众的生活当中。尤其是人脸识别应用,不仅是在支付领域具有广泛的应用,在其他领域都得到了广泛的应用,比如智慧商铺、智慧超市等。在当前移动互联网快速发展下,线上购物已经成为了当前世界的主流,线下实体商铺举步维艰,都面临着严峻的生存挑战,很多想要开店的人员在商铺定位选址、商品类型选择上都显得十分谨慎,都不敢轻易的下决定,而且,在商铺的启动阶段,在没有稳定的客源以及口碑的情况下,由于新顾客的多样性,以及顾客与商铺员工的主观性,使得大多数线下商铺员工在引流方面、推广方面都显得较为吃力,可参考的销售数据少,进货很难符合顾客的购买期望,多次进货的试错成本高,从而致使商铺在经过一段运营之后,纷纷宣布关门。因此,现有商铺的启动阶段由于各方面数据的不完善,可参考的销售数据少,试错成本高,导致商铺的销售效果较差。With the rapid development of information technology, artificial intelligence applications have gradually been integrated into the lives of the public. In particular, the application of face recognition is not only widely used in the field of payment, but also widely used in other fields, such as smart shops, smart supermarkets, etc. With the rapid development of the current mobile Internet, online shopping has become the mainstream of the current world. Offline brick-and-mortar stores are struggling and facing severe survival challenges. It seems very cautious, and they dare not make decisions easily. Moreover, in the start-up stage of the store, in the absence of a stable customer source and word of mouth, due to the diversity of new customers and the subjectivity of customers and store employees, it is difficult Most offline store employees are struggling in terms of traffic drainage and promotion. There are few sales data for reference, and it is difficult for purchases to meet customers' purchase expectations. The trial and error costs of multiple purchases are high, resulting in the store after a period of operation. Announced to close. Therefore, in the start-up stage of existing stores, due to imperfect data in various aspects, few sales data for reference, and high trial and error costs, the sales effect of the stores is poor.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种商铺销售数据分析方法,能够通过在商铺各个区域的人脸统计数据,能够分析影响商铺销售的顾客、员工、商品三者之间的隐含关系,从而完善商铺在各个维度上的销售数据,帮助商铺定位顾客的购买期望,从而减少进货过程中的试错成本。The embodiment of the present invention provides a method for analyzing store sales data, which can analyze the implicit relationship among customers, employees, and commodities that affect store sales through face statistical data in various areas of the store, so as to improve the performance of the store in each area. Dimensional sales data can help stores locate customers' purchasing expectations, thereby reducing trial and error costs during the purchase process.
第一方面,本发明实施例提供一种商铺销售数据分析方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for analyzing store sales data, the method comprising:
获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;Obtain the first designated area image, perform face detection on the first designated area image, and obtain first face statistical data, the first designated area is located in the area outside the store, and the first face The statistical data includes face statistics of pedestrians passing through the shop;
获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;Obtain the second designated area image, perform face detection on the second designated area image, and obtain second face statistical data, the second designated area is located in the door area of the store, and the second face statistical data The data includes facial statistics of customers entering the store;
获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;Obtain a third designated area image, perform face detection on the third designated area image, and obtain third face statistical data, the third designated area is located in the shelf area of the store, and the third face statistical data Data includes browsing product data, employee and browsing customer facial statistics;
获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;Obtain a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data The data includes the facial statistics of the checkout customer and the checkout item data;
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The sales analysis of the store is performed according to the first face statistics data, the second face statistics data, the third face statistics data, and the fourth face statistics data.
可选的,所述销售分析包括销售数据分析与销售预测分析,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析,包括:Optionally, the sales analysis includes sales data analysis and sales forecast analysis. The store conducts sales analysis, including:
将所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据形成图文报表,并根据所述图文报表进行所述销售数据分析;Form the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data into a graphic report, and analyze the sales data according to the graphic report;
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析。The correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation calculation is carried out according to the result of the correlation calculation. Sales forecast analysis.
可选的,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:Optionally, the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation is calculated according to the correlation. The results of the calculation are carried out for the sales forecast analysis, including:
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项对应的标准差与所述任意两项之间的协方差,计算所述任意两项之间相关性,并根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项的相关性进行所述销售预测分析。According to the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between the any two items, Calculate the correlation between the any two items, and carry out the correlation according to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data. The sales forecast analysis.
可选的,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:Optionally, the correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation is calculated according to the correlation. The results of the calculation are carried out for the sales forecast analysis, including:
根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性;和/或According to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the first face statistical data and the fourth face statistical data, calculate the the first correlation between the first face statistics and the fourth face statistics; and/or
根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性;和/或According to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the second human face statistical data and the fourth human face statistical data, calculate the a second correlation between the second face statistics and the fourth face statistics; and/or
根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,并根据所述第一相关性和/或第二相关性和/或第三相关性进行所述销售预测分析。According to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the third human face statistical data and the fourth human face statistical data, calculate the The third correlation of the fourth face statistical data of the third face statistical data is performed, and the sales forecast analysis is performed according to the first correlation and/or the second correlation and/or the third correlation.
可选的,所述根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性,包括:Optionally, according to the standard deviation of the first human face statistical data, the standard deviation of the fourth human face statistical data, the difference between the first human face statistical data and the fourth human face statistical data Calculate the first correlation between the first face statistics and the fourth face statistics, including:
根据所述经过所述商铺的行人的人脸统计数据,统计得到所述商铺的行人的人流量;According to the statistical data of the faces of the pedestrians passing through the shop, the traffic flow of the pedestrians in the shop is obtained according to statistics;
计算所述行人的人流量的标准差;calculating the standard deviation of the pedestrian flow of said pedestrian;
根据所述结账商品数据,统计得到结账商品数量;According to the checkout product data, the number of checkout products is obtained by statistics;
计算所述结账商品数量的标准差;calculating the standard deviation of the checkout item quantity;
计算所述行人的人流量与所述结账商品数量之间的协方差;calculating the covariance between the flow of the pedestrian and the quantity of the checkout item;
根据所述行人的人流量的标准差、所述结账商品数量的标准差以及所述人流量与所述结账商品数量之间的协方差,计算所述行人的人流量与所述结账商品数量的相关性作为第一相关性。According to the standard deviation of the pedestrian flow, the standard deviation of the checkout item quantity, and the covariance between the pedestrian flow and the checkout item quantity, calculate the difference between the pedestrian flow rate and the checkout item quantity correlation as the first correlation.
可选的,所述根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性,包括:Optionally, according to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the difference between the second human face statistical data and the fourth human face statistical data The covariance of , calculating the second correlation between the second face statistics and the fourth face statistics, including:
根据所述进店顾客的人脸统计数据,统计得到进店顾客数量;According to the face statistics of the customers entering the store, the number of customers entering the store is obtained by statistics;
计算所述进店顾客数量的标准差;calculating the standard deviation of the number of customers entering the store;
根据所述进店顾客数量的标准差、所述结账商品数量的标准差以及所述进 店顾客数量与所述结账商品数量之间的协方差,计算所述进店顾客数量与所述结账商品数量的相关性作为第二相关性。Calculate the number of in-store customers and the check-out commodity according to the standard deviation of the number of in-store customers, the standard deviation of the check-out commodity number, and the covariance between the in-store customer number and the check-out commodity number The correlation of the quantity serves as the second correlation.
可选的,所述根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,包括:Optionally, according to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, the difference between the third human face statistical data and the fourth human face statistical data , calculate the third correlation of the fourth face statistical data of the third face statistical data, including:
根据所述浏览顾客的人脸统计数据、浏览商品数据,统计得到商品徘徊次数或时间;According to the browsing customer's face statistics data and browsing commodity data, the number of times or time of commodity wandering is obtained according to statistics;
计算所述商品徘徊次数或时间对应的标准差;Calculate the standard deviation corresponding to the number of times or time the commodity lingers;
根据所述商品徘徊次数的标准差、所述结账商品数量的标准差以及所述商品徘徊次数与所述结账商品数量之间的协方差,分别计算所述商品徘徊次数与所述结账商品数量的相关性作为第三相关性;或According to the standard deviation of the number of times of commodity wandering, the standard deviation of the number of checkout commodities, and the covariance between the number of times of commodity wandering and the number of checkout commodities, calculate the difference between the number of times of commodity wandering and the number of checkout commodities, respectively correlation as a third correlation; or
根据所述商品徘徊时间的标准差、所述结账商品数量的标准差以及所述商品徘徊时间与所述结账商品数量之间的协方差,分别计算所述商品徘徊时间与所述结账商品数量的相关性作为第三相关性。According to the standard deviation of the commodity lingering time, the standard deviation of the checkout commodity quantity, and the covariance between the commodity lingering time and the checkout commodity quantity, the difference between the commodity lingering time and the checkout commodity quantity is calculated respectively. correlation as a third correlation.
第二方面,本发明实施例还提供一种商铺销售数据分析装置,所述装置包括:In a second aspect, an embodiment of the present invention further provides a store sales data analysis device, the device comprising:
第一获取模块,用于获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;The first acquisition module is used to acquire a first designated area image, and perform face detection on the first designated area image to obtain first face statistical data, and the first designated area is located in the area outside the store. , the first face statistical data includes the face statistical data of pedestrians passing through the store;
第二获取模块,用于获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;The second acquisition module is configured to acquire an image of a second designated area, perform face detection on the image of the second designated area, and obtain second face statistical data, and the second designated area is located in the door area of the store, The second face statistical data includes face statistical data of customers entering the store;
第三获取模块,用于获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;a third acquisition module, configured to acquire an image of a third designated area, perform face detection on the image of the third designated area, and obtain third face statistical data, and the third designated area is located in the shelf area of the store, The third face statistical data includes browsing product data, employee and browsing customer face statistical data;
第四获取模块,用于获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;a fourth acquisition module, configured to acquire a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, where the fourth designated area is located in the cashier area of the store, The fourth face statistical data includes face statistical data of checkout customers and checkout commodity data;
分析模块,用于根据所述第一人脸统计数据、第二人脸统计数据、第三人 脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The analysis module is used to analyze the sales of the shop according to the first face statistics data, the second face statistics data, the third face statistics data and the fourth face statistics data.
第三方面,本发明实施例提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明实施例提供的商铺销售数据分析方法中的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program The steps in the store sales data analysis method provided by the embodiment of the present invention are implemented.
第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现发明实施例提供的商铺销售数据分析方法中的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for analyzing store sales data provided by the embodiment of the present invention is implemented steps in .
本发明实施例中,获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。本发明通过获取到的在商铺各个区域的人脸统计数据,能够分析影响商铺销售的顾客、员工、商品三者之间的隐含关系,从而完善商铺在各个维度上的销售数据,帮助商铺定位顾客的购买期望,从而减少进货过程中的试错成本,保证了商铺的持续经营。In this embodiment of the present invention, an image of a first designated area is acquired, and face detection is performed on the image of the first designated area to obtain first statistical data of faces, and the first designated area is located in an area outside the shop, The first face statistical data includes face statistical data of pedestrians passing through the store; a second designated area image is obtained, and face detection is performed on the second designated area image to obtain second face statistical data, The second designated area is located at the entrance area of the store, and the second face statistical data includes the face statistical data of customers entering the store; the image of the third designated area is acquired, and the image of the third designated area is processed. face detection to obtain third face statistical data, the third designated area is located in the shelf area of the store, and the third face statistical data includes browsing product data, employee and browsing customer face statistical data; Four designated area images, and face detection is performed on the fourth designated area image to obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data includes The facial statistics data of the checkout customer and the checkout commodity data; the sales analysis of the store is performed according to the first facial statistics data, the second facial statistics data, the third facial statistics data, and the fourth facial statistics data. The present invention can analyze the implicit relationship among customers, employees and commodities that affect the sales of the store through the acquired face statistics data in various areas of the store, thereby improving the sales data of the store in various dimensions and helping the store to locate. Customers' purchase expectations, thereby reducing the trial and error cost in the purchase process, and ensuring the continuous operation of the store.
附图说明Description of drawings
图1是本发明实施例提供的一种商铺销售数据分析方法的流程图;1 is a flowchart of a method for analyzing store sales data provided by an embodiment of the present invention;
图2是本发明实施例提供的一种商铺销售数据分析装置的结构示意图;2 is a schematic structural diagram of a store sales data analysis device provided by an embodiment of the present invention;
图3是本发明实施例提供的一种分析模块的结构示意图;3 is a schematic structural diagram of an analysis module provided by an embodiment of the present invention;
图4是本发明实施例提供的一种第二处理子模块的结构示意图;4 is a schematic structural diagram of a second processing submodule provided by an embodiment of the present invention;
图5是本发明实施例提供的一种第一计算单元的结构示意图;5 is a schematic structural diagram of a first computing unit provided by an embodiment of the present invention;
图6是本发明实施例提供的一种第二计算单元的结构示意图;6 is a schematic structural diagram of a second computing unit provided by an embodiment of the present invention;
图7是本发明实施例提供的一种第三计算单元的结构示意图;7 is a schematic structural diagram of a third computing unit provided by an embodiment of the present invention;
图8是本发明实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
请参见图1,图1是本发明实施例提供的一种商铺销售数据分析方法的流程图,如图1所示,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flowchart of a method for analyzing store sales data provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
101、获取第一指定区域图像,并对第一指定区域图像进行人脸检测,得到第一人脸统计数据。101. Acquire a first designated area image, and perform face detection on the first designated area image to obtain first face statistical data.
在本发明实施例中,上述第一指定区域位于商铺门外区域,第一人脸统计数据包括经过商铺的行人的人脸统计数据。In the embodiment of the present invention, the above-mentioned first designated area is located in an area outside the shop door, and the first face statistics data include face statistics data of pedestrians passing by the shop.
进一步的,可以通过设置在商铺门口,并朝向商铺门外进行拍摄的第一摄像头来采集上述第一指定区域图像。当商铺外的第一指定区域(可以是商铺门前的一片区域)有行人经过时,无论该行人是否进入商铺,第一摄像头都会进行图像采集。Further, the image of the first designated area may be collected by a first camera set at the door of the shop and shooting toward the outside of the shop. When a pedestrian passes by in the first designated area outside the store (which may be an area in front of the store), the first camera will capture images regardless of whether the pedestrian enters the store or not.
上述对第一指定区域的人脸检测可以是通过第一人脸检测引擎进行的,第一指定区域图像为一张大图,该大图内包括至少一个行人,通过第一人脸检测引擎,可以检测出该大图中包括多少个行人,对应输出行人的人脸图、人脸特征值等。进一步的,上述第一人脸统计数据可以包括摄像头ID、摄像头位置、行人的人脸图、行人的人脸特征值、抓拍时间、抓拍次数等,上述行人的人脸特征值可以包括行人的年龄、性别等。The above-mentioned face detection for the first designated area may be performed by a first face detection engine, and the image of the first designated area is a large image, and the large image includes at least one pedestrian. Through the first face detection engine, you can Detect how many pedestrians are included in the large image, and output the pedestrian's face map, face feature values, etc. Further, the above-mentioned first face statistical data may include camera ID, camera position, pedestrian's face map, pedestrian's face feature value, capture time, number of shots, etc., and the above-mentioned pedestrian's face feature value may include the age of the pedestrian. , gender, etc.
在一种可能的实施例中,上述第一人脸检测引擎可以集成在第一摄像头中,实时对拍摄到的第一指定区域图像进行人脸检测。In a possible embodiment, the above-mentioned first face detection engine may be integrated in the first camera, and perform face detection on the captured image of the first designated area in real time.
102、获取第二指定区域图像,并对第二指定区域图像进行人脸检测,得到第二人脸统计数据。102. Acquire an image of a second designated area, and perform face detection on the image of the second designated area to obtain second face statistical data.
在本发明实施例中,上述第二指定区域位于上述商铺门口区域,上述第二人脸统计数据可以包括进店顾客的人脸统计数据。In the embodiment of the present invention, the above-mentioned second designated area is located in the above-mentioned store entrance area, and the above-mentioned second face statistical data may include face statistical data of customers entering the store.
进一步的,可以通过设置在商铺内,对着商铺门口进行拍摄的第二摄像头来采集上述第二指定区域图像。当商铺门口区域的第二指定区域(可以是商铺门口正下方的一片区域)有进店顾客时,无论该进店顾客是否会购买商品,第 二摄像头都会进行图像采集。Further, the above-mentioned second designated area image may be collected by a second camera disposed in the store and photographing at the entrance of the store. When there is a customer entering the store in the second designated area of the store entrance area (which may be an area directly below the store entrance), the second camera will capture images regardless of whether the entering customer will buy a product.
上述对第二指定区域图像的人脸检测可以是通过第二人脸检测引擎进行的,第二指定区域图像为一张大图,该大图内包括至少一个进店顾客,通过第二人脸检测引擎,可以检测出该大图中包括多少个进店顾客,对应输出进店顾客的人脸图、人脸特征值等。进一步的,上述第二人脸统计数据可以包括摄像头ID、摄像头位置、进店顾客的人脸图、进店顾客的人脸特征值、抓拍时间等,上述进店顾客的人脸特征值可以包括进店顾客的年龄、性别、眼镜、帽子、饰品等。另外,还可以对第二指定区域图像进行人体检测,得到进店顾客的穿着特征值,比如上衣、下衣对应的特征值,并将穿着特征值绑定到第二人脸统计数据中。The above-mentioned face detection on the image of the second designated area may be performed by a second face detection engine, and the image of the second designated area is a large image, and the large image includes at least one customer entering the store. The engine can detect how many customers enter the store in the big picture, and output the face map and face feature values of the customers corresponding to the store. Further, the above-mentioned second face statistical data may include the camera ID, the position of the camera, the face map of the customer entering the store, the facial feature value of the customer entering the store, the capture time, etc. The above-mentioned facial feature value of the customer entering the store may include: Age, gender, glasses, hats, accessories, etc. of customers entering the store. In addition, it is also possible to perform human body detection on the image of the second designated area to obtain the wearing feature values of the customers entering the store, such as the feature values corresponding to tops and bottoms, and bind the wearing feature values to the second face statistical data.
在一种可能的实施例中,上述第二人脸检测引擎可以集成在第二摄像头中,实时对拍摄到的第二指定区域图像进行人脸检测。In a possible embodiment, the above-mentioned second face detection engine may be integrated in the second camera to perform face detection on the captured image of the second designated area in real time.
103、获取第三指定区域图像,并对第三指定区域图像进行人脸检测,得到第三人脸统计数据。103. Acquire a third designated area image, and perform face detection on the third designated area image to obtain third face statistical data.
上述第三指定区域位于商铺的货架区域,上述第三人脸统计数据可以包括浏览商品数据、员工及浏览顾客的人脸统计数据。The above-mentioned third designated area is located in the shelf area of the store, and the above-mentioned third face statistical data may include browsing product data, employee and browsing customer face statistical data.
进一步的,可以通过设置在商铺内,对着货架进行拍摄的第三摄像头来采集上述第三指定区域图像。当货架区域的第三指定区域(可以是货架正前方区域)有浏览顾客时,无论该浏览顾客是否会购买商品,第三摄像头都会进行图像采集。Further, the image of the above-mentioned third designated area may be collected by a third camera that is arranged in the store and shoots at the shelf. When there is a browsing customer in the third designated area of the shelf area (which may be the area directly in front of the shelf), the third camera will capture images regardless of whether the browsing customer will purchase a product.
上述对第三指定区域图像的人脸检测可以是通过第三人脸检测引擎进行的,第三指定区域图像为一张大图,该大图内包括至少一个浏览顾客,通过第三人脸检测引擎,可以检测出该大图中包括多少个浏览顾客以及是否有员工,对应输出浏览顾客所浏览的商品、员工和浏览顾客的人脸图、人脸特征值等。进一步的,上述第三人脸统计数据可以包括摄像头ID、摄像头位置、浏览顾客的人脸图、浏览顾客的人脸特征值、抓拍时间、浏览商品、员工的人脸图等,上述浏览顾客的人脸特征值可以包括浏览顾客的年龄、性别、眼镜、帽子、饰品等。另外,还可以对第三指定区域图像进行人体检测,得到浏览顾客的穿着特征值,比如上衣、下衣对应的特征值,并将穿着特征值绑定到第三人脸统计数据中。The above-mentioned face detection on the image of the third designated area may be carried out by a third face detection engine, and the image of the third designated area is a large image, and the large image includes at least one browsing customer. , you can detect how many browsing customers and whether there are employees in the big picture, and output the products browsed by the browsing customers, the face maps of employees and browsing customers, and the facial feature values, etc. correspondingly. Further, the above-mentioned third face statistical data may include camera ID, camera position, browsing customer's face map, browsing customer's facial feature value, capture time, browsing products, employee's face map, etc. The facial feature values may include the browsing customer's age, gender, glasses, hats, accessories, and the like. In addition, it is also possible to perform human body detection on the image of the third designated area to obtain the wearing characteristic values of the browsing customers, such as the characteristic values corresponding to tops and bottoms, and bind the wearing characteristic values to the third face statistical data.
在一种可能的实施例中,上述第三人脸检测引擎可以集成在第三摄像头 中,实时对拍摄到的第三指定区域图像进行人脸检测。In a possible embodiment, the above-mentioned third face detection engine may be integrated in a third camera to perform face detection on the captured image of the third designated area in real time.
104、获取第四指定区域图像,并对第四指定区域图像进行人脸检测,得到第四人脸统计数据。104. Acquire an image of the fourth designated area, and perform face detection on the image of the fourth designated area to obtain fourth face statistical data.
在本发明实施例中,上述第四指定区域位于所述商铺的收银区域,上述第四人脸统计数据可以包括结账顾客的人脸统计数据以及结账商品数据。In the embodiment of the present invention, the fourth designated area is located in the cash register area of the store, and the fourth face statistical data may include face statistical data of checkout customers and checkout commodity data.
进一步的,可以通过设置在商铺内,对着收银台前进行拍摄的第四摄像头来采集上述第四指定区域图像。当收银区域的第四指定区域(可以是收银台正前方区域)有结账顾客时,第四摄像头会进行图像采集。Further, the image of the above-mentioned fourth designated area may be collected by a fourth camera that is set in the shop and shoots in front of the cashier. When there is a checkout customer in the fourth designated area of the cash register area (which may be the area directly in front of the cash register), the fourth camera will perform image capture.
上述对第四指定区域图像的人脸检测可以是通过第四人脸检测引擎进行的,第四指定区域图像为一张大图,该大图内包括至少一个结账顾客,通过第四人脸检测引擎,可以检测出该大图中包括多少个结账顾客以及对应的结账商品,对应输出结账顾客所需要结账的结账商品、结账顾客的人脸图、人脸特征值等。进一步的,上述第四人脸统计数据可以包括摄像头ID、摄像头位置、结账顾客的人脸图、结账顾客的人脸特征值、抓拍时间、结账商品等,上述结账顾客的人脸特征值可以包括结账顾客的年龄、性别、眼镜、帽子、饰品等。另外,还可以对第四指定区域图像进行人体检测,得到结账顾客的穿着特征值,比如上衣、下衣对应的特征值,并将穿着特征值绑定到第四人脸统计数据中。The above-mentioned face detection on the image of the fourth designated area may be performed by a fourth face detection engine, and the image of the fourth designated area is a large image, and the large image includes at least one checkout customer. , you can detect how many checkout customers and corresponding checkout products are included in the big picture, and output the checkout products that the checkout customer needs to checkout, the face map of the checkout customer, and the facial feature values, etc. Further, the above-mentioned fourth face statistical data may include the camera ID, the position of the camera, the face map of the checkout customer, the face feature value of the checkout customer, the capture time, the checkout product, etc. The face feature value of the above-mentioned checkout customer may include: Checkout customer's age, gender, glasses, hats, accessories, etc. In addition, human body detection can also be performed on the image of the fourth designated area to obtain the characteristic values of the checkout customer's wearing, such as the characteristic values corresponding to tops and bottoms, and the wearing characteristic values are bound to the fourth face statistical data.
在一种可能的实施例中,上述第四人脸检测引擎可以集成在第三摄像头中,实时对拍摄到的第四指定区域图像进行人脸检测。In a possible embodiment, the above-mentioned fourth face detection engine may be integrated in the third camera to perform face detection on the captured image of the fourth designated area in real time.
105、根据第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对商铺进行销售分析。105. Perform a sales analysis on the store according to the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data.
在本发明实施例中,可以是根据第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中单独一项对商铺进行销售分析,比如,通过第一人脸统计数据中行人的人流量,对商铺进行销售分析,进一步的比如,中午下班和下午下班的人流量多,则可以销售餐饮类型的商品。通过第二人脸统计数据中的进店顾客的年龄、性别,来对商铺进行销售分析,进一步的比如,进店顾客多数为年轻女性,则可以销售首饰类型的商品。通过第三人脸统计数据中的浏览顾客以及浏览商品数据,来对商铺进行销售分析,进一步的比如,浏览顾客对于浏览商品的浏览时长或浏览次数超过一定次数,则可以销售浏览商品的类似商品。通过第四人脸统计数据中的结账顾客以及结账商品,来对商铺进行去无影分析,进一步的比如,结账顾客购买了上衣并结账,则结账商品 为上衣,可以继续销售该上衣。In the embodiment of the present invention, the sales analysis of the store may be performed according to a single item of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, for example, by The traffic flow of pedestrians in the first face statistics data can be used to analyze the sales of shops. For example, if there are a lot of people after get off work at noon and in the afternoon, you can sell food and beverage products. The sales analysis of the store is carried out through the age and gender of the customers entering the store in the second face statistics data. Further, for example, if most of the customers entering the store are young women, jewelry-type products can be sold. The sales analysis of the store is carried out through the browsing customer and browsing product data in the third-party face statistical data. Further, for example, if the browsing time of the browsing customer or the number of browsing times exceeds a certain number of times, the similar products of the browsing product can be sold. . Through the checkout customers and checkout products in the fourth face statistical data, we can perform a shadowless analysis on the store. For example, if the checkout customer buys a shirt and pays the bill, the checkout product is a shirt, and the shirt can continue to be sold.
可选的,上述销售分析包括销售数据分析与销售预测分析,可以将上述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据形成图文报表,并根据上述图文报表进行上述销售数据分析;根据上述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据上述相关性计算的结果进行销售预测分析。Optionally, the above-mentioned sales analysis includes sales data analysis and sales forecast analysis, and the above-mentioned first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data can be formed into graphic reports. , and carry out the above sales data analysis according to the above-mentioned graphic report; carry out correlation calculation according to at least two of the above-mentioned first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data , and conduct sales forecast analysis based on the results of the above correlation calculation.
进一步的,上述销售数据分析可以称为静态分析,上棕销售预测分析可以称为动态分析。Further, the above sales data analysis can be called static analysis, and the sales forecast analysis can be called dynamic analysis.
针对上述第一人脸统计数据,上述图文报表可以是行人的人流量统计,具体可以是分时人流量和人脸特征值统计,比如,在2020年9月11日8点到9点,总人流量为235,20岁以上人流量为200,男性人流量为111,女性人流量为124等。For the above-mentioned first face statistical data, the above-mentioned graphic report may be pedestrian traffic statistics, specifically, time-sharing traffic and facial feature value statistics. For example, from 8:00 to 9:00 on September 11, 2020, The total flow of people is 235, the flow of people over 20 is 200, the flow of men is 111, the flow of women is 124, etc.
针对上述第二人脸统计数据,上述图文报表可以是进店顾客的人流量,具体可以是分时人流量和人脸特征值统计,比如,在2020年9月11日8点到9点,总进店人流量为21,20岁以上的进店人流量为18,男性人流量为10,女性人流量为11,带帽子的人流量为3,带眼镜的人流量为4,穿牛仔裤的人流量为21,穿黑色上衣的人流量为13等。For the above-mentioned second face statistical data, the above-mentioned graphic report can be the traffic flow of customers entering the store, and specifically can be time-sharing traffic flow and facial feature value statistics, for example, from 8:00 to 9:00 on September 11, 2020 , the total number of people entering the store is 21, the number of people over the age of 20 is 18, the number of people who enter the store is 10, the number of people who wear a hat is 11, the number of people wearing hats is 3, the number of people wearing glasses is 4, and the number of people wearing jeans The traffic flow is 21, the traffic flow of people wearing black tops is 13, etc.
针对上述第三人脸统计数据,上述图文报表可以是货架前浏览顾客的徘徊时间或徘徊次数,具体可以是各货架分时徘徊人脸统计、各货架徘徊人数统计、各货架总徘徊时间统计、货架徘徊次数统计、员工流动数据统计,比如,在2020年9月11日8点到9点,A货架有5人徘徊,B货架的总徘徊时间为4小时(多人情况下徘徊时间叠加),C货架的徘徊次数为24次,D货架员工来过1次等。For the above-mentioned third face statistical data, the above-mentioned graphic and text report can be the wandering time or the number of wandering times of customers browsing in front of the shelves, and specifically can be the time-sharing face statistics on each shelf, the number of people wandering on each shelf, and the total wandering time statistics on each shelf. , Statistics on the number of shelf wanderings, and statistics on employee turnover. For example, from 8:00 to 9:00 on September 11, 2020, there were 5 people wandering on shelf A, and the total wandering time on shelf B was 4 hours (the wandering time in the case of multiple people is superimposed ), the number of wanderings on the C shelf is 24 times, and the staff on the D shelf has visited once, etc.
针对上述第四人脸统计数据,上述图文报表可以是收银前结账顾客的数量统计与结账商品的类型统计,比如,在2020年9月11日8点到9点,有4位顾客购买商品并结账,结账顾客A购买的商品为a、b,结账顾客B购买的商品为a、c等。For the above-mentioned fourth face statistical data, the above-mentioned graphic and text report can be the statistics of the number of customers who check out before the checkout and the type of goods to be checked out. For example, from 8:00 to 9:00 on September 11, 2020, 4 customers purchased goods And checkout, the goods purchased by checkout customer A are a, b, and the goods purchased by checkout customer B are a, c, and so on.
上述的图文报表还可以是第一人脸统计数据与第二人脸统计数据的分时图、分时趋势图等,也还可以是其中第三人脸统计数据的各货架热点分布图、直方排行图、员工与浏览顾客时间段占比图等,还可以是第四人脸统计数据中结账顾客在第三人脸统计数据的占比分布图和落点图、结账商品落点图等。The above-mentioned graphic and text report can also be a time-sharing graph, a time-sharing trend graph, etc. of the first face statistical data and the second face statistical data, or can also be the distribution map of each shelf hot spot of the third face statistical data, The histogram, the proportion of employees and browsing customers in the time period, etc., can also be the distribution and placement map of the proportion of checkout customers in the third face statistical data in the fourth face statistical data, and the placement map of checkout products, etc. .
上述销售预测分析可以是根据历史的第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据进行相关性分析。比如,通过历史的第一人脸统计数据与第二人脸统计数据,可以分析行人的人流量与进店顾客的人流量是否成正相关。通过历史的第一人脸统计数据与第四人脸统计数据,可以分析行人的人流量与结账顾客的数量(或结账商品的数量)是否成正相关。通过历史的第二人脸统计数据与第四人脸统计数据,可以分析进店顾客的人流量与结账顾客的数量(或结账商品的数量)是否成正相关。通过第三人脸统计数据与第四人脸统计数据,可以分析浏览顾客的徘徊时间或徘徊次数是否与结账顾客的数量(或结账商品的数量)是否成正相关,等等。The above-mentioned sales forecast analysis may be correlation analysis based on historical first face statistical data, second face statistical data, third face statistical data, and fourth face statistical data. For example, through the historical first face statistics and second face statistics, it is possible to analyze whether the flow of pedestrians is positively correlated with the flow of customers entering the store. Through the historical first face statistical data and the fourth face statistical data, it can be analyzed whether there is a positive correlation between the flow of pedestrians and the number of checkout customers (or the number of checkout items). Through the historical second face statistics and fourth face statistics, it can be analyzed whether there is a positive correlation between the flow of people entering the store and the number of checkout customers (or the number of checkout items). Through the third face statistical data and the fourth face statistical data, it can be analyzed whether the wandering time or the number of wandering times of browsing customers is positively correlated with the number of checkout customers (or the number of checkout items), and so on.
可选的,可以根据第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项对应的标准差与任意两项之间的协方差,计算任意两项之间相关性,并根据第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项的相关性进行所述销售预测分析。Optionally, the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between any two items may be used. , calculate the correlation between any two items, and carry out the sales according to the correlation of any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data Predictive analytics.
进一步的,任意两项之间相关性可以如下述式子进行计算:Further, the correlation between any two items can be calculated as follows:
Figure PCTCN2021133107-appb-000001
Figure PCTCN2021133107-appb-000001
其中,上述ρ xy为X,Y两项变量之间的相关性,上述Cov(X,Y)为X,Y两项变量之间的协方差,上述
Figure PCTCN2021133107-appb-000002
为X变量的标准差,上述
Figure PCTCN2021133107-appb-000003
为Y变量的标准差。上述式子中,X可以是第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中的任意一项,Y可以是其余三项中的任意一项。比如,第一人脸统计数据为X,则Y可以是第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中的任意一项。上述X为X变量的平均值,Y为Y变量的平均值。上述相关性为0时,X和Y两变量无关系。当X的值增大(减小),Y值增大(减小),两个变量为正相关,相关性在0.00与1.00之间。当X的值增大(减小),Y值减小(增大),两个变量为负相关,相关性在-1.00与0.00之间。
Among them, the above ρ xy is the correlation between the two variables of X and Y, the above Cov(X, Y) is the covariance between the two variables of X and Y, the above
Figure PCTCN2021133107-appb-000002
is the standard deviation of the X variable, the above
Figure PCTCN2021133107-appb-000003
is the standard deviation of the Y variable. In the above formula, X can be any one of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and Y can be any of the remaining three items. one. For example, if the first face statistical data is X, then Y may be any one of the second face statistical data, the third face statistical data, and the fourth face statistical data. The above X is the mean value of the X variable, and Y is the mean value of the Y variable. When the above correlation is 0, the two variables X and Y have no relationship. When the value of X increases (decreases) and the value of Y increases (decreases), the two variables are positively correlated, and the correlation is between 0.00 and 1.00. When the value of X increases (decreases) and the value of Y decreases (increases), the two variables are negatively correlated, and the correlation is between -1.00 and 0.00.
可选的,可以根据第一人脸统计数据的标准差、第四人脸统计数据的标准差、第一人脸统计数据与第四人脸统计数据之间的协方差,计算第一人脸统计数据与第四人脸统计数据的第一相关性;和/或根据第二人脸统计数据的标准差、第四人脸统计数据的标准差、第二人脸统计数据与第四人脸统计数据之间 的协方差,计算第二人脸统计数据与所述第四人脸统计数据的第二相关性;和/或根据第三人脸统计数据的标准差、第四人脸统计数据的标准差、第三人脸统计数据与第四人脸统计数据之间的协方差,计算第三人脸统计数据第四人脸统计数据的第三相关性,并根据第一相关性和/或第二相关性和/或第三相关性进行销售预测分析。Optionally, the first face can be calculated according to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the first face statistical data and the fourth face statistical data. the first correlation of the statistical data with the fourth human face statistical data; and/or according to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the second human face statistical data and the fourth human face covariance between statistical data, calculating the second correlation between the second statistical data and the fourth statistical data; and/or according to the standard deviation of the third statistical data, the fourth statistical data The standard deviation, the covariance between the third face statistical data and the fourth face statistical data, calculate the third correlation of the third face statistical data and the fourth face statistical data, and based on the first correlation and/ Or second correlation and/or third correlation for sales forecast analysis.
进一步的,上述根据第一人脸统计数据的标准差、第四人脸统计数据的标准差、第一人脸统计数据与第四人脸统计数据之间的协方差,计算第一人脸统计数据与第四人脸统计数据的第一相关性,具体可以是根据经过商铺的行人的人脸统计数据,统计得到商铺行人的人流量;计算行人的人流量的标准差;根据结账商品数据,统计得到结账商品数量;计算结账商品数量的标准差;计算行人的人流量与结账商品数量之间的协方差;根据行人的人流量的标准差、结账商品数量的标准差以及人流量与结账商品数量之间的协方差,计算人流量与结账商品数量的相关性作为第一相关性。上述第一相关性可以判断商铺卖出的商品数量是不是与行人的人流量成正比,也可以理解为是否行人越多,商品就卖得越好。Further, the first face statistics are calculated according to the standard deviation of the first face statistics, the standard deviation of the fourth face statistics, and the covariance between the first face statistics and the fourth face statistics. The first correlation between the data and the fourth face statistical data may specifically be that, according to the face statistical data of the pedestrians passing through the shop, the pedestrian flow of the shop is obtained by statistics; the standard deviation of the pedestrian flow is calculated; according to the checkout commodity data, Calculate the number of checkout items; calculate the standard deviation of the checkout items; calculate the covariance between the pedestrian flow and the checkout item; The covariance between the quantities is calculated, and the correlation between the flow of people and the number of checkout items is calculated as the first correlation. The above-mentioned first correlation can determine whether the number of goods sold by the store is proportional to the flow of pedestrians, and it can also be understood as whether the more pedestrians, the better the goods are sold.
进一步的,上述根据第二人脸统计数据的标准差、第四人脸统计数据的标准差、第二人脸统计数据与第四人脸统计数据之间的协方差,计算第二人脸统计数据与第四人脸统计数据的第二相关性,具体可以是根据进店顾客的人脸统计数据,统计得到进店顾客数量;计算进店顾客数量(也可以称为进店顾客的人流量)的标准差;根据进店顾客数量的标准差、结账商品数量的标准差以及进店顾客数量与结账商品数量之间的协方差,计算进店顾客数量与结账商品数量的相关性作为第二相关性。上述第二相关性可以判断商铺卖出的商品数量是不是与进店顾客的数量成正比,也可以理解是否为进店的人越多,商品就卖得越好。Further, the second face statistics are calculated according to the standard deviation of the second face statistics, the standard deviation of the fourth face statistics, and the covariance between the second face statistics and the fourth face statistics. The second correlation between the data and the fourth face statistical data, specifically, the number of customers entering the store can be obtained according to the statistical data of the faces of the customers entering the store; ); according to the standard deviation of the number of customers entering the store, the standard deviation of the number of checkout items, and the covariance between the number of customers entering the store and the number of items checked out, the correlation between the number of customers entering the store and the number of items checked out is calculated as the second Correlation. The above-mentioned second correlation can determine whether the number of goods sold by the store is proportional to the number of customers entering the store, and it can also be understood whether the more people who enter the store, the better the goods are sold.
可选的,根据第三人脸统计数据的标准差、第四人脸统计数据的标准差、第三人脸统计数据与第四人脸统计数据之间的协方差,计算第三人脸统计数据第四人脸统计数据的第三相关性,可以根据浏览顾客的人脸统计数据、浏览商品数据,统计得到商品徘徊次数或时间;计算商品徘徊次数或时间对应的标准差;根据商品徘徊次数的标准差、结账商品数量的标准差以及商品徘徊次数与结账商品数量之间的协方差,计算商品徘徊次数与所述结账商品数量的相关性作为第三相关性;或根据商品徘徊时间的标准差、结账商品数量的标准差以及 商品徘徊时间与结账商品数量之间的协方差,分别计算商品徘徊时间与结账商品数量的相关性作为第三相关性。上述第三相关性可以判断商铺卖出的商品数量是不是与浏览顾客的徘徊时间或徘徊次数成正比,也可以理解是否为看得越多越久,就越容易产生购买行为。Optionally, calculate the third face statistics according to the standard deviation of the third face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the third face statistical data and the fourth face statistical data The third correlation of the data fourth face statistics, you can count the number or time of product wandering according to the browsing customer’s face statistics and browsing product data; calculate the standard deviation corresponding to the number of product wandering or time; The standard deviation of , the standard deviation of the number of items at checkout, and the covariance between the number of items lingering and the number of items at checkout are calculated, and the correlation between the number of items lingering and the number of items at checkout is calculated as the third correlation; or according to the standard of lingering time of items The difference, the standard deviation of the checkout item quantity, and the covariance between the item lingering time and the checkout item quantity, respectively calculate the correlation between the item lingering time and the checkout item quantity as the third correlation. The above-mentioned third correlation can determine whether the number of products sold by the store is proportional to the wandering time or the number of wandering times of browsing customers, and it can also be understood whether the more and longer the viewing, the easier it is to generate purchase behavior.
通过上述方法,还可以通过成功销售产品徘徊次数与员工徘徊次数,预测出成功销售的商品是否与员工引导成正比,进而确定员工培训方向;还可以通过同一顾客徘徊产品与同一顾客徘徊时间,预测出商品组合之间的相关性,进而对货架进行优化。Through the above method, it is also possible to predict whether the successfully sold product is proportional to the employee's guidance, and then determine the direction of employee training through the number of successful product sales and the number of employees' wandering, and then determine the direction of employee training. The correlation between the product portfolios can be found, and the shelves can be optimized.
在本发明实施例中,获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。本发明实施例通过获取到的在商铺各个区域的人脸统计数据,能够分析影响商铺销售的顾客、员工、商品三者之间的隐含关系,从而完善商铺在各个维度上的销售数据,帮助商铺定位顾客的购买期望,从而减少进货过程中的试错成本,保证了商铺的持续经营。通过本发明实施例提供的商铺销售数据分析方法,可以成功预测出商铺的产品是否符合该段区域的人群,以及商铺的产品偏向于哪类人员,辅助商铺更好的采购商品类型,优化货架的员工安排,优化货架排列顺序等等,可以有效预测商铺未来的经营方向,以及引导不同的人群消费不同的产品,最终提高商铺的整体营业额。In the embodiment of the present invention, an image of a first designated area is acquired, and face detection is performed on the image of the first designated area to obtain first statistical data of faces, and the first designated area is located in the area outside the store. , the first face statistical data includes the face statistical data of pedestrians passing through the store; obtain a second designated area image, and perform face detection on the second designated area image to obtain second face statistical data , the second designated area is located in the door area of the store, and the second face statistical data includes the face statistical data of customers entering the store; the third designated area image is acquired, and the third designated area image is processed. face detection to obtain third face statistical data, the third designated area is located in the shelf area of the store, and the third face statistical data includes browsing product data, employee and browsing customer face statistical data; obtaining a fourth designated area image, and performing face detection on the fourth designated area image to obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data Including the face statistics data of checkout customers and checkout commodity data; according to the first face statistics data, the second face statistics data, the third face statistics data, the fourth face statistics data, the sales analysis of the store is carried out . The embodiment of the present invention can analyze the implicit relationship among customers, employees, and commodities that affect the sales of the store through the acquired face statistical data in various areas of the store, thereby improving the sales data of the store in various dimensions, helping to The store locates the customer's purchase expectations, thereby reducing the trial and error cost in the purchase process and ensuring the continuous operation of the store. Through the store sales data analysis method provided by the embodiment of the present invention, it is possible to successfully predict whether the products of the store conform to the population in the area, and which type of people the products of the store are biased towards, so as to assist the store in purchasing better types of goods and optimize the shelf life. Staff arrangement, optimization of shelf arrangement, etc., can effectively predict the future business direction of the store, and guide different groups of people to consume different products, and ultimately increase the overall turnover of the store.
需要说明的是,本发明实施例提供的商铺销售数据分析方法可以应用于可以进行商铺销售数据分析的手机、监控器、计算机、服务器等设备。It should be noted that the method for analyzing store sales data provided by the embodiments of the present invention can be applied to devices such as mobile phones, monitors, computers, and servers that can analyze store sales data.
请参见图2,图2是本发明实施例提供的一种商铺销售数据分析装置的结 构示意图,如图2所示,所述装置包括:Please refer to Fig. 2, Fig. 2 is the structural representation of a kind of shop sales data analysis device that the embodiment of the present invention provides, as shown in Fig. 2, described device comprises:
第一获取模块201,用于获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;The first acquisition module 201 is used to acquire an image of a first designated area, perform face detection on the image of the first designated area, and obtain first face statistical data, and the first designated area is located outside the door of the store area, the first face statistical data includes the face statistical data of pedestrians passing through the store;
第二获取模块202,用于获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;The second obtaining module 202 is configured to obtain an image of a second designated area, perform face detection on the image of the second designated area, and obtain second face statistical data, and the second designated area is located in the door area of the store , the second face statistical data includes face statistical data of customers entering the store;
第三获取模块203,用于获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;The third acquisition module 203 is configured to acquire a third designated area image, perform face detection on the third designated area image, and obtain third face statistical data, and the third designated area is located in the shelf area of the store , the third face statistical data includes browsing product data, employee and browsing customer face statistical data;
第四获取模块204,用于获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;The fourth acquisition module 204 is configured to acquire a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, and the fourth designated area is located in the cashier area of the store , the fourth face statistical data includes face statistical data of checkout customers and checkout commodity data;
分析模块205,用于根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The analysis module 205 is configured to perform a sales analysis on the store according to the first face statistics data, the second face statistics data, the third face statistics data and the fourth face statistics data.
可选的,如图3所示,所述销售分析包括销售数据分析与销售预测分析,所述分析模块205,包括:Optionally, as shown in FIG. 3 , the sales analysis includes sales data analysis and sales forecast analysis, and the analysis module 205 includes:
第一处理子模块2051,用于将所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据形成图文报表,并根据所述图文报表进行所述销售数据分析;The first processing submodule 2051 is used to form the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data into a graphic report, and according to the graphic Reports to analyze the sales data;
第二处理子模块2052,用于根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析。The second processing submodule 2052 is configured to perform correlation calculation according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and according to the The sales forecast analysis is performed according to the result of the correlation calculation.
可选的,所述第二处理子模块2052还用于根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项对应的标准差与所述任意两项之间的协方差,计算所述任意两项之间相关性,并根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项的相关性进行所述销售预测分析。Optionally, the second processing sub-module 2052 is further configured to correspond to any two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data. The standard deviation and the covariance between the any two items, calculate the correlation between the any two items, and according to the first face statistical data, the second face statistical data, the third face statistical data and the correlation between any two items in the fourth face statistical data to perform the sales forecast analysis.
可选的,如图4所示,所述第二处理子模块2052,包括:Optionally, as shown in FIG. 4 , the second processing sub-module 2052 includes:
第一计算单元20521,用于根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性;和/或The first calculation unit 20521 is configured to calculate according to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, the first face statistical data and the fourth face statistical data covariance between, calculating the first correlation between the first face statistics and the fourth face statistics; and/or
第二计算单元20522,用于根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性;和/或The second calculation unit 20522 is configured to calculate according to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the second human face statistical data and the fourth human face statistical data covariance between, calculating the second correlation between the second face statistics and the fourth face statistics; and/or
第三计算单元20523,用于根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,并根据所述第一相关性和/或第二相关性和/或第三相关性进行所述销售预测分析。The third calculation unit 20523 is configured to calculate according to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, the third human face statistical data and the fourth human face statistical data covariance between, calculate the third correlation of the fourth face statistical data of the third face statistical data, and according to the first correlation and/or the second correlation and/or the third correlation to conduct the sales forecast analysis.
可选的,如图5所示,所述第一计算单元20521,包括:Optionally, as shown in FIG. 5 , the first computing unit 20521 includes:
第一统计子单元205211,用于根据所述经过所述商铺的行人的人脸统计数据,统计得到所述商铺的行人的人流量;The first statistical subunit 205211 is used to obtain statistics on the flow of pedestrians in the store according to the face statistics data of the pedestrians passing through the store;
第一计算子单元205212,用于计算所述行人的人流量的标准差;a first calculation subunit 205212, configured to calculate the standard deviation of the pedestrian flow;
第二统计子单元205213,用于根据所述结账商品数据,统计得到结账商品数量;The second statistics subunit 205213 is used to obtain the number of checkout commodities according to the checkout commodity data;
第二计算子单元205214,用于计算所述结账商品数量的标准差;The second calculation subunit 205214 is used to calculate the standard deviation of the checkout commodity quantity;
计算所述行人的人流量与所述结账商品数量之间的协方差;calculating the covariance between the flow of the pedestrian and the quantity of the checkout item;
第三计算子单元205215,用于根据所述行人的人流量的标准差、所述结账商品数量的标准差以及所述行人的人流量与所述结账商品数量之间的协方差,计算所述行人的人流量与所述结账商品数量的相关性作为第一相关性。The third calculation subunit 205215 is configured to calculate the said pedestrian flow according to the standard deviation of the pedestrian flow, the standard deviation of the checkout item quantity, and the covariance between the pedestrian flow rate and the checkout item quantity The correlation between the flow of pedestrians and the quantity of the checkout commodities is taken as the first correlation.
可选的,如图6所示,所述第二计算单元20522,包括:Optionally, as shown in Figure 6, the second computing unit 20522 includes:
第三统计子单元205221,用于根据所述进店顾客的人脸统计数据,统计得到进店顾客数量;The third statistical subunit 205221 is used to count the number of customers entering the store according to the face statistical data of the customers entering the store;
第四计算子单元205222,用于计算所述进店顾客数量的标准差;The fourth calculation subunit 205222 is used to calculate the standard deviation of the number of customers entering the store;
第五计算子单元205223,用于根据所述进店顾客数量的标准差、所述结账商品数量的标准差以及所述进店顾客数量与所述结账商品数量之间的协方 差,计算所述进店顾客数量与所述结账商品数量的相关性作为第二相关性。The fifth calculation subunit 205223 is configured to calculate the The correlation between the number of customers entering the store and the number of the checkout commodities is used as the second correlation.
可选的,如图7所示,所述第三计算单元20523,包括:Optionally, as shown in Figure 7, the third computing unit 20523 includes:
第四统计子单元205231,用于根据所述浏览顾客的人脸统计数据、浏览商品数据,统计得到商品徘徊次数或时间;The fourth statistical subunit 205231 is used to obtain statistics on the wandering times or time of commodities according to the browsing customer's face statistics data and browsing commodity data;
第六计算子单元205232,用于计算所述商品徘徊次数或时间对应的标准差;The sixth calculation subunit 205232 is used to calculate the standard deviation corresponding to the number of times or time the commodity lingers;
第七计算子单元205233,用于根据所述商品徘徊次数的标准差、所述结账商品数量的标准差以及所述商品徘徊次数与所述结账商品数量之间的协方差,计算所述商品徘徊次数与所述结账商品数量的相关性作为第三相关性;或第七计算子单元205233还用于根据所述商品徘徊时间的标准差、所述结账商品数量的标准差以及所述商品徘徊时间与所述结账商品数量之间的协方差,分别计算所述商品徘徊时间与所述结账商品数量的相关性作为第三相关性。The seventh calculation subunit 205233 is configured to calculate the commodity wandering according to the standard deviation of the commodity wandering times, the standard deviation of the checkout commodity quantity, and the covariance between the commodity wandering frequency and the checkout commodity quantity The correlation between the number of times and the number of the checkout commodities is used as the third correlation; or the seventh calculation subunit 205233 is further used to calculate the standard deviation of the lingering time of the commodity, the standard deviation of the checkout commodity quantity, and the lingering time of the commodity and the covariance between the checkout item quantity, respectively calculate the correlation between the item lingering time and the checkout item quantity as a third correlation.
需要说明的是,本发明实施例提供的商铺销售数据分析装置可以应用于可以进行商铺销售数据分析的手机、监控器、计算机、服务器等设备。It should be noted that the apparatus for analyzing store sales data provided by the embodiments of the present invention can be applied to devices such as mobile phones, monitors, computers, and servers that can analyze store sales data.
本发明实施例提供的商铺销售数据分析装置能够实现上述方法实施例中商铺销售数据分析方法实现的各个过程,且可以达到相同的有益效果。为避免重复,这里不再赘述。The store sales data analysis device provided by the embodiment of the present invention can realize the various processes implemented by the store sales data analysis method in the above method embodiments, and can achieve the same beneficial effects. In order to avoid repetition, details are not repeated here.
参见图8,图8是本发明实施例提供的一种电子设备的结构示意图,如图8所示,包括:存储器802、处理器801及存储在所述存储器802上并可在所述处理器801上运行的计算机程序,其中:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 8, it includes: a memory 802, a processor 801, and a memory 802 and a processor 801 stored in the memory 802 and available on the processor A computer program running on 801, which:
处理器801用于调用存储器802存储的计算机程序,执行如下步骤:The processor 801 is used for calling the computer program stored in the memory 802, and performs the following steps:
获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;Obtain the first designated area image, perform face detection on the first designated area image, and obtain first face statistical data, the first designated area is located in the area outside the store, and the first face The statistical data includes face statistics of pedestrians passing through the shop;
获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;Obtain the second designated area image, perform face detection on the second designated area image, and obtain second face statistical data, the second designated area is located in the door area of the store, and the second face statistical data The data includes facial statistics of customers entering the store;
获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;Obtain a third designated area image, perform face detection on the third designated area image, and obtain third face statistical data, the third designated area is located in the shelf area of the store, and the third face statistical data Data includes browsing product data, employee and browsing customer facial statistics;
获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到 第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;Obtain a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data The data includes the facial statistics of the checkout customer and the checkout item data;
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The sales analysis of the store is performed according to the first face statistics data, the second face statistics data, the third face statistics data, and the fourth face statistics data.
可选的,所述销售分析包括销售数据分析与销售预测分析,处理器801执行的所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析,包括:Optionally, the sales analysis includes sales data analysis and sales forecast analysis. The sales analysis of the store is carried out on the face statistics, including:
将所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据形成图文报表,并根据所述图文报表进行所述销售数据分析;Form the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data into a graphic report, and analyze the sales data according to the graphic report;
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析。The correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation calculation is carried out according to the result of the correlation calculation. Sales forecast analysis.
可选的,处理器801执行的所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:Optionally, the correlation calculation performed by the processor 801 is performed according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data, The sales forecast analysis is performed according to the result of the correlation calculation, including:
根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项对应的标准差与所述任意两项之间的协方差,计算所述任意两项之间相关性,并根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项的相关性进行所述销售预测分析。According to the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between the any two items, Calculate the correlation between the any two items, and carry out the correlation according to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data. The sales forecast analysis.
可选的,处理器801执行的所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:Optionally, the correlation calculation performed by the processor 801 is performed according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data, The sales forecast analysis is performed according to the result of the correlation calculation, including:
根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性;和/或According to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the first face statistical data and the fourth face statistical data, calculate the the first correlation between the first face statistics and the fourth face statistics; and/or
根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性;和/或According to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the second human face statistical data and the fourth human face statistical data, calculate the a second correlation between the second face statistics and the fourth face statistics; and/or
根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三 人脸统计数据所述第四人脸统计数据的第三相关性,并根据所述第一相关性和/或第二相关性和/或第三相关性进行所述销售预测分析。According to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the third human face statistical data and the fourth human face statistical data, calculate the The third correlation of the fourth face statistical data of the third face statistical data is performed, and the sales forecast analysis is performed according to the first correlation and/or the second correlation and/or the third correlation.
可选的,处理器801执行的所述根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性,包括:Optionally, according to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, the first face statistical data and the fourth person executed by the processor 801 Covariance between face statistics, calculating the first correlation between the first face statistics and the fourth face statistics, including:
根据所述经过所述商铺的行人的人脸统计数据,统计得到所述商铺的行人的人流量;According to the statistical data of the faces of the pedestrians passing through the shop, the traffic flow of the pedestrians in the shop is obtained according to statistics;
计算所述行人的人流量的标准差;calculating the standard deviation of the pedestrian flow of said pedestrian;
根据所述结账商品数据,统计得到结账商品数量;According to the checkout product data, the number of checkout products is obtained by statistics;
计算所述结账商品数量的标准差;calculating the standard deviation of the checkout item quantity;
计算所述行人的人流量与所述结账商品数量之间的协方差;calculating the covariance between the flow of the pedestrian and the quantity of the checkout item;
根据所述行人的人流量的标准差、所述结账商品数量的标准差以及所述人流量与所述结账商品数量之间的协方差,计算所述行人的人流量与所述结账商品数量的相关性作为第一相关性。According to the standard deviation of the pedestrian flow, the standard deviation of the checkout item quantity, and the covariance between the pedestrian flow and the checkout item quantity, calculate the difference between the pedestrian flow rate and the checkout item quantity correlation as the first correlation.
可选的,处理器801执行的所述根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性,包括:Optionally, according to the standard deviation of the second face statistical data, the standard deviation of the fourth face statistical data, the second face statistical data and the fourth person executed by the processor 801 Covariance between face statistics, calculating the second correlation between the second face statistics and the fourth face statistics, including:
根据所述进店顾客的人脸统计数据,统计得到进店顾客数量;According to the face statistics of the customers entering the store, the number of customers entering the store is obtained by statistics;
计算所述进店顾客数量的标准差;calculating the standard deviation of the number of customers entering the store;
根据所述进店顾客数量的标准差、所述结账商品数量的标准差以及所述进店顾客数量与所述结账商品数量之间的协方差,计算所述进店顾客数量与所述结账商品数量的相关性作为第二相关性。Calculate the number of in-store customers and the check-out commodity according to the standard deviation of the number of in-store customers, the standard deviation of the check-out commodity number, and the covariance between the in-store customer number and the check-out commodity number The correlation of the quantity serves as the second correlation.
可选的,处理器801执行的所述根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,包括:Optionally, according to the standard deviation of the third face statistical data, the standard deviation of the fourth face statistical data, the third face statistical data and the fourth person executed by the processor 801 The covariance between the face statistical data, and the third correlation of the fourth face statistical data of the third face statistical data is calculated, including:
根据所述浏览顾客的人脸统计数据、浏览商品数据,统计得到商品徘徊次数或时间;According to the browsing customer's face statistics data and browsing commodity data, the number of times or time of commodity wandering is obtained according to statistics;
计算所述商品徘徊次数或时间对应的标准差;Calculate the standard deviation corresponding to the number of times or time the commodity lingers;
根据所述商品徘徊次数的标准差、所述结账商品数量的标准差以及所述商品徘徊次数与所述结账商品数量之间的协方差,分别计算所述商品徘徊次数与所述结账商品数量的相关性作为第三相关性;或According to the standard deviation of the number of times of commodity wandering, the standard deviation of the number of checkout commodities, and the covariance between the number of times of commodity wandering and the number of checkout commodities, calculate the difference between the number of times of commodity wandering and the number of checkout commodities, respectively correlation as a third correlation; or
根据所述商品徘徊时间的标准差、所述结账商品数量的标准差以及所述商品徘徊时间与所述结账商品数量之间的协方差,分别计算所述商品徘徊时间与所述结账商品数量的相关性作为第三相关性。According to the standard deviation of the commodity lingering time, the standard deviation of the checkout commodity quantity, and the covariance between the commodity lingering time and the checkout commodity quantity, the difference between the commodity lingering time and the checkout commodity quantity is calculated respectively. correlation as a third correlation.
需要说明的是,上述电子设备可以是可以应用于可以进行商铺销售数据分析的手机、监控器、计算机、服务器等设备。It should be noted that the above-mentioned electronic device may be a mobile phone, a monitor, a computer, a server and other devices that can be applied to analyze the sales data of a store.
本发明实施例提供的电子设备能够实现上述方法实施例中商铺销售数据分析方法实现的各个过程,且可以达到相同的有益效果,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can realize the various processes realized by the method for analyzing the store sales data in the above method embodiment, and can achieve the same beneficial effect. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现本发明实施例提供的商铺销售数据分析方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the method for analyzing store sales data provided by the embodiments of the present invention is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short), and the like.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种商铺销售数据分析方法,其特征在于,包括以下步骤:A method for analyzing store sales data, comprising the following steps:
    获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;Obtain the first designated area image, perform face detection on the first designated area image, and obtain first face statistical data, the first designated area is located in the area outside the store, and the first face The statistical data includes face statistics of pedestrians passing through the shop;
    获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;Obtain the second designated area image, perform face detection on the second designated area image, and obtain second face statistical data, the second designated area is located in the door area of the store, and the second face statistical data The data includes facial statistics of customers entering the store;
    获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;Obtain a third designated area image, perform face detection on the third designated area image, and obtain third face statistical data, the third designated area is located in the shelf area of the store, and the third face statistical data Data includes browsing product data, employee and browsing customer facial statistics;
    获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;Obtain a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, the fourth designated area is located in the cashier area of the store, and the fourth face statistical data The data includes the facial statistics of the checkout customer and the checkout item data;
    根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The sales analysis of the store is performed according to the first face statistics data, the second face statistics data, the third face statistics data, and the fourth face statistics data.
  2. 如权利要求1所述的方法,其特征在于,所述销售分析包括销售数据分析与销售预测分析,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析,包括:The method of claim 1, wherein the sales analysis includes sales data analysis and sales forecast analysis, and the first face statistical data, the second face statistical data, and the third face statistical data The data and the fourth face statistical data are used to analyze the sales of the store, including:
    将所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据形成图文报表,并根据所述图文报表进行所述销售数据分析;Form the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data into a graphic report, and analyze the sales data according to the graphic report;
    根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析。The correlation calculation is performed according to at least two of the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data, and the correlation calculation is carried out according to the result of the correlation calculation. Sales forecast analysis.
  3. 如权利要求2所述的方法,其特征在于,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:The method according to claim 2, characterized in that, performing the method according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data Relevance calculation, the sales forecast analysis is performed according to the result of the correlation calculation, including:
    根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项对应的标准差与所述任意两项之间的协方差,计算所述任意两项之间相关性,并根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中任意两项的相关性进行所述销售预测 分析。According to the standard deviation corresponding to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data and the covariance between the any two items, Calculate the correlation between the any two items, and carry out the correlation according to any two items in the first face statistical data, the second face statistical data, the third face statistical data, and the fourth face statistical data. The sales forecast analysis.
  4. 如权利要求2所述的方法,其特征在于,所述根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据中至少两项进行相关性计算,根据所述相关性计算的结果进行所述销售预测分析,包括:The method according to claim 2, characterized in that, performing the method according to at least two of the first human face statistical data, the second human face statistical data, the third human face statistical data, and the fourth human face statistical data Relevance calculation, the sales forecast analysis is performed according to the result of the correlation calculation, including:
    根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性;和/或According to the standard deviation of the first face statistical data, the standard deviation of the fourth face statistical data, and the covariance between the first face statistical data and the fourth face statistical data, calculate the the first correlation between the first face statistics and the fourth face statistics; and/or
    根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性;和/或According to the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the second human face statistical data and the fourth human face statistical data, calculate the a second correlation between the second face statistics and the fourth face statistics; and/or
    根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,并根据所述第一相关性和/或第二相关性和/或第三相关性进行所述销售预测分析。According to the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, and the covariance between the third human face statistical data and the fourth human face statistical data, calculate the The third correlation of the fourth face statistical data of the third face statistical data is performed, and the sales forecast analysis is performed according to the first correlation and/or the second correlation and/or the third correlation.
  5. 如权利要求4所述的方法,其特征在于,所述根据所述第一人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第一人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第一人脸统计数据与所述第四人脸统计数据的第一相关性,包括:The method according to claim 4, wherein the standard deviation of the first human face statistical data, the standard deviation of the fourth human face statistical data, the first human face statistical data and the Calculate the covariance between the fourth human face statistical data, and calculate the first correlation between the first human face statistical data and the fourth human face statistical data, including:
    根据所述经过所述商铺的行人的人脸统计数据,统计得到所述商铺的行人的人流量;According to the statistical data of the faces of the pedestrians passing through the shop, the traffic flow of the pedestrians in the shop is obtained according to statistics;
    计算所述行人的人流量的标准差;calculating the standard deviation of the pedestrian flow of said pedestrian;
    根据所述结账商品数据,统计得到结账商品数量;According to the checkout product data, the number of checkout products is obtained by statistics;
    计算所述结账商品数量的标准差;calculating the standard deviation of the checkout item quantity;
    计算所述行人的人流量与所述结账商品数量之间的协方差;calculating the covariance between the flow of the pedestrian and the quantity of the checkout item;
    根据所述行人的人流量的标准差、所述结账商品数量的标准差以及所述行人的人流量与所述结账商品数量之间的协方差,计算所述行人的人流量与所述结账商品数量的相关性作为第一相关性。According to the standard deviation of the pedestrian flow, the standard deviation of the checkout item quantity, and the covariance between the pedestrian flow rate and the checkout item quantity, calculate the pedestrian flow and the checkout item The correlation of the quantity is taken as the first correlation.
  6. 如权利要求5所述的方法,其特征在于,所述根据所述第二人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第二人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第二人脸统计数据与所述第四人脸统计数据的第二相关性,包括:The method according to claim 5, wherein the standard deviation of the second human face statistical data, the standard deviation of the fourth human face statistical data, the second human face statistical data and the and calculating the covariance between the fourth human face statistical data, and calculating the second correlation between the second human face statistical data and the fourth human face statistical data, including:
    根据所述进店顾客的人脸统计数据,统计得到进店顾客数量;According to the face statistics of the customers entering the store, the number of customers entering the store is obtained by statistics;
    计算所述进店顾客数量的标准差;calculating the standard deviation of the number of customers entering the store;
    根据所述进店顾客数量的标准差、所述结账商品数量的标准差以及所述进店顾客数量与所述结账商品数量之间的协方差,计算所述进店顾客数量与所述结账商品数量的相关性作为第二相关性。Calculate the number of in-store customers and the check-out commodity according to the standard deviation of the number of in-store customers, the standard deviation of the check-out commodity number, and the covariance between the in-store customer number and the check-out commodity number The correlation of the quantity serves as the second correlation.
  7. 如权利要求6所述的方法,其特征在于,所述根据所述第三人脸统计数据的标准差、所述第四人脸统计数据的标准差、所述第三人脸统计数据与所述第四人脸统计数据之间的协方差,计算所述第三人脸统计数据所述第四人脸统计数据的第三相关性,包括:The method according to claim 6, wherein the standard deviation of the third human face statistical data, the standard deviation of the fourth human face statistical data, the third human face statistical data and the The covariance between the fourth human face statistical data, and the third correlation of the fourth human face statistical data of the third human face statistical data is calculated, including:
    根据所述浏览顾客的人脸统计数据、浏览商品数据,统计得到商品徘徊次数或时间;According to the browsing customer's face statistics data and browsing commodity data, the number of times or time of commodity wandering is obtained according to statistics;
    计算所述商品徘徊次数或时间对应的标准差;Calculate the standard deviation corresponding to the number of times or time the commodity lingers;
    根据所述商品徘徊次数的标准差、所述结账商品数量的标准差以及所述商品徘徊次数与所述结账商品数量之间的协方差,计算所述商品徘徊次数与所述结账商品数量的相关性作为第三相关性;或According to the standard deviation of the number of times of commodity wandering, the standard deviation of the number of checkout commodities, and the covariance between the number of times of commodity wandering and the number of checkout commodities, the correlation between the number of times of commodity wandering and the number of checkout commodities is calculated sex as a third relevance; or
    根据所述商品徘徊时间的标准差、所述结账商品数量的标准差以及所述商品徘徊时间与所述结账商品数量之间的协方差,分别计算所述商品徘徊时间与所述结账商品数量的相关性作为第三相关性。According to the standard deviation of the commodity lingering time, the standard deviation of the checkout commodity quantity, and the covariance between the commodity lingering time and the checkout commodity quantity, the difference between the commodity lingering time and the checkout commodity quantity is calculated respectively. correlation as a third correlation.
  8. 一种商铺销售数据分析装置,其特征在于,所述装置包括:A store sales data analysis device, characterized in that the device comprises:
    第一获取模块,用于获取第一指定区域图像,并对所述第一指定区域图像进行人脸检测,得到第一人脸统计数据,所述第一指定区域位于所述商铺的门外区域,所述第一人脸统计数据包括经过所述商铺的行人的人脸统计数据;The first acquisition module is used to acquire a first designated area image, and perform face detection on the first designated area image to obtain first face statistical data, and the first designated area is located in the area outside the store. , the first face statistical data includes the face statistical data of pedestrians passing through the store;
    第二获取模块,用于获取第二指定区域图像,并对所述第二指定区域图像进行人脸检测,得到第二人脸统计数据,所述第二指定区域位于所述商铺的门口区域,所述第二人脸统计数据包括进店顾客的人脸统计数据;The second acquisition module is configured to acquire an image of a second designated area, perform face detection on the image of the second designated area, and obtain second face statistical data, and the second designated area is located in the door area of the store, The second face statistical data includes face statistical data of customers entering the store;
    第三获取模块,用于获取第三指定区域图像,并对所述第三指定区域图像进行人脸检测,得到第三人脸统计数据,所述第三指定区域位于所述商铺的货架区域,所述第三人脸统计数据包括浏览商品数据、员工及浏览顾客的人脸统计数据;a third acquisition module, configured to acquire an image of a third designated area, perform face detection on the image of the third designated area, and obtain third face statistical data, and the third designated area is located in the shelf area of the store, The third face statistical data includes browsing product data, employee and browsing customer face statistical data;
    第四获取模块,用于获取第四指定区域图像,并对所述第四指定区域图像进行人脸检测,得到第四人脸统计数据,所述第四指定区域位于所述商铺的收 银区域,所述第四人脸统计数据包括结账顾客的人脸统计数据以及结账商品数据;a fourth acquisition module, configured to acquire a fourth designated area image, perform face detection on the fourth designated area image, and obtain fourth face statistical data, where the fourth designated area is located in the cashier area of the store, The fourth face statistical data includes face statistical data of checkout customers and checkout commodity data;
    分析模块,用于根据所述第一人脸统计数据、第二人脸统计数据、第三人脸统计数据、第四人脸统计数据对所述商铺进行销售分析。The analysis module is configured to analyze the sales of the store according to the first face statistics data, the second face statistics data, the third face statistics data and the fourth face statistics data.
  9. 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7中任一项所述的商铺销售数据分析方法中的步骤。An electronic device, characterized by comprising: a memory, a processor, and a computer program stored on the memory and running on the processor, the processor implementing the computer program as claimed in claim 1 when the processor executes the computer program Steps in the store sales data analysis method described in any one of to 7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的商铺销售数据分析方法中的步骤。A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the store sale according to any one of claims 1 to 7 is realized Steps in a data analysis method.
PCT/CN2021/133107 2020-12-31 2021-11-25 Store sales data analysis method, apparatus, electronic device, and storage medium WO2022142899A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011640061.6A CN112883775A (en) 2020-12-31 2020-12-31 Shop sales data analysis method and device, electronic equipment and storage medium
CN202011640061.6 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022142899A1 true WO2022142899A1 (en) 2022-07-07

Family

ID=76046640

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133107 WO2022142899A1 (en) 2020-12-31 2021-11-25 Store sales data analysis method, apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN112883775A (en)
WO (1) WO2022142899A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883775A (en) * 2020-12-31 2021-06-01 深圳云天励飞技术股份有限公司 Shop sales data analysis method and device, electronic equipment and storage medium
CN116777571B (en) * 2023-08-22 2023-11-10 山东创恩信息科技股份有限公司 Merchant recommendation and purchase method and system based on big data and Internet platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160300249A1 (en) * 2015-04-07 2016-10-13 Toshiba Tec Kabushiki Kaisha Sales data processing apparatus and method for inputting attribute information
CN106056397A (en) * 2015-04-07 2016-10-26 东芝泰格有限公司 Sales data processing apparatus, control method thereof, and server
CN108985218A (en) * 2018-07-10 2018-12-11 上海小蚁科技有限公司 People flow rate statistical method and device, calculates equipment at storage medium
CN111784387A (en) * 2020-06-23 2020-10-16 大连中维世纪科技有限公司 Multi-dimensional big data-based consumer brand loyalty analysis method
CN112016485A (en) * 2020-08-31 2020-12-01 罗普特科技集团股份有限公司 Passenger flow statistical method and system based on face recognition
CN112883775A (en) * 2020-12-31 2021-06-01 深圳云天励飞技术股份有限公司 Shop sales data analysis method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170300932A1 (en) * 2016-04-14 2017-10-19 Toshiba Tec Kabushiki Kaisha Sales data processing apparatus, server and method for acquiring attribute information
JP6562474B2 (en) * 2017-12-20 2019-08-21 Necプラットフォームズ株式会社 Sales analysis device, sales management system, sales analysis method, and program
CN111178966A (en) * 2019-12-30 2020-05-19 武汉零客思唯科技有限公司 Latent customer behavior analysis method and system based on face recognition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160300249A1 (en) * 2015-04-07 2016-10-13 Toshiba Tec Kabushiki Kaisha Sales data processing apparatus and method for inputting attribute information
CN106056397A (en) * 2015-04-07 2016-10-26 东芝泰格有限公司 Sales data processing apparatus, control method thereof, and server
CN108985218A (en) * 2018-07-10 2018-12-11 上海小蚁科技有限公司 People flow rate statistical method and device, calculates equipment at storage medium
CN111784387A (en) * 2020-06-23 2020-10-16 大连中维世纪科技有限公司 Multi-dimensional big data-based consumer brand loyalty analysis method
CN112016485A (en) * 2020-08-31 2020-12-01 罗普特科技集团股份有限公司 Passenger flow statistical method and system based on face recognition
CN112883775A (en) * 2020-12-31 2021-06-01 深圳云天励飞技术股份有限公司 Shop sales data analysis method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112883775A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN109284044B (en) Function menu display method based on big data and related equipment
US20210035137A1 (en) Systems and methods for product placement optimization by sensing customer traffic in stores
US8010402B1 (en) Method for augmenting transaction data with visually extracted demographics of people using computer vision
WO2022142899A1 (en) Store sales data analysis method, apparatus, electronic device, and storage medium
JP6596899B2 (en) Service data processing apparatus and service data processing method
US8429016B2 (en) Generating an alert based on absence of a given person in a transaction
US20100262281A1 (en) Relationship analysis method, relationship analysis program, and relationship analysis apparatus
US9928530B2 (en) Digitization of a catalog of retail products
CN111263224A (en) Video processing method and device and electronic equipment
US8612286B2 (en) Creating a training tool
JP2016146026A (en) Customer analysis method and analysis device
US20180158063A1 (en) Point-of-sale fraud detection using video data and statistical evaluations of human behavior
AU2017231602A1 (en) Method and system for visitor tracking at a POS area
WO2023070844A1 (en) Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium
CN111260685B (en) Video processing method and device and electronic equipment
WO2020073524A1 (en) Method and apparatus for recommending a product offline, and electronic device
CN113887884A (en) Business-super service system
KR102532357B1 (en) Method for configuration of data economy for financial service and apparatus for performing the method
Gao et al. Improving convenience or saving face? An empirical analysis of the use of facial recognition payment technology in retail
US20220172271A1 (en) Method, device and system for recommending information, and storage medium
CN116051208A (en) Retail system user behavior analysis method and system based on intelligent analysis
Szabó-Szentgróti et al. Systematic Review of Cashierless Stores (Just Walk Out Stores) Revolutionizing The Retail
CN112351389A (en) Tracking method, device, terminal, medium and system for person track in commercial place
Hussain et al. Usage of Deep learning Techniques for Personalized Recognition Systems in Online Shopping
JP2019083058A (en) Image processor and image processing program

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: 21913641

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: 21913641

Country of ref document: EP

Kind code of ref document: A1