WO2022127276A1 - Information processing method and apparatus, and electronic device, storage medium and computer program - Google Patents

Information processing method and apparatus, and electronic device, storage medium and computer program Download PDF

Info

Publication number
WO2022127276A1
WO2022127276A1 PCT/CN2021/121449 CN2021121449W WO2022127276A1 WO 2022127276 A1 WO2022127276 A1 WO 2022127276A1 CN 2021121449 W CN2021121449 W CN 2021121449W WO 2022127276 A1 WO2022127276 A1 WO 2022127276A1
Authority
WO
WIPO (PCT)
Prior art keywords
store
target
information
people
target place
Prior art date
Application number
PCT/CN2021/121449
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 WO2022127276A1 publication Critical patent/WO2022127276A1/en

Links

Images

Classifications

    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/53Recognition of crowd images, e.g. recognition of crowd congestion
    • 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/20Movements or behaviour, e.g. gesture recognition
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit

Definitions

  • the present disclosure relates to the technical field of computer vision, and in particular, to an information processing method, apparatus, electronic device, storage medium, and computer program.
  • each store usually adopts storefront display to attract customers.
  • store operators usually use the new products of this season or this month, and products with higher sales as display items.
  • the embodiments of the present disclosure provide at least one information processing solution.
  • an embodiment of the present disclosure provides an information processing method, including: acquiring trajectory information of pedestrians in the video stream based on a video stream collected from a first target location; based on the trajectory information of pedestrians in the video stream , determine the number of first people entering the first target place and the number of second people passing through the first target place within a preset time period; Adjustment information of items displayed in the second target place.
  • the above-mentioned technical means can be used to determine the human flow data of different dimensions in combination with the collected video streams, which may specifically include the number of first and second human flows that can respectively reflect the number of people entering the first place and passing through the first target place. quantity. Based on the obtained people flow data in different dimensions related to the first target place, an adjustment plan can be formulated for the items displayed in the second target place, that is, adjustment information is generated.
  • targeted adjustment information can be generated based on the flow data of people in different dimensions.
  • an adjustment scheme suitable for the second target place can be obtained based on the flow data of people in different dimensions in the first target place.
  • an adjustment scheme suitable for the second target place can be obtained without additionally examining the flow of people in the second target place.
  • the technical solution provided by the present disclosure can obtain an adjustment solution suitable for the second target site through the rational use of existing resources, which can undoubtedly get rid of the excessive dependence on sales data of the traditional item display solution, and realize the current situation. There are full utilization of resources.
  • the obtained adjustment scheme of the displayed items can be more adapted to the actual needs of the second target place.
  • the second target location is the same as the first target location, or the second target location is an associated location associated with the first target location.
  • the first target place includes a first store within a set range area, and based on the first number of people and the second number of people
  • the adjustment information of the displayed items includes: determining the store entry rate of the first store within the preset time period based on the first number of people and the second number of people; The store entry rate within the preset time period is used to generate adjustment information for the items displayed in the second target field.
  • the store entry rate can reflect the popularity of the items displayed in the first store within a preset period of time, so that the adjustment plan can be formulated directly based on the store entry rate for the second target place associated with the first store, and the whole process does not need to go through Manually count the sales data of the second target site, which saves labor costs and improves the accuracy of the determined adjustment plan.
  • the first store includes at least two stores
  • the adjustment for the items displayed in the second target place is generated based on the store entry rate of the first store within the preset time period Information, including: based on the corresponding store entry rate of each store in the first store within the same statistical period, and the items displayed by each store in the same statistical period, generating a target site for the second target site Adjustment information for the items displayed inside.
  • the store entry rate of stores displaying different items can be counted in the same statistical period, for example, the store entry rate of multiple stores in a shopping mall in the same quarter can be counted, so that the display of multiple stores can be determined.
  • the popularity of the items in the same statistical period, and then the adjustment information for the items displayed in the second target place can be generated. This process does not need to count the sales data of the second target place in the statistical period, saving labor costs, And the accuracy of the determined adjustment scheme is improved.
  • the generating method is based on the store entry rate corresponding to each store in the first store in the same statistical period and the items displayed in each store in the same statistical period.
  • the adjustment information for the items displayed in the second target place includes: determining the first target store and the second target store from the first stores based on the corresponding store entry rate of each store in the same statistical period , the first target store is the store corresponding to the lowest entry rate in the first store, and the second target store is the store corresponding to the highest entry rate in the first store; the first target store is As the second target place, adjustment instruction information for the items displayed in the second target place is generated based on the items displayed in the second target store.
  • the first target store with the lowest store entry rate and the second target store with the highest store entry rate within the preset range can be selected. Further, according to the items displayed in the second target store, an adjustment plan can be formulated for the second target place that is the same as the first target store, and there is no need to additionally investigate the store entry rate in the second target place, which can save labor costs and improve the determination of resource allocation. s efficiency.
  • the first store is one
  • the adjustment information for the items displayed in the second target place is generated based on the store entry rate of the first store within the preset time period, Including: generating adjustment information for the items displayed in the second target place based on the respective store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods respectively .
  • the store entry rate of the same store in different statistical time periods can be counted, so as to determine the correlation between the items displayed in the same store and different statistical time periods, such as which statistical time period the items displayed in the store are in.
  • the most popular so that based on the relationship between the items displayed in the same store and different statistical time periods, an adjustment plan can be formulated for the second target place, and the items displayed in the second target place in different statistical time periods can be determined. This process can save manual offline. Count the cost of store entry rate and improve the efficiency of resource allocation.
  • generating The adjustment information of the items displayed in the second target place includes: in the case that the items displayed by the first store in different statistical periods are the same, based on the corresponding store entry rates of the first store in different statistical periods , determine the target display period corresponding to the items displayed in the first store; the store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold; based on the target display period, generate the target display period Adjustment information for items displayed in the second target location.
  • the popular target of the items displayed in the first store can be selected Display period, based on this, an adjustment plan can be made for the items displayed in the second target field during the target display period. This process can save the time required to manually count the store entry rate of the second target field in different display periods, and no need The sales data of the second target site in different display periods are counted, so that the formulation efficiency of the adjustment plan can be improved.
  • the adjustment information of the items displayed in the target place including: in the case that the items displayed by the first store in different statistical periods are different, based on the corresponding store entry of the first shop in different statistical periods determine the matching degree between the items displayed in the first store in different statistical periods and the corresponding display period; based on the determined matching degree, generate an adjustment for the items displayed in the second target place during a specific display period information.
  • the adjustment plan is formulated for the displayed items. This process can save the time required to manually count the entry rate of the second target site in different display periods, and it is also unnecessary to count the sales data of the second target site in different display periods, so that it can be Improve the efficiency of formulating adjustment plans.
  • the determining the store entry rate of the first store within the preset time period based on the first flow of people and the second flow of people includes: based on the first flow of people The number of people and the second number of people to obtain the total number of people; the ratio of the first number of people to the total number of people is used as the store entry rate of the first store within the preset time period.
  • the store entry rate of the store within a preset period of time can be determined through video stream detection, which saves the time required to manually count the store entry rate and improves the store entry rate. statistical efficiency.
  • the acquiring the trajectory information of pedestrians in the video stream based on the video stream collected from the first target location includes: performing pedestrian detection on the target video frame in the video stream, identifying obtain the position information of each pedestrian contained in the target video frame; determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian contained in the target video frame; The location information in the video stream is used to determine the trajectory information of the target pedestrian.
  • the position information of each pedestrian in the video frame can be quickly determined, so that the position information of the target pedestrian in the video stream can be determined based on the position information of each pedestrian, and then the position information of the target pedestrian can be quickly determined.
  • the trajectory information of the target pedestrian can be quickly determined.
  • the information processing method before determining the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame, the information processing method further includes: acquiring The feature information of pedestrians in the target video frames; based on the feature information of pedestrians contained in different target video frames respectively, determine the feature similarity between pedestrians contained in the different target video frames; The pedestrian corresponding to the maximum similarity at the preset similarity threshold is used as the target pedestrian.
  • the target pedestrians in different target video frames can be determined by extracting the characteristic information of the pedestrians contained in the target video frames, so as to provide convenience for the subsequent tracking of the target pedestrians to determine the trajectory information of the target pedestrians.
  • determining the number of the first flow of people entering the first target place within a preset time period based on the trajectory information of pedestrians in the video stream includes: based on the trajectory information and a first determination A flag, the number of pedestrians entering the first target place within the preset time period is counted to obtain the first number of people flow, and the first determination flag is used to judge whether pedestrians enter the first target place.
  • determining the number of second flows of people passing through the first target place within a preset time period based on the trajectory information of pedestrians in the video stream includes: based on the trajectory information, a first determination mark and a second judgment mark, the number of pedestrians passing through the first target place within the preset time period and not entering the first target place is counted to obtain the second number of pedestrians, the first judgment mark It is used for judging whether the pedestrian enters the first target place, and the second judgment flag is used for judging whether the pedestrian passes through the first target place.
  • a pre-drawn first judgment mark for judging whether the pedestrian enters the first target place and the first judgment mark for judging whether the pedestrian passes through the first target place can be combined.
  • the second judgment flag can more accurately determine whether the pedestrian passes through the first target place. This process can save the time for manually counting the number of people, and improve the efficiency of counting the number of people.
  • the information processing method further includes: in the case where it is determined that the number of the first crowd is greater than a first preset threshold, generating first warning prompt information.
  • the number of people entering the first target place within a preset time period can be counted, and when it is determined that the number of people entering the first target place is large within the preset time period, early warning information can be generated to improve pedestrians' Security when entering the first target site.
  • the information processing method further includes: determining, based on the trajectory information and the first determination flag, the number of third people who have left the first target place within the preset time period, and The first judgment flag is used for judging whether the pedestrian enters the first target place; when it is determined that the number of the third pedestrian flow is greater than the second preset threshold, second warning prompt information is generated.
  • the number of people leaving the first target place within a preset time period can be counted, and when it is determined that the number of people leaving the first target place is large within the preset time period, early warning information can be generated, so as to improve the safety of pedestrians. Safety when leaving the first target site.
  • the information processing method further includes: based on the historical number of people staying at the first target place within the preset time period, the number of the first flow of people and the number of the third flow of people, Determine the net personnel stock of the first target place within the preset time period; when it is determined that the net personnel stock of the first target place within the preset time period is greater than a third preset threshold, generate the first Three warning information.
  • the net stock of personnel in the first target place can be detected in real time, and if it is determined that the net stock of personnel exceeds the threshold, an early warning prompt can be given. Safety of pedestrians staying in the first target site.
  • an embodiment of the present disclosure provides an information processing apparatus, including: an acquisition module, configured to acquire the trajectory information of pedestrians in the video stream based on a video stream collected from a first target location; a determination module, configured to Determine, based on the trajectory information of pedestrians in the video, the number of the first flow of people entering the first target place and the number of second flows of people passing through the first target place within a preset time period; The first flow of people and the second flow of people are used to generate adjustment information for the items displayed in the second target place.
  • embodiments of the present disclosure provide an electronic device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processing The processor and the memory communicate through a bus, and the machine-readable instructions execute the steps of the information processing method according to the first aspect when the machine-readable instructions are executed by the processor.
  • an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the information processing method according to the first aspect. step.
  • an embodiment of the present disclosure provides a computer program, where the computer program carries program code, and the instructions included in the program code are executed by a processor to cause the processor to execute any implementation manner of the first aspect. the steps of the information processing method.
  • FIG. 1 shows a flowchart of an information processing method provided by an embodiment of the present disclosure
  • FIG. 2 shows a flowchart of a method for determining trajectory information of a target pedestrian provided by an embodiment of the present disclosure
  • FIG. 3 shows a schematic diagram of a scenario for determining the first number of people flow and the second number of people flow provided by an embodiment of the present disclosure
  • FIG. 4 shows a flowchart of a method for generating adjustment information for items displayed in a second target place provided by an embodiment of the present disclosure
  • FIG. 5 shows a flowchart of a method for early warning provided by an embodiment of the present disclosure
  • FIG. 6 shows a flowchart of another method for early warning provided by an embodiment of the present disclosure
  • FIG. 7 shows a schematic structural diagram of an information processing apparatus provided by an embodiment of the present disclosure.
  • FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
  • each store In order to increase store sales, each store usually adopts storefront display to attract customers.
  • store operators In the conventional implementation method, store operators usually use new products in this quarter or this month, and products with high sales volume as display items.
  • These schemes for determining display items generally rely on sales data, and it is difficult and efficient to obtain accurate sales data. Therefore, how to efficiently and accurately generate an adjustment plan for the store is an urgent problem to be solved.
  • the present disclosure provides an information processing method, which can determine people flow data of different dimensions in combination with the collected video streams, which can specifically include the number of first people flow that can respectively reflect entering the first place and passing through the first target place. and the number of second people. Based on the obtained people flow data in different dimensions related to the first target place, an adjustment plan can be formulated for the items displayed in the second target place, that is, adjustment information is generated.
  • targeted adjustment information can be generated based on the flow data of people in different dimensions.
  • an adjustment scheme suitable for the second target place can be obtained based on the flow data of people in different dimensions in the first target place.
  • an adjustment scheme suitable for the second target place can be obtained without additionally examining the flow of people in the second target place.
  • the technical solution provided by the present disclosure can obtain an adjustment solution suitable for the second target site through the rational use of existing resources, which can undoubtedly get rid of the excessive dependence on sales data of the traditional item display solution, and realize the current situation. There are full utilization of resources.
  • the obtained adjustment scheme of the displayed items can be more adapted to the actual needs of the second target place.
  • the device includes, for example, a terminal device or a server or other processing device, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, and the like.
  • the information processing method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the information processing method includes the following S101-S103:
  • the first target place includes a place where the flow of people needs to be counted, such as each exhibition hall in an exhibition hall, each store in a shopping street or a shopping mall, etc.
  • the embodiment of the present disclosure will take the first target place as a store as an example. , which explains how to process information to generate adjustment information for items displayed in the store.
  • the first target place may include, but is not limited to, a store.
  • a video capture component when acquiring a video stream for a store, in order to collect the flow of people entering or passing through the store, a video capture component may be set outside the store, and the video capture component may include a color camera or a grayscale camera. Make adjustments so that the camera can simultaneously capture the target area passing through the store or entering the store. Pedestrians who pass through the store can be understood as pedestrians who pass through the entrance of the store but do not enter; pedestrians who enter the store can be understood as pedestrians who enter the store from the entrance of the store. Therefore, video capture can be performed on the target area corresponding to the entrance of the store to obtain a video stream for the store.
  • the technical solution provided by the present disclosure can extend the existing video data, that is, the video stream collected by the cameras originally deployed at the store entrance and the aisle at the store entrance. In this way, for the technical solution provided by the present disclosure, there is no need to deploy additional cameras, the maintenance cost of the data source, etc., can be saved, and existing resources can also be fully utilized.
  • the video stream can be framed, so that pedestrian detection and tracking can be performed on the video frames in the video stream, so that the position change of the pedestrian in the video stream can be determined. , to get the trajectory information of pedestrians in the video stream.
  • S102 Determine, based on the trajectory information of pedestrians in the video stream, the number of the first flow of people entering the first target place and the number of the second flow of people passing through the first target place within a preset time period.
  • the preset duration may be a duration set by the user according to requirements.
  • the preset duration may include the duration from the opening of the store to the closing of the store.
  • the user refers to the person who has the authority to adjust the displayed items, such as the operator/manager of the store, the person in charge of the shopping mall, or has the ability to provide directional opinions for adjusting the information, which is not limited here.
  • the preset duration can also be automatically generated according to certain rules, for example, set based on the opening period of the area of the first target site.
  • the preset duration can also be automatically adjusted periodically or non-periodically. For example, if the business hours are different in summer and autumn, the preset duration can also be According to the time node specified in the rules, it can be adjusted to a longer period or a shorter period, and the specific adjustment method is not limited.
  • the track information of pedestrians in the video stream obtained within the preset time length and the target area corresponding to the entrance of the store in the video stream can be used to determine the number of the first flow of people entering the store within the preset time length, and The number of second people passing through the store.
  • the second target location is the same as the first target location, or the second target location is an associated location that is associated with the first target location.
  • the first target location and the second target location are the same store, such as store A.
  • store A the same store
  • the second target location and the first target location are associated locations.
  • the associated place refers to an association relationship between two types of places (the first target place and the second target place), and the association relationship may be a place belonging to the same series or a place with a subordinate relationship.
  • belonging to the same series of places means that the first target place and the second target place are of the same type and/or the same object-oriented.
  • the first target place and the second target place belong to the same shoe store. It can be a shoe store of the same brand, or both the first target location and the second target location are for children.
  • Sites with affiliation relationships refer to the relationship between the first target site and the second target site in a progressive or declining hierarchy.
  • the first target site and the second target site are of the same type, but the first target site is relatively
  • the second target place belongs to a member store or a high-end store, and similarly, the first target place belongs to an ordinary store or a cheap store compared to the second target place.
  • the first target location is store A
  • the second target location is store A's chain store - store B.
  • Considering the correlation between chain stores although the flow of people in store A cannot be equal to the flow of people in store B, there will be a certain similarity in the flow of people in the two stores. Therefore, you can enter store A within the preset time.
  • the first flow of people and the second flow of people passing through store A are generated, and the adjustment information for the items displayed in store B is generated.
  • the adjustment information for the items displayed in the second target place may include, but is not limited to, the adjustment information for the placement order of the displayed items, the adjustment information for the types of the displayed items, etc.
  • the number of two people flow can reflect the store's entry rate within the preset time period, and it can reflect the user's preference for the items displayed in the store. For example, if the store’s entry rate is very low (that is, the number of first and second traffic is low, for example, lower than their corresponding regular traffic), it can reflect that the items displayed in the store may not be affected by users. I like it, so I can adjust the items displayed in the store appropriately.
  • the trajectory information of pedestrians in the video stream is obtained by collecting the video stream from the first target place, so that the pedestrian entering the first target place within a preset time period can be further quickly determined based on the trajectory information of pedestrians.
  • the number of people passing through the first target place and the number of second people passing through the first target place, so that the adjustment information for the items displayed in the second target place can be quickly determined based on the quickly determined first and second flow numbers.
  • S201-S203 when determining the trajectory information of pedestrians in the video stream based on the video stream collected from the first target location, as shown in FIG. 2, S201-S203 may be included:
  • S201 Perform pedestrian detection on a target video frame in the video stream, and identify the position information of each pedestrian included in the target video stream.
  • the target video frame is each frame of video frames obtained sequentially in the order of collection time after the video stream is subjected to frame-by-frame processing, or it can be the frame-by-frame processing of the video stream at intervals of one frame or set in the order of collection time.
  • the video frame obtained by the frame is not limited here.
  • a pedestrian recognition algorithm may be used to perform pedestrian detection on the target video frame to obtain position information of each pedestrian included in the target video frame.
  • the complete body information of the whole person may not be detected from the target video frame. Therefore, when pedestrian detection is performed on the target video frame in the video stream, it can be Consider adopting the head and shoulders detection algorithm to complete the detection of pedestrians in the target video frame, and determine the position information of each pedestrian contained in the target video frame.
  • the head and shoulders detection algorithm refers to the identification of the pedestrian's head and shoulders in the target video frame to obtain the position information indicating the pedestrian's head feature points and shoulders, so as to obtain the detection indicating the pedestrian's head and shoulders position.
  • frame the position of the center position of the detection frame in the target video frame can be used as the position of the pedestrian in the target video frame.
  • S202 Determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame.
  • the target video frame in the video stream may correspond to the same coordinate system, and by determining the position information of each pedestrian contained in the target video frame under the same coordinate system, it can be Determine the location information of the target pedestrian in the video stream.
  • the target pedestrian may be each pedestrian in the target video frame, or may be a specific pedestrian or multiple pedestrians.
  • the position information of the target pedestrian in the video stream can be determined based on the position information of the target pedestrian in the target video frame.
  • the position information of the target pedestrian in the target video frame in the first frame is position A
  • the position information in the target video frame is position B
  • the position information in the third frame of the target video frame is position C
  • the position information of the target pedestrian in the video stream is arranged in time sequence, including position A, position B and position C in turn .
  • S202 Determine the trajectory information of the target pedestrian according to the position information of the target pedestrian in the video stream.
  • the track information of the target pedestrian can be quickly determined according to the position information of the target pedestrian in the video stream and the time sequence of the target video frames, for example, the position information of the target pedestrian in the video stream determined above includes the position A. , position B and position C, and the acquisition time of the first frame target video frame is earlier than the acquisition time of the second frame target video frame, and the second frame target video frame acquisition time is earlier than the third frame target video frame acquisition time, so The trajectory information of the target pedestrian is from position A to position B, and then from position B to position C.
  • the position information of each pedestrian in the video frame can be quickly determined, so that the position information of the target pedestrian in the video stream can be determined based on the position information of each pedestrian, and then the position information of the target pedestrian can be quickly determined.
  • the trajectory information of the target pedestrian can be quickly determined.
  • the target video frame may contain multiple different pedestrians. Therefore, in the process of pedestrian detection on the target video frame, in order to determine the trajectory information of the target pedestrian, it is necessary to determine the target in different target video frames. Therefore, before determining the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame, the information processing method provided by the embodiment of the present disclosure further includes the following S2011-S2013:
  • S2011 Acquire characteristic information of pedestrians in the target video frame.
  • feature information for describing the head and shoulders of the pedestrian can be extracted from the target video frame, for example, the outline feature, shape feature, and color feature of the head and shoulders may be included. , one or more combinations of texture features and motion features.
  • any two adjacent target video frames they are respectively denoted as the first target video frame and the second target video frame, if the first target video frame and the second target video frame both contain three pedestrians respectively.
  • the pedestrians contained in each target video frame can be distinguished by the serial number and other identifiers.
  • the three pedestrians in the first target video frame are recorded as the first pedestrian, the second pedestrian and the third pedestrian.
  • the three pedestrians in the second target video frame are recorded as the first pedestrian, the second pedestrian, and the third pedestrian, respectively.
  • the first pedestrian in the first target video frame is The feature similarity between the three pedestrians contained in the second target video frame, and then determine the similarity between the second pedestrian contained in the first target video frame and the three pedestrians contained in the second target video frame in the same way. feature similarity, and the feature similarity between the third pedestrian and the three pedestrians contained in the second target video frame, respectively.
  • the first pedestrian in the first target video frame is higher than the threshold, and is the largest similarity among the obtained three feature similarities, then the first pedestrian in the first target video frame
  • the same pedestrian as the second pedestrian in the second target video frame can be recorded as the target pedestrian, and it can also be determined that the second pedestrian and the third pedestrian in the first target video frame are the same pedestrian.
  • each target pedestrian can be encoded according to the same ID, that is, the same pedestrian appearing in different video frames is marked with the same ID, so as to complete the identification of multiple pedestrians.
  • the marking process is convenient to track the trajectory of the target pedestrian through ID.
  • the target pedestrians in different target video frames can be determined by extracting the characteristic information of the pedestrians contained in the target video frames, which provides convenience for subsequent tracking of the target pedestrians to determine the trajectory information of the target pedestrians.
  • the method when determining the number of the first flow of people entering the first target place within the preset time period based on the track information of pedestrians in the video stream, the method includes: based on the track information and the first determination flag, determining the number of people entering the first target place within the preset time period. The number of pedestrians in a target place is counted to obtain the first number of pedestrian flows, wherein the first judgment flag is used to judge whether the pedestrian enters the first target place.
  • the first determination mark may be a pre-drawn determination line for determining whether the pedestrian enters the first target place. Specifically, the incoming direction and outgoing direction can be marked for the determination line, the trajectory direction of the pedestrian in the video stream matches the incoming direction, and it can be determined that the pedestrian is entering the first target place, and based on this, the number of the first pedestrian flow within the preset time period can be counted .
  • the method when determining the number of second flows of people passing through the first target place within a preset time period based on the trajectory information of pedestrians in the video stream, the method includes: based on the trajectory information, the first determination flag and the second determination flag, determining the number of the pre- Set the number of pedestrians who pass through the first target place and do not enter the first target place within the time period to be counted to obtain the second number of pedestrian flows; wherein, the first judgment mark is used to judge whether the pedestrian enters the first target place, and the second judgment mark is used for It is judged whether the pedestrian passes through the first target place.
  • the first judgment mark may be the above-mentioned judgment line
  • the second judgment mark may be a pre-drawn judgment area for judging whether the pedestrian passes through the first target place, and the pedestrian is determined according to the track information of the pedestrian in the video stream. If the trajectory is entering the determination area and does not enter the first target place, it can be determined that the pedestrian passes through the first target place, and based on this, the number of the second pedestrian flow within the preset time period can be counted.
  • the number of pedestrians entering the first target place within a preset time period can be determined through the pedestrian's trajectory information and the judgment line in the video stream, and the pedestrian's trajectory information, the judgment line, and the judgment area in the video stream can be determined. , and determine the number of pedestrians who pass through the first target place within a preset time period and do not enter the first target place.
  • the first target place may be a store A, where a storefront display area is deployed near the entrance and exit.
  • the entrance and exit are the only channels set up by store A.
  • store A may also include multiple channels, for example, including two channels, one for the exit and one for the entrance, or both channels are entrances and exits .
  • the store front display area may include, but is not limited to, a store window, an area in the store near the entrance and exit for displaying commodities, and the like, which is not limited herein.
  • the determination line may be located outside the determination area, close to the side of the entrance and exit of the store.
  • the determination line can usually be set in the area where the entrance and exit of store A are located, which can be coincident with the location of the entrance and exit of store A, or located inside store A, close to the entrance and exit. position (ie, the judgment line shown in Figure 3).
  • the determination area may be set outside the store A, near the entrance and exit.
  • the location of the entrance and exit can be located between the judgment line and the judgment area.
  • the location of the entrance and exit can also overlap with the judgment line and the judgment area. The locations overlap.
  • the determination line may also be located within the determination area, or the determination line may overlap with an edge of the determination area near the entrance and exit and be located outside the store near the entrance and exit.
  • the pedestrian who has crossed the judgment line can be determined as the pedestrian entering the store through the entrance and exit, thereby The number of pedestrians passing through the first target place within the preset time period is counted.
  • the length of the determination line, the size of the determination area, and the relationship between each of them and the store are not limited in the present disclosure, and may include, but are not limited to, examples.
  • one or more locations among the store B and the store C shown in FIG. 3 may also be determined as the first target location, which is not limited herein.
  • a pre-drawn first judgment mark for judging whether the pedestrian enters the first target place and the first judgment mark for judging whether the pedestrian passes through the first target place can be combined.
  • the second judgment flag can more accurately determine whether the pedestrian passes through the first target place. This process can save the time for manually counting the number of people, and improve the efficiency of counting the number of people.
  • the first target place includes a first store within a set area, and for the above S103, when generating adjustment information for the items displayed in the second target place based on the first and second traffic numbers , as shown in FIG. 4 , may include the following S301 to S302:
  • the set range area may include a shopping mall, a designated area in a shopping mall, a certain street, or a designated area of a certain street, and the like, and the first store may be any store within the set range area.
  • the first flow of people may include the number of pedestrians who enter the first store within a preset time period
  • the second flow of people may include the number of pedestrians who pass through the first store within the preset time period but do not enter the first store.
  • the store entry rate of the first store within the preset time period can be determined by the first manpower quantity and the second crowd flow quantity.
  • determining the store entry rate of the first store within a preset period of time based on the number of the first crowd and the number of the second crowd it may include:
  • S3011 summing the first number of people and the second number of people to obtain the total number of people passing through the first target place within a preset time period;
  • the store entry rate of the first store within the preset time period can be determined according to the following formula:
  • R t represents the entry rate of the first store within the preset time period
  • P in(t) represents the number of first people entering the first store within the preset time period
  • P pass(t) represents the preset time period.
  • the number of the second flow of people passing through the first store, t is used to represent the time period corresponding to the preset duration, so as to indicate that the above parameters reflect the parameters generated in the same time period t.
  • the store entry rate of the store within a preset period of time can be determined through video stream detection, which saves the time required to manually count the store entry rate and improves the process of obtaining store entry rates. store rate efficiency.
  • the items displayed in the second target place are the same as the items displayed in the first store, so the user behavior data of the first store in a certain period of time can be counted in advance to determine the quality of the items displayed in the first store. popularity, and use this to determine adjustment information for the items displayed in the second target venue.
  • the store entry rate can reflect the popularity of the items displayed in the first store within a preset period of time, so that the adjustment plan can be formulated directly based on the store entry rate for the second target place associated with the first store, and the whole process does not need to go through Manually count the sales data of the second target site, which saves labor costs and improves the accuracy of the determined adjustment plan.
  • the first store includes at least two stores, and the store entry rate of each first store can be determined in the above manner. For the above S302, based on the store entry rate of the first store within a preset time period , when generating adjustment information for the items displayed in the second target field, including: based on the corresponding store entry rate of each store in the first store within the same statistical period, and the items displayed in each store within the same statistical period, generating Adjustment information for items displayed in the second target location.
  • the statistical period is an integer multiple of the preset time period, such as a quarter or an activity cycle, based on the corresponding store entry rate of each store in the same statistical period, and the display of each store in the same statistical period.
  • the first user behavior statistical result for each store is determined; wherein, the first user behavior statistical result is used to reflect the user's preference for different item types in the same statistical period.
  • the preset duration may be the working hours of the first store on that day, for example, it may be 8 hours, and the statistical period may include a quarter, such as spring.
  • the store entry rate of stores displaying different items can be counted in the same statistical period, for example, the store entry rate of multiple stores in a shopping mall in the same quarter can be counted, so that the display of multiple stores can be determined.
  • the popularity of the items in the same statistical period, and then the adjustment information for the items displayed in the second target place can be generated. This process does not need to count the sales data of the second target place in the statistical period, saving labor costs, And the accuracy of the determined adjustment scheme is improved.
  • S3021 Determine the first target store and the second target store from the first store based on the store entry rate corresponding to each store in the same statistical period, where the first target store is the store corresponding to the lowest store entry rate among the first stores, The second target store is the store corresponding to the highest entry rate among the first stores;
  • a plurality of first stores in a tourist business district can be counted on the store entry rate, and the first target store with the lowest store entry rate and the second target store with the highest store entry rate in the business district can be determined,
  • the popularity of the items displayed in the second target store is higher than that of the items displayed in the first target store in the same statistical period. Therefore, for the second target place that is the same as the items displayed in the first target store, the second target store can For the displayed items, adjustment instruction information for the displayed items in the second target place is generated.
  • the adjustment instruction information for the items displayed in the second target place can be generated, for example, indicating that the second target place can Adjust according to the items displayed in the second target store, or instruct the second target place to adjust according to the order of the items displayed in the second target store, or instruct the second target place to adjust according to the items displayed in the second target store and The order of placement of items has been adjusted.
  • the first target store with the lowest store entry rate and the second target store with the highest store entry rate within the preset range can be selected. Further, according to the items displayed in the second target store, an adjustment plan can be formulated for the second target place that is the same as the first target store, and there is no need to additionally examine the store entry rate in the second target place, which can save labor costs and improve the determination of resource allocation. s efficiency.
  • the process when generating the adjustment information for the items displayed in the second target place based on the store entry rate of the first store within the preset time period, the process includes: based on The corresponding store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods respectively determine the adjustment information for the displayed items in the second target place.
  • different statistical periods may include different quarters.
  • different items may be displayed in different quarters, or the same items may be displayed in different quarters.
  • the corresponding store entry rate in the quarter determines the popularity of the items displayed in the first store in different quarters.
  • the adjustment information of the items displayed in the second target place associated with the first store can be generated, so that the second target place can be based on the adjustment. information to adjust resource allocation.
  • the store entry rate of the same store in different statistical time periods can be counted, so as to determine the correlation between the items displayed in the same store and different statistical time periods, such as which statistical time period the items displayed in the store are in.
  • the most popular so that based on the relationship between the items displayed in the same store and different statistical time periods, an adjustment plan can be formulated for the second target place, and the items displayed in the second target place in different statistical time periods can be determined. This process can save manual offline. Count the cost of store entry rate and improve the efficiency of resource allocation.
  • the preset store entry rate threshold may be obtained in advance according to big data statistics, for example, according to the relationship between the store entry rate of the store and the sales quantity, the store entry rate corresponding to when the sales quantity reaches the requirement may be selected as the preset value.
  • Store entry rate threshold; or the preset store entry rate threshold can be set manually, which is not limited here.
  • the items displayed in the first store in different quarters are the same, and it can be determined in which quarter the items displayed in the first store are most popular according to the corresponding store entry rates of the first store in different quarters.
  • the store entry rate corresponding to the first store in spring and autumn is greater than or equal to the preset store entry rate threshold, then spring and autumn can be used as the target display period corresponding to the items displayed in the first store.
  • the adjustment information for the items displayed in the second target place during the target display period may be generated based on the target display period, such as generating information indicating the second target place.
  • the items displayed in the spring and fall are the same as the items displayed in the first store, and/or the order in which the items displayed in the spring and autumn are generated indicating the second target location is consistent with the order in which the items displayed in the first store are displayed.
  • the popular target of the items displayed in the first store can be selected Display period, based on this, an adjustment plan can be made for the items displayed in the second target field during the target display period. This process can save the time required to manually count the store entry rate of the second target field in different display periods, and no need The sales data of the second target site in different display periods are counted, so that the formulation efficiency of the adjustment plan can be improved.
  • the adjustment for the items displayed in the second target place is generated based on the respective store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods.
  • Information including the following S3025 ⁇ S3026:
  • the items displayed by the first store in different quarters are different, according to the corresponding store entry rates of the first store in different quarters, it can be determined that the items displayed by the first store in different statistical periods correspond to The matching degree between the display periods, the higher the store entry rate corresponding to any statistical period, the higher the popularity of the items displayed by the first store in the any statistical period, and it can be considered that the first store is in the any statistical period.
  • the higher the degree of matching between the displayed items and the item's display period, the lower the corresponding store entry rate in any statistical period it is considered that the first store displayed the items in any statistical period and the items displayed in the display period. The lower the match.
  • the matching degree between the items displayed in the first store in different statistical periods and the corresponding display period it can be determined according to the matching degree that the item is displayed in a specific display period, for example, when the matching degree is higher than the preset matching degree.
  • the display period of the degree threshold, the adjustment information for the items displayed in the second target site such as generating an indication that the items displayed in the second target site in a specific display period are the same as the items displayed in the first store in a specific period, and/or generating an indication
  • the order in which the items displayed in the second target place during the specific display period is consistent with the order in which the items displayed in the first store during the specific period are placed
  • the adjustment plan is formulated for the displayed items. This process can save the time required to manually count the entry rate of the second target site in different display periods, and it is also unnecessary to count the sales data of the second target site in different display periods, so that it can be Improve the efficiency of formulating adjustment plans.
  • a large number of inflows and outflows of people may occur in the first target place within a preset period of time.
  • the information processing method provided by the embodiment of the present disclosure further includes: in the case where it is determined that the number of the first flow of people is greater than the first preset threshold, generating first warning prompt information.
  • the first preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the size of the entrance of the first target place, and the like.
  • the generated first warning prompt information can be information in the format of text, voice, video, etc.
  • the generated first early warning prompt information can be "Attention, the number of people entering the first target place is large, please pay attention to safety”.
  • the number of people entering the first target place within a preset time period can be counted, and when it is determined that the number of people entering the first target place is large within the preset time period, early warning information can be generated to improve pedestrians’ Security when entering the first target site.
  • the information processing method provided by the embodiment of the present disclosure further includes the following S401 to S402:
  • the pre-drawn first judgment mark for judging whether the pedestrian leaves the first target place may be the same as the judgment line shown in FIG. 3 for judging whether the pedestrian enters the first target place.
  • the outgoing direction opposite to the incoming direction is used as the direction to leave the first target place.
  • the track direction of the pedestrian in the video stream matches the outgoing direction, and it can be determined that the pedestrian is leaving the first target place.
  • the second preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the exit size of the first target place, and the like.
  • the generated second warning prompt information can be information in the format of text, voice, video, etc.
  • the generated second early warning prompt information can be "Attention, the number of people leaving the first target place is large, please pay attention to safety”.
  • the number of people leaving the first target place within a preset time period can be counted, and when it is determined that the number of people leaving the first target place is large within the preset time period, early warning information can be generated, so as to improve the safety of pedestrians. Safety when leaving the first target site.
  • the information processing method provided by the embodiment of the present disclosure further includes the following S501 to S502:
  • the number of people remaining in the history of the first target place within the preset time period may be the number of people currently existing in the first target place when the first and third crowds are counted, for example, the first target place has Pedestrians are allowed to enter from 8:00 on the same day.
  • the current number of people corresponding to the first target place at 9:00 can be used as the first target place at 9:00 to 10:00: 00 number of people left in history
  • the number of people left in history can be determined by the difference between the number of incoming traffic and the number of outgoing traffic counted in the historical stage (8:00-9:00).
  • the number of people entering the first target place within the preset time period can be determined through the number of the first and third people, and the number of people who have entered the first target place within the preset time period can be determined, and the first target place can be determined.
  • the third preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the capacity of the first target place, and the like.
  • the generated third warning prompt information may be information in the format of text, voice, video, etc.
  • the generated third early warning prompt information may be "Attention, there are a lot of net personnel in the first target site at the current time”.
  • the net stock of personnel in the first target place can be detected in real time, and if it is determined that the net stock of personnel exceeds the threshold, an early warning prompt can be given. Safety of pedestrians staying in the first target site.
  • the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
  • the embodiment of the present disclosure also provides an information processing apparatus corresponding to the information processing method. Reference may be made to the implementation of the method, and repeated descriptions will not be repeated.
  • the information processing apparatus 600 includes: an obtaining module 601, configured to obtain the information in the video stream based on the video stream collected from the first target location.
  • the determining module 602 is used for determining the number of the first flow of people entering the first target place and the number of the second flow of people passing through the first target place within a preset time period based on the track information of the pedestrians in the video;
  • the generating module 603 which is used to generate adjustment information for the items displayed in the second target place based on the first number of people and the second number of people.
  • the second target location is the same as the first target location, or the second target location is an associated location associated with the first target location.
  • the first target place includes a first store within a set area
  • the generating module 603 is configured to generate items for display in the second target place based on the first number of people and the second number of people
  • the information includes: determining the store entry rate of the first store within the preset time period based on the number of the first traffic flow and the number of the second traffic flow; Adjustment information for items displayed in the target arena.
  • the first store includes at least two
  • the generating module 603 is configured to generate adjustment information for items displayed in the second target place based on the store entry rate of the first store within a preset period of time ,include:
  • the adjustment information for the displayed items in the second target place is generated.
  • the generating module 603 is used to generate the corresponding store entry rate of each store in the first store in the same statistical period and the items displayed in each store in the same statistical period
  • the adjustment information of the items displayed in the second target place includes: determining the first target store and the second target store from the first store based on the corresponding store entry rate of each store in the same statistical period, and the first target store is the first target store.
  • the store corresponding to the lowest entry rate in one store, the second target store is the store corresponding to the highest entry rate in the first store; taking the first target store as the second target location, based on the items displayed in the second target store, generate Adjustment instruction information for items displayed in the second target place.
  • the generating module when the generating module is used to generate adjustment information for the items displayed in the second target place based on the store entry rate of the first store within a preset period of time, the generating module includes: Based on the respective store entry rates of the first store in different statistical periods, and the items displayed by the first store in different statistical periods, adjustment information for items displayed in the second target place is generated.
  • the generating module 603 is used to generate the second target based on the store entry rates corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods.
  • the adjustment information of the items displayed in the venue includes: in the case that the items displayed by the first store in different statistical time periods are the same, determining the first store based on the corresponding store entry rates of the first store in different statistical time periods.
  • the target display period corresponding to the displayed items; the store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold; based on the target display period, the adjustment information for the items displayed in the second target place during the target display period is generated.
  • the generating module 603 is used to generate the second target based on the store entry rates corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods.
  • the adjustment information of the items displayed in the venue includes: in the case that the items displayed by the first store in different statistical time periods are different, determining the first store based on the corresponding store entry rates in the different statistical time periods Matching degree between the items displayed by the store in different statistical periods and the corresponding display periods; based on the determined matching degree, the adjustment information for the items displayed in the second target place during the specific display period is generated.
  • the generating module 603 when used to determine the store entry rate of the first store within a preset time period based on the first number of people and the second number of people, it includes: based on the first number of people and the first number of people The number of two people flows to get the total number of people; the ratio of the first number of people to the total number of people is used as the entry rate of the first store within the preset time period.
  • the acquiring module 601 when used to acquire the track information of pedestrians in the video stream based on the video stream collected from the first target location, it includes: performing pedestrian detection on the target video frame in the video stream, Identify the position information of each pedestrian contained in the target video frame; determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian contained in the target video frame; according to the position information of the target pedestrian in the video stream shown , to determine the trajectory information of the target pedestrian.
  • the acquisition module 601 before determining the trajectory information of the target pedestrian according to the position information of the target pedestrian in the video stream, is further configured to: acquire the characteristic information of the pedestrian in the target video frame; based on different targets The feature information of pedestrians contained in the video frames respectively determines the feature similarity between pedestrians contained in different target video frames; the pedestrian corresponding to the maximum similarity higher than the preset similarity threshold in the feature similarity is regarded as the target pedestrian.
  • the method when the determining module 602 is used to determine the number of the first flow of people entering the first target place within a preset time period based on the trajectory information of pedestrians in the video stream, the method includes: based on the trajectory information and the first The determination flag is used to count the number of pedestrians entering the first target place within a preset time period to obtain the first flow of people, and the first determination flag is used to determine whether the pedestrians enter the first target place.
  • the method includes: based on the trajectory information, the first The determination flag and the second determination flag are used to count the number of pedestrians who have passed through the first target place and did not enter the first target place within the preset time period to obtain the second number of pedestrian flows, and the first determination flag is used to determine whether the pedestrian has entered the first target. place, and the second judgment flag is used to judge whether the pedestrian passes through the first target place.
  • the information processing device 600 further includes a first early warning module 604, and the first early warning module 604 is configured to: generate a first early warning prompt when it is determined that the number of the first crowd is greater than a first preset threshold information.
  • the information processing apparatus further includes a second early warning module 605, and the determination module 602 is further configured to: determine, based on the trajectory information and the first determination flag, a third person who has left the first target place within a preset time period. The number of people flow, the first judgment flag is used to judge whether the pedestrian enters the first target place; the second early warning module 605 is used to generate the second warning prompt information when it is determined that the third number of people flow is greater than the second preset threshold.
  • the determining module 602 is further configured to: determine the preset duration of the first target place based on the number of people remaining in the history of the first target place within the preset duration, the number of first crowds and the number of third crowds
  • the second warning module 605 is further configured to generate third warning prompt information when it is determined that the net stock of personnel in the first target location within the preset time period is greater than the third preset threshold.
  • an embodiment of the present disclosure further provides an electronic device 700 .
  • a schematic structural diagram of the electronic device 700 provided by the embodiment of the present disclosure includes: a processor 71 and a memory 72 , and bus 73; memory 72 is used to store execution instructions, including memory 721 and external memory 722; the memory 721 here is also called internal memory, which is used to temporarily store operation data in processor 71 and exchange with external memory 722 such as hard disks
  • the data, the processor 71 exchanges data with the external memory 722 through the memory 721, and when the electronic device 700 is running, the processor 71 and the memory 72 communicate through the bus 73, so that the processor 71 executes the following instructions: based on the first target From the video stream collected by the venue, obtain the trajectory information of pedestrians in the video stream; based on the trajectory information of pedestrians in the video stream, determine the number of first pedestrians entering the first target venue and the second traffic passing through the first target venue within a preset period of time
  • Embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the information processing method described in the above method embodiments are executed.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure further provide a computer program or computer program product, where the computer program or computer program product carries a program code, and the instructions included in the program code, when executed by a processor, cause the processor to execute the foregoing method embodiments
  • the steps of the information processing method described in refer to the above method embodiments for details, and details are not repeated here.
  • the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium.
  • the computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Multimedia (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Social Psychology (AREA)
  • Operations Research (AREA)
  • Human Computer Interaction (AREA)
  • Tourism & Hospitality (AREA)
  • Psychiatry (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An information processing method and apparatus, and an electronic device, a storage medium and a computer program. The information processing method comprises: on the basis of a video stream collected from a first target place, acquiring trajectory information of pedestrians in the video stream (S101); on the basis of the trajectory information of the pedestrians in the video stream, determining a first number of people that enter the first target place within a preset duration and a second number of people that pass by the first target place within the preset duration (S102); and on the basis of the first number of people and the second number of people, generating adjustment information for articles exhibited in a second target place (S103).

Description

信息处理方法、装置、电子设备及存储介质、计算机程序Information processing method, apparatus, electronic device, storage medium, and computer program
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本专利申请要求于2020年12月18日提交的、申请号为2020115056005、发明名称为“一种信息处理方法、装置、电子设备及存储介质”的中国专利申请的优先权,该申请以引用的方式并入文本中。This patent application claims the priority of the Chinese patent application filed on December 18, 2020, with the application number of 2020115056005 and the invention titled "An information processing method, device, electronic device and storage medium". way to be incorporated into the text.
技术领域technical field
本公开涉及计算机视觉技术领域,具体而言,涉及一种信息处理方法、装置、电子设备及存储介质、计算机程序。The present disclosure relates to the technical field of computer vision, and in particular, to an information processing method, apparatus, electronic device, storage medium, and computer program.
背景技术Background technique
为增加店铺销售额,各店铺通常采用店面陈列的方式来招揽顾客。常规实现方式中,店铺经营人员通常将本季或是本月新品、销量较高的商品等作为陈列物品。In order to increase store sales, each store usually adopts storefront display to attract customers. In the conventional implementation method, store operators usually use the new products of this season or this month, and products with higher sales as display items.
然而传统的确定陈列物品的方案,依赖于销售数据,而销售数据往往难以反映陈列物品所产生的实际效果,且考虑到顾客的隐私保护,部分销售数据的获取途径受限,这将导致得到的销售数据的准确性、全面性较差,因此,亟需一种针对陈列物品的调整信息生成方案,以摆脱传统陈列物品的方案对于销售数据的依赖。However, the traditional scheme of determining the displayed items relies on sales data, which often cannot reflect the actual effect of the displayed items, and considering the privacy protection of customers, the access to some sales data is limited, which will lead to the The accuracy and comprehensiveness of sales data are poor. Therefore, an adjustment information generation scheme for display items is urgently needed, so as to get rid of the dependence of the traditional display item scheme on sales data.
发明内容SUMMARY OF THE INVENTION
本公开实施例至少提供一种信息处理方案。The embodiments of the present disclosure provide at least one information processing solution.
第一方面,本公开实施例提供了一种信息处理方法,包括:基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息;基于所述视频流中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量和经过所述第一目标场所的第二人流数量;基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调整信息。In a first aspect, an embodiment of the present disclosure provides an information processing method, including: acquiring trajectory information of pedestrians in the video stream based on a video stream collected from a first target location; based on the trajectory information of pedestrians in the video stream , determine the number of first people entering the first target place and the number of second people passing through the first target place within a preset time period; Adjustment information of items displayed in the second target place.
本公开实施例中,采用上述技术手段可以结合采集到的视频流确定出不同维度的人流数据,具体可以包括分别能够反映进入第一场所和经过第一目标场所的第一人流数量以及第二人流数量。基于得到的与第一目标场所相关的不同维度的人流数据,可以针对第二目标场所内陈列物品制定调整方案,即生成调整信息。In the embodiment of the present disclosure, the above-mentioned technical means can be used to determine the human flow data of different dimensions in combination with the collected video streams, which may specifically include the number of first and second human flows that can respectively reflect the number of people entering the first place and passing through the first target place. quantity. Based on the obtained people flow data in different dimensions related to the first target place, an adjustment plan can be formulated for the items displayed in the second target place, that is, adjustment information is generated.
由此可见,对于第一目标场所与第二目标场所相同的情况下,通过上述实现方式,能够基于不同维度的人流数据生成具有针对性的调整信息。而对于第一目标场所与第二目标场所不同的情况而言,通过上述实现方式,能够将第一目标场所中不同维度的人流数据作为基础,得到适用于第二目标场所的调整方案。很显然,这一实现方式无需额外考察第二目标场所中的人流情况,即可得到适用于第二目标场所的调整方案。It can be seen that, in the case where the first target place is the same as the second target place, through the above implementation manner, targeted adjustment information can be generated based on the flow data of people in different dimensions. In the case where the first target place is different from the second target place, through the above-mentioned implementation manner, an adjustment scheme suitable for the second target place can be obtained based on the flow data of people in different dimensions in the first target place. Obviously, in this implementation, an adjustment scheme suitable for the second target place can be obtained without additionally examining the flow of people in the second target place.
此外,考虑到对于第一目标场所而言,无论第一场所属于公共场合或是非公共场合,出于安防考虑,通常会部署诸如摄像头等视频采集部件。也就意味着,实现上述技术方案的数据来源通常属于现有资源,无需额外采集视频流。这样一来,本公开提供的技术方案能够通过对现有资源的合理运用,以得到适用于第二目标场所的调整方案,无疑在摆脱传统物品陈列的方案过分依赖销售数据的同时,实现了现有资源的充分利用。且得到的陈列物品的调整方案,可以更加适应于第二目标场所的实际需求。In addition, considering that for the first target place, whether the first place is a public place or a non-public place, for security reasons, video capture components such as cameras are usually deployed. That is to say, the data sources for realizing the above technical solutions usually belong to existing resources, and there is no need to collect additional video streams. In this way, the technical solution provided by the present disclosure can obtain an adjustment solution suitable for the second target site through the rational use of existing resources, which can undoubtedly get rid of the excessive dependence on sales data of the traditional item display solution, and realize the current situation. There are full utilization of resources. In addition, the obtained adjustment scheme of the displayed items can be more adapted to the actual needs of the second target place.
在一种可能的实施方式中,所述第二目标场所与所述第一目标场所相同,或者,所述第二目标场所为与所述第一目标场所存在关联的关联场所。In a possible implementation manner, the second target location is the same as the first target location, or the second target location is an associated location associated with the first target location.
在一种可能的实施方式中,所述第一目标场所包括设定范围区域内的第一店铺,所述基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调 整信息,包括:基于所述第一人流数量和所述第二人流数量,确定所述第一店铺在所述预设时长内的进店率;基于所述第一店铺在所述预设时长内的进店率,生成针对所述第二目标场内陈列物品的调整信息。In a possible implementation manner, the first target place includes a first store within a set range area, and based on the first number of people and the second number of people The adjustment information of the displayed items includes: determining the store entry rate of the first store within the preset time period based on the first number of people and the second number of people; The store entry rate within the preset time period is used to generate adjustment information for the items displayed in the second target field.
本公开实施例中,可以通过统计预设时长内进入第一店铺的第一人流数量和经过第一店铺的第二人流数量,确定出反应第一店铺在预设时长内的进店率,该进店率可以反映出第一店铺陈列的物品在预设时长内的受欢迎程度,这样可以直接基于该进店率为与第一店铺关联的第二目标场所制定调整方案,整个过程无需再通过人工统计第二目标场所的销售数据,节省了人力成本,且提高了确定的调整方案的准确度。In the embodiment of the present disclosure, by counting the number of first people entering the first store within the preset time period and the number of second people passing through the first store, it is possible to determine and reflect the store entry rate of the first store within the preset time period. The store entry rate can reflect the popularity of the items displayed in the first store within a preset period of time, so that the adjustment plan can be formulated directly based on the store entry rate for the second target place associated with the first store, and the whole process does not need to go through Manually count the sales data of the second target site, which saves labor costs and improves the accuracy of the determined adjustment plan.
在一种可能的实施方式中,所述第一店铺包括至少两个,所述基于所述第一店铺在所述预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息,包括:基于所述第一店铺中每个店铺在同一统计时段内对应的进店率,以及所述每个店铺在所述同一统计时段内陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息。In a possible implementation manner, the first store includes at least two stores, and the adjustment for the items displayed in the second target place is generated based on the store entry rate of the first store within the preset time period Information, including: based on the corresponding store entry rate of each store in the first store within the same statistical period, and the items displayed by each store in the same statistical period, generating a target site for the second target site Adjustment information for the items displayed inside.
本公开实施例中,可以通过在同一统计时段统计陈列不同物品的店铺的进店率,比如统计出商场内的多个店铺在同一个季度内的进店率,从而可以确定出多个店铺陈列的物品在该同一统计时段内的受欢迎程度,进而可以生成针对第二目标场所陈列物品的调整信息,该过程无需再统计第二目标场所在该统计时段内的销售数据,节省了人力成本,且提高了确定的调整方案的准确度。In the embodiment of the present disclosure, the store entry rate of stores displaying different items can be counted in the same statistical period, for example, the store entry rate of multiple stores in a shopping mall in the same quarter can be counted, so that the display of multiple stores can be determined. The popularity of the items in the same statistical period, and then the adjustment information for the items displayed in the second target place can be generated. This process does not need to count the sales data of the second target place in the statistical period, saving labor costs, And the accuracy of the determined adjustment scheme is improved.
在一种可能的实施方式中,所述基于所述第一店铺中每个店铺在同一统计时段内对应的进店率,以及所述每个店铺在所述同一统计时段内陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括:基于所述每个店铺在同一统计时段内对应的进店率,从所述第一店铺中确定第一目标店铺和第二目标店铺,所述第一目标店铺为所述第一店铺中最低进店率对应的店铺,所述第二目标店铺为所述第一店铺中最高进店率对应的店铺;将所述第一目标店铺作为所述第二目标场所,基于所述第二目标店铺内陈列的物品,生成针对所述第二目标场所内陈列物品的调整指示信息。In a possible implementation manner, the generating method is based on the store entry rate corresponding to each store in the first store in the same statistical period and the items displayed in each store in the same statistical period. The adjustment information for the items displayed in the second target place includes: determining the first target store and the second target store from the first stores based on the corresponding store entry rate of each store in the same statistical period , the first target store is the store corresponding to the lowest entry rate in the first store, and the second target store is the store corresponding to the highest entry rate in the first store; the first target store is As the second target place, adjustment instruction information for the items displayed in the second target place is generated based on the items displayed in the second target store.
本公开实施例中,通过统计不同店铺在同一统计时段内对应的进店率,可以选择出在预设范围区域内最低进店率的第一目标店铺以及最高进店率的第二目标店铺,进一步可以根据第二目标店铺陈列的物品对与第一目标店铺相同的第二目标场所制定调整方案,无需额外考察第二目标场所中的进店率情况,可以节省人力成本,从而提高确定资源配置的效率。In the embodiment of the present disclosure, by counting the corresponding store entry rates of different stores in the same statistical period, the first target store with the lowest store entry rate and the second target store with the highest store entry rate within the preset range can be selected. Further, according to the items displayed in the second target store, an adjustment plan can be formulated for the second target place that is the same as the first target store, and there is no need to additionally investigate the store entry rate in the second target place, which can save labor costs and improve the determination of resource allocation. s efficiency.
在一种可能的实施方式中,所述第一店铺为一个,所述基于所述第一店铺在所述预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息,包括:基于所述第一店铺在不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息。In a possible implementation manner, the first store is one, and the adjustment information for the items displayed in the second target place is generated based on the store entry rate of the first store within the preset time period, Including: generating adjustment information for the items displayed in the second target place based on the respective store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods respectively .
本公开实施例中,可以对同一店铺在不同统计时段的进店率进行统计,从而确定出该同一店铺陈列的物品与不同统计时间段的关联关系,比如该店铺陈列的物品在哪个统计时间段最受欢迎,从而可以基于同一店铺陈列的物品与不同统计时间段的关联关系对第二目标场所制定调整方案,确定出第二目标场所在不同统计时段陈列的物品,该过程可以节省人工线下统计进店率的成本,提高资源配置的效率。In the embodiment of the present disclosure, the store entry rate of the same store in different statistical time periods can be counted, so as to determine the correlation between the items displayed in the same store and different statistical time periods, such as which statistical time period the items displayed in the store are in. The most popular, so that based on the relationship between the items displayed in the same store and different statistical time periods, an adjustment plan can be formulated for the second target place, and the items displayed in the second target place in different statistical time periods can be determined. This process can save manual offline. Count the cost of store entry rate and improve the efficiency of resource allocation.
在一种可能的实施方式中,所述基于所述第一店铺在不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括:在所述第一店铺在不同统计时段陈列内分别陈列的物品相同的情况下,基于所述第一店铺在不同统计时段内分别对应的进店率,确定所述第一店铺陈列的物品对应的目标陈列时段;所述目标陈列时段对应的进店率大于或等于预 设进店率阈值;基于所述目标陈列时段,生成在所述目标陈列时段针对所述第二目标场所内陈列物品的调整信息。In a possible implementation manner, based on the respective store entry rates of the first store in different statistical time periods, and the items displayed by the first store in different statistical time periods, generating The adjustment information of the items displayed in the second target place includes: in the case that the items displayed by the first store in different statistical periods are the same, based on the corresponding store entry rates of the first store in different statistical periods , determine the target display period corresponding to the items displayed in the first store; the store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold; based on the target display period, generate the target display period Adjustment information for items displayed in the second target location.
本公开实施例中,在第一店铺在不同统计时段陈列的物品相同的情况下,通过对同一店铺在不同统计时段的进店率进行统计,可以选择该第一店铺陈列的物品受欢迎的目标陈列时段,基于此可以对第二目标场所在目标陈列时段陈列的物品制定调整方案,该过程可以节省通过人工线下统计第二目标场在不同陈列时段的进店率所需的时间,也无需统计第二目标场所在不同陈列时段的销售数据,从而可以提高调整方案的制定效率。In the embodiment of the present disclosure, in the case where the items displayed in the first store are the same in different statistical time periods, by counting the store entry rates of the same store in different statistical time periods, the popular target of the items displayed in the first store can be selected Display period, based on this, an adjustment plan can be made for the items displayed in the second target field during the target display period. This process can save the time required to manually count the store entry rate of the second target field in different display periods, and no need The sales data of the second target site in different display periods are counted, so that the formulation efficiency of the adjustment plan can be improved.
在一种可能的实施方式中,所述基于所述第一店铺在不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括:在所述第一店铺在不同统计时段陈列内分别陈列的物品不相同的情况下,基于所述第一店铺在不同统计时段内分别对应的进店率,确定所述第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度;基于确定的所述匹配度,生成在特定陈列时段针对所述第二目标场所内陈列物品的调整信息。In a possible implementation manner, based on the respective store entry rates of the first store in different statistical time periods, and the items displayed by the first store in different statistical time periods, generating Second, the adjustment information of the items displayed in the target place, including: in the case that the items displayed by the first store in different statistical periods are different, based on the corresponding store entry of the first shop in different statistical periods determine the matching degree between the items displayed in the first store in different statistical periods and the corresponding display period; based on the determined matching degree, generate an adjustment for the items displayed in the second target place during a specific display period information.
本公开实施例中,在第一店铺在不同统计时段陈列的物品不相同的情况下,通过对同一店铺在不同统计时段的进店率进行统计,可以快速确定该第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度,比如在第一个统计时段对应的进店率较高,可以反应在第一个统计时段陈列的物品与该第一统计时段之间的匹配度较高,从而确定第一店铺在第一个统计时段销售的物品适合在第一统计时段进行销售,反之则不适合在第一个统计时段进行销售,基于此可以对第二目标场所在不同陈列时段陈列的物品制定调整方案,该过程可以节省通过人工线下统计第二目标场在不同陈列时段的进店率所需的时间,也无需统计第二目标场所在不同陈列时段的销售数据,从而可以提高调整方案的制定效率。In the embodiment of the present disclosure, in the case where the items displayed by the first store in different statistical periods are not the same, by counting the store entry rates of the same store in different statistical periods, it can be quickly determined that the first store displays in different statistical periods The matching degree between the items displayed in the first statistical period and the corresponding display period, for example, the store entry rate corresponding to the first statistical period is high, which can reflect the higher matching degree between the items displayed in the first statistical period and the first statistical period. Therefore, it is determined that the items sold by the first store in the first statistical period are suitable for sale in the first statistical period, otherwise they are not suitable for sale in the first statistical period. The adjustment plan is formulated for the displayed items. This process can save the time required to manually count the entry rate of the second target site in different display periods, and it is also unnecessary to count the sales data of the second target site in different display periods, so that it can be Improve the efficiency of formulating adjustment plans.
在一种可能的实施方式中,所述基于所述第一人流数量和所述第二人流数量,确定第一店铺在所述预设时长内的进店率,包括:基于所述第一人流数量和所述第二人流数量,得到总人流数量;将所述第一人流数量和所述总人流数量的比值,作为所述第一店铺在所述预设时长内的进店率。In a possible implementation manner, the determining the store entry rate of the first store within the preset time period based on the first flow of people and the second flow of people includes: based on the first flow of people The number of people and the second number of people to obtain the total number of people; the ratio of the first number of people to the total number of people is used as the store entry rate of the first store within the preset time period.
本公开实施例中,在第一目标场所为店铺时,可以通过视频流检测确定出店铺在预设时长内的进店率,节省了人工统计进店率需要的时间,提高了店铺进店率的统计效率。In the embodiment of the present disclosure, when the first target place is a store, the store entry rate of the store within a preset period of time can be determined through video stream detection, which saves the time required to manually count the store entry rate and improves the store entry rate. statistical efficiency.
在一种可能的实施方式中,所述基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息,包括:对所述视频流中的目标视频帧进行行人检测,识别出所述目标视频帧中包含的各行人的位置信息;根据所述目标视频帧中包含的各行人的位置信息,确定目标行人在所述视频流中的位置信息;根据所述目标行人在所述视频流中的位置信息,确定所述目标行人的轨迹信息。In a possible implementation manner, the acquiring the trajectory information of pedestrians in the video stream based on the video stream collected from the first target location includes: performing pedestrian detection on the target video frame in the video stream, identifying obtain the position information of each pedestrian contained in the target video frame; determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian contained in the target video frame; The location information in the video stream is used to determine the trajectory information of the target pedestrian.
本公开实施例中,通过使用行人检测技术,可以快速确定出视频帧中各行人的位置信息,这样基于各行人的位置信息,可以确定出目标行人视频流中的位置信息,进而可以快速确定出目标行人的轨迹信息。In the embodiment of the present disclosure, by using the pedestrian detection technology, the position information of each pedestrian in the video frame can be quickly determined, so that the position information of the target pedestrian in the video stream can be determined based on the position information of each pedestrian, and then the position information of the target pedestrian can be quickly determined. The trajectory information of the target pedestrian.
在一种可能的实施方式中,在所述根据所述目标视频帧中包含的各行人的位置信息,确定目标行人在所述视频流中的位置信息之前,所述信息处理方法还包括:获取所述目标视频帧中的行人的特征信息;基于不同目标视频帧分别包含的行人的特征信息,确定所述不同目标视频帧中包含的行人之间的特征相似度;将所述特征相似度中高于预设相似度阈值的最大相似度对应的行人作为所述目标行人。In a possible implementation manner, before determining the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame, the information processing method further includes: acquiring The feature information of pedestrians in the target video frames; based on the feature information of pedestrians contained in different target video frames respectively, determine the feature similarity between pedestrians contained in the different target video frames; The pedestrian corresponding to the maximum similarity at the preset similarity threshold is used as the target pedestrian.
本公开实施例中,提出可以通过提取目标视频帧中包含的行人的特征信息,确定不同目标视频帧中的目标行人,为后续对目标行人进行追踪确定目标行人的轨迹信息提供 便利。In the embodiments of the present disclosure, it is proposed that the target pedestrians in different target video frames can be determined by extracting the characteristic information of the pedestrians contained in the target video frames, so as to provide convenience for the subsequent tracking of the target pedestrians to determine the trajectory information of the target pedestrians.
在一种可能的实施方式中,基于所述视频流中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量,包括:基于所述轨迹信息和第一判定标志,对所述预设时长内进入所述第一目标场所的行人数量进行统计,得到所述第一人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所。In a possible implementation manner, determining the number of the first flow of people entering the first target place within a preset time period based on the trajectory information of pedestrians in the video stream includes: based on the trajectory information and a first determination A flag, the number of pedestrians entering the first target place within the preset time period is counted to obtain the first number of people flow, and the first determination flag is used to judge whether pedestrians enter the first target place.
本公开实施例中,在对行人的轨迹进行追踪过程中,可以结合预先绘制的用于判断行人是否进入第一目标场所的第一判定标志,较为准确的确定出行人是否进入第一目标场所,该过程可以节省人工对人流数量进行统计的时间,提高了人流数量统计效率。In the embodiment of the present disclosure, in the process of tracking the trajectory of the pedestrian, it can be more accurately determined whether the pedestrian enters the first target place by combining with the pre-drawn first judgment mark for judging whether the pedestrian enters the first target place. This process can save time for manually counting the number of people, and improve the efficiency of counting the number of people.
在一种可能的实施方式中,基于所述视频流中行人的轨迹信息,确定在预设时长内经过所述第一目标场所的第二人流数量,包括:基于所述轨迹信息、第一判定标志和第二判定标志,对所述预设时长内经过所述第一目标场所且未进入所述第一目标场所的行人数量进行统计,得到所述第二人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所,所述第二判定标志用于判断行人是否经过所述第一目标场所。In a possible implementation manner, determining the number of second flows of people passing through the first target place within a preset time period based on the trajectory information of pedestrians in the video stream includes: based on the trajectory information, a first determination mark and a second judgment mark, the number of pedestrians passing through the first target place within the preset time period and not entering the first target place is counted to obtain the second number of pedestrians, the first judgment mark It is used for judging whether the pedestrian enters the first target place, and the second judgment flag is used for judging whether the pedestrian passes through the first target place.
本公开实施例中,在对行人的轨迹进行追踪过程中,可以结合预先绘制的用于判断行人是否进入第一目标场所的第一判定标志,以及用于判断行人是否经过第一目标场所的第二判定标志,较为准确的确定出行人是否经过第一目标场所,该过程可以节省人工对人流数量进行统计的时间,提高了人流数量统计效率。In the embodiment of the present disclosure, in the process of tracking the trajectory of the pedestrian, a pre-drawn first judgment mark for judging whether the pedestrian enters the first target place and the first judgment mark for judging whether the pedestrian passes through the first target place can be combined. The second judgment flag can more accurately determine whether the pedestrian passes through the first target place. This process can save the time for manually counting the number of people, and improve the efficiency of counting the number of people.
在一种可能的实施方式中,所述信息处理方法还包括:在确定所述第一人流数量大于第一预设阈值的情况下,生成第一预警提示信息。In a possible implementation manner, the information processing method further includes: in the case where it is determined that the number of the first crowd is greater than a first preset threshold, generating first warning prompt information.
本公开实施例中,可以对预设时长内进入第一目标场所的人流数量进行统计,在确定预设时长内进入第一目标场所的人流数量较多时,可以生成预警提示信息,以提高行人在进入第一目标场所时的安全性。In the embodiment of the present disclosure, the number of people entering the first target place within a preset time period can be counted, and when it is determined that the number of people entering the first target place is large within the preset time period, early warning information can be generated to improve pedestrians' Security when entering the first target site.
在一种可能的实施方式中,所述信息处理方法还包括:基于所述轨迹信息和第一判定标志,确定在所述预设时长内离开所述第一目标场所的第三人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所;在确定所述第三人流数量大于第二预设阈值的情况下,生成第二预警提示信息。In a possible implementation manner, the information processing method further includes: determining, based on the trajectory information and the first determination flag, the number of third people who have left the first target place within the preset time period, and The first judgment flag is used for judging whether the pedestrian enters the first target place; when it is determined that the number of the third pedestrian flow is greater than the second preset threshold, second warning prompt information is generated.
本公开实施例中,可以对预设时长内离开第一目标场所的人流数量进行统计,在确定预设时长内离开第一目标场所的人流数量较多时,可以生成预警提示信息,以提高行人在离开第一目标场所时的安全性。In the embodiment of the present disclosure, the number of people leaving the first target place within a preset time period can be counted, and when it is determined that the number of people leaving the first target place is large within the preset time period, early warning information can be generated, so as to improve the safety of pedestrians. Safety when leaving the first target site.
在一种可能的实施方式中,所述信息处理方法还包括:基于所述第一目标场所在所述预设时长内的历史停留人数、所述第一人流数量和所述第三人流数量,确定所述第一目标场所在所述预设时长内的人员净存量;在确定所述第一目标场所在所述预设时长内的人员净存量大于第三预设阈值的情况下,生成第三预警提示信息。In a possible implementation manner, the information processing method further includes: based on the historical number of people staying at the first target place within the preset time period, the number of the first flow of people and the number of the third flow of people, Determine the net personnel stock of the first target place within the preset time period; when it is determined that the net personnel stock of the first target place within the preset time period is greater than a third preset threshold, generate the first Three warning information.
本公开实施例中,可以实时检测第一目标场所中的人员净存量,并在确定人员净存量超过阈值的情况下,进行预警提示,比如在发生拥挤的情况下,可以进行疏通处理,从而提高行人在第一目标场所中驻留时的安全性。In the embodiment of the present disclosure, the net stock of personnel in the first target place can be detected in real time, and if it is determined that the net stock of personnel exceeds the threshold, an early warning prompt can be given. Safety of pedestrians staying in the first target site.
第二方面,本公开实施例提供了一种信息处理装置,包括:获取模块,用于基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息;确定模块,用于基于所述视频中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量和经过所述第一目标场所的第二人流数量;生成模块,用于基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调整信息。In a second aspect, an embodiment of the present disclosure provides an information processing apparatus, including: an acquisition module, configured to acquire the trajectory information of pedestrians in the video stream based on a video stream collected from a first target location; a determination module, configured to Determine, based on the trajectory information of pedestrians in the video, the number of the first flow of people entering the first target place and the number of second flows of people passing through the first target place within a preset time period; The first flow of people and the second flow of people are used to generate adjustment information for the items displayed in the second target place.
第三方面,本公开实施例提供了一种电子设备,包括:处理器、存储器和总线,所 述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如第一方面所述信息处理方法的步骤。In a third aspect, embodiments of the present disclosure provide an electronic device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processing The processor and the memory communicate through a bus, and the machine-readable instructions execute the steps of the information processing method according to the first aspect when the machine-readable instructions are executed by the processor.
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面所述的信息处理方法的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the information processing method according to the first aspect. step.
第五方面,本公开实施例提供了一种计算机程序,所述计算机程序承载有程序代码,所述程序代码包括的指令被处理器运行时使得所述处理器执行如第一方面任一实施方式所述信息处理方法的步骤。In a fifth aspect, an embodiment of the present disclosure provides a computer program, where the computer program carries program code, and the instructions included in the program code are executed by a processor to cause the processor to execute any implementation manner of the first aspect. the steps of the information processing method.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.
图1示出了本公开实施例所提供的一种信息处理方法的流程图;FIG. 1 shows a flowchart of an information processing method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种确定目标行人的轨迹信息的方法流程图;FIG. 2 shows a flowchart of a method for determining trajectory information of a target pedestrian provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种确定第一人流数量和第二人流数量的场景示意图;FIG. 3 shows a schematic diagram of a scenario for determining the first number of people flow and the second number of people flow provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种生成针对第二目标场所内陈列物品的调整信息的方法流程图;FIG. 4 shows a flowchart of a method for generating adjustment information for items displayed in a second target place provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种预警提示的方法流程图;FIG. 5 shows a flowchart of a method for early warning provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的另一种预警提示的方法流程图;FIG. 6 shows a flowchart of another method for early warning provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的一种信息处理装置的结构示意图;FIG. 7 shows a schematic structural diagram of an information processing apparatus provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种电子设备的示意图。FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外, 本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this paper only describes an association relationship, which means that there can be three kinds of relationships, for example, A and/or B, which can mean: the existence of A alone, the existence of A and B at the same time, the existence of B alone. a situation. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
针对旅游景区、购物街等场所,为增加店铺销售额,各店铺通常采用店面陈列的方式来招揽顾客。常规实现方式中,店铺经营人员通常将本季度或者本月新品、销量较高的商品等作为陈列物品,这些确定陈列物品的方案一般依赖于销售数据,而准确的销售数据的获取途径困难,效率较低,因此如何高效准确的生成针对店铺的调整方案,为亟需解决的问题。For tourist attractions, shopping streets and other places, in order to increase store sales, each store usually adopts storefront display to attract customers. In the conventional implementation method, store operators usually use new products in this quarter or this month, and products with high sales volume as display items. These schemes for determining display items generally rely on sales data, and it is difficult and efficient to obtain accurate sales data. Therefore, how to efficiently and accurately generate an adjustment plan for the store is an urgent problem to be solved.
基于上述研究,本公开提供了一种信息处理方法,可以结合采集到的视频流确定出不同维度的人流数据,具体可以包括分别能够反映进入第一场所和经过第一目标场所的第一人流数量以及第二人流数量。基于得到的与第一目标场所相关的不同维度的人流数据,可以针对第二目标场所内陈列物品制定调整方案,即生成调整信息。Based on the above research, the present disclosure provides an information processing method, which can determine people flow data of different dimensions in combination with the collected video streams, which can specifically include the number of first people flow that can respectively reflect entering the first place and passing through the first target place. and the number of second people. Based on the obtained people flow data in different dimensions related to the first target place, an adjustment plan can be formulated for the items displayed in the second target place, that is, adjustment information is generated.
此外,对于第一目标场所与第二目标场所相同的情况下,通过上述实现方式,能够基于不同维度的人流数据生成具有针对性的调整信息。而对于第一目标场所与第二目标场所不同的情况而言,通过上述实现方式,能够将第一目标场所中不同维度的人流数据作为基础,得到适用于第二目标场所的调整方案。很显然,这一实现方式无需额外考察第二目标场所中的人流情况,即可得到适用于第二目标场所的调整方案。In addition, in the case where the first target place is the same as the second target place, through the above implementation manner, targeted adjustment information can be generated based on the flow data of people in different dimensions. In the case where the first target place is different from the second target place, through the above-mentioned implementation manner, an adjustment scheme suitable for the second target place can be obtained based on the flow data of people in different dimensions in the first target place. Obviously, in this implementation, an adjustment scheme suitable for the second target place can be obtained without additionally examining the flow of people in the second target place.
此外,考虑到对于第一目标场所而言,无论第一场所属于公共场合或是非公共场合,出于安防考虑,通常会部署诸如摄像头等视频采集部件。也就意味着,实现上述技术方案的数据来源通常属于现有资源,无需额外采集视频流。这样一来,本公开提供的技术方案能够通过对现有资源的合理运用,以得到适用于第二目标场所的调整方案,无疑在摆脱传统物品陈列的方案过分依赖销售数据的同时,实现了现有资源的充分利用。且得到的陈列物品的调整方案,可以更加适应于第二目标场所的实际需求。In addition, considering that for the first target place, whether the first place is a public place or a non-public place, for security reasons, video capture components such as cameras are usually deployed. That is to say, the data sources for realizing the above technical solutions usually belong to existing resources, and there is no need to collect additional video streams. In this way, the technical solution provided by the present disclosure can obtain an adjustment solution suitable for the second target site through the rational use of existing resources, which can undoubtedly get rid of the excessive dependence on sales data of the traditional item display solution, and realize the current situation. There are full utilization of resources. In addition, the obtained adjustment scheme of the displayed items can be more adapted to the actual needs of the second target place.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种信息处理方法进行详细介绍,本公开实施例所提供的信息处理方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端等。在一些可能的实现方式中,该信息处理方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, an information processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The device includes, for example, a terminal device or a server or other processing device, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, and the like. In some possible implementations, the information processing method may be implemented by a processor invoking computer-readable instructions stored in a memory.
参见图1所示,为本公开实施例提供的信息处理方法的流程图,该信息处理方法包括以下S101~S103:Referring to FIG. 1, which is a flowchart of an information processing method provided by an embodiment of the present disclosure, the information processing method includes the following S101-S103:
S101,基于对第一目标场所采集的视频流,获取视频流中行人的轨迹信息。S101 , based on the video stream collected from the first target place, acquire the track information of pedestrians in the video stream.
示例性地,第一目标场所包含需要统计人流进入量的场所,比如展览馆中的各个展览厅,购物街或者商场中的各个店铺等,本公开实施例将以第一目标场所为店铺为例,说明如何进行信息处理,生成针对店铺内陈列物品的调整信息。需要说明的是,本公开实施例提供的技术方案的应用场景中第一目标场所可以包括但不限于店铺。Exemplarily, the first target place includes a place where the flow of people needs to be counted, such as each exhibition hall in an exhibition hall, each store in a shopping street or a shopping mall, etc. The embodiment of the present disclosure will take the first target place as a store as an example. , which explains how to process information to generate adjustment information for items displayed in the store. It should be noted that, in the application scenario of the technical solution provided by the embodiment of the present disclosure, the first target place may include, but is not limited to, a store.
示例性地,在获取针对店铺的视频流时,为了采集进入或者经过店铺的人流量,可以在店铺外设置视频采集部件,视频采集部件可以包含彩色摄像头或者灰度摄像头,通过对摄像头的位姿进行调整,使得摄像头能够同时采集到经过店铺或者进入店铺的目标区域。经过该店铺的行人可以理解为从该店铺的进口经过,但是未进入的行人;进入该店铺的行人可以理解为从该店铺的进口进入店铺的行人。因此,可以对该店铺的进口所对应的目标区域进行视频采集,得到针对店铺的视频流。Exemplarily, when acquiring a video stream for a store, in order to collect the flow of people entering or passing through the store, a video capture component may be set outside the store, and the video capture component may include a color camera or a grayscale camera. Make adjustments so that the camera can simultaneously capture the target area passing through the store or entering the store. Pedestrians who pass through the store can be understood as pedestrians who pass through the entrance of the store but do not enter; pedestrians who enter the store can be understood as pedestrians who enter the store from the entrance of the store. Therefore, video capture can be performed on the target area corresponding to the entrance of the store to obtain a video stream for the store.
需要说明的是,对于诸如商场内的店铺而言,出于安防考虑,通常店铺门口以及店铺门口的过道处都会部署相应的摄像头,而这类摄像头采集到的视频流往往可以直接应用本公开提供的技术方案中。也就意味着,本公开提供的技术方案可以延用已有视频数据,即原本部署在店铺门口以及店铺门口的过道处的摄像头采集到的视频流。这样一来,应对于本公开提供的技术方案而言,无需额外部署摄像头,节约了数据来源的维护成本等,也可以充分利用已有资源。It should be noted that, for stores such as shopping malls, for security reasons, corresponding cameras are usually deployed at the entrance of the store and in the aisles at the entrance of the store, and the video streams collected by such cameras can often be directly applied. in the technical scheme. That is to say, the technical solution provided by the present disclosure can extend the existing video data, that is, the video stream collected by the cameras originally deployed at the store entrance and the aisle at the store entrance. In this way, for the technical solution provided by the present disclosure, there is no need to deploy additional cameras, the maintenance cost of the data source, etc., can be saved, and existing resources can also be fully utilized.
示例性地,在得到针对第一目标场所的视频流后,可以对视频流进行分帧处理,以便对视频流中的视频帧进行行人检测、跟踪,从而可以确定视频流中的行人的位置变化,得到视频流中的行人的轨迹信息。Exemplarily, after the video stream for the first target place is obtained, the video stream can be framed, so that pedestrian detection and tracking can be performed on the video frames in the video stream, so that the position change of the pedestrian in the video stream can be determined. , to get the trajectory information of pedestrians in the video stream.
S102,基于视频流中行人的轨迹信息,确定在预设时长内进入第一目标场所的第一人流数量和经过第一目标场所的第二人流数量。S102: Determine, based on the trajectory information of pedestrians in the video stream, the number of the first flow of people entering the first target place and the number of the second flow of people passing through the first target place within a preset time period.
示例性地,预设时长可以为用户根据需求设定的时长,比如在需要对店铺一天内工作时间的进店率进行统计时,预设时长可以包含从店铺开门到店铺关门包含的时长。其中,用户指的是诸如店铺的经营/管理人员、商场的负责人员等具备陈列物品调整权限,或是具备为调整信息提供指向性意见的人员,在此不予限定。Exemplarily, the preset duration may be a duration set by the user according to requirements. For example, when the store entry rate needs to be counted during the working hours of the store in one day, the preset duration may include the duration from the opening of the store to the closing of the store. Among them, the user refers to the person who has the authority to adjust the displayed items, such as the operator/manager of the store, the person in charge of the shopping mall, or has the ability to provide directional opinions for adjusting the information, which is not limited here.
当然,预设时长也可按照一定规则而自动生成,比如,基于第一目标场所所述区域的开放时段进行设置等。在实际应用过程中,随着规则的调整,预设时长也可以进行周期性或非周期性的自动调整,比如,夏季、秋季的营业时长不同,那么随着季节的变化,预设时长也可以依据规则中指定的时间节点,调整为更长的时段或是更短的时段,具体调整方式等不予限定。Of course, the preset duration can also be automatically generated according to certain rules, for example, set based on the opening period of the area of the first target site. In the actual application process, with the adjustment of the rules, the preset duration can also be automatically adjusted periodically or non-periodically. For example, if the business hours are different in summer and autumn, the preset duration can also be According to the time node specified in the rules, it can be adjusted to a longer period or a shorter period, and the specific adjustment method is not limited.
示例性地,可以通过获取的预设时长内的视频流中行人的轨迹信息,以及视频流中店铺的进口所对应的目标区域,确定出在预设时长内进入店铺的第一人流数量,以及经过店铺的第二人流数量。Exemplarily, the track information of pedestrians in the video stream obtained within the preset time length and the target area corresponding to the entrance of the store in the video stream can be used to determine the number of the first flow of people entering the store within the preset time length, and The number of second people passing through the store.
S103,基于第一人流数量和第二人流数量,生成针对第二目标场所内陈列物品的调整信息。S103, based on the first number of people and the second number of people, generating adjustment information for the items displayed in the second target place.
示例性地,第二目标场所与第一目标场所相同,或者,第二目标场所为与第一目标场所存在关联的关联场所。Exemplarily, the second target location is the same as the first target location, or the second target location is an associated location that is associated with the first target location.
比如,第一目标场所和第二目标场所为同一店铺,比如均为店铺A,这样通过在预设时长内进入店铺A的第一人流数量和经过店铺A的第二人流数量,可以生成针对店铺A陈列物品的调整信息。For example, the first target location and the second target location are the same store, such as store A. In this way, through the number of the first traffic entering Store A and the number of second traffic passing through Store A within a preset time period, a specific target for the store can be generated. A Adjustment information of displayed items.
再比如,第二目标场所和第一目标场所为存在关联的关联场所。其中,关联场所指的是两类场所(第一目标场所和第二目标场所)之间存在关联关系,该关联关系可以为归属于同一系列的场所或是存在从属关系的场所。其中,归属于同一系列的场所,指的是第一目标场所与第二目标场所的类型相同和/或面向对象相同,比如,第一目标场所与第二目标场所同属于鞋店,具体的还可以是同一品牌的鞋店,或是第一目标场所与第二目标场所均面向儿童。存在从属关系的场所,指的是第一目标场所与第二目标场所存在层级递进或是层级衰减的关系,比如,第一目标场所与第二目标场所的类型相同,但第一目标场所相对于第二目标场所而言属于会员店或是高端店,同样的,第一目标场所相对于第二目标场所而言属于普通店或是平价店。比如第一目标场所为店铺A,第二目标场所为店铺A的连锁店-店铺B。考虑到连锁店之间存在的关联性,虽然店铺A的人流情况不能等同于店铺B的人流情况,但两个店铺的人流情况会存在一定相似性,因此,可以通过在预设时长内进入店铺A的第一人流数量和经过店铺A的第二人流数量,生成针对店铺B陈列物品的调整信息。For another example, the second target location and the first target location are associated locations. The associated place refers to an association relationship between two types of places (the first target place and the second target place), and the association relationship may be a place belonging to the same series or a place with a subordinate relationship. Wherein, belonging to the same series of places means that the first target place and the second target place are of the same type and/or the same object-oriented. For example, the first target place and the second target place belong to the same shoe store. It can be a shoe store of the same brand, or both the first target location and the second target location are for children. Sites with affiliation relationships refer to the relationship between the first target site and the second target site in a progressive or declining hierarchy. For example, the first target site and the second target site are of the same type, but the first target site is relatively The second target place belongs to a member store or a high-end store, and similarly, the first target place belongs to an ordinary store or a cheap store compared to the second target place. For example, the first target location is store A, and the second target location is store A's chain store - store B. Considering the correlation between chain stores, although the flow of people in store A cannot be equal to the flow of people in store B, there will be a certain similarity in the flow of people in the two stores. Therefore, you can enter store A within the preset time. The first flow of people and the second flow of people passing through store A are generated, and the adjustment information for the items displayed in store B is generated.
示例性地,针对第二目标场所内陈列物品的调整信息可以包含但不限于针对陈列的物品的摆放顺序的调整信息、针对陈列的物品的类型的调整信息等,通过第一人流数量和第二人流数量可以反映出店铺在预设时长内的进店率,可以反映出用户对店铺内陈列的物品的喜好程度,因此可以基于第一人流数量和第二人流数量来生成针对店铺内陈列物品的调整信息,比如若店铺的进店率很低(即第一人流数量和第二人流数量均较低,比如,低于各自对应的常规人流数量),可以反映店铺内陈列物品可能不受用户喜欢,因此可以适当调整店铺内陈列的物品。Exemplarily, the adjustment information for the items displayed in the second target place may include, but is not limited to, the adjustment information for the placement order of the displayed items, the adjustment information for the types of the displayed items, etc. The number of two people flow can reflect the store's entry rate within the preset time period, and it can reflect the user's preference for the items displayed in the store. For example, if the store’s entry rate is very low (that is, the number of first and second traffic is low, for example, lower than their corresponding regular traffic), it can reflect that the items displayed in the store may not be affected by users. I like it, so I can adjust the items displayed in the store appropriately.
本公开实施例中,通过对第一目标场所采集的视频流,获取视频流中行人的轨迹信息,这样可以基于行人的轨迹信息,进一步可以快速确定出预设时长内进入第一目标场所的第一人流数量和经过第一目标场所的第二人流数量,从而基于快速确定的第一人流数量和第二人流数量,可以快速确定出针对第二目标场所内陈列物品的调整信息。In the embodiment of the present disclosure, the trajectory information of pedestrians in the video stream is obtained by collecting the video stream from the first target place, so that the pedestrian entering the first target place within a preset time period can be further quickly determined based on the trajectory information of pedestrians. The number of people passing through the first target place and the number of second people passing through the first target place, so that the adjustment information for the items displayed in the second target place can be quickly determined based on the quickly determined first and second flow numbers.
下面将结合具体实施例对上述S101~S103进行阐述。The foregoing S101 to S103 will be described below with reference to specific embodiments.
针对上述S101,在基于对第一目标场所采集的视频流,确定视频流中行人的轨迹信息时,如图2所示,可以包括S201~S203:For the above S101, when determining the trajectory information of pedestrians in the video stream based on the video stream collected from the first target location, as shown in FIG. 2, S201-S203 may be included:
S201,对视频流中的目标视频帧进行行人检测,识别出目标视频流中包含的各行人的位置信息。S201: Perform pedestrian detection on a target video frame in the video stream, and identify the position information of each pedestrian included in the target video stream.
示例性地,目标视频帧为对视频流进行分帧处理后按照采集时间顺序依次获取的每帧视频帧,也可以是对视频流进行分帧处理后的按照采集时间顺序间隔一帧或设定帧获取的视频帧,在此不进行限定。Exemplarily, the target video frame is each frame of video frames obtained sequentially in the order of collection time after the video stream is subjected to frame-by-frame processing, or it can be the frame-by-frame processing of the video stream at intervals of one frame or set in the order of collection time. The video frame obtained by the frame is not limited here.
示例性地,可以采用行人识别算法对目标视频帧进行行人检测,得到目标视频帧中包含的各行人的位置信息。另外,考虑到目标视频帧中不同行人之间可能存在遮挡情况,从目标视频帧中可能无法检测到整个人的完整身体信息,因此,在对视频流中的目标视频帧进行行人检测时,可以考虑采用头肩检测算法,完成对目标视频帧中行人的检测,确定目标视频帧中包含的各行人的位置信息。其中,头肩检测算法指的是通过对目标视频帧中行人的头部和肩部进行识别,得到表示行人头部特征点和肩部特征点的位置信息,从而得到指示行人头肩位置的检测框,可以将检测框的中心位置点在目标视频帧中的位置作为行人在目标视频帧中的位置。Exemplarily, a pedestrian recognition algorithm may be used to perform pedestrian detection on the target video frame to obtain position information of each pedestrian included in the target video frame. In addition, considering that there may be occlusion between different pedestrians in the target video frame, the complete body information of the whole person may not be detected from the target video frame. Therefore, when pedestrian detection is performed on the target video frame in the video stream, it can be Consider adopting the head and shoulders detection algorithm to complete the detection of pedestrians in the target video frame, and determine the position information of each pedestrian contained in the target video frame. Among them, the head and shoulders detection algorithm refers to the identification of the pedestrian's head and shoulders in the target video frame to obtain the position information indicating the pedestrian's head feature points and shoulders, so as to obtain the detection indicating the pedestrian's head and shoulders position. frame, the position of the center position of the detection frame in the target video frame can be used as the position of the pedestrian in the target video frame.
S202,根据目标视频帧中包含的各行人的位置信息,确定目标行人在视频流中的位置信息。S202: Determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame.
示例性地,在视频采集部件的采集位姿固定后,视频流中的目标视频帧可以对应相同的坐标系,通过确定目标视频帧中包含的各行人在相同的坐标系下的位置信息,可以确定目标行人在视频流中的位置信息。Exemplarily, after the capture pose of the video capture component is fixed, the target video frame in the video stream may correspond to the same coordinate system, and by determining the position information of each pedestrian contained in the target video frame under the same coordinate system, it can be Determine the location information of the target pedestrian in the video stream.
其中,目标行人可以是目标视频帧中的各行人,也可以是特定的一个行人或多个行人。这样,可以基于目标行人在目标视频帧中的位置信息,确定出该目标行人在视频流中的位置信息,比如目标行人在第一帧目标视频帧中的位置信息为位置A,在第二帧目标视频帧中的位置信息为位置B,在第三帧目标视频帧中的位置信息为位置C,则目标行人在视频流中的位置信息按时序排列,依次包括位置A、位置B和位置C。The target pedestrian may be each pedestrian in the target video frame, or may be a specific pedestrian or multiple pedestrians. In this way, the position information of the target pedestrian in the video stream can be determined based on the position information of the target pedestrian in the target video frame. For example, the position information of the target pedestrian in the target video frame in the first frame is position A, and in the second frame The position information in the target video frame is position B, and the position information in the third frame of the target video frame is position C, then the position information of the target pedestrian in the video stream is arranged in time sequence, including position A, position B and position C in turn .
S202,根据目标行人在视频流中的位置信息,确定目标行人的轨迹信息。S202: Determine the trajectory information of the target pedestrian according to the position information of the target pedestrian in the video stream.
示例性地,可以根据目标行人在视频流中的位置信息,以及目标视频帧的时间顺序,快速确定出目标行人的轨迹信息,比如上述确定出的目标行人在视频流中的位置信息包括位置A、位置B和位置C,且第一帧目标视频帧的采集时间早于第二帧目标视频帧的采集时间,第二帧目标视频帧采集时间早于第三帧目标视频帧的采集时间,因此目标行 人的轨迹信息为从A位置到B位置,再从B位置到C位置。Exemplarily, the track information of the target pedestrian can be quickly determined according to the position information of the target pedestrian in the video stream and the time sequence of the target video frames, for example, the position information of the target pedestrian in the video stream determined above includes the position A. , position B and position C, and the acquisition time of the first frame target video frame is earlier than the acquisition time of the second frame target video frame, and the second frame target video frame acquisition time is earlier than the third frame target video frame acquisition time, so The trajectory information of the target pedestrian is from position A to position B, and then from position B to position C.
本公开实施例中,通过使用行人检测技术,可以快速确定出视频帧中各行人的位置信息,这样基于各行人的位置信息,可以确定出目标行人视频流中的位置信息,进而可以快速确定出目标行人的轨迹信息。In the embodiment of the present disclosure, by using the pedestrian detection technology, the position information of each pedestrian in the video frame can be quickly determined, so that the position information of the target pedestrian in the video stream can be determined based on the position information of each pedestrian, and then the position information of the target pedestrian can be quickly determined. The trajectory information of the target pedestrian.
示例性地,目标视频帧中可能包含多个不同的行人,因此在对目标视频帧进行行人检测的过程中,为了确定目标行人的轨迹信息时,需要在不同的目标视频帧中,确定出目标行人,因此,在根据目标视频帧中包含的各行人的位置信息,确定目标行人在视频流中的位置信息之前,本公开实施例提供的信息处理方法还包括以下S2011~S2013:Exemplarily, the target video frame may contain multiple different pedestrians. Therefore, in the process of pedestrian detection on the target video frame, in order to determine the trajectory information of the target pedestrian, it is necessary to determine the target in different target video frames. Therefore, before determining the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame, the information processing method provided by the embodiment of the present disclosure further includes the following S2011-S2013:
S2011,获取目标视频帧中的行人的特征信息。S2011: Acquire characteristic information of pedestrians in the target video frame.
示例性地,可以在确定目标帧视频帧中包含行人的头肩信息后,在目标视频帧中提取用于描述行人头肩的特征信息,比如可以包括头肩的轮廓特征、形状特征、颜色特征、纹理特征以及运动特征等中的一项或是多项的组合。Exemplarily, after it is determined that the video frame of the target frame contains the head and shoulders information of the pedestrian, feature information for describing the head and shoulders of the pedestrian can be extracted from the target video frame, for example, the outline feature, shape feature, and color feature of the head and shoulders may be included. , one or more combinations of texture features and motion features.
S2012,基于不同目标视频帧分别包含的行人的特征信息,确定不同目标视频帧中包含的行人之间的特征相似度。S2012 , based on the feature information of pedestrians contained in different target video frames respectively, determine the feature similarity between pedestrians contained in different target video frames.
示例性地,比如针对任意两帧相邻的目标视频帧,分别记为第一目标视频帧和第二目标视频帧,若第一目标视频帧和第二目标视频帧中均分别包含三个行人,可以对每个目标视频帧中包含的行人通过序号等标识进行区分,比如第一目标视频帧中的三个行人分别记为第一个行人、第二个行人以及第三个行人,同样,第二目标视频帧中的三个行人分别记为第一个行人、第二个行人以及第三个行人。Exemplarily, for example, for any two adjacent target video frames, they are respectively denoted as the first target video frame and the second target video frame, if the first target video frame and the second target video frame both contain three pedestrians respectively. , the pedestrians contained in each target video frame can be distinguished by the serial number and other identifiers. For example, the three pedestrians in the first target video frame are recorded as the first pedestrian, the second pedestrian and the third pedestrian. Similarly, The three pedestrians in the second target video frame are recorded as the first pedestrian, the second pedestrian, and the third pedestrian, respectively.
进一步地,可以基于第一目标视频帧中的第一个行人的特征信息以及第二目标视频帧中的三个行人分别对应的特征信息,确定第一目标视频帧中的第一个行人分别与第二目标视频帧中包含的三个行人之间的特征相似度,然后按照相同的方式确定第一目标视频帧中包含的第二个行人分别与第二目标视频帧中包含的三个行人的特征相似度,以及第三个行人分别与第二目标视频帧中包含的三个行人的特征相似度。Further, based on the feature information of the first pedestrian in the first target video frame and the corresponding feature information of the three pedestrians in the second target video frame, it can be determined that the first pedestrian in the first target video frame is The feature similarity between the three pedestrians contained in the second target video frame, and then determine the similarity between the second pedestrian contained in the first target video frame and the three pedestrians contained in the second target video frame in the same way. feature similarity, and the feature similarity between the third pedestrian and the three pedestrians contained in the second target video frame, respectively.
S2013,将特征相似度中高于预设相似度阈值的最大相似度对应的行人作为目标行人。S2013, taking the pedestrian corresponding to the maximum similarity higher than the preset similarity threshold in the feature similarity as the target pedestrian.
示例性地,以上述确定第一目标视频帧中的第一个行人分别与第二目标视频帧中包含的三个行人的特征相似度的过程为例,比如第一目标视频帧中的第一个行人与第二目标视频帧中包含的第二个行人之间的特征相似度高于阈值,且在得到的三个特征相似度中为最大相似度,则第一目标视频帧第一个行人和第二目标视频帧中的第二个行人为相同的行人,可以记录为目标行人,同样可以确定分别与第一目标视频帧中第二个行人以及第三个行人为同一行人的行人。Exemplarily, taking the above process of determining the feature similarity between the first pedestrian in the first target video frame and the three pedestrians included in the second target video frame as an example, for example, the first pedestrian in the first target video frame The feature similarity between the individual pedestrian and the second pedestrian contained in the second target video frame is higher than the threshold, and is the largest similarity among the obtained three feature similarities, then the first pedestrian in the first target video frame The same pedestrian as the second pedestrian in the second target video frame can be recorded as the target pedestrian, and it can also be determined that the second pedestrian and the third pedestrian in the first target video frame are the same pedestrian.
示例性地,在目标行人包含多个时,可以按照同一ID对每个目标行人进行编码,也就是使用相同的ID对在不同视频帧中出现的同一个行人进行标记,从而完成多个行人的标记过程,这样便于通过ID对目标行人的轨迹进行追踪。Exemplarily, when there are multiple target pedestrians, each target pedestrian can be encoded according to the same ID, that is, the same pedestrian appearing in different video frames is marked with the same ID, so as to complete the identification of multiple pedestrians. The marking process is convenient to track the trajectory of the target pedestrian through ID.
本公开实施例中,提出可以通过提取目标视频帧中包含的行人的特征信息,确定不同目标视频帧中的目标行人,为后续对目标行人进行追踪确定目标行人的轨迹信息提供便利。In the embodiments of the present disclosure, it is proposed that the target pedestrians in different target video frames can be determined by extracting the characteristic information of the pedestrians contained in the target video frames, which provides convenience for subsequent tracking of the target pedestrians to determine the trajectory information of the target pedestrians.
针对上述S102,在基于视频流中行人的轨迹信息,确定在预设时长内进入第一目标场所的第一人流数量时,包括:基于轨迹信息和第一判定标志,对预设时长内进入第一目标场所的行人数量进行统计,得到第一人流数量,其中,第一判定标志用于判断行人是否进入第一目标场所。For the above S102, when determining the number of the first flow of people entering the first target place within the preset time period based on the track information of pedestrians in the video stream, the method includes: based on the track information and the first determination flag, determining the number of people entering the first target place within the preset time period. The number of pedestrians in a target place is counted to obtain the first number of pedestrian flows, wherein the first judgment flag is used to judge whether the pedestrian enters the first target place.
其中,第一判定标志可以为预先绘制的用于判断行人是否进入第一目标场所的判定线。具体地,可针对判定线标记进方向和出方向,视频流中的行人的轨迹方向与进方向匹配,可以确定行人为进入第一目标场所,基于此可以统计预设时长内的第一人流数量。The first determination mark may be a pre-drawn determination line for determining whether the pedestrian enters the first target place. Specifically, the incoming direction and outgoing direction can be marked for the determination line, the trajectory direction of the pedestrian in the video stream matches the incoming direction, and it can be determined that the pedestrian is entering the first target place, and based on this, the number of the first pedestrian flow within the preset time period can be counted .
本公开实施例中,在对行人的轨迹进行追踪过程中,可以结合预先绘制的用于判断行人是否进入第一目标场所的第一判定标志,较为准确的确定出行人是否进入第一目标场所,该过程可以节省人工对人流数量进行统计的时间,提高了人流数量统计效率。In the embodiment of the present disclosure, in the process of tracking the trajectory of the pedestrian, it can be more accurately determined whether the pedestrian enters the first target place by combining with the pre-drawn first judgment mark for judging whether the pedestrian enters the first target place. This process can save time for manually counting the number of people, and improve the efficiency of counting the number of people.
针对上述S102,在基于视频流中行人的轨迹信息,确定在预设时长内经过第一目标场所的第二人流数量时,包括:基于轨迹信息、第一判定标志和第二判定标志,对预设时长内经过第一目标场所且未进入第一目标场所的行人数量进行统计,得到第二人流数量;其中,第一判定标志用于判断行人是否进入第一目标场所,第二判定标志用于判断行人是否经过第一目标场所。For the above S102, when determining the number of second flows of people passing through the first target place within a preset time period based on the trajectory information of pedestrians in the video stream, the method includes: based on the trajectory information, the first determination flag and the second determination flag, determining the number of the pre- Set the number of pedestrians who pass through the first target place and do not enter the first target place within the time period to be counted to obtain the second number of pedestrian flows; wherein, the first judgment mark is used to judge whether the pedestrian enters the first target place, and the second judgment mark is used for It is judged whether the pedestrian passes through the first target place.
其中,第一判定标志可以为上述提到的判定线,第二判定标志可以为预先绘制的用于判断行人是否经过第一目标场所的判定区域,根据视频流中的行人的轨迹信息,确定行人的轨迹为进入判定区域,且未进入第一目标场所,可以确定行人经过第一目标场所,基于此可以统计预设时长内的第二人流数量。The first judgment mark may be the above-mentioned judgment line, and the second judgment mark may be a pre-drawn judgment area for judging whether the pedestrian passes through the first target place, and the pedestrian is determined according to the track information of the pedestrian in the video stream. If the trajectory is entering the determination area and does not enter the first target place, it can be determined that the pedestrian passes through the first target place, and based on this, the number of the second pedestrian flow within the preset time period can be counted.
示例性地,可以通过视频流中行人的轨迹信息,以及判定线,确定出在预设时长内进入第一目标场所的行人数量,以及可以通过视频流中行人的轨迹信息、判定线以及判定区域,确定出在预设时长内经过第一目标场所且未进入第一目标场所的行人数量。Exemplarily, the number of pedestrians entering the first target place within a preset time period can be determined through the pedestrian's trajectory information and the judgment line in the video stream, and the pedestrian's trajectory information, the judgment line, and the judgment area in the video stream can be determined. , and determine the number of pedestrians who pass through the first target place within a preset time period and do not enter the first target place.
在一种实施方式中,如图3所示,为第一目标场所的示意图,该第一目标场所可以为店铺A,该店铺A靠近出入口的位置部署有店头陈列区域。其中,出入口为店铺A设置的唯一通道,在实际部署过程中,店铺A也可以包括多个通道,比如,包括两个通道,一个为出口,一个为入口,或是这两个通道都为出入口。店头陈列区域可以包括但不限于店铺的橱窗、店铺内靠近出入口位置的用于陈列商品的区域等,在此不予限定。参考图3,判定线可以位于判定区域外,靠近店铺出入口的一侧。In one embodiment, as shown in FIG. 3 , which is a schematic diagram of a first target place, the first target place may be a store A, where a storefront display area is deployed near the entrance and exit. Among them, the entrance and exit are the only channels set up by store A. In the actual deployment process, store A may also include multiple channels, for example, including two channels, one for the exit and one for the entrance, or both channels are entrances and exits . The store front display area may include, but is not limited to, a store window, an area in the store near the entrance and exit for displaying commodities, and the like, which is not limited herein. Referring to FIG. 3 , the determination line may be located outside the determination area, close to the side of the entrance and exit of the store.
为保证获取到的第一、第二人流数量的可靠性,判定线通常可以设置在店铺A的出入口所在区域内,具体可以与店铺A的出入口所在位置重合,或是位于店铺A内部,靠近出入口的位置(即图3所示判定线)。而判定区域则可以设置在店铺A的外部,靠近出入口的位置。通常情况下,出入口所在位置可以位于判定线与判定区域的之间,当然,出入口所在位置也可以与判定线以及判定区域存在重叠,比如,判定区域靠近出入口的一条边分别与判定线、以及出入口所在位置重合。在实际部署过程中,判定线也可位于判定区域内,或者判定线与判定区域靠近出入口的一条边重合且位于店铺外靠近出入口的位置等。In order to ensure the reliability of the obtained first and second flow of people, the determination line can usually be set in the area where the entrance and exit of store A are located, which can be coincident with the location of the entrance and exit of store A, or located inside store A, close to the entrance and exit. position (ie, the judgment line shown in Figure 3). The determination area may be set outside the store A, near the entrance and exit. Usually, the location of the entrance and exit can be located between the judgment line and the judgment area. Of course, the location of the entrance and exit can also overlap with the judgment line and the judgment area. The locations overlap. In the actual deployment process, the determination line may also be located within the determination area, or the determination line may overlap with an edge of the determination area near the entrance and exit and be located outside the store near the entrance and exit.
参考图3,可以通过视频流中行人的轨迹信息,确定行人是否跨过判定线,而由于判定线位于店铺内,因此,可以将跨过判定线的行人确定为由出入口进入店铺的行人,从而统计出在预设时长内经过第一目标场所的行人数量。此外,可以通过视频流中行人的轨迹信息,统计出在预设时长内经过判断区域,且未跨过判定线进入店铺的行人,由此得到在预设时长内经过第一目标场所且未进入第一目标场所的行人数量。Referring to FIG. 3 , it can be determined whether the pedestrian has crossed the judgment line through the trajectory information of the pedestrian in the video stream, and since the judgment line is located in the store, the pedestrian who has crossed the judgment line can be determined as the pedestrian entering the store through the entrance and exit, thereby The number of pedestrians passing through the first target place within the preset time period is counted. In addition, it is possible to count the pedestrians who pass through the judgment area within the preset time period and do not cross the judgment line to enter the store through the track information of pedestrians in the video stream, so that it can be obtained that they pass through the first target place within the preset time period and do not enter the store. The number of pedestrians at the first target site.
需要说明的是,判定线的长短、判定区域的大小,以及各自与店铺之间的关系,在本公开中不予限定,可以包括但不限于例举的情况。此外,类似的,也可以将图3所示的店铺B、店铺C中的一个或是多个场所确定为第一目标场所,在此不予限定。It should be noted that the length of the determination line, the size of the determination area, and the relationship between each of them and the store are not limited in the present disclosure, and may include, but are not limited to, examples. In addition, similarly, one or more locations among the store B and the store C shown in FIG. 3 may also be determined as the first target location, which is not limited herein.
本公开实施例中,在对行人的轨迹进行追踪过程中,可以结合预先绘制的用于判断行人是否进入第一目标场所的第一判定标志,以及用于判断行人是否经过第一目标场所的第二判定标志,较为准确的确定出行人是否经过第一目标场所,该过程可以节省 人工对人流数量进行统计的时间,提高了人流数量统计效率。In the embodiment of the present disclosure, in the process of tracking the trajectory of the pedestrian, a pre-drawn first judgment mark for judging whether the pedestrian enters the first target place and the first judgment mark for judging whether the pedestrian passes through the first target place can be combined. The second judgment flag can more accurately determine whether the pedestrian passes through the first target place. This process can save the time for manually counting the number of people, and improve the efficiency of counting the number of people.
在一种实施方式中,第一目标场所包括设定范围区域内的第一店铺,针对上述S103,基于第一人流数量和第二人流数量,生成针对第二目标场所内陈列物品的调整信息时,如图4所示,可以包括以下S301~S302:In one embodiment, the first target place includes a first store within a set area, and for the above S103, when generating adjustment information for the items displayed in the second target place based on the first and second traffic numbers , as shown in FIG. 4 , may include the following S301 to S302:
S301,基于第一人流数量和第二人流数量,确定第一店铺在预设时长内的进店率。S301 , determining a store entry rate of a first store within a preset time period based on the number of the first flow of people and the number of the second flow of people.
示例性地,设定范围区域可以包含商场、商场内的指定区域、某条街道、或者某条街道的指定区域等,第一店铺可以为设定范围区域内的任一店铺。Exemplarily, the set range area may include a shopping mall, a designated area in a shopping mall, a certain street, or a designated area of a certain street, and the like, and the first store may be any store within the set range area.
例性地,第一人流数量可以包含在预设时长内进入第一店铺的行人的数量,第二人流数量可以包含在预设时长内经过第一店铺但是未进入该第一店铺的行人的数量,通过第一人力数量和第二人流数量可以确定出第一店铺在预设时长内的进店率。Exemplarily, the first flow of people may include the number of pedestrians who enter the first store within a preset time period, and the second flow of people may include the number of pedestrians who pass through the first store within the preset time period but do not enter the first store. , the store entry rate of the first store within the preset time period can be determined by the first manpower quantity and the second crowd flow quantity.
具体地,在基于第一人流数量和第二人流数量,确定第一店铺在预设时长内的进店率时,可以包括:Specifically, when determining the store entry rate of the first store within a preset period of time based on the number of the first crowd and the number of the second crowd, it may include:
S3011,对第一人流数量和第二人流数量进行求和,得到在预设时长内经过第一目标场所的总人流数量;S3011, summing the first number of people and the second number of people to obtain the total number of people passing through the first target place within a preset time period;
S3012,将第一人流数量和总人流数量的比值,作为第一店铺在预设时长内的进店率。S3012, taking the ratio of the first number of people flow to the total number of people flow as the store entry rate of the first store within a preset time period.
具体地,可以按照以下公式来确定第一店铺在预设时长内的进店率:Specifically, the store entry rate of the first store within the preset time period can be determined according to the following formula:
Figure PCTCN2021121449-appb-000001
Figure PCTCN2021121449-appb-000001
其中,R t表示第一店铺在预设时长内的进店率;P in(t)表示在预设时长内进入第一店铺的第一人流数量;P pass(t)表示在预设时长内经过第一店铺的第二人流数量,t用于表示预设时长对应的时段,以表明上述各参数反映的是同一时段t内产生的参数。 Among them, R t represents the entry rate of the first store within the preset time period; P in(t) represents the number of first people entering the first store within the preset time period; P pass(t) represents the preset time period. The number of the second flow of people passing through the first store, t is used to represent the time period corresponding to the preset duration, so as to indicate that the above parameters reflect the parameters generated in the same time period t.
本公开实施例中,在第一目标场所为店铺时,可以通过视频流检测确定出店铺在预设时长内的进店率,节省了人工统计进店率需要的时间,提高了获取店铺的进店率的效率。In the embodiment of the present disclosure, when the first target place is a store, the store entry rate of the store within a preset period of time can be determined through video stream detection, which saves the time required to manually count the store entry rate and improves the process of obtaining store entry rates. store rate efficiency.
S302,基于第一店铺在预设时长内的进店率,生成针对第二目标场内陈列物品的调整信息。S302 , based on the store entry rate of the first store within a preset time period, generate adjustment information for the items displayed in the second target field.
示例性地,第二目标场所内陈列的物品与第一店铺陈列的物品相同,因此可以通过提前统计第一店铺在一定时间段内的用户行为数据,来确定该第一店铺内陈列的物品的受欢迎程度,并以此来确定针对第二目标场所内陈列物品的调整信息。Exemplarily, the items displayed in the second target place are the same as the items displayed in the first store, so the user behavior data of the first store in a certain period of time can be counted in advance to determine the quality of the items displayed in the first store. popularity, and use this to determine adjustment information for the items displayed in the second target venue.
本公开实施例中,可以通过统计预设时长内进入第一店铺的第一人流数量和经过第一店铺的第二人流数量,确定出反应第一店铺在预设时长内的进店率,该进店率可以反映出第一店铺陈列的物品在预设时长内的受欢迎程度,这样可以直接基于该进店率为与第一店铺关联的第二目标场所制定调整方案,整个过程无需再通过人工统计第二目标场所的销售数据,节省了人力成本,且提高了确定的调整方案的准确度。In the embodiment of the present disclosure, by counting the number of first people entering the first store within the preset time period and the number of second people passing through the first store, it is possible to determine and reflect the store entry rate of the first store within the preset time period. The store entry rate can reflect the popularity of the items displayed in the first store within a preset period of time, so that the adjustment plan can be formulated directly based on the store entry rate for the second target place associated with the first store, and the whole process does not need to go through Manually count the sales data of the second target site, which saves labor costs and improves the accuracy of the determined adjustment plan.
在一种实施方式中,第一店铺包括至少两个,每个第一店铺的进店率均可以按照上述方式进行确定,针对上述S302,在基于第一店铺在预设时长内的进店率,生成针对第二目标场内陈列物品的调整信息时,包括:基于第一店铺中每个店铺在同一统计 时段内对应的进店率,以及每个店铺在同一统计时段内陈列的物品,生成针对第二目标场所内陈列物品的调整信息。In one embodiment, the first store includes at least two stores, and the store entry rate of each first store can be determined in the above manner. For the above S302, based on the store entry rate of the first store within a preset time period , when generating adjustment information for the items displayed in the second target field, including: based on the corresponding store entry rate of each store in the first store within the same statistical period, and the items displayed in each store within the same statistical period, generating Adjustment information for items displayed in the second target location.
示例性地,统计时段为预设时长的整数倍,比如可以为一个季度,或者一个活动周期,基于每个店铺在同一统计时段内对应的进店率,以及每个店铺在同一统计时段内陈列的物品,确定针针对每个店铺的第一用户行为统计结果;其中,第一用户行为统计结果用于反映用户在同一统计时段内针对不同物品类型的喜好程度。Exemplarily, the statistical period is an integer multiple of the preset time period, such as a quarter or an activity cycle, based on the corresponding store entry rate of each store in the same statistical period, and the display of each store in the same statistical period. The first user behavior statistical result for each store is determined; wherein, the first user behavior statistical result is used to reflect the user's preference for different item types in the same statistical period.
示例性地,预设时长可以为第一店铺当天的工作时长,比如可以为8小时,统计时段可以包含一个季度,比如春季,针对陈列不同类型物品的店铺进行进店率统计,可以确定出不同店铺在统计时段内的受欢迎程度,该统计结果可以用于针对店铺内陈列的物品进行调整。Exemplarily, the preset duration may be the working hours of the first store on that day, for example, it may be 8 hours, and the statistical period may include a quarter, such as spring. The popularity of the store during the statistical period. The statistical results can be used to adjust the items displayed in the store.
本公开实施例中,可以通过在同一统计时段统计陈列不同物品的店铺的进店率,比如统计出商场内的多个店铺在同一个季度内的进店率,从而可以确定出多个店铺陈列的物品在该同一统计时段内的受欢迎程度,进而可以生成针对第二目标场所陈列物品的调整信息,该过程无需再统计第二目标场所在该统计时段内的销售数据,节省了人力成本,且提高了确定的调整方案的准确度。In the embodiment of the present disclosure, the store entry rate of stores displaying different items can be counted in the same statistical period, for example, the store entry rate of multiple stores in a shopping mall in the same quarter can be counted, so that the display of multiple stores can be determined. The popularity of the items in the same statistical period, and then the adjustment information for the items displayed in the second target place can be generated. This process does not need to count the sales data of the second target place in the statistical period, saving labor costs, And the accuracy of the determined adjustment scheme is improved.
具体地,在基于第一店铺中每个店铺在同一统计时段内对应的进店率,以及每个店铺在同一统计时段内陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括以下S3021~S3022:Specifically, when the adjustment information for the items displayed in the second target place is generated based on the corresponding store entry rate of each store in the first store within the same statistical period and the items displayed in each store within the same statistical period, Including the following S3021~S3022:
S3021,基于每个店铺在同一统计时段内对应的进店率,从第一店铺中确定第一目标店铺和第二目标店铺,第一目标店铺为第一店铺中最低进店率对应的店铺,第二目标店铺为第一店铺中最高进店率对应的店铺;S3021: Determine the first target store and the second target store from the first store based on the store entry rate corresponding to each store in the same statistical period, where the first target store is the store corresponding to the lowest store entry rate among the first stores, The second target store is the store corresponding to the highest entry rate among the first stores;
S3022,将第一目标店铺作为第二目标场所,基于第二目标店铺内陈列的物品,生成针对第二目标场所内陈列物品的调整指示信息。S3022 , taking the first target store as the second target place, and generating adjustment instruction information for the items displayed in the second target place based on the items displayed in the second target store.
示例性地,可以对旅游类的商区中的多个第一店铺进行进店率统计,确定该商区中进店率最低的第一目标店铺,以及进店率最高的第二目标店铺,第二目标店铺陈列的物品在同一统计时段内的受欢迎程度高于第一目标店铺陈列的物品,因此,针对与第一目标店铺陈列的物品相同的第二目标场所,可以根据第二目标店铺陈列的物品,生成针对第二目标场所内陈列物品的调整指示信息。Exemplarily, a plurality of first stores in a tourist business district can be counted on the store entry rate, and the first target store with the lowest store entry rate and the second target store with the highest store entry rate in the business district can be determined, The popularity of the items displayed in the second target store is higher than that of the items displayed in the first target store in the same statistical period. Therefore, for the second target place that is the same as the items displayed in the first target store, the second target store can For the displayed items, adjustment instruction information for the displayed items in the second target place is generated.
示例性地,可以根据第二目标店铺陈列的物品的类型和/或陈列的物品在店铺内的摆放顺序,生成针对第二目标场所内陈列物品的调整指示信息,比如指示第二目标场所可以按照第二目标店铺陈列的物品进行调整,或者,指示第二目标场所可以按照第二目标店铺陈列的物品的摆放顺序进行调整,或者指示第二目标场所可以按照第二目标店铺陈列的物品以及物品的摆放顺序进行调整。Exemplarily, according to the type of the items displayed in the second target store and/or the order in which the displayed items are placed in the store, the adjustment instruction information for the items displayed in the second target place can be generated, for example, indicating that the second target place can Adjust according to the items displayed in the second target store, or instruct the second target place to adjust according to the order of the items displayed in the second target store, or instruct the second target place to adjust according to the items displayed in the second target store and The order of placement of items has been adjusted.
本公开实施例中,通过统计不同店铺在同一统计时段内对应的进店率,可以选择出在预设范围区域内最低进店率的第一目标店铺以及最高进店率的第二目标店铺,进一步可以根据第二目标店铺陈列的物品对与第一目标店铺相同的第二目标场所制定调整方案,无需额外考察第二目标场所中的进店率情况,可以节省人力成本,从而提高确定资源配置的效率。In the embodiment of the present disclosure, by counting the corresponding store entry rates of different stores in the same statistical period, the first target store with the lowest store entry rate and the second target store with the highest store entry rate within the preset range can be selected. Further, according to the items displayed in the second target store, an adjustment plan can be formulated for the second target place that is the same as the first target store, and there is no need to additionally examine the store entry rate in the second target place, which can save labor costs and improve the determination of resource allocation. s efficiency.
在另一种实施方式中,第一店铺为一个,针对上述S302,在基于第一店铺在预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息时,包括:基于第一店铺在不同统计时段内对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,确定针对第二目标场所内陈列物品的调整信息。In another embodiment, there is one first store, and for the above S302, when generating the adjustment information for the items displayed in the second target place based on the store entry rate of the first store within the preset time period, the process includes: based on The corresponding store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods respectively determine the adjustment information for the displayed items in the second target place.
示例性地,不同统计时段可以包含不同的季度,针对同一店铺,可能在不同的季度陈列有不同的物品,也可能在不同的季度陈列的物品相同,这里可以根据统计出的第一店铺在不同季度内对应的进店率,确定出第一店铺在不同季度内陈列的物品的受欢迎程度。Exemplarily, different statistical periods may include different quarters. For the same store, different items may be displayed in different quarters, or the same items may be displayed in different quarters. The corresponding store entry rate in the quarter determines the popularity of the items displayed in the first store in different quarters.
进一步可以根据统计出的第一店铺在不同统计时段内陈列的物品的受欢迎程度,生成与该第一店铺关联的第二目标场所内陈列物品的调整信息,便于第二目标场所可以基于该调整信息进行资源配置的调整。Further, according to the statistics of the popularity of the items displayed in the first store in different statistical periods, the adjustment information of the items displayed in the second target place associated with the first store can be generated, so that the second target place can be based on the adjustment. information to adjust resource allocation.
本公开实施例中,可以对同一店铺在不同统计时段的进店率进行统计,从而确定出该同一店铺陈列的物品与不同统计时间段的关联关系,比如该店铺陈列的物品在哪个统计时间段最受欢迎,从而可以基于同一店铺陈列的物品与不同统计时间段的关联关系对第二目标场所制定调整方案,确定出第二目标场所在不同统计时段陈列的物品,该过程可以节省人工线下统计进店率的成本,提高资源配置的效率。In the embodiment of the present disclosure, the store entry rate of the same store in different statistical time periods can be counted, so as to determine the correlation between the items displayed in the same store and different statistical time periods, such as which statistical time period the items displayed in the store are in. The most popular, so that based on the relationship between the items displayed in the same store and different statistical time periods, an adjustment plan can be formulated for the second target place, and the items displayed in the second target place in different statistical time periods can be determined. This process can save manual offline. Count the cost of store entry rate and improve the efficiency of resource allocation.
具体地,在一种实施方式中,在基于第一店铺在不同统计时段内分别对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括以下S3023~S3024:Specifically, in one embodiment, based on the respective store entry rates of the first store in different statistical time periods, and the items displayed by the first store in different statistical time periods respectively, generate items for display in the second target place. When adjusting the information, include the following S3023-S3024:
S3023,在第一店铺在不同统计时段陈列内分别陈列的物品相同的情况下,基于第一店铺在不同统计时段内分别对应的进店率,确定第一店铺陈列的物品对应的目标陈列时段;目标陈列时段对应的进店率大于或等于预设进店率阈值;S3023, in the case that the items displayed by the first store in different statistical periods are the same, determine the target display period corresponding to the items displayed in the first shop based on the corresponding store entry rates of the first shop in different statistical periods; The store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold;
S3024,基于目标陈列时段,生成在目标陈列时段针对第二目标场所内陈列物品的调整信息。S3024 , based on the target display period, generate adjustment information for the items displayed in the second target place during the target display period.
示例性地,预设进店率阈值可以为预先根据大数据统计得到的,比如可以根据店铺的进店率与销售数量之间的关系,选择销售数量达到要求时对应的进店率作为预设进店率阈值;或者预设进店率阈值可以人为设定,在此不进行限定。Exemplarily, the preset store entry rate threshold may be obtained in advance according to big data statistics, for example, according to the relationship between the store entry rate of the store and the sales quantity, the store entry rate corresponding to when the sales quantity reaches the requirement may be selected as the preset value. Store entry rate threshold; or the preset store entry rate threshold can be set manually, which is not limited here.
示例性地,比如第一店铺在不同的季度陈列的物品均相同,可以根据第一店铺在不同的季度内分别对应的进店率,确定出第一店铺陈列的物品在哪个季度受欢迎程度高,比如第一店铺在春季和秋季对应的进店率大于或等于预设进店率阈值,则可以将春季和秋季作为第一店铺陈列的物品对应的目标陈列时段。Exemplarily, for example, the items displayed in the first store in different quarters are the same, and it can be determined in which quarter the items displayed in the first store are most popular according to the corresponding store entry rates of the first store in different quarters. For example, the store entry rate corresponding to the first store in spring and autumn is greater than or equal to the preset store entry rate threshold, then spring and autumn can be used as the target display period corresponding to the items displayed in the first store.
示例性地,在第一店铺陈列的物品对应的目标陈列时段确定后,可以基于该目标陈列时段,生成在目标陈列时段针对第二目标场所内陈列物品的调整信息,比如生成指示第二目标场所在春季和秋季陈列的物品与第一店铺陈列的物品相同,和/或,生成指示第二目标场所在春季和秋季陈列的物品的摆放顺序与第一店铺陈列的物品的摆放顺序一致。Exemplarily, after the target display period corresponding to the items displayed in the first store is determined, the adjustment information for the items displayed in the second target place during the target display period may be generated based on the target display period, such as generating information indicating the second target place. The items displayed in the spring and fall are the same as the items displayed in the first store, and/or the order in which the items displayed in the spring and autumn are generated indicating the second target location is consistent with the order in which the items displayed in the first store are displayed.
本公开实施例中,在第一店铺在不同统计时段陈列的物品相同的情况下,通过对同一店铺在不同统计时段的进店率进行统计,可以选择该第一店铺陈列的物品受欢迎的目标陈列时段,基于此可以对第二目标场所在目标陈列时段陈列的物品制定调整方案,该过程可以节省通过人工线下统计第二目标场在不同陈列时段的进店率所需的时间,也无需统计第二目标场所在不同陈列时段的销售数据,从而可以提高调整方案的制定效率。In the embodiment of the present disclosure, in the case where the items displayed in the first store are the same in different statistical time periods, by counting the store entry rates of the same store in different statistical time periods, the popular target of the items displayed in the first store can be selected Display period, based on this, an adjustment plan can be made for the items displayed in the second target field during the target display period. This process can save the time required to manually count the store entry rate of the second target field in different display periods, and no need The sales data of the second target site in different display periods are counted, so that the formulation efficiency of the adjustment plan can be improved.
在另一种实施方式中,在基于第一店铺在不同统计时段内分别对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括以下S3025~S3026:In another embodiment, the adjustment for the items displayed in the second target place is generated based on the respective store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods. Information, including the following S3025 ~ S3026:
S3025,在所述第一店铺在不同统计时段陈列内分别陈列的物品不相同的情况下,基于所述第一店铺在不同统计时段内分别对应的进店率,确定所述第一店铺在不同统计 时段陈列的物品与对应陈列时段之间的匹配度;S3025, in the case that the items displayed by the first store in different statistical time periods are different, determine that the first store is in different The matching degree between the items displayed in the statistical period and the corresponding display period;
S3026,基于确定的所述匹配度,生成在特定陈列时段针对所述第二目标场所内陈列物品的调整信息。S3026 , based on the determined matching degree, generate adjustment information for the items displayed in the second target place during a specific display period.
示例性地,比如第一店铺在不同的季度陈列的物品均不相同,可以根据第一店铺在不同的季度内分别对应的进店率,确定出第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度,在任一统计时段对应的进店率越高,说明第一店铺在该任一统计时段陈列的物品受欢迎程度越高,可以认为第一店铺在该任一统计时段陈列的物品与物品的陈列时段之间的匹配度越高,反之在任一统计时段对应的进店率越低,认为第一店铺在该任一统计时段陈列的物品与物品的陈列时段之间的匹配度越低。Exemplarily, for example, the items displayed by the first store in different quarters are different, according to the corresponding store entry rates of the first store in different quarters, it can be determined that the items displayed by the first store in different statistical periods correspond to The matching degree between the display periods, the higher the store entry rate corresponding to any statistical period, the higher the popularity of the items displayed by the first store in the any statistical period, and it can be considered that the first store is in the any statistical period. The higher the degree of matching between the displayed items and the item's display period, the lower the corresponding store entry rate in any statistical period, it is considered that the first store displayed the items in any statistical period and the items displayed in the display period. The lower the match.
示例性地,在确定出第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度后,可以根据该匹配度,确定出在特定陈列时段,比如在匹配度高于预设匹配度阈值的陈列时段,针对第二目标场所内陈列物品的调整信息,比如生成指示第二目标场所在特定陈列时段陈列的物品与第一店铺在特定时段陈列的物品相同,和/或,生成指示第二目标场所在特定陈列时段陈列的物品的摆放顺序与第一店铺在特定时段陈列的物品的摆放顺序一致Exemplarily, after determining the matching degree between the items displayed in the first store in different statistical periods and the corresponding display period, it can be determined according to the matching degree that the item is displayed in a specific display period, for example, when the matching degree is higher than the preset matching degree. The display period of the degree threshold, the adjustment information for the items displayed in the second target site, such as generating an indication that the items displayed in the second target site in a specific display period are the same as the items displayed in the first store in a specific period, and/or generating an indication The order in which the items displayed in the second target place during the specific display period is consistent with the order in which the items displayed in the first store during the specific period are placed
本公开实施例中,在第一店铺在不同统计时段陈列的物品不相同的情况下,通过对同一店铺在不同统计时段的进店率进行统计,可以快速确定该第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度,比如在第一个统计时段对应的进店率较高,可以反应在第一个统计时段陈列的物品与该第一统计时段之间的匹配度较高,从而确定第一店铺在第一个统计时段销售的物品适合在第一统计时段进行销售,反之则不适合在第一个统计时段进行销售,基于此可以对第二目标场所在不同陈列时段陈列的物品制定调整方案,该过程可以节省通过人工线下统计第二目标场在不同陈列时段的进店率所需的时间,也无需统计第二目标场所在不同陈列时段的销售数据,从而可以提高调整方案的制定效率。In the embodiment of the present disclosure, in the case where the items displayed by the first store in different statistical periods are not the same, by counting the store entry rates of the same store in different statistical periods, it can be quickly determined that the first store displays in different statistical periods The matching degree between the items displayed in the first statistical period and the corresponding display period, for example, the store entry rate corresponding to the first statistical period is high, which can reflect the higher matching degree between the items displayed in the first statistical period and the first statistical period. Therefore, it is determined that the items sold by the first store in the first statistical period are suitable for sale in the first statistical period, otherwise they are not suitable for sale in the first statistical period. The adjustment plan is formulated for the displayed items. This process can save the time required to manually count the entry rate of the second target site in different display periods, and it is also unnecessary to count the sales data of the second target site in different display periods, so that it can be Improve the efficiency of formulating adjustment plans.
在一些场景中,第一目标场所可能会在预设时长内发生大量人流出入,为了安全考虑,一般需要对第一目标场所的人流出入量进行检测,以免发生危险事故。In some scenarios, a large number of inflows and outflows of people may occur in the first target place within a preset period of time. For safety reasons, it is generally necessary to detect the inflows and outflows of people in the first target place to avoid dangerous accidents.
在一种实施方式中,本公开实施例提供的信息处理方法还包括:在确定第一人流数量大于第一预设阈值的情况下,生成第一预警提示信息。In an implementation manner, the information processing method provided by the embodiment of the present disclosure further includes: in the case where it is determined that the number of the first flow of people is greater than the first preset threshold, generating first warning prompt information.
示例性地,第一预设阈值可以根据实际需要进行设置,比如可以根据第一目标场所的类型、统计时间段、第一目标场所进口尺寸等来设置。Exemplarily, the first preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the size of the entrance of the first target place, and the like.
生成的第一预警提示信息可以为文字、语音、视频等格式的信息,比如,生成的第一预警提示信息可以为“注意,第一目标场所的进人流数量较大,请大家注意安全”。The generated first warning prompt information can be information in the format of text, voice, video, etc. For example, the generated first early warning prompt information can be "Attention, the number of people entering the first target place is large, please pay attention to safety".
本公开实施例中,可以对预设时长内进入第一目标场所的人流数量进行统计,在确定预设时长内进入第一目标场所的人流数量较多时,可以生成预警提示信息,以提高行人在进入第一目标场所时的安全性。In the embodiment of the present disclosure, the number of people entering the first target place within a preset time period can be counted, and when it is determined that the number of people entering the first target place is large within the preset time period, early warning information can be generated to improve pedestrians’ Security when entering the first target site.
在一种实施方式中,如图5所示,本公开实施例提供的信息处理方法还包括以下S401~S402:In an implementation manner, as shown in FIG. 5 , the information processing method provided by the embodiment of the present disclosure further includes the following S401 to S402:
S401,基于轨迹信息和第一判定标志,确定在预设时长内离开第一目标场所的第三人流数量,第一判定标志用于判断行人是否进入第一目标场所。S401 , based on the trajectory information and a first determination flag, determine the number of third pedestrians leaving the first target place within a preset time period, and the first determination flag is used to determine whether the pedestrian enters the first target place.
示例性地,预先绘制的用于判断行人是否离开第一目标场所的第一判定标志与上述图3所示的用于判断行人是否进入第一目标场所的判定线可以相同,具体可以通过标记与进方向相反的出方向作为指示离开第一目标场所的方向,在视频流中的行人的轨 迹方向与出方向匹配,可以确定行人为离开第一目标场所,基于此可以统计预设时长内的第三人流数量。Exemplarily, the pre-drawn first judgment mark for judging whether the pedestrian leaves the first target place may be the same as the judgment line shown in FIG. 3 for judging whether the pedestrian enters the first target place. The outgoing direction opposite to the incoming direction is used as the direction to leave the first target place. The track direction of the pedestrian in the video stream matches the outgoing direction, and it can be determined that the pedestrian is leaving the first target place. The number of three streams.
S402,在确定第三人流数量大于第二预设阈值的情况下,生成第二预警提示信息。S402 , when it is determined that the number of the third crowd is greater than the second preset threshold, generate second warning prompt information.
示例性地,第二预设阈值可以根据实际需要进行设置,比如可以根据第一目标场所的类型、统计时间段、第一目标场所出口尺寸等来设置。Exemplarily, the second preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the exit size of the first target place, and the like.
生成的第二预警提示信息可以为文字、语音、视频等格式的信息,比如,生成的第二预警提示信息可以为“注意,第一目标场所的出人流数量较大,请大家注意安全”。The generated second warning prompt information can be information in the format of text, voice, video, etc. For example, the generated second early warning prompt information can be "Attention, the number of people leaving the first target place is large, please pay attention to safety".
本公开实施例中,可以对预设时长内离开第一目标场所的人流数量进行统计,在确定预设时长内离开第一目标场所的人流数量较多时,可以生成预警提示信息,以提高行人在离开第一目标场所时的安全性。In the embodiment of the present disclosure, the number of people leaving the first target place within a preset time period can be counted, and when it is determined that the number of people leaving the first target place is large within the preset time period, early warning information can be generated, so as to improve the safety of pedestrians. Safety when leaving the first target site.
在一种可能的实施方式中,如图6所示,本公开实施例提供的信息处理方法还包括以下S501~S502:In a possible implementation, as shown in FIG. 6 , the information processing method provided by the embodiment of the present disclosure further includes the following S501 to S502:
S501,基于第一目标场所在预设时长内的历史存留人数、第一人流数量和第三人流数量,确定第一目标场所在预设时长内的人员净存量;S501, based on the number of people remaining in the history of the first target place within the preset time period, the number of the first flow of people, and the number of the third flow of people, determine the net stock of personnel in the first target place within the preset time period;
S502,在确定第一目标场所在预设时长内的人员净存量大于第三预设阈值的情况下,生成第三预警提示信息。S502 , when it is determined that the net personnel stock at the first target place within a preset time period is greater than a third preset threshold, generate third warning prompt information.
示例性地,第一目标场所在预设时长内的历史存留人数可以为从开始统计第一人流数量和第三人流数量时,第一目标场所内当前存在的人数,比如,第一目标场所从当天8:00开始允许行人进入,在统计当前9:00~10:00的人员净存量时,第一目标场所在9:00对应的当前人数可以作为第一目标场所在9:00~10:00的历史存留人数,历史存留人数可以通过历史阶段(8:00~9:00)统计的进人流数量和出人流数量的差值确定。Exemplarily, the number of people remaining in the history of the first target place within the preset time period may be the number of people currently existing in the first target place when the first and third crowds are counted, for example, the first target place has Pedestrians are allowed to enter from 8:00 on the same day. When calculating the current net stock of people from 9:00 to 10:00, the current number of people corresponding to the first target place at 9:00 can be used as the first target place at 9:00 to 10:00: 00 number of people left in history, the number of people left in history can be determined by the difference between the number of incoming traffic and the number of outgoing traffic counted in the historical stage (8:00-9:00).
进一步地,通过第一人流数量和第三人流数量,可以确定在预设时长内第一目标场所进入的人数,结合第一目标场所在预设时长内的历史存留人数,可以确定第一目标场所在预设时长内的人员净存量。Further, the number of people entering the first target place within the preset time period can be determined through the number of the first and third people, and the number of people who have entered the first target place within the preset time period can be determined, and the first target place can be determined. The net stock of personnel over a preset period of time.
示例性地,第三预设阈值可以根据实际需要进行设置,比如可以根据第一目标场所的类型、统计时间段、第一目标场所的容量等来设置。Exemplarily, the third preset threshold may be set according to actual needs, for example, may be set according to the type of the first target place, the statistical time period, the capacity of the first target place, and the like.
生成的第三预警提示信息可以为文字、语音、视频等格式的信息,比如,生成的第三预警提示信息可以为“注意,当前时间第一目标场所内的人员净存量较多”。The generated third warning prompt information may be information in the format of text, voice, video, etc. For example, the generated third early warning prompt information may be "Attention, there are a lot of net personnel in the first target site at the current time".
本公开实施例中,可以实时检测第一目标场所中的人员净存量,并在确定人员净存量超过阈值的情况下,进行预警提示,比如在发生拥挤的情况下,可以进行疏通处理,从而提高行人在第一目标场所中驻留时的安全性。In the embodiment of the present disclosure, the net stock of personnel in the first target place can be detected in real time, and if it is determined that the net stock of personnel exceeds the threshold, an early warning prompt can be given. Safety of pedestrians staying in the first target site.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
基于同一技术构思,本公开实施例中还提供了与信息处理方法对应的信息处理装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述信息处理方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same technical concept, the embodiment of the present disclosure also provides an information processing apparatus corresponding to the information processing method. Reference may be made to the implementation of the method, and repeated descriptions will not be repeated.
参照图7所示,为本公开实施例提供的一种信息处理装置600的示意图,该信息处理装置600包括:获取模块601,用于基于对第一目标场所采集的视频流,获取视频流中行人的轨迹信息;确定模块602,用于基于视频中行人的轨迹信息,确定在预设 时长内进入第一目标场所的第一人流数量和经过第一目标场所的第二人流数量;生成模块603,用于基于第一人流数量和第二人流数量,生成针对第二目标场所内陈列物品的调整信息。Referring to FIG. 7 , which is a schematic diagram of an information processing apparatus 600 provided by an embodiment of the present disclosure, the information processing apparatus 600 includes: an obtaining module 601, configured to obtain the information in the video stream based on the video stream collected from the first target location. The track information of pedestrians; the determining module 602 is used for determining the number of the first flow of people entering the first target place and the number of the second flow of people passing through the first target place within a preset time period based on the track information of the pedestrians in the video; the generating module 603 , which is used to generate adjustment information for the items displayed in the second target place based on the first number of people and the second number of people.
在一种可能的实施方式中,第二目标场所与第一目标场所相同,或者,第二目标场所为与第一目标场所存在关联的关联场所。In a possible implementation manner, the second target location is the same as the first target location, or the second target location is an associated location associated with the first target location.
在一种可能的实施方式中,第一目标场所包括设定范围区域内的第一店铺,生成模块603在用于基于第一人流数量和第二人流数量,生成针对第二目标场所内陈列物品的调整信息时,包括:基于第一人流数量和第二人流数量,确定第一店铺在预设时长内的进店率;基于第一店铺在预设时长内的进店率,生成针对第二目标场内陈列物品的调整信息。In a possible implementation, the first target place includes a first store within a set area, and the generating module 603 is configured to generate items for display in the second target place based on the first number of people and the second number of people When adjusting the information, it includes: determining the store entry rate of the first store within the preset time period based on the number of the first traffic flow and the number of the second traffic flow; Adjustment information for items displayed in the target arena.
在一种可能的实施方式中,第一店铺包括至少两个,生成模块603在用于基于第一店铺在预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息时,包括:In a possible implementation manner, the first store includes at least two, and the generating module 603 is configured to generate adjustment information for items displayed in the second target place based on the store entry rate of the first store within a preset period of time ,include:
基于第一店铺中每个店铺在同一统计时段内对应的进店率,以及每个店铺在同一统计时段内陈列的物品,生成针对第二目标场所内陈列物品的调整信息。Based on the corresponding store entry rate of each store in the first store within the same statistical time period, and the items displayed by each store in the same statistical time period, the adjustment information for the displayed items in the second target place is generated.
在一种可能的实施方式中,生成模块603在用于基于第一店铺中每个店铺在同一统计时段内对应的进店率,以及每个店铺在同一统计时段内陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括:基于每个店铺在同一统计时段内对应的进店率,从第一店铺中确定第一目标店铺和第二目标店铺,第一目标店铺为第一店铺中最低进店率对应的店铺,第二目标店铺为第一店铺中最高进店率对应的店铺;将第一目标店铺作为第二目标场所,基于第二目标店铺内陈列的物品,生成针对第二目标场所内陈列物品的调整指示信息。In a possible implementation manner, the generating module 603 is used to generate the corresponding store entry rate of each store in the first store in the same statistical period and the items displayed in each store in the same statistical period The adjustment information of the items displayed in the second target place includes: determining the first target store and the second target store from the first store based on the corresponding store entry rate of each store in the same statistical period, and the first target store is the first target store. The store corresponding to the lowest entry rate in one store, the second target store is the store corresponding to the highest entry rate in the first store; taking the first target store as the second target location, based on the items displayed in the second target store, generate Adjustment instruction information for items displayed in the second target place.
在一种可能的实施方式中,第一店铺为一个,生成模块在用于基于第一店铺在预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息时,包括:基于第一店铺在不同统计时段内分别对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,生成针对第二目标场所内陈列物品的调整信息。In a possible implementation manner, there is one first store, and when the generating module is used to generate adjustment information for the items displayed in the second target place based on the store entry rate of the first store within a preset period of time, the generating module includes: Based on the respective store entry rates of the first store in different statistical periods, and the items displayed by the first store in different statistical periods, adjustment information for items displayed in the second target place is generated.
在一种可能的实施方式中,生成模块603在用于基于第一店铺在不同统计时段内分别对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括:在第一店铺在不同统计时段陈列内分别陈列的物品相同的情况下,基于第一店铺在不同统计时段内分别对应的进店率,确定第一店铺陈列的物品对应的目标陈列时段;目标陈列时段对应的进店率大于或等于预设进店率阈值;基于目标陈列时段,生成在目标陈列时段针对第二目标场所内陈列物品的调整信息。In a possible implementation, the generating module 603 is used to generate the second target based on the store entry rates corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods. The adjustment information of the items displayed in the venue includes: in the case that the items displayed by the first store in different statistical time periods are the same, determining the first store based on the corresponding store entry rates of the first store in different statistical time periods. The target display period corresponding to the displayed items; the store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold; based on the target display period, the adjustment information for the items displayed in the second target place during the target display period is generated.
在一种可能的实施方式中,生成模块603在用于基于第一店铺在不同统计时段内分别对应的进店率,以及第一店铺在不同统计时段内分别陈列的物品,生成针对第二目标场所内陈列物品的调整信息时,包括:在第一店铺在不同统计时段陈列内分别陈列的物品不相同的情况下,基于第一店铺在不同统计时段内分别对应的进店率,确定第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度;基于确定的匹配度,生成在特定陈列时段针对第二目标场所内陈列物品的调整信息。In a possible implementation, the generating module 603 is used to generate the second target based on the store entry rates corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods. The adjustment information of the items displayed in the venue includes: in the case that the items displayed by the first store in different statistical time periods are different, determining the first store based on the corresponding store entry rates in the different statistical time periods Matching degree between the items displayed by the store in different statistical periods and the corresponding display periods; based on the determined matching degree, the adjustment information for the items displayed in the second target place during the specific display period is generated.
在一种可能的实施方式中,生成模块603在用于基于第一人流数量和第二人流数量,确定第一店铺在预设时长内的进店率时,包括:基于第一人流数量和第二人流数量,得到总人流数量;将第一人流数量和总人流数量的比值,作为第一店铺在预设时长内的进店率。In a possible implementation, when the generating module 603 is used to determine the store entry rate of the first store within a preset time period based on the first number of people and the second number of people, it includes: based on the first number of people and the first number of people The number of two people flows to get the total number of people; the ratio of the first number of people to the total number of people is used as the entry rate of the first store within the preset time period.
在一种可能的实施方式中,获取模块601在用于基于对第一目标场所采集的视频流,获取视频流中行人的轨迹信息时,包括:对视频流中的目标视频帧进行行人检测,识别出目标视频帧中包含的各行人的位置信息;根据目标视频帧中包含的各行人的位置信息,确定目标行人在视频流中的位置信息;根据目标行人在所示视频流中的位置信息,确定目标行人的轨迹信息。In a possible implementation manner, when the acquiring module 601 is used to acquire the track information of pedestrians in the video stream based on the video stream collected from the first target location, it includes: performing pedestrian detection on the target video frame in the video stream, Identify the position information of each pedestrian contained in the target video frame; determine the position information of the target pedestrian in the video stream according to the position information of each pedestrian contained in the target video frame; according to the position information of the target pedestrian in the video stream shown , to determine the trajectory information of the target pedestrian.
在一种可能的实施方式中,在根据目标行人在视频流中的位置信息,确定目标行人的轨迹信息之前,获取模块601还用于:获取目标视频帧中的行人的特征信息;基于不同目标视频帧分别包含的行人的特征信息,确定不同目标视频帧中包含的行人之间的特征相似度;将特征相似度中高于预设相似度阈值的最大相似度对应的行人作为目标行人。In a possible implementation manner, before determining the trajectory information of the target pedestrian according to the position information of the target pedestrian in the video stream, the acquisition module 601 is further configured to: acquire the characteristic information of the pedestrian in the target video frame; based on different targets The feature information of pedestrians contained in the video frames respectively determines the feature similarity between pedestrians contained in different target video frames; the pedestrian corresponding to the maximum similarity higher than the preset similarity threshold in the feature similarity is regarded as the target pedestrian.
在一种可能的实施方式中,确定模块602在用于基于视频流中行人的轨迹信息,确定在预设时长内进入第一目标场所的第一人流数量时,包括:基于轨迹信息和第一判定标志,对预设时长内进入第一目标场所的行人数量进行统计,得到第一人流数量,第一判定标志用于判断行人是否进入第一目标场所。In a possible implementation manner, when the determining module 602 is used to determine the number of the first flow of people entering the first target place within a preset time period based on the trajectory information of pedestrians in the video stream, the method includes: based on the trajectory information and the first The determination flag is used to count the number of pedestrians entering the first target place within a preset time period to obtain the first flow of people, and the first determination flag is used to determine whether the pedestrians enter the first target place.
在一种可能的实施方式中,确定模块602在用于基于视频流中行人的轨迹信息,确定在预设时长内经过第一目标场所的第二人流数量时,包括:基于轨迹信息、第一判定标志和第二判定标志,对预设时长内经过第一目标场所且未进入第一目标场所的行人数量进行统计,得到第二人流数量,第一判定标志用于判断行人是否进入第一目标场所,第二判定标志用于判断行人是否经过第一目标场所。In a possible implementation manner, when the determining module 602 is configured to determine the number of second flows of people passing through the first target place within a preset time period based on the trajectory information of pedestrians in the video stream, the method includes: based on the trajectory information, the first The determination flag and the second determination flag are used to count the number of pedestrians who have passed through the first target place and did not enter the first target place within the preset time period to obtain the second number of pedestrian flows, and the first determination flag is used to determine whether the pedestrian has entered the first target. place, and the second judgment flag is used to judge whether the pedestrian passes through the first target place.
在一种可能的实施方式中,信息处理装置600还包括第一预警模块604,第一预警模块604用于:在确定第一人流数量大于第一预设阈值的情况下,生成第一预警提示信息。In a possible implementation, the information processing device 600 further includes a first early warning module 604, and the first early warning module 604 is configured to: generate a first early warning prompt when it is determined that the number of the first crowd is greater than a first preset threshold information.
在一种可能的实施方式中,信息处理装置还包括第二预警模块605,确定模块602还用于:基于轨迹信息和第一判定标志,确定在预设时长内离开第一目标场所的第三人流数量,第一判定标志用于判断行人是否进入第一目标场所;第二预警模块605,用于在确定第三人流数量大于第二预设阈值的情况下,生成第二预警提示信息。In a possible implementation manner, the information processing apparatus further includes a second early warning module 605, and the determination module 602 is further configured to: determine, based on the trajectory information and the first determination flag, a third person who has left the first target place within a preset time period. The number of people flow, the first judgment flag is used to judge whether the pedestrian enters the first target place; the second early warning module 605 is used to generate the second warning prompt information when it is determined that the third number of people flow is greater than the second preset threshold.
在一种可能的实施方式中,确定模块602还用于:基于第一目标场所在预设时长内的历史存留人数、第一人流数量和第三人流数量,确定第一目标场所在预设时长内的人员净存量;第二预警模块605,还用于在确定第一目标场所在预设时长内的人员净存量大于第三预设阈值的情况下,生成第三预警提示信息。In a possible implementation, the determining module 602 is further configured to: determine the preset duration of the first target place based on the number of people remaining in the history of the first target place within the preset duration, the number of first crowds and the number of third crowds The second warning module 605 is further configured to generate third warning prompt information when it is determined that the net stock of personnel in the first target location within the preset time period is greater than the third preset threshold.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the apparatus and the interaction flow between the modules, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.
对应于图1中的信息处理方法,本公开实施例还提供了一种电子设备700,如图8所示,为本公开实施例提供的电子设备700结构示意图,包括:处理器71、存储器72、和总线73;存储器72用于存储执行指令,包括内存721和外部存储器722;这里的内存721也称内存储器,用于暂时存放处理器71中的运算数据,以及与硬盘等外部存储器722交换的数据,处理器71通过内存721与外部存储器722进行数据交换,当电子设备700运行时,处理器71与存储器72之间通过总线73通信,使得处理器71执行以下指令:基于对第一目标场所采集的视频流,获取视频流中行人的轨迹信息;基于视频流中行人的轨迹信息,确定在预设时长内进入第一目标场所的第一人流数量和经过第一目标场所的第二人流数量;基于第一人流数量和第二人流数量,生成针对第二目标场所内陈列物品的调整信息。Corresponding to the information processing method in FIG. 1 , an embodiment of the present disclosure further provides an electronic device 700 . As shown in FIG. 8 , a schematic structural diagram of the electronic device 700 provided by the embodiment of the present disclosure includes: a processor 71 and a memory 72 , and bus 73; memory 72 is used to store execution instructions, including memory 721 and external memory 722; the memory 721 here is also called internal memory, which is used to temporarily store operation data in processor 71 and exchange with external memory 722 such as hard disks The data, the processor 71 exchanges data with the external memory 722 through the memory 721, and when the electronic device 700 is running, the processor 71 and the memory 72 communicate through the bus 73, so that the processor 71 executes the following instructions: based on the first target From the video stream collected by the venue, obtain the trajectory information of pedestrians in the video stream; based on the trajectory information of pedestrians in the video stream, determine the number of first pedestrians entering the first target venue and the second traffic passing through the first target venue within a preset period of time. Quantity; based on the number of the first flow of people and the number of the second flow of people, the adjustment information for the items displayed in the second target place is generated.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储 有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的信息处理方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the information processing method described in the above method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品承载有程序代码,所述程序代码包括的指令在被处理器执行时使得所述处理器执行上述方法实施例中所述的信息处理方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure further provide a computer program or computer program product, where the computer program or computer program product carries a program code, and the instructions included in the program code, when executed by a processor, cause the processor to execute the foregoing method embodiments For the steps of the information processing method described in , refer to the above method embodiments for details, and details are not repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that contribute to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。The above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, but not to limit them. Detailed description, those of ordinary skill in the art should understand: any person skilled in the art is within the technical scope disclosed by the present disclosure, he can still modify the technical solutions described in the foregoing embodiments or can easily think of changes, Or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims (20)

  1. 一种信息处理方法,其特征在于,包括由计算机设备执行以下操作:An information processing method, comprising the following operations performed by a computer device:
    基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息;Obtaining track information of pedestrians in the video stream based on the video stream collected from the first target location;
    基于所述视频流中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量和经过所述第一目标场所的第二人流数量;determining, based on the trajectory information of pedestrians in the video stream, the number of first pedestrians entering the first target place and the number of second pedestrians passing through the first target place within a preset time period;
    基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调整信息。Based on the first crowd flow quantity and the second crowd flow quantity, adjustment information for the items displayed in the second target place is generated.
  2. 根据权利要求1所述的信息处理方法,其特征在于,所述第二目标场所与所述第一目标场所相同,或者,所述第二目标场所为与所述第一目标场所存在关联的关联场所。The information processing method according to claim 1, wherein the second target place is the same as the first target place, or the second target place is an association with the first target place place.
  3. 根据权利要求1或2所述的信息处理方法,其特征在于,所述第一目标场所包括设定范围区域内的第一店铺,所述基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 1 or 2, wherein the first target location includes a first store within a set range area, and the first target location is based on the first number of people and the second number of people , generating adjustment information for the items displayed in the second target place, including performing the following operations by the computer equipment:
    基于所述第一人流数量和所述第二人流数量,确定所述第一店铺在所述预设时长内的进店率;determining the store entry rate of the first store within the preset time period based on the first number of people and the second number of people;
    基于所述第一店铺在所述预设时长内的进店率,生成针对所述第二目标场内陈列物品的调整信息。Based on the store entry rate of the first store within the preset time period, adjustment information for the items displayed in the second target field is generated.
  4. 根据权利要求3所述的信息处理方法,其特征在于,所述第一店铺包括至少两个,所述基于所述第一店铺在所述预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 3, wherein the first store includes at least two, and the second target is generated based on a store entry rate of the first store within the preset time period. Adjustment information for items displayed in the premises, including the following operations performed by computer equipment:
    基于所述第一店铺中每个店铺在同一统计时段内对应的进店率,以及所述每个店铺在所述同一统计时段内陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息。Based on the corresponding store entry rate of each store in the first store within the same statistical period, and the items displayed by each store within the same statistical period, generate a list of items displayed in the second target place. Adjust information.
  5. 根据权利要求4所述的信息处理方法,其特征在于,所述基于所述第一店铺中每个店铺在同一统计时段内对应的进店率,以及所述每个店铺在所述同一统计时段内陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 4, wherein the store entry rate corresponding to each store in the first store in the same statistical period, and the basis of each store in the same statistical period generating the adjustment information for the items displayed in the second target place, including performing the following operations by the computer device:
    基于所述每个店铺在同一统计时段内对应的进店率,从所述第一店铺中确定第一目标店铺和第二目标店铺,所述第一目标店铺为所述第一店铺中最低进店率对应的店铺,所述第二目标店铺为所述第一店铺中最高进店率对应的店铺;Based on the store entry rate corresponding to each store in the same statistical period, a first target store and a second target store are determined from the first stores, and the first target store is the lowest entry rate among the first stores. The store corresponding to the store rate, and the second target store is the store corresponding to the highest store entry rate in the first store;
    将所述第一目标店铺作为所述第二目标场所,基于所述第二目标店铺内陈列的物品,生成针对所述第二目标场所内陈列物品的调整指示信息。The first target store is used as the second target place, and based on the items displayed in the second target store, adjustment instruction information for items displayed in the second target place is generated.
  6. 根据权利要求3所述的信息处理方法,其特征在于,所述第一店铺为一个,所述基于所述第一店铺在所述预设时长内的进店率,生成针对第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 3, wherein the number of the first store is one, and the method for generating the first store in the second target place is based on the store entry rate of the first store within the preset time period. Adjustment information for displayed items, including the following actions performed by computer equipment:
    基于所述第一店铺在不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息。The adjustment information for the items displayed in the second target place is generated based on the respective store entry rates of the first store in different statistical time periods and the items displayed by the first store in different statistical time periods.
  7. 根据权利要求6所述的信息处理方法,其特征在于,所述基于所述第一店铺在不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 6, wherein the store entry rate corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods , generating adjustment information for the items displayed in the second target place, including performing the following operations by a computer device:
    在所述第一店铺在不同统计时段陈列内分别陈列的物品相同的情况下,基于所述第一店铺在不同统计时段内分别对应的进店率,确定所述第一店铺陈列的物品对应的目标陈列时段;所述目标陈列时段对应的进店率大于或等于预设进店率阈值;In the case that the items displayed by the first store in different statistical periods are the same, determine the corresponding items of the items displayed in the first shop based on the respective store entry rates corresponding to the first shop in different statistical periods. target display period; the store entry rate corresponding to the target display period is greater than or equal to the preset store entry rate threshold;
    基于所述目标陈列时段,生成在所述目标陈列时段针对所述第二目标场所内陈列物品的调整信息。Based on the target display period, adjustment information for the items displayed in the second target location during the target display period is generated.
  8. 根据权利要求6所述的信息处理方法,其特征在于,所述基于所述第一店铺在 不同统计时段内分别对应的进店率,以及所述第一店铺在不同统计时段内分别陈列的物品,生成针对所述第二目标场所内陈列物品的调整信息,包括由计算机设备执行以下操作:The information processing method according to claim 6, wherein the store entry rate corresponding to the first store in different statistical time periods and the items displayed by the first store in different statistical time periods , generating adjustment information for the items displayed in the second target place, including performing the following operations by a computer device:
    在所述第一店铺在不同统计时段陈列内分别陈列的物品不相同的情况下,基于所述第一店铺在不同统计时段内分别对应的进店率,确定所述第一店铺在不同统计时段陈列的物品与对应陈列时段之间的匹配度;In the case where the items displayed by the first store in different statistical time periods are different, determine the first store in different statistical time periods based on the respective store entry rates of the first store in different statistical time periods The degree of matching between the displayed items and the corresponding display period;
    基于确定的所述匹配度,生成在特定陈列时段针对所述第二目标场所内陈列物品的调整信息。Based on the determined degree of matching, adjustment information is generated for the items displayed in the second target venue during a specific display period.
  9. 根据权利要求3至8任一所述的信息处理方法,其特征在于,所述基于所述第一人流数量和所述第二人流数量,确定第一店铺在所述预设时长内的进店率,包括由计算机设备执行以下操作:The information processing method according to any one of claims 3 to 8, characterized in that, determining the entry of the first store within the preset time period based on the first flow of people and the second flow of people rate, including by computer equipment:
    基于所述第一人流数量和所述第二人流数量,得到总人流数量;Based on the first number of people and the second number of people, obtain the total number of people;
    将所述第一人流数量和所述总人流数量的比值,作为所述第一店铺在所述预设时长内的进店率。The ratio of the first number of people to the total number of people is used as the store entry rate of the first store within the preset time period.
  10. 根据权利要求1至9任一所述的信息处理方法,其特征在于,所述基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息,包括由计算机设备执行以下操作:The information processing method according to any one of claims 1 to 9, wherein the acquiring the trajectory information of pedestrians in the video stream based on the video stream collected from the first target site comprises performing the following operations by a computer device :
    对所述视频流中的目标视频帧进行行人检测,识别出所述目标视频帧中包含的各行人的位置信息;Perform pedestrian detection on the target video frame in the video stream, and identify the position information of each pedestrian included in the target video frame;
    根据所述目标视频帧中包含的各行人的位置信息,确定目标行人在所述视频流中的位置信息;According to the position information of each pedestrian contained in the target video frame, determine the position information of the target pedestrian in the video stream;
    根据所述目标行人在所述视频流中的位置信息,确定所述目标行人的轨迹信息。According to the position information of the target pedestrian in the video stream, the trajectory information of the target pedestrian is determined.
  11. 根据权利要求10所述的信息处理方法,其特征在于,在所述根据所述目标视频帧中包含的各行人的位置信息,确定目标行人在所述视频流中的位置信息之前,所述信息处理方法还包括由计算机设备执行以下操作:The information processing method according to claim 10, wherein before determining the position information of the target pedestrian in the video stream according to the position information of each pedestrian included in the target video frame, the information The processing method also includes, by the computer device, performing the following operations:
    获取所述目标视频帧中的行人的特征信息;obtaining the characteristic information of pedestrians in the target video frame;
    基于不同目标视频帧分别包含的行人的特征信息,确定所述不同目标视频帧中包含的行人之间的特征相似度;Determine the feature similarity between the pedestrians contained in the different target video frames based on the feature information of the pedestrians contained in the different target video frames respectively;
    将所述特征相似度中高于预设相似度阈值的最大相似度对应的行人作为所述目标行人。The pedestrian corresponding to the maximum similarity higher than the preset similarity threshold in the feature similarity is used as the target pedestrian.
  12. 根据权利要求1至11任一所述的信息处理方法,其特征在于,基于所述视频流中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量,包括由计算机设备执行以下操作:The information processing method according to any one of claims 1 to 11, characterized in that, based on the trajectory information of pedestrians in the video stream, determining the number of the first stream of people entering the first target place within a preset time period, comprising: The following actions are performed by computer equipment:
    基于所述轨迹信息和第一判定标志,对所述预设时长内进入所述第一目标场所的行人数量进行统计,得到所述第一人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所。Based on the trajectory information and the first determination mark, the number of pedestrians entering the first target place within the preset time period is counted to obtain the first number of pedestrian flows, and the first determination mark is used to determine whether the pedestrian is Enter the first target location.
  13. 根据权利要求1至12任一所述的信息处理方法,其特征在于,基于所述视频流中行人的轨迹信息,确定在预设时长内经过所述第一目标场所的第二人流数量,包括由计算机设备执行以下操作:The information processing method according to any one of claims 1 to 12, wherein, based on the trajectory information of pedestrians in the video stream, determining the number of the second stream of people passing through the first target place within a preset time period, comprising: The following actions are performed by computer equipment:
    基于所述轨迹信息、第一判定标志和第二判定标志,对所述预设时长内经过所述第一目标场所且未进入所述第一目标场所的行人数量进行统计,得到所述第二人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所,所述第二判定标志用于判断行人是否经过所述第一目标场所。Based on the trajectory information, the first determination flag and the second determination flag, count the number of pedestrians who pass through the first target place and do not enter the first target place within the preset time period to obtain the second The number of people flow, the first judgment mark is used to judge whether the pedestrian enters the first target place, and the second judgment mark is used to judge whether the pedestrian passes through the first target place.
  14. 根据权利要求1至13任一所述的信息处理方法,其特征在于,所述信息处理方法还包括由计算机设备执行以下操作:The information processing method according to any one of claims 1 to 13, wherein the information processing method further comprises performing the following operations by a computer device:
    在确定所述第一人流数量大于第一预设阈值的情况下,生成第一预警提示信息。In the case that it is determined that the number of the first flow of people is greater than the first preset threshold, first warning prompt information is generated.
  15. 根据权利要求1至14任一所述的信息处理方法,其特征在于,所述信息处理方法还包括由计算机设备执行以下操作:The information processing method according to any one of claims 1 to 14, wherein the information processing method further comprises performing the following operations by a computer device:
    基于所述轨迹信息和第一判定标志,确定在所述预设时长内离开所述第一目标场所的第三人流数量,所述第一判定标志用于判断行人是否进入所述第一目标场所;Based on the trajectory information and the first determination mark, determine the number of third pedestrians leaving the first target place within the preset time period, and the first determination mark is used to determine whether the pedestrian enters the first target place ;
    在确定所述第三人流数量大于第二预设阈值的情况下,生成第二预警提示信息。In the case where it is determined that the number of the third crowd is greater than the second preset threshold, second warning prompt information is generated.
  16. 根据权利要求15所述的信息处理方法,其特征在于,所述信息处理方法还包括由计算机设备执行以下操作:The information processing method according to claim 15, wherein the information processing method further comprises performing the following operations by a computer device:
    基于所述第一目标场所在所述预设时长内的历史停留人数、所述第一人流数量和所述第三人流数量,确定所述第一目标场所在所述预设时长内的人员净存量;Determine, based on the historical number of people staying at the first target place within the preset time period, the number of the first flow of people and the number of the third flow of people, the net number of people in the first target place within the preset time period stock;
    在确定所述第一目标场所在所述预设时长内的人员净存量大于第三预设阈值的情况下,生成第三预警提示信息。In a case where it is determined that the net personnel stock of the first target place within the preset time period is greater than a third preset threshold, third warning prompt information is generated.
  17. 一种信息处理装置,其特征在于,包括:An information processing device, comprising:
    获取模块,用于基于对第一目标场所采集的视频流,获取所述视频流中行人的轨迹信息;an acquisition module, configured to acquire track information of pedestrians in the video stream based on the video stream collected from the first target site;
    确定模块,用于基于所述视频中行人的轨迹信息,确定在预设时长内进入所述第一目标场所的第一人流数量和经过所述第一目标场所的第二人流数量;a determining module, configured to determine, based on the trajectory information of the pedestrians in the video, the number of the first flow of people entering the first target place and the number of the second flow of people passing through the first target place within a preset time period;
    生成模块,用于基于所述第一人流数量和所述第二人流数量,生成针对第二目标场所内陈列物品的调整信息。The generating module is configured to generate adjustment information for the items displayed in the second target place based on the first number of people and the second number of people.
  18. 一种电子设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至16任一所述信息处理方法的步骤。An electronic device, characterized in that it includes: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate with each other. The machine-readable instructions are executed by the processor to perform the steps of the information processing method according to any one of claims 1 to 16.
  19. 一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至16任一所述信息处理方法的步骤。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 run by a processor, the steps of the information processing method according to any one of claims 1 to 16 are executed.
  20. 一种计算机程序,其特征在于,所述计算机程序承载有程序代码,所述程序代码包括的指令被处理器运行时使得所述处理器执行如权利要求1至16任一所述信息处理方法的步骤。A computer program, characterized in that the computer program carries program code, and when the program code includes instructions that are executed by a processor, the processor executes the information processing method according to any one of claims 1 to 16. step.
PCT/CN2021/121449 2020-12-18 2021-09-28 Information processing method and apparatus, and electronic device, storage medium and computer program WO2022127276A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011505600.5 2020-12-18
CN202011505600.5A CN112508626A (en) 2020-12-18 2020-12-18 Information processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022127276A1 true WO2022127276A1 (en) 2022-06-23

Family

ID=74922511

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121449 WO2022127276A1 (en) 2020-12-18 2021-09-28 Information processing method and apparatus, and electronic device, storage medium and computer program

Country Status (3)

Country Link
CN (1) CN112508626A (en)
TW (1) TW202226114A (en)
WO (1) WO2022127276A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508626A (en) * 2020-12-18 2021-03-16 北京市商汤科技开发有限公司 Information processing method and device, electronic equipment and storage medium
CN113705470A (en) * 2021-08-30 2021-11-26 北京市商汤科技开发有限公司 Method and device for acquiring passenger flow information, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140278655A1 (en) * 2013-03-15 2014-09-18 Shopper Scientist, Llc Modeling shoppers' time in stores in relation to their purchases
CN108665305A (en) * 2018-05-04 2018-10-16 水贝文化传媒(深圳)股份有限公司 Method and system for shops's information intelligent analysis
CN108985865A (en) * 2018-08-27 2018-12-11 广州联欣自动识别技术有限公司 The customer data analysis method and system of intelligent shops
CN111125288A (en) * 2019-12-25 2020-05-08 北京市商汤科技开发有限公司 Area deployment method, device and storage medium
CN111738134A (en) * 2020-06-18 2020-10-02 北京市商汤科技开发有限公司 Method, device, equipment and medium for acquiring passenger flow data
CN112052838A (en) * 2020-10-10 2020-12-08 腾讯科技(深圳)有限公司 Object flow data monitoring method and device and readable storage medium
CN112508626A (en) * 2020-12-18 2021-03-16 北京市商汤科技开发有限公司 Information processing method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179199A (en) * 2005-12-27 2007-07-12 Canon Marketing Japan Inc Sales analysis device, sales analysis method, program, and recording medium
CN105321090A (en) * 2014-07-29 2016-02-10 中华电信股份有限公司 Store customer group analysis and stream of people information system and usage method thereof
CN107180378A (en) * 2017-05-11 2017-09-19 北京旷视科技有限公司 Commodity attention rate preparation method and device
CN108537166B (en) * 2018-04-08 2020-10-02 上海天壤智能科技有限公司 Method and device for determining shelf browsing amount and analyzing browsing amount
CN108537189B (en) * 2018-04-16 2020-11-17 上海小蚁科技有限公司 Method and device for generating customer track map, storage medium and terminal
CN109271942A (en) * 2018-09-26 2019-01-25 上海七牛信息技术有限公司 A kind of stream of people's statistical method and system
CN111274340B (en) * 2020-01-15 2023-06-30 中国联合网络通信集团有限公司 Method, equipment and storage medium for monitoring and processing people stream density

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140278655A1 (en) * 2013-03-15 2014-09-18 Shopper Scientist, Llc Modeling shoppers' time in stores in relation to their purchases
CN108665305A (en) * 2018-05-04 2018-10-16 水贝文化传媒(深圳)股份有限公司 Method and system for shops's information intelligent analysis
CN108985865A (en) * 2018-08-27 2018-12-11 广州联欣自动识别技术有限公司 The customer data analysis method and system of intelligent shops
CN111125288A (en) * 2019-12-25 2020-05-08 北京市商汤科技开发有限公司 Area deployment method, device and storage medium
CN111738134A (en) * 2020-06-18 2020-10-02 北京市商汤科技开发有限公司 Method, device, equipment and medium for acquiring passenger flow data
CN112052838A (en) * 2020-10-10 2020-12-08 腾讯科技(深圳)有限公司 Object flow data monitoring method and device and readable storage medium
CN112508626A (en) * 2020-12-18 2021-03-16 北京市商汤科技开发有限公司 Information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
TW202226114A (en) 2022-07-01
CN112508626A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
WO2022127276A1 (en) Information processing method and apparatus, and electronic device, storage medium and computer program
Goodison et al. Digital evidence and the US criminal justice system
CN109636258A (en) A kind of real estate client visiting management system
WO2020134231A1 (en) Information pushing method and device, and information display system
CN105809178A (en) Population analyzing method based on human face attribute and device
WO2023029574A1 (en) Method and apparatus for acquiring passenger flow information, and computer device and storage medium
TWI754456B (en) Region arrangement method, apparatus and computer readable storage medium
CN103606093A (en) Intelligent chain VIP customer service system based on human characteristics
CN107103483A (en) The method and device that outdoor advertising is delivered
CN107766797A (en) A kind of stranger's recognition methods and system
CN109993392A (en) Business complaint risk predictor method, calculates equipment and storage medium at device
CN109902644A (en) Face identification method, device, equipment and computer-readable medium
CN111242096A (en) Crowd gathering distinguishing method and system based on number gradient
CN106570449A (en) Visitor flow rate and popularity index detection method based on area definition and detection system thereof
WO2023071188A1 (en) Abnormal-behavior detection method and apparatus, and electronic device and storage medium
CN108537184A (en) A kind of stream of people's statistical system being applicable in market survey
CN208335207U (en) Exhibition and fair service system based on recognition of face
JP2017211731A (en) Head-count counting system, head-count counting method, and head-count counting result browsing method
WO2021057149A1 (en) Data processing method and apparatus, and storage medium
US11587122B2 (en) System and method for interactive perception and content presentation
CN108009530A (en) A kind of identity calibration system and method
US10679357B2 (en) Image-based object tracking systems and methods
CN113822367B (en) Regional behavior analysis method, system and medium based on human face
CN111127096B (en) Commodity area passenger flow optimization statistical method and system based on head and shoulder and face recognition
CN111160945A (en) Advertisement accurate delivery method and system based on video technology

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

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

Country of ref document: EP

Kind code of ref document: A1