Baseline adjustment method and device

By dynamically adjusting the position of the baseline and judging the entry intention according to the target's motion state, the problem of inaccurate counting in the people flow statistics system based on head and shoulder detection is solved, and the accuracy and adaptability of statistics are improved.

CN112116650BActive Publication Date: 2024-10-18LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011046729.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2024-10-18
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

During the processing of the people flow statistics system based on head and shoulder detection, the counting problem is inaccurate due to the diversity of target states to be detected.

Method used

By obtaining the target's motion status, it is determined whether it has the intention to enter the first area, and the position of the baseline is dynamically adjusted based on this status. If the target has no intention of entering, the baseline is adjusted away from the target to avoid miscounting.

Benefits of technology

It achieves more accurate people flow statistics, reduces counting errors, and improves the adaptability and accuracy of the baseline in application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112116650B_ABST
    Figure CN112116650B_ABST
Patent Text Reader

Abstract

The present application discloses a baseline adjustment method and device, which obtains the target's motion state in response to the target's position satisfying a condition; determines whether the target has the intention to enter a first area according to the motion state; and adjusts the baseline position according to the motion state if the target has no intention to enter the first area. The purpose of dynamically adjusting the baseline according to the target's motion state is achieved, so that the adjusted baseline can more accurately meet its application requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and more specifically to a baseline adjustment method and device. Background Art

[0002] With the maturity of computer vision technology, the application scope of crowd counting based on target detection is becoming more and more extensive. At present, the processing process of crowd counting based on head and shoulder detection is as follows: in the collected monitoring picture, a fixed height baseline is pre-set, and it is judged whether the head and shoulder frame of the detection target has a movement displacement from one side of the baseline to the other side relative to the fixed baseline, and then it is determined whether to count. However, due to the large number of states of the target to be detected, the above detection method will cause inaccurate counting. Summary of the invention

[0003] In view of this, this application provides the following technical solutions:

[0004] A baseline adjustment method, comprising:

[0005] In response to the position of the target satisfying a condition, acquiring a motion state of the target;

[0006] determining whether the target intends to enter the first area according to the motion state;

[0007] If the target has no intention of entering the first area, the position of the baseline is adjusted according to the motion state.

[0008] Optionally, in response to the position of the target satisfying a condition, acquiring the motion state of the target includes:

[0009] Get the distance between the target and the baseline;

[0010] If the distance is less than the distance threshold, the motion state of the target is obtained.

[0011] Optionally, in response to the position of the target satisfying a condition, acquiring the motion state of the target includes:

[0012] In response to the target entering the second area, a motion state of the target is acquired.

[0013] Optionally, determining whether the target has an intention to enter the first area according to the motion state includes:

[0014] According to the motion state, obtaining a predicted motion trajectory of the target;

[0015] It is determined based on the predicted motion trajectory whether the target has the intention to enter the first area.

[0016] Optionally, the motion state includes a motion speed of the target;

[0017] The determining, according to the motion state, whether the target has an intention to enter the first area includes:

[0018] Determining, according to the movement speed, a component of the movement speed in a direction toward the reference line;

[0019] Based on the components, it is determined whether the target has an intention to enter a first area.

[0020] Optionally, if the target has no intention to enter the first area, adjusting the position of the baseline according to the motion state includes:

[0021] If the value of the component is not greater than the component threshold, the baseline is adjusted in a direction away from the target.

[0022] Optionally, the method further comprises:

[0023] If the target intends to enter the first area, the baseline remains stationary.

[0024] Optionally, the method further comprises:

[0025] If the target passes through the adjusted baseline, generating counting information of the target;

[0026] In response to the completion of counting the target, the adjusted baseline is restored to the position before the baseline is adjusted.

[0027] Optionally, when there are multiple targets, there are multiple baselines, which correspond one-to-one to the multiple targets.

[0028] A baseline adjustment device, comprising:

[0029] an acquisition unit, configured to acquire a motion state of the target in response to the position of the target satisfying a condition;

[0030] a determination unit, configured to determine whether the target has an intention to enter a first area according to the motion state;

[0031] An adjustment unit is used to adjust the position of the baseline according to the motion state if the target has no intention of entering the first area.

[0032] Through the above technical solutions, it can be known that the present application discloses a baseline adjustment method and device, which obtains the target's motion state in response to the target's position satisfying a condition; determines whether the target has the intention to enter the first area according to the motion state; if the target has no intention to enter the first area, adjusts the baseline position according to the motion state. The purpose of dynamically adjusting the baseline according to the target's motion state is achieved, so that the adjusted baseline can more accurately meet its application requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0034] Figure 1 A flowchart of a baseline adjustment method provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a flow chart of another baseline adjustment method provided in an embodiment of the present application;

[0036] Figure 3 A distance calculation schematic diagram provided for an embodiment of the present application;

[0037] Figure 4 A schematic top view of an application scenario of people counting provided in an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the structure of a baseline adjustment device provided in an embodiment of the present application;

[0039] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] In an embodiment of the present application, a baseline adjustment method is provided to achieve dynamic adjustment of the baseline. The method can be used in fields such as headcounting or target tracking. In the field of headcounting applications, a baseline of a fixed height can be pre-set in the monitoring screen, and then the head and shoulder detection and tracking technology can be used to determine whether the target has generated a motion displacement from one side of the baseline to the other side. If so, the target is counted. Among them, the baseline setting method can be automatically set by a common method in image processing technology, and the baseline can be set by a landmark object in the area where the headcount needs to be counted. For example, when counting the flow of people in a shopping mall, the baseline can be set in the area at the entrance of the shopping mall, and its height is usually set to the average height. In an embodiment of the present application, the baseline is dynamically adjusted by the motion state of the target, so that the adjusted baseline can better meet the actual needs in its application scenario and has higher accuracy.

[0042] See also Figure 1 , which shows a schematic flow chart of a baseline adjustment method provided by an embodiment of the present invention, which may include the following steps:

[0043] S101. In response to a position of a target satisfying a condition, obtaining a motion state of the target.

[0044] Before obtaining the target's motion state, the target can be tracked and detected in real time. However, in order to reduce processing resources and improve processing efficiency, the target's motion state can be obtained when the target's position meets the conditions. The conditions are set based on the accuracy of the results of processing based on the preset baseline. The target refers to the detected user or other object that needs to be tracked.

[0045] In a possible manner of an embodiment of the present application, the condition is set based on the distance between the target and the baseline, wherein, in response to the position of the target satisfying the condition, obtaining the motion state of the target includes:

[0046] Get the distance between the target and the baseline; if the distance is less than the distance threshold, get the target's motion state.

[0047] Among them, the baseline is the baseline set initially, and the distance between the target and the baseline can be monitored in real time. When the distance between the target and the baseline is less than the distance threshold, the running status of the target is obtained. The distance threshold is determined according to the actual detection requirements of the baseline application, such as detection accuracy, detection purpose, and application scenario. If it is based on a monocular camera ranging method, it can also calculate the distance from the target to the camera of the monocular camera. Correspondingly, it can also obtain the distance between the target and a preset object, which has a fixed positional relationship with the baseline.

[0048] In another possible implementation, the condition may also be determined based on a specific detection area, wherein, in response to the position of the target satisfying the condition, obtaining the motion state of the target includes:

[0049] In response to the target entering the second area, a motion state of the target is acquired.

[0050] The second area may be an area that can affect the accuracy of the processing result obtained by the baseline, such as an area where the baseline causes errors in the number of people counted. The second area may be an irregular area, and the application does not limit the shape of the area border. When the target enters the second area, the motion state of the target is obtained.

[0051] The motion state of a target can be reflected by information such as the target's motion speed to determine whether it is stationary or capable of moving.

[0052] S102: Determine whether the target intends to enter the first area according to the motion state.

[0053] Since the target's motion state may include information such as the target's motion speed and motion trajectory, the target's moving direction and displacement information can be determined based on this information, thereby determining whether the target intends to enter the first area. The first area may be the entire application area corresponding to the detection result of the baseline. For example, when the number of people entering a shopping mall is counted by the baseline, the first area is characterized as a shopping mall area.

[0054] S103: If the target has no intention of entering the first area, adjust the position of the baseline according to the motion state.

[0055] Since the target's motion state cannot be determined when the detection is based on a fixed baseline, when the target wanders near the baseline or is almost stationary, inaccurate counting may occur. Therefore, in the embodiment of the present application, it is first determined whether the target intends to enter the first area. If so, the originally set baseline can be used for detection. If not, in order to avoid the problem of inaccurate detection results caused by the motion state of the target itself, it is necessary to dynamically adjust the position of the baseline so that the adjusted baseline can accurately analyze the target, such as counting the number of targets to obtain corresponding statistical results.

[0056] The present application provides a baseline adjustment method, in response to the position of the target satisfying a condition, obtaining the target's motion state; determining whether the target has the intention to enter the first area according to the motion state; if the target has no intention to enter the first area, adjusting the baseline position according to the motion state. The purpose of dynamically adjusting the baseline according to the target's motion state is achieved, so that the adjusted baseline can more accurately meet its application requirements.

[0057] In a possible implementation of the present application, the predicted motion trajectory of the target can be obtained according to the motion state of the target; and whether the target has the intention to enter the first area can be determined based on the predicted motion trajectory. The motion state of the target refers to the state of the motion speed of the target relative to a reference system when the target performs mechanical motion. The content of the motion state includes: the magnitude of the motion speed of the target and the direction of the motion speed of the target, and stationary or moving also belongs to its inclusion range. Therefore, the motion trajectory of the target can be determined by the motion speed and direction of the target, and the motion trajectory can determine whether the target has the intention to enter the first area. The predicted motion trajectory can represent the motion estimation of the target at a future moment, and whether the target has the intention to enter the first area can be determined by whether the predicted motion trajectory can intersect with the baseline. That is, if the predicted motion trajectory can intersect with the baseline, it is determined that the target has the intention to enter the first area; if the predicted motion trajectory cannot intersect with the baseline, it is determined that the target has no intention to enter the first area. At the same time, if the predicted motion trajectory does not intersect with the baseline, and the distance between the predicted motion trajectory and the nearest position of the baseline is less than or equal to the determination threshold, the baseline is controlled to move away from the predicted motion trajectory or the target to avoid miscounting. Alternatively, whether the target intends to enter the first area may be determined by determining whether the predicted motion trajectory intersects with the reference area set according to the baseline. The predicted motion trajectory of the target may be predicted based on the target's existing motion speed, motion direction and other running state information.

[0058] In the embodiment of the present application, the motion state may include the motion speed of the target, see Figure 2 , which shows a flow chart of another baseline adjustment method provided in an embodiment of the present application, the method comprising:

[0059] S201. In response to a position of a target satisfying a condition, obtaining a moving speed of the target.

[0060] S202: Determine the component of the movement speed in the direction toward the reference line according to the movement speed.

[0061] S203. Determine whether the target intends to enter the first area according to the component, if not, execute step S204; if yes, execute step S205.

[0062] S204: If the value of the component is not greater than the component threshold, adjust the baseline in a direction away from the target.

[0063] S205. Control the baseline to remain stationary.

[0064] Among them, the component threshold is a positive number greater than zero, and the value of the component of the movement speed in the direction of the baseline can be zero, or a value greater than zero and not greater than the component threshold. The component of the movement speed in the direction of the baseline can be a speed perpendicular to the direction of the baseline. When the distance between the target and the baseline is less than a certain distance threshold, if there is no component of the movement speed in the direction of the baseline, that is, the value of the component is equal to zero, it can be concluded that the target is in a stationary state, and it is predicted that the user has no tendency to enter the first area. In order to avoid miscounting based on the baseline, the baseline is adjusted away from the user. The preset distance can be adjusted, or the adjustment distance of the baseline can be determined based on the distance between the target and the baseline.

[0065] When there is a component of the movement speed in the direction of the baseline, that is, the component value is greater than zero, but the component value is not greater than the component threshold, the target moves at a smaller movement speed toward the baseline. In this motion state, the target has a component of the movement speed in the direction of the non-baseline on the basis of the component of the movement speed in the direction of the baseline, that is, it can be predicted that the subsequent movement of the target will deviate from the direction perpendicular to the baseline. Therefore, through the component of the target's movement speed in the direction of the baseline, it can be predicted that the target may stop or turn, that is, there is no tendency to enter the first area, and the baseline is adjusted in the direction away from the target to determine whether the target still has the intention to enter the first area when it changes from stopping to moving, or from the current movement direction to the next movement direction.

[0066] When adjusting the baseline, the adjustment range can be determined by the value of the component of the target's movement speed in the direction of the baseline, or by whether the target also has component values ​​in other directions, so that the adjusted baseline can better meet the target's actual movement state.

[0067] Correspondingly, if the component value is greater than the component threshold, it is predicted that the target will enter the first area, and the baseline position is not adjusted.

[0068] Among them, the distance between the target and the camera can be used to determine whether the target position meets the conditions. The monocular 3D distance measurement model can be used for measurement, and the focal length of the camera can be obtained by calibrating the monocular camera. Assuming that the height of the camera and the angle between the camera optical axis and the horizontal line are known, the distance calculation principle is as follows: Figure 3 As shown. The position of the center point of the intersection line of the target object and the horizontal ground in the world coordinate system is P, and the actual distance between the target object and the vertical projection point of the camera lens to the horizontal ground in the world coordinate system is D (decomposed into two components Dx and Dy when solving); the image coordinate system on the CCD board is a two-dimensional space coordinate system, with the horizontal axis set as the U axis and the vertical axis set as the V axis. The focus of the camera optical axis and the ground is Q, and the focus of the camera optical axis and the CCD board is (U0 , V 0 ), the coordinates of the center can be obtained by converting the maximum number of dots in the image. The corresponding position P' of the target object in the image coordinate system in the world coordinate system is (U 1 , V 1 ).

[0069] The 3D ranging model is based on the camera optical axis and image coordinate system U=U 0 Schematic diagram on the plane composed of the axes. On this plane, point V 0 Represents the actual position of the optical axis on the imaging plane, point V 1 The projection point representing the actual position of the target object on the imaging surface, the angle β 1 Represents the projection point P of the target object y The angle with the optical axis Q, the projection point P of the target object y The projection point O of the lens on the horizontal ground 1 The distance is D y . Then the following formula holds:

[0070] tanβ 1 =(V 1 -V 0 ) / f

[0071] D y =H / tan(α+β 1 )

[0072] L=H / sin(α+β 1 )

[0073]

[0074] The three-dimensional distance measurement model is located on the straight line where L is located and the image coordinate system V = V 1 Schematic diagram on the plane composed of axes. On this plane, point U 0 The projection point representing the actual position of the target object on the imaging surface, point U 1 Represents the actual position of the target object on the imaging surface, and the angle β 2 Represents the projection point P of the target object y The angle between the target object P and the target object projection point P y The distance is D x . Then the following formula holds:

[0075] tanβ 1 =(U 1 -U 0 ) / f

[0076] D x =L*|tanβ 1 |

[0077] On the imaging plane, the image of the target object is (U 1 , V 1 ), the point is at V = V 0 The projection point on is (U 1 , V 0 ), when U=U 0 The projection point on is (U 0 , V 1 ).

[0078] Through the above model reasoning, the actual distance between the target object and the vertical projection point of the camera on the ground in the world coordinate system is as follows:

[0079]

[0080] Combined with the camera's height H, we can get the distance from the object to the camera as follows:

[0081]

[0082] The target's moving speed can be obtained based on the perspective transformation speed measurement method. The principle of the perspective transformation speed measurement method is: if the coordinates of the four vertices of a real rectangle in the original video screen are known, these four vertices can be used to calculate the perspective transformation matrix of the image (i.e., the matrix from the original image to the top view). After obtaining the perspective matrix, the coordinates of any point in the source video screen can be converted into the coordinates of the point in the top view. The distance of the object represented by each pixel in the top view can be obtained based on the calibration method, and then the speed can be calculated using the formula v=s / t.

[0083] See also Figure 4 , which shows a top view schematic diagram of an application scenario of people counting provided in an embodiment of the present application, wherein the dotted line A is the location of the initially set baseline, the rectangular box B is the first area, the rectangular box C is the second area, and the black dot is the target D.

[0084] When the target D enters the second area C, if there is no component in the direction of the baseline, it is determined that the target D has no tendency to enter the first area B. To avoid miscounting, the baseline A is adjusted a certain distance toward the arrow E, that is, away from the user. And when the target has a component of the speed of movement toward the baseline, and it is not greater than the component threshold, it is determined that the target D may stop or turn at any time, and the baseline is also adjusted a certain distance toward the arrow E, that is, away from the user. If the component value is greater than the component threshold, the baseline is at the position of A.

[0085] When the target passes through the adjusted baseline, the target counting information is generated. In response to the completion of the target counting, the adjusted baseline is restored to the position before the baseline adjustment to achieve the counting statistics of the next target. This can avoid the problem of wasting processing resources for regenerating the baseline.

[0086] It should be noted that in order to obtain accurate statistical information based on the baseline, when there are multiple targets, the number of baselines is multiple, and it corresponds to the multiple targets one by one. That is, the baselines are different for different targets, and the baselines that match each target can be adjusted according to the motion state of different targets, so that the statistics are more accurate. In the embodiment of the present application, when the number of people is counted based on the adjusted baseline, the head and shoulder detection and tracking technology can be used to achieve the purpose of dynamically setting the counting baseline, and the processing is more convenient. In addition, the baseline is adjusted based on the motion state of the target, which does not increase the hardware cost, has a low processing cost, and avoids error counting.

[0087] In the embodiment of the present application, a baseline adjustment device is also provided. Figure 5 , the device comprises:

[0088] An acquisition unit 10, configured to acquire a motion state of the target in response to the position of the target satisfying a condition;

[0089] A determination unit 20, configured to determine whether the target has an intention to enter a first area according to the motion state;

[0090] The adjusting unit 30 is configured to adjust the position of the baseline according to the motion state if the target has no intention of entering the first area.

[0091] Based on the above embodiment, the acquisition unit includes:

[0092] The first acquisition subunit is used to acquire the distance between the target and the baseline; if the distance is less than a distance threshold, the motion state of the target is acquired.

[0093] Based on the above embodiment, the acquisition unit includes:

[0094] The second acquisition subunit is configured to acquire the motion state of the target in response to the target entering the second area.

[0095] Based on the above embodiment, the determining unit includes:

[0096] A trajectory acquisition subunit, used for acquiring a predicted motion trajectory of the target according to the motion state;

[0097] The first determination subunit is configured to determine whether the target has an intention to enter a first area based on the predicted motion trajectory.

[0098] Based on the above embodiment, the motion state includes the motion speed of the target;

[0099] The determining unit comprises:

[0100] A second determining subunit, configured to determine, according to the movement speed, a component of the movement speed in a direction toward the reference line;

[0101] The third determining subunit is used to determine whether the target has the intention to enter the first area according to the component.

[0102] Based on the above embodiment, the adjustment unit is specifically used for:

[0103] If the value of the component is not greater than the component threshold, the baseline is adjusted in a direction away from the target.

[0104] Based on the above embodiment, if the target intends to enter the first area, the baseline remains stationary.

[0105] Based on the above embodiment, the device further includes:

[0106] a generating unit, configured to generate counting information of the target if the target passes through the adjusted baseline;

[0107] The restoring adjustment unit is used for restoring the adjusted baseline to the position before the baseline adjustment in response to completion of counting the target.

[0108] On the basis of the above embodiment, when there are multiple targets, there are multiple baselines, which correspond one-to-one to the multiple targets.

[0109] The present application discloses a baseline adjustment device, wherein an acquisition unit acquires the motion state of the target in response to the position of the target satisfying a condition; a determination unit determines whether the target has an intention to enter a first area according to the motion state; and an adjustment unit adjusts the position of the baseline according to the motion state if the target has no intention to enter the first area. The purpose of dynamically adjusting the baseline according to the motion state of the target is achieved, so that the adjusted baseline can more accurately meet its application requirements.

[0110] Based on the above embodiments, the embodiments of the present application provide an electronic device 30, which can be applied to any one of the baseline adjustment methods provided in the embodiments of the present application, referring to Figure 6 As shown, the electronic device 30 may include: a processor 301, a memory 302 and a communication bus 303, wherein:

[0111] The communication bus 303 is used to implement the communication connection between the processor 301 and the memory 302 .

[0112] The processor 301 is used to execute the program of the baseline adjustment method stored in the memory 302 to implement the following steps:

[0113] In response to the position of the target satisfying a condition, acquiring a motion state of the target;

[0114] determining whether the target intends to enter the first area according to the motion state;

[0115] If the target has no intention of entering the first area, the position of the baseline is adjusted according to the motion state.

[0116] In other embodiments of the present application, the processor 301 is used to execute the response stored in the memory 302 to the position of the target satisfying the condition, and obtain the motion state of the target to implement the following steps:

[0117] Get the distance between the target and the baseline;

[0118] If the distance is less than the distance threshold, the motion state of the target is obtained.

[0119] Optionally, in response to the position of the target satisfying a condition, acquiring the motion state of the target includes:

[0120] In response to the target entering the second area, a motion state of the target is acquired.

[0121] Optionally, determining whether the target has an intention to enter the first area according to the motion state includes:

[0122] According to the motion state, obtaining a predicted motion trajectory of the target;

[0123] It is determined based on the predicted motion trajectory whether the target has the intention to enter the first area.

[0124] Optionally, the motion state includes a motion speed of the target;

[0125] The determining, according to the motion state, whether the target has an intention to enter the first area includes:

[0126] Determining, according to the movement speed, a component of the movement speed in a direction toward the reference line;

[0127] Based on the components, it is determined whether the target has an intention to enter a first area.

[0128] Optionally, if the target has no intention to enter the first area, adjusting the position of the baseline according to the motion state includes:

[0129] If the value of the component is not greater than the component threshold, the baseline is adjusted in a direction away from the target.

[0130] Optionally, the method further comprises:

[0131] If the target intends to enter the first area, the baseline remains stationary.

[0132] Optionally, the method further comprises:

[0133] If the target passes through the adjusted baseline, generating counting information of the target;

[0134] In response to the completion of counting the target, the adjusted baseline is restored to the position before the baseline is adjusted.

[0135] Optionally, when there are multiple targets, there are multiple baselines, which correspond one-to-one to the multiple targets.

[0136] Based on the aforementioned embodiments, embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any of the above baseline adjustment methods.

[0137] It should be noted that the above-mentioned processor or CPU can be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that the electronic device that realizes the function of the above-mentioned processor can also be other, and the embodiments of the present application are not specifically limited.

[0138] It should be noted that the above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0140] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0141] In addition, all functional units in the embodiments of the present application can be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memory (ROM), random access memory (RAM), disks or optical disks, and other media that can store program codes.

[0142] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0143] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0144] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A baseline adjustment method, comprising: In response to the position of the target satisfying a condition, acquiring the motion state of the target; wherein the condition is set based on the accuracy of the result of processing based on the preset baseline; Determine whether the target intends to enter the first area according to the motion state; the motion state includes a motion trajectory and a motion speed; If the target has no intention of entering the first area, the position of the baseline is adjusted according to the motion state; wherein adjusting the position of the baseline includes: controlling the baseline to be adjusted in a direction away from the target.

2. The method according to claim 1, wherein in response to the position of the target satisfying a condition, obtaining the motion state of the target comprises: Get the distance between the target and the baseline; If the distance is less than the distance threshold, the motion state of the target is obtained.

3. The method according to claim 1, wherein in response to the position of the target satisfying a condition, obtaining the motion state of the target comprises: In response to the target entering the second area, a motion state of the target is acquired.

4. The method according to claim 1, wherein determining whether the target has an intention to enter the first area according to the motion state comprises: According to the motion state, obtaining a predicted motion trajectory of the target; It is determined based on the predicted motion trajectory whether the target has the intention to enter the first area.

5. The method according to claim 1, wherein the motion state comprises a motion speed of the target; The determining, according to the motion state, whether the target has an intention to enter the first area includes: Determining, according to the movement speed, a component of the movement speed in a direction toward the reference line; Based on the components, it is determined whether the target has an intention to enter a first area.

6. The method according to claim 5, wherein if the target has no intention to enter the first area, adjusting the position of the baseline according to the motion state comprises: If the value of the component is not greater than the component threshold, the baseline is adjusted in a direction away from the target.

7. The method according to claim 1, further comprising: If the target intends to enter the first area, the baseline remains stationary.

8. The method according to claim 1, further comprising: If the target passes through the adjusted baseline, generating counting information of the target; In response to the completion of counting the target, the adjusted baseline is restored to the position before the baseline is adjusted. 9 . The method according to claim 1 , wherein when there are multiple targets, there are multiple baselines, which correspond one-to-one to the multiple targets.

10. A baseline adjustment device, comprising: an acquisition unit, configured to acquire the motion state of the target in response to the position of the target satisfying a condition; wherein the condition is set based on the accuracy of the result of processing based on the preset baseline; A determination unit is used to determine whether the target has an intention to enter the first area based on the motion state; the motion state includes a motion trajectory and a motion speed; an adjustment unit is used to adjust the baseline position based on the motion state if the target has no intention to enter the first area; wherein adjusting the baseline position includes: controlling the baseline to adjust in a direction away from the target.

Citation Information

Patent Citations

  • Method and system for people flow statistics

    US20130070969A1

  • Number of persons measurement device

    US20140037147A1