CN112036345A - Method for detecting number of people in target place, recommendation method, detection system and medium - Google Patents

Method for detecting number of people in target place, recommendation method, detection system and medium Download PDF

Info

Publication number
CN112036345A
CN112036345A CN202010923053.6A CN202010923053A CN112036345A CN 112036345 A CN112036345 A CN 112036345A CN 202010923053 A CN202010923053 A CN 202010923053A CN 112036345 A CN112036345 A CN 112036345A
Authority
CN
China
Prior art keywords
target
human head
target frame
frame
head target
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010923053.6A
Other languages
Chinese (zh)
Inventor
郑瑞
唐小军
祖春山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010923053.6A priority Critical patent/CN112036345A/en
Publication of CN112036345A publication Critical patent/CN112036345A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Image Analysis (AREA)

Abstract

The application provides a detection method, a recommendation method, a detection system and a medium for the number of people in a target place. The method for detecting the number of people in the target place comprises the following steps: acquiring an environment image of a target place; determining a target detection area in the environment image; determining a facial human head target frame and a non-facial human head target frame in the target detection area; and determining the number of people entering and exiting the target place in any time period according to the facial head target frame and the non-facial head target frame of each target detection area in the time period. The method and the device realize accurate identification of the head target frame in the target detection area, and can accurately determine the number of people passing in and out of the target place in any time period.

Description

目标场所人数的检测方法、推荐方法、检测系统及介质Detection method, recommended method, detection system and medium of the number of people in the target place

技术领域technical field

本申请涉及智慧系统技术领域,具体而言,本申请涉及一种目标场所人数的检测方法、推荐方法、检测系统及介质。The application relates to the technical field of intelligent systems, and in particular, the application relates to a detection method, a recommendation method, a detection system and a medium for the number of people in a target place.

背景技术Background technique

当前很多场景下都需要统计某个场所或区域的人数,例如用户在选择要使用的场所时,通常需要了解某个场所的排队人数、进出人数、资源使用情况等,以便于做出更好的选择并节省时间,然而目前没有较为准确的统计某个场所或区域的人数的方法,在需要选择场所空闲资源时给用户造成了较大的不便,同时也造成了部分资源的浪费。Currently, in many scenarios, it is necessary to count the number of people in a certain place or area. For example, when a user chooses a place to use, he usually needs to know the number of people in line, the number of people entering and leaving, and the usage of resources in a certain place, so as to make better decisions. Select and save time. However, there is currently no more accurate method for counting the number of people in a certain place or area, which causes great inconvenience to users when it is necessary to select idle resources of a place, and also causes a waste of some resources.

发明内容SUMMARY OF THE INVENTION

本申请针对现有方式的缺点,提出一种目标场所人数的检测方法、推荐方法、检测系统及介质,用以解决现有技术存在的无法准确统计某个场所或区域内的人数以及资源无法合理利用的技术问题。Aiming at the shortcomings of the existing methods, the present application proposes a detection method, a recommended method, a detection system and a medium for the number of people in a target place, so as to solve the problem that the existing technology cannot accurately count the number of people in a certain place or area and the resources cannot be reasonable. exploited technical issues.

第一方面,本申请实施例提供了一种目标场所人数的检测方法,包括:In the first aspect, an embodiment of the present application provides a method for detecting the number of people in a target place, including:

获取目标场所的环境图像;Obtain an environmental image of the target site;

确定出环境图像中的目标检测区域;Determine the target detection area in the environmental image;

确定出目标检测区域中的面部人头目标框和非面部人头目标框;Determine the facial head target frame and the non-face head target frame in the target detection area;

根据任意时间段内各目标检测区域的面部人头目标框和非面部人头目标框,确定该时间段内目标场所的进出人数。According to the face head target frame and the non-face head target frame of each target detection area in any time period, the number of people entering and leaving the target place in this time period is determined.

可选地,根据任意时间段内各目标检测区域的面部人头目标框和非面部人头目标框,确定该时间段内目标场所的进出人数,包括:Optionally, according to the facial head target frame and the non-face head target frame of each target detection area in any time period, determine the number of people entering and leaving the target place in the time period, including:

对于面部人头目标框和非面部人头目标框中的每一个人头目标框,确定任意时间段内人头目标框是否同时满足以下条件:人头目标框与环境图像中的参考标记有重合部分;每一帧的人头目标框与之前帧的人头目标框的交并比大于交并比阈值;每一帧的人头目标框在之前帧的人头目标框的指定方向上;For each head target frame in the face head target frame and the non-face head target frame, determine whether the head target frame meets the following conditions at the same time in any time period: the head target frame overlaps with the reference marks in the environment image; each frame The intersection ratio of the head target frame of the frame and the head target frame of the previous frame is greater than the intersection ratio threshold; the head target frame of each frame is in the specified direction of the head target frame of the previous frame;

若该时间段内人头目标框同时满足以上条件,则确定人头目标框的移动方向为进入或离开目标场所;If the head target frame satisfies the above conditions at the same time within the time period, then determine that the movement direction of the head target frame is entering or leaving the target place;

根据该时间段内进入或离开目标场所的人头目标框的个数,确定该时间段内目标场所的进入人数和离开人数。According to the number of head target boxes entering or leaving the target place within the time period, the number of people entering and leaving the target place within the time period is determined.

可选地,本申请实施例提供的目标场所人数的检测方法,还包括:Optionally, the method for detecting the number of people in the target place provided by the embodiment of the present application further includes:

根据面部人头目标框的数量或第一时间段内目标场所的进出人数,确定目标场所的当前排队人数。According to the number of face head target boxes or the number of people entering and leaving the target place in the first time period, the current number of people in line at the target place is determined.

可选地,确定出目标检测区域中的面部人头目标框和非面部人头目标框,包括:Optionally, determine the facial head target frame and the non-face head target frame in the target detection area, including:

在环境图像中裁剪出包含目标检测区域的子环境图像;Crop out the sub-environment image containing the target detection area in the environment image;

根据人头检测算法确定出子环境图像中的各人头目标框;Determine each head target frame in the sub-environment image according to the head detection algorithm;

从子环境图像的各人头目标框中,确定出位于目标检测区域范围内的人头目标框;From each head target frame of the sub-environment image, determine the head target frame located within the target detection area;

根据人脸识别算法在目标检测区域中的各人头目标框中识别出面部人头目标框和非面部人头目标框。According to the face recognition algorithm, the face head target frame and the non-face head target frame are identified in each head target frame in the target detection area.

可选地,根据人脸识别算法在目标检测区域中的各人头目标框中识别出面部人头目标框和非面部人头目标框,包括:Optionally, the facial human head target frame and the non-face human head target frame are identified in each human head target frame in the target detection area according to the face recognition algorithm, including:

对于目标检测区域中的每个人头目标框,根据人脸识别算法识别当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框是否均为面部人头目标框;For each head target frame in the target detection area, identify whether the current head target frame and the first number of head target frames adjacent to the current head target frame are all face head target frames according to the face recognition algorithm;

若当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框均为面部人头目标框,则确定当前人头目标框为面部人头目标框;If the current head target frame and the first number of head target frames adjacent to the current head target frame are both face head target frames, then it is determined that the current head target frame is the face head target frame;

若当前人头目标框为面部人头目标框、且与当前人头目标框相邻的第一数量个人头目标框均为非面部人头目标框,则确定当前人头目标框为非面部人头目标框;If the current head target frame is a face head target frame, and the first number of head target frames adjacent to the current head target frame are all non-face head target frames, then determine that the current head target frame is a non-face head target frame;

若当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框均为非面部人头目标框,则确定当前人头目标框为非面部人头目标框;If the current head target frame and the first number of head target frames adjacent to the current head target frame are both non-face head target frames, then it is determined that the current head target frame is a non-face head target frame;

若当前人头目标框为非面部人头目标框、且与当前人头目标框相邻的第一数量个人头目标框均为面部人头目标框,则确定当前人头目标框为面部人头目标框。If the current head target frame is a non-face head target frame, and the first number of head target frames adjacent to the current head target frame are all face head target frames, then the current head target frame is determined to be a face head target frame.

第二方面,本申请实施例提供了一种资源推荐方法,包括:In a second aspect, an embodiment of the present application provides a resource recommendation method, including:

对于多个目标场所,获取每个目标场所的当前排队人数、第二时间段内的进出人数、场所位置信息以及用户终端的请求信息;当前排队人数为通过本申请实施例第一方面提供的检测方法的一种可选方案确定出的当前排队人数;进出人数为通过本申请实施例第一方面提供的检测方法确定出的进出人数;请求信息包括用户终端位置信息;For multiple target places, obtain the current number of people in line, the number of people entering and leaving in the second time period, the location information of the site, and the request information of the user terminal for each target place; the current number of people in line is the detection provided by the first aspect of the embodiment of this application An optional solution of the method determines the current number of people in queue; the number of people entering and leaving is the number of people entering and leaving determined by the detection method provided by the first aspect of the embodiment of the present application; the request information includes user terminal location information;

根据每个场所的当前排队人数、第二时间段内的进出人数、场所位置信息和用户位置信息,确定每个目标场所的推荐分值;Determine the recommended score for each target venue according to the current number of people in line at each venue, the number of people entering and leaving in the second time period, venue location information and user location information;

根据推荐分值,确定出至少一个待推荐的目标场所向用户终端发送。According to the recommendation score, at least one target place to be recommended is determined and sent to the user terminal.

可选地,根据每个场所的当前排队人数、第二时间段内的进出人数、场所位置信息和用户位置信息,确定每个目标场所的推荐分值,包括:Optionally, according to the current number of people queuing in each place, the number of people entering and leaving in the second time period, the location information of the venue, and the user location information, determine the recommended score for each target venue, including:

根据每个目标场所在第二时间段内的进出人数,确定每个目标场所的资源使用速度;Determine the resource usage rate of each target site according to the number of people entering and leaving each target site in the second time period;

根据用户终端位置信息和每个目标场所的场所位置信息,确定用户终端与每个目标场所的距离;According to the location information of the user terminal and the location information of each target location, determine the distance between the user terminal and each target location;

根据每个目标场所的当前排队人数、资源使用速度、以及用户与每个目标场所的距离,确定每个目标场所的推荐分值。According to the current queuing number of each target place, the speed of resource usage, and the distance between the user and each target place, the recommendation score of each target place is determined.

可选地,本申请实施例提供的资源推荐方法,还包括:Optionally, the resource recommendation method provided in the embodiment of the present application further includes:

对于每个待推荐的目标场所,根据场所位置信息和用户终端位置信息,确定出由用户终端当前位置至目标场所当前位置的至少一条路线,并向用户终端发送至少一条路线的路线信息。For each target location to be recommended, at least one route from the current location of the user terminal to the current location of the target location is determined according to location location information and user terminal location information, and the route information of at least one route is sent to the user terminal.

第三方面,本申请实施例提供了一种检测系统,包括:图像采集装置和服务器;In a third aspect, an embodiment of the present application provides a detection system, including: an image acquisition device and a server;

图像采集装置设置于目标场所,图像采集装置与服务器通信连接;The image acquisition device is arranged at the target place, and the image acquisition device is connected to the server in communication;

图像采集装置用于:采集目标场所的环境图像,并向服务器发送环境图像;The image acquisition device is used for: collecting the environmental image of the target place, and sending the environmental image to the server;

服务器用于执行以实现本申请实施例第一方面提供的检测方法。The server is configured to execute to implement the detection method provided by the first aspect of the embodiments of the present application.

第四方面,本申请实施例提供一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例第一方面提供的检测方法、或本申请实施例第二方面提供的资源推荐方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the detection method provided in the first aspect of the embodiment of the present application, or the second embodiment of the present application. Aspects of the resources provided by the recommended method.

本申请实施例提供的技术方案,至少具有如下有益效果:The technical solutions provided in the embodiments of the present application have at least the following beneficial effects:

1)本申请实施例可基于目标场所的环境图像,确定目标检测区域及其中的面部人头目标框和非面部人头目标框,实现对目标检测区域中的人头目标框的精确识别;基于精确识别出的面部人头目标框和非面部人头目标框的数量,可精确地确定出任意时间段内目标场所的进出人数,为用户选择目标场所提供较精确的参考数据,便于用户快速做出更适合自己的选择,减少用户的选择时间和资源的浪费;1) The embodiment of the present application can determine the target detection area and the facial head target frame and the non-face head target frame based on the environmental image of the target place, so as to realize the accurate identification of the head target frame in the target detection area; The number of face head target frames and non-face head target frames can accurately determine the number of people entering and leaving the target place in any time period, providing more accurate reference data for users to select the target place, so that users can quickly make more suitable for themselves. Selection, reduce the waste of user selection time and resources;

2)本申请实施例基于精确识别出的面部人头目标框的数量,可精确地确定出目标场所的当前排队人数;在没有识别出面部人头目标框的情形下,可基于之前的第一时间段内目标场所的进出人数,较为精确地估算出目标场所的当前排队人数,为用户选择目标场所提供较精确的参考数据,便于用户快速做出更适合自己的选择,减少用户的选择时间和资源的浪费;2) The embodiment of the present application can accurately determine the current number of people queuing in the target place based on the number of accurately identified face and head target frames; in the case where the face and head target frame is not identified, it can be based on the previous first time period. The number of people entering and leaving the target place can more accurately estimate the current number of people queuing in the target place, and provide more accurate reference data for users to select the target place, which is convenient for users to quickly make more suitable choices for themselves, and reduce the time and resources for users to choose. waste;

3)本申请实施例可基于目标场所的人数信息(当前排队人数和第二时间段内的进出人数)、场所位置信息和用户终端位置信息,确定每个场所的推荐分值,根据推荐分值,向用户终端推荐合适的目标场所作为参考,使用户可以结合自身情况更快地选择合适的目标场所,为用户提供了很大的便利,节省了用户的时间。3) In this embodiment of the present application, the recommended score of each place can be determined based on the number of people in the target place (the current number of people in queue and the number of people entering and leaving in the second time period), the location information of the place, and the location information of the user terminal. , recommending a suitable target place to the user terminal as a reference, so that the user can select a suitable target place more quickly according to his own situation, which provides great convenience for the user and saves the user's time.

本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth in part in the following description, which will become apparent from the following description, or may be learned by practice of the present application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1为本申请实施例提供的一种目标场所人数的检测方法的流程示意图;1 is a schematic flowchart of a method for detecting the number of people in a target place provided by an embodiment of the present application;

图2为本申请实施例中的环境图像区域、子环境图像区域和目标检测区域的示意图;2 is a schematic diagram of an environment image area, a sub-environment image area, and a target detection area in an embodiment of the present application;

图3为本申请实施例提供的另一种目标场所人数的检测方法的流程示意图;3 is a schematic flowchart of another method for detecting the number of people in a target place provided by an embodiment of the present application;

图4为本申请实施例提供的一种资源推荐方法的流程示意图;FIG. 4 is a schematic flowchart of a resource recommendation method provided by an embodiment of the present application;

图5为本申请实施例提供的另一种资源推荐方法的流程示意图;FIG. 5 is a schematic flowchart of another resource recommendation method provided by an embodiment of the present application;

图6为本申请实施例提供的一种检测系统的结构框架示意图;6 is a schematic structural framework diagram of a detection system provided by an embodiment of the present application;

图7为本申请实施例提供的另一种检测系统的结构框架示意图;7 is a schematic structural framework diagram of another detection system provided by an embodiment of the present application;

图8为本申请实施例提供的一种服务器的结构框架示意图。FIG. 8 is a schematic structural framework diagram of a server according to an embodiment of the present application.

具体实施方式Detailed ways

下面详细描述本申请,本申请的实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的部件或具有相同或类似功能的部件。此外,如果已知技术的详细描述对于示出的本申请的特征是不必要的,则将其省略。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The application is described in detail below, and examples of embodiments of the application are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar components or components having the same or similar functions throughout. Also, detailed descriptions of known technologies are omitted if they are not necessary for illustrating features of the present application. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as a limitation on the present application.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the specification of this application refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not preclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific examples.

本申请实施例提供了一种目标场所人数的检测方法,如图1所示,该检测方法包括:The embodiment of the present application provides a method for detecting the number of people in a target place, as shown in FIG. 1 , the detection method includes:

S101,获取目标场所的环境图像。S101, acquiring an environmental image of a target place.

可选地,可获取由目标场所内部或外部设置的摄像装置采集到的目标场所的环境图像;环境图像可以是目标场所的内部环境图像或外部环境图像,视目标场所的实际情况以及摄像装置的排放位置而定。Optionally, an environmental image of the target site collected by a camera device set up inside or outside the target site can be obtained; the environmental image can be an internal or external environment image of the target site, depending on the actual situation of the target site and the camera’s Depends on the discharge location.

本申请实施例对目标场所不作限定,可以是需要统计人数的任何场所或区域,例如公共厕所、餐厅、机场、火车站等公共场所。The embodiment of the present application does not limit the target place, which can be any place or area that needs to count the number of people, such as public places such as public toilets, restaurants, airports, and railway stations.

S102,确定出环境图像中的目标检测区域。S102, a target detection area in the environment image is determined.

目标检测区域可根据目标场所的实际情况确定。例如,若目标检测区域为公共厕所,可将环境图像中的公共厕所的门口区域作为目标检测区域;若目标检测区域为餐厅,可将环境图像中的入口等待区(餐厅通常设置有等待区)作为目标检测区域。The target detection area can be determined according to the actual situation of the target site. For example, if the target detection area is a public toilet, the door area of the public toilet in the environmental image can be used as the target detection area; if the target detection area is a restaurant, the entrance waiting area in the environmental image can be used (restaurants usually have waiting areas) as the target detection area.

对于涉及排队和排队人数确定的目标场所,目标检测区域可包括常规视野范围内的队尾。For target locations involving queuing and queuing number determination, the target detection area may include the tail of the queue within the normal field of view.

S103,确定出目标检测区域中的面部人头目标框和非面部人头目标框。S103, determining a face head target frame and a non-face head target frame in the target detection area.

可选地,在环境图像中裁剪出包含目标检测区域的子环境图像;根据人头检测算法确定出子环境图像中的各人头目标框;从子环境图像的各人头目标框中,确定出位于目标检测区域范围内的人头目标框;根据人脸识别算法在目标检测区域中的各人头目标框中识别出面部人头目标框和非面部人头目标框。Optionally, crop out a sub-environment image including the target detection area in the environmental image; determine each human head target frame in the sub-environment image according to the human head detection algorithm; The human head target frame within the detection area is detected; the facial head target frame and the non-face head target frame are identified in each head target frame in the target detection area according to the face recognition algorithm.

在一个示例中,图2示出了一个环境图像201,该环境图像中的目标检测区域可以是图2中的梯形框202内的区域,在确定子环境图像时,可以梯形框202(即目标检测区域)的中心为中心,确定一个矩形框203作为包含目标检测区域的子环境图像。In an example, FIG. 2 shows an environment image 201, and the target detection area in the environment image may be the area within the trapezoidal frame 202 in FIG. The center of the detection area) is the center, and a rectangular frame 203 is determined as a sub-environment image containing the target detection area.

在图2所示的示例中,根据矩形框203的范围裁剪出包含梯形框202的子环境图像,可便于以图像的形式输入人头检测算法以实现对目标检测区域的人头检测,子环境图像尺寸(例如512像素)小于原始的环境图像,可在处理过程中减少不必要的干扰,加快检测速度。In the example shown in FIG. 2 , the sub-environment image including the trapezoidal frame 202 is cropped according to the range of the rectangular frame 203, which can facilitate the input of the human head detection algorithm in the form of an image to realize the human head detection in the target detection area. The sub-environment image size (eg 512 pixels) is smaller than the original environment image, which reduces unnecessary interference during processing and speeds up detection.

可选地,从子环境图像的各人头目标框中,确定出位于目标检测区域范围内的人头目标框,包括:Optionally, from each head target frame of the sub-environment image, determine the head target frame located within the target detection area, including:

对于每个人头目标框,根据目标检测区域的顶点和边界的坐标,确定人头目标框的中心坐标的极值范围;确定人头目标框的中心坐标是否在极值范围内;若人头目标框的中心坐标在坐标极值范围内,则确定人头目标框的中心坐标是否在人头目标框的边界坐标范围内;若人头目标框的中心坐标在边界坐标范围内,则确定人头目标框位于目标检测区域。For each head target frame, determine the extreme value range of the center coordinates of the head target frame according to the coordinates of the vertex and boundary of the target detection area; determine whether the center coordinates of the head target frame are within the extreme value range; if the center of the head target frame If the coordinates are within the coordinate extreme value range, it is determined whether the center coordinates of the head target frame are within the boundary coordinates of the head target frame; if the center coordinates of the head target frame are within the boundary coordinate range, it is determined that the head target frame is located in the target detection area.

本申请实施例中的各坐标可以是在环境图像中建立的一个平面坐标系中的坐标,可用(x,y)来表示。Each coordinate in this embodiment of the present application may be a coordinate in a plane coordinate system established in the environment image, and may be represented by (x, y).

在一个示例中,目标检测区域的边界的坐标可以相邻两个顶点之间的直线公式来表示,根据如图2所示的目标检测区域的四个顶点和相邻两个顶点之间的直线公式,对于人头目标框的中心坐标(x1,y1),可分别确定出1x和y1的最大值和最小值,作为坐标极值范围,确定中心坐标(x1,y1)是否在该坐标极值范围内;若中心坐标(x1,y1)在该坐标极值范围内,进一步确定中心坐标(x1,y1)是否在人头目标框的四条边界直线所包围的范围内,若中心坐标(x1,y1)在人头目标框的四条边界直线所包围的范围内,则将该中心坐标(x1,y1)所属的人头目标框作为目标检测区域内的人头目标框保留计数,若中心坐标(x1,y1)不在人头目标框的四条边界直线所包围的范围内,则将该中心坐标(x1,y1)所属的人头目标框排除,计数时不考虑该人头目标框。In an example, the coordinates of the boundary of the target detection area can be represented by a straight line formula between two adjacent vertices, according to the straight line between the four vertices of the target detection area and the two adjacent vertices as shown in FIG. The formula, for the center coordinates (x1, y1) of the human head target frame, the maximum and minimum values of 1x and y1 can be determined respectively, as the coordinate extreme value range, to determine whether the center coordinate (x1, y1) is in the coordinate extreme value range. If the center coordinates (x1, y1) are within the extreme value range of the coordinates, further determine whether the center coordinates (x1, y1) are within the range surrounded by the four boundary lines of the human head target frame, if the center coordinates (x1, y1) Within the range enclosed by the four boundary lines of the head target frame, the head target frame to which the center coordinate (x1, y1) belongs is used as the head target frame in the target detection area to keep count, if the center coordinate (x1, y1) is not Within the range enclosed by the four boundary lines of the head target frame, the head target frame to which the center coordinate (x1, y1) belongs is excluded, and the head target frame is not considered when counting.

可选地,根据人脸识别算法在目标检测区域中的各人头目标框中识别出面部人头目标框和非面部人头目标框,包括:Optionally, the facial human head target frame and the non-face human head target frame are identified in each human head target frame in the target detection area according to the face recognition algorithm, including:

对于目标检测区域中的每个人头目标框,根据人脸识别算法识别当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框是否均为面部人头目标框;For each head target frame in the target detection area, identify whether the current head target frame and the first number of head target frames adjacent to the current head target frame are all face head target frames according to the face recognition algorithm;

若当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框均为面部人头目标框,则确定当前人头目标框为面部人头目标框;若当前人头目标框为面部人头目标框、且与当前人头目标框相邻的第一数量个人头目标框均为非面部人头目标框,则确定当前人头目标框为非面部人头目标框;若当前人头目标框以及与当前人头目标框相邻的第一数量个人头目标框均为非面部人头目标框,则确定当前人头目标框为非面部人头目标框;若当前人头目标框为非面部人头目标框、且与当前人头目标框相邻的第一数量个人头目标框均为面部人头目标框,则确定当前人头目标框为面部人头目标框。If the current head target frame and the first number of head target frames adjacent to the current head target frame are both face head target frames, the current head target frame is determined to be the face head target frame; if the current head target frame is the face head target frame , and the first number of head target frames adjacent to the current head target frame are all non-face head target frames, then it is determined that the current head target frame is a non-face head target frame; If the first number of adjacent head target frames are all non-face head target frames, then the current head target frame is determined to be a non-face head target frame; if the current head target frame is a non-face head target frame and is adjacent to the current head target frame The first number of head target frames are all face head target frames, then it is determined that the current head target frame is the face head target frame.

可选地,在根据人脸识别算法识别每个人头目标框(如当前人头目标框或相邻的人头目标框)是否是面部人头目标框时,可根据人脸识别算法确定该人头目标框的面部特征数据是否大于面部阈值,若是,则初步确定该人头目标框为面部人头目标框,然后再根据相邻人头目标框的初步确定结果,对该人头目标框是否为面部人头目标框做最终确定。Optionally, when identifying whether each head target frame (such as the current head target frame or the adjacent head target frame) is a face head target frame according to the face recognition algorithm, the head target frame can be determined according to the face recognition algorithm. Whether the facial feature data is greater than the face threshold, if so, preliminarily determine that the head target frame is a face head target frame, and then according to the preliminary determination result of the adjacent head target frame, make a final determination whether the head target frame is a face head target frame .

本申请实施例中的第一数量可根据实际需求设置,第一数量个人头目标框的选择范围可根据实际情况确定。例如,若当前人头目标框位于如图2所示两条虚线之间的区域,则相邻的第一数据个人头目标框也可在两条虚线之间的区域选取。对于有明显排队区域的目标场所,通过这种方式可选取到面部朝向更加一致的相邻人头目标框,在某些用户虽然正面朝向图像采集装置但无法拍摄到面部特征的场景下(如低头看手机),可较为准确的判断当前人头目标框是否是面部人头目标框,减少甚至避免错误的判断。The first quantity in this embodiment of the present application may be set according to actual needs, and the selection range of the first quantity of head target boxes may be determined according to actual conditions. For example, if the current head target frame is located in the area between the two dotted lines as shown in FIG. 2 , the adjacent first data head target frame can also be selected in the area between the two dotted lines. For target places with obvious queuing areas, in this way, adjacent head target frames with more consistent face orientations can be selected. mobile phone), it can more accurately determine whether the current head target frame is the face head target frame, reducing or even avoiding erroneous judgments.

可选地,本申请实施例的人头检测算法可以是CenterNet算法,人脸识别算法可以是SeetaFace算法。Optionally, the human head detection algorithm in this embodiment of the present application may be the CenterNet algorithm, and the face recognition algorithm may be the SeetaFace algorithm.

S104,根据任意时间段内各目标检测区域的面部人头目标框和非面部人头目标框,确定该时间段内目标场所的进出人数。S104: Determine the number of people entering and leaving the target place in the time period according to the facial head target frame and the non-face head target frame in each target detection area in an arbitrary time period.

任意时间段可以是后文中的第一时间段或第二时间段。The arbitrary period of time may be the first period of time or the second period of time hereinafter.

可选地,对于面部人头目标框和非面部人头目标框中的每一个人头目标框,确定任意时间段内人头目标框是否同时满足以下条件:人头目标框与环境图像中的参考标记有重合部分;每一帧的人头目标框与之前帧的人头目标框的交并比IoU大于交并比阈值;每一帧的人头目标框在之前帧的人头目标框的指定方向上。Optionally, for each head target frame in the face head target frame and the non-face head target frame, determine whether the head target frame meets the following conditions at the same time in any time period: the head target frame and the reference mark in the environment image have overlapping parts. ; The intersection ratio IoU of the human head target frame of each frame and the human head target frame of the previous frame is greater than the intersection and union ratio threshold; the human head target frame of each frame is in the specified direction of the human head target frame of the previous frame.

若该时间段内人头目标框同时满足条件,则确定人头目标框的移动方向为进入或离开目标场所;根据该时间段内进入或离开目标场所的人头目标框的个数,确定该时间段内目标场所的进入人数和离开人数。If the head target frame meets the conditions at the same time within the time period, the moving direction of the head target frame is determined to be entering or leaving the target place; according to the number of head target frames entering or leaving the target place within the time period, determine the movement direction of the head target frame within the time period. The number of people entering and leaving the target site.

本申请实施例中的参考标记可根据实际需求在环境图像中设置,在一个示例中,参考标记可以是图2所示的直线A和直线B。The reference marks in the embodiments of the present application may be set in the environment image according to actual requirements. In an example, the reference marks may be the straight line A and the straight line B shown in FIG. 2 .

本申请实施例中的交并比阈值可根据实际需求设置,例如0.5,若IoU大于0.5,则可认为当前判断的该帧人头目标框与之前帧的人头目标框为同一个人的人头目标框;若IoU小于或大于0.5,则可认为当前判断的该帧人头目标框与之前帧的人头目标框不是同一个人的人头目标框,当前判断的该帧人头目标框可作为一个新出现的人头目标框,重新进行上述条件的判断。The intersection and union ratio threshold in the embodiment of the present application can be set according to actual needs, for example, 0.5. If the IoU is greater than 0.5, it can be considered that the currently judged head target frame of this frame and the head target frame of the previous frame are the same person's head target frame; If the IoU is less than or greater than 0.5, it can be considered that the currently judged head target frame of the frame and the head target frame of the previous frame are not the head target frame of the same person, and the currently judged frame head target frame can be used as a new head target frame. , and re-determine the above conditions.

本申请实施例中的之前帧可以是当前帧之前的一个帧数范围内的任意一帧,帧数范围可根据参考标记进行设置,在图2所示的示例中,可根据直线A和直线B之间的距离进行设置,若直线A和直线B之间的距离较小,则可将帧数范围设置为一个较小的范围,若直线A和直线B之间的距离较大,则可将帧数范围设置为一个较大的范围。The previous frame in this embodiment of the present application may be any frame within a frame number range before the current frame, and the frame number range may be set according to the reference mark. In the example shown in FIG. Set the distance between lines. If the distance between line A and line B is small, you can set the frame number range to a smaller range. If the distance between line A and line B is large, you can set the frame number range to a smaller range. The frame number range is set to a larger range.

本申请实施例中的指定方向可根据实际情况确定,以图2为例,在确定人头目标框的移动方向是否为进入目标场所时,指定方向为由直线A指向直线B的方向,若当前帧与之前帧相比,人头目标框的中心由直线A向直线B移动,则认为人头目标框的移动方向为进入目标场所的方向;在确定人头目标框的移动方向是否为离开目标场所时,指定方向为由直线B指向直线A的方向,若当前帧与之前帧相比,人头目标框的中心由直线B向直线A移动,则认为人头目标框的移动方向为离开目标场所的方向。The designated direction in the embodiment of the present application can be determined according to the actual situation. Taking FIG. 2 as an example, when determining whether the moving direction of the human head target frame is to enter the target place, the designated direction is the direction from straight line A to straight line B. If the current frame Compared with the previous frame, if the center of the human head target frame moves from straight line A to straight line B, it is considered that the moving direction of the human head target frame is the direction of entering the target place; when determining whether the moving direction of the human head target frame is to leave the target place, specify The direction is the direction from the straight line B to the straight line A. If the center of the human head target frame moves from the straight line B to the straight line A in the current frame compared with the previous frame, the moving direction of the human head target frame is considered to be the direction away from the target location.

在一个可选的实施方式中,在确定人头目标框的移动方向为进入或离开目标场所时,还可在上述方式的基础通过目标跟踪算法进一步确定人头目标框的移动方向,从而使进入人数和离开人数的统计更加精确。In an optional embodiment, when it is determined that the moving direction of the human head target frame is entering or leaving the target place, the moving direction of the human head target frame can be further determined by a target tracking algorithm on the basis of the above method, so that the number of people entering and the The number of people leaving is more accurate.

在另一个可选的实施方式中,可用目标跟踪算法代替上述方式来确定人头目标框的移动方向。In another optional implementation manner, a target tracking algorithm can be used instead of the above method to determine the moving direction of the human head target frame.

可选地,在通过目标跟踪算法确定人头目标框的移动方向的过程中,具体地,将目标检测区域中的各人头目标框输入目标跟踪算法,不同的人头目标框会有不同的ID(Identity Document,身份标识号码)标注,同一个人头目标框会有持续的相同ID跟踪,根据同一个ID标注的前后帧目标框中心的移动方向可以判断人头目标框的移动方向。Optionally, in the process of determining the moving direction of the head target frame by the target tracking algorithm, specifically, input each head target frame in the target detection area into the target tracking algorithm, and different head target frames will have different ID (Identity). Document, identification number), the same head target frame will have the same ID tracking continuously, and the movement direction of the head target frame can be judged according to the moving direction of the center of the target frame before and after the frame marked by the same ID.

本申请实施例中的目标跟踪算法可以是卡尔曼算法或KCF(Kernel CorrelationFilter,核相关滤波算法)算法,目标跟踪算法的准确率较高,即使在人多、走动复杂的场景中也可保证准确率,不会出现计数错误。The target tracking algorithm in this embodiment of the present application may be a Kalman algorithm or a KCF (Kernel Correlation Filter, kernel correlation filter algorithm) algorithm. The target tracking algorithm has a high accuracy rate, and can be accurate even in scenes with many people and complex walking. rate without counting errors.

可选地,如图3所示,本申请实施例提供的检测方法,在上述步骤S101至S104的基础上,还包括如下步骤:Optionally, as shown in FIG. 3 , the detection method provided by the embodiment of the present application, on the basis of the above steps S101 to S104, further includes the following steps:

S105,根据面部人头目标框的数量或第一时间段内目标场所的进出人数,确定目标场所的当前排队人数。S105, according to the number of face head target frames or the number of people entering and leaving the target place in the first time period, determine the current number of people in line at the target place.

在一个可选的实施方式中,当目标检测区域中面部人头目标框的数量大于0时,根据该面部人头目标框的数量确定目标场所的当前排队人数,具体方式如下:In an optional embodiment, when the number of face and head target frames in the target detection area is greater than 0, the current number of people in line at the target place is determined according to the number of the face and head target frames, and the specific methods are as follows:

h=hf+hw 表达式(1)h=hf+hw Expression (1)

在表达式(1),h表示目标场所的当前排队人数,hf表示目标检测区域中面部人头目标框的数量,hw表示目标场所的起始位置与目标检测区域之间的区域的可容纳人数。hw对应的区域为图像采集装置无法采集到但仍可能有排队人员的区域,hw用于弥补图像采集装置的采集缺失,使确定出的当前排队人数更加准确。In expression (1), h represents the current number of people in line at the target location, hf represents the number of face head target boxes in the target detection area, and hw represents the accommodating number of people in the area between the starting position of the target location and the target detection area. The area corresponding to hw is the area that cannot be collected by the image acquisition device but there may still be people in line.

可选地,当根据表达式(1)确定出的h大于预设的人数阈值时,将该人数阈值作为h的值。人数阈值可设置为图像采集装置的可拍摄区域内可容纳人数的最大值,可根据经验值设置。Optionally, when h determined according to expression (1) is greater than a preset number of people threshold, the number of people threshold is taken as the value of h. The number of people threshold can be set as the maximum number of people that can be accommodated in the photographable area of the image acquisition device, which can be set according to empirical values.

在另一个可选的实施方式中,当目标检测区域中面部人头目标框的数量小于或等于0时,根据第一时间段内目标场所的进出人数,确定目标场所的当前排队人数。In another optional embodiment, when the number of face and head target frames in the target detection area is less than or equal to 0, the current number of people in line at the target place is determined according to the number of people entering and leaving the target place in the first time period.

第一时间段的时间范围可根据实际需求设置,在一个示例中,可设置第一时间段为当前时刻之前的20分钟内,将当前时刻之前20分钟内目标场所的进入人数和离开人数之差,作为目标场所的当前排队人数。The time range of the first time period can be set according to actual needs. In an example, the first time period can be set to be within 20 minutes before the current time, and the difference between the number of people entering and the number of people leaving the target place within 20 minutes before the current time is calculated. , as the current queuing number of the target place.

在当前没有检测到目标检测区域中的面部人头目标框时(例如当前队伍较短未排至可拍摄区域或当前未排队时),仅依据目标检测区域的检测结果不能较好的衡量目标场所的排队情况,基于当前时刻之前的第一时间段内的进出人数,可比较准确的估算目标场所的当前排队人数。When the face and head target frame in the target detection area is not currently detected (for example, when the current queue is short and has not been queued to the shooting area or is not currently queued), only the detection results of the target detection area cannot be used to measure the target location. For the queuing situation, based on the number of people entering and leaving in the first time period before the current moment, the current number of people queuing at the target place can be estimated more accurately.

基于同一发明构思,本申请实施例提供了一种资源推荐方法,如图4所示,该资源推荐方法包括:Based on the same inventive concept, an embodiment of the present application provides a resource recommendation method, as shown in FIG. 4 , the resource recommendation method includes:

S401,对于多个目标场所,获取每个目标场所的当前排队人数、第二时间段内的进出人数、场所位置信息以及用户终端的请求信息。S401 , for a plurality of target places, obtain the current number of people in line, the number of people entering and leaving in the second time period, the location information of the places, and the request information of the user terminal for each target place.

当前排队人数为通过本申请实施例前述的检测方法确定出的当前排队人数;进出人数为通过本申请实施例前述的检测方法确定出的进出人数;用户终端的请求信息包括用户终端位置信息。The current queuing number is the current queuing number determined by the aforementioned detection method of the embodiment of the present application; the number of inbound and outgoing persons is the number of inbound and outbound persons determined by the aforementioned detection method of the embodiment of the present application; the request information of the user terminal includes the location information of the user terminal.

第二时间段可根据实际需求设置,例如可设置为当前时刻之前的10分钟内The second time period can be set according to actual needs, for example, it can be set within 10 minutes before the current time

S402,根据每个场所的当前排队人数、第二时间段内的进出人数、场所位置信息和用户位置信息,确定每个目标场所的推荐分值。S402: Determine the recommendation score of each target place according to the current number of people in line, the number of people entering and leaving in the second time period, the location information of the place, and the user's location information.

可选地,根据每个目标场所在第二时间段内的进出人数,确定每个目标场所的资源使用速度;根据用户终端位置信息和每个目标场所的场所位置信息,确定用户终端与每个目标场所的距离;根据每个目标场所的当前排队人数、资源使用速度、以及用户与每个目标场所的距离,确定每个目标场所的推荐分值。Optionally, according to the number of people entering and leaving each target place in the second time period, determine the resource usage speed of each target place; The distance of the target place; according to the current number of people queuing at each target place, the speed of resource usage, and the distance between the user and each target place, the recommended score of each target place is determined.

在一个可选的实施方式中,每个目标场所的资源使用速度均可以单位时长(例如每分钟)的离开人数来表示,具体地,目标场所的资源使用速度可通过如下方式确定:In an optional implementation manner, the resource usage speed of each target place can be represented by the number of people leaving per unit time (for example, per minute). Specifically, the resource usage speed of the target place can be determined as follows:

Figure BDA0002667379230000121
Figure BDA0002667379230000121

在表达式(2)中,v表示目标场所的资源使用速度,t表示第二时间段的时长(可根据实际需求赋值),h[-t:]表示当前之前的第二时间段内目标场所的离开人数。In expression (2), v represents the resource usage speed of the target site, t represents the duration of the second time period (which can be assigned according to actual needs), and h[-t:] represents the target site in the second time period before the current of the number of departures.

在一个可选的实施方式中,每个目标场所的推荐分值均可通过如下方式确定:In an optional embodiment, the recommendation score of each target location can be determined in the following manner:

Figure BDA0002667379230000122
Figure BDA0002667379230000122

在表达式(3)中,score表示目标场所的推荐分值,v表示目标场所的资源使用速度,h表示目标场所的当前排队人数,s表示用户终端与目标场所之间的距离,k为常数(可根据实际需求设置)。In expression (3), score represents the recommendation score of the target site, v represents the resource usage speed of the target site, h represents the current number of people in line at the target site, s represents the distance between the user terminal and the target site, and k is a constant (can be set according to actual needs).

表达式(3)可综合目标场所的资源使用速度v、当前排队人数h、以及用户终端与目标场所之间的距离s三个因素,确定推荐分值,使根据推荐分值确定的推荐方案更加符合实际用户需求。Expression (3) can combine the three factors of the resource use speed v of the target place, the current number of people in the queue h, and the distance s between the user terminal and the target place to determine the recommendation score, so that the recommendation scheme determined according to the recommendation score is more efficient. Meet actual user needs.

S403,根据推荐分值,确定出至少一个待推荐的目标场所向用户终端发送。S403, according to the recommendation score, determine at least one target place to be recommended and send it to the user terminal.

可选地,按推荐分值由大到小的顺序,选取排至少一个目标场所作为待推荐的目标场所向用户终端发送。在一个示例中,按推荐分值由大到小的顺序,选取前三个目标场所作为待推荐的目标场所向用户终端发送,以实现对用户推荐目标场所的目的。Optionally, in descending order of recommendation scores, at least one target place is selected and arranged as a target place to be recommended and sent to the user terminal. In an example, in descending order of recommendation scores, the first three target places are selected as the target places to be recommended and sent to the user terminal, so as to achieve the purpose of recommending the target places to the user.

可选地,如图5所示,本申请实施例提供的资源推荐方法,在上述步骤S401至S403的基础上,还包括如下步骤:Optionally, as shown in FIG. 5 , the resource recommendation method provided by the embodiment of the present application, on the basis of the above steps S401 to S403, further includes the following steps:

S404,对于每个待推荐的目标场所,根据场所位置信息和用户终端位置信息,确定出由用户终端当前位置至目标场所当前位置的至少一条路线,并向用户终端发送至少一条路线的路线信息。S404, for each target site to be recommended, according to site location information and user terminal location information, determine at least one route from the current location of the user terminal to the current location of the target site, and send the route information of the at least one route to the user terminal.

用户可通过用户终端的查询功能查询接收到的路线信息,根据路线信息选择适合自己的前往目标场所的路线。The user can query the received route information through the query function of the user terminal, and select a suitable route to the target place according to the route information.

在一个可选的实施方式中,向用户终端发送的至少一条路线的路线信息包括:至少一条路线上的景点信息。景点信息可帮助用户进行路线选择,若用户对某条路线上的景点感兴趣,可选择经过该景点的路线。In an optional implementation manner, the route information of the at least one route sent to the user terminal includes: scenic spot information on the at least one route. The scenic spot information can help the user to choose a route. If the user is interested in a scenic spot on a certain route, he can choose a route passing through the scenic spot.

基于同一发明构思,本申请实施例提供了一种检测系统,如图6所示,该检测系统包括:图像采集装置610和服务器620;图像采集装置610设置于目标场所,图像采集装置610与服务器620通信连接。Based on the same inventive concept, an embodiment of the present application provides a detection system. As shown in FIG. 6 , the detection system includes: an image acquisition device 610 and a server 620 ; the image acquisition device 610 is set at the target place, and the image acquisition device 610 and the server 620 communication connection.

图像采集装置610用于:采集目标场所的环境图像,并向服务器620发送环境图像;服务器620用于执行以实现本申请实施例提供目标场所人数的检测方法。The image collection device 610 is used for: collecting an environment image of the target place, and sending the environment image to the server 620; the server 620 is used for executing the method for detecting the number of people in the target place provided by the embodiment of the present application.

可选地,图像采集装置610可设置于目标场所的入口附近,镜头可朝向目标场所的外部以采集目标场所外部的环境图像,还可朝向目标场所的内部以采集目标场所内部的环境图像,可视目标场所的等待区的具体位置而定,可拍摄到目标场所的排队人群即可;每个目标场所的入口附近可设置一个或多个图像采集装置610。Optionally, the image capture device 610 can be arranged near the entrance of the target place, the lens can be directed to the outside of the target place to capture the environmental image outside the target place, and can also be directed to the inside of the target place to capture the environmental image inside the target place, or Depending on the specific location of the waiting area of the target place, it is sufficient to photograph the queuing crowd at the target place; one or more image capturing devices 610 may be arranged near the entrance of each target place.

在图2所示的示例中,图像采集装置610的镜头朝向目标场所的外部,为了能拍排队人群的队尾,图像采集装置610设置于方框201的前边线附近(即入口附近)。In the example shown in FIG. 2 , the lens of the image capture device 610 faces the outside of the target place. In order to capture the end of the queue, the image capture device 610 is installed near the front line of the box 201 (ie, near the entrance).

在一个可选的实施方式中,如图7所示,本申请实施例提供的检测系统还包括:用户终端630;用户终端630与服务器620通信连接。In an optional implementation manner, as shown in FIG. 7 , the detection system provided in this embodiment of the present application further includes: a user terminal 630 ; the user terminal 630 is connected in communication with the server 620 .

用户终端630用于:响应于针对目标场所的查询操作向服务器620发送请求信息,接收服务器620发送的至少一个待推荐的目标场所。The user terminal 630 is configured to: send request information to the server 620 in response to the query operation for the target place, and receive at least one target place to be recommended sent by the server 620 .

用户终端630在接收到针对目标场所的查询操作时,默认允许自身的位置信息被服务器620获取,在向服务器620发送请求信息时,将自身的位置信息携带于请求信息中一并向服务器620发送。When the user terminal 630 receives the query operation for the target place, it allows its own location information to be acquired by the server 620 by default, and when sending the request information to the server 620, it carries its own location information in the request information and sends it to the server 620 .

可选地,用户终端630还用于:接收服务器620发送的、由所述用户终端630当前位置至所述目标场所当前位置的至少一条路线的路线信息。Optionally, the user terminal 630 is further configured to: receive the route information of at least one route from the current position of the user terminal 630 to the current position of the target place sent by the server 620 .

可选地,用户终端630还用于:展示接收到的目标场所和路线信息。Optionally, the user terminal 630 is further configured to: display the received target location and route information.

用户通过用户终端630可实时查询所需的目标场所和路线信息,结合自身的情况选择合适的目标场所和路线。The user can query the desired target place and route information in real time through the user terminal 630, and select an appropriate target place and route according to his own situation.

本申请实施例中的用户终端可以是一个或多个。There may be one or more user terminals in this embodiment of the present application.

本申请实施例中的服务器620可包括:存储器和处理器,存储器与处理器电连接。The server 620 in this embodiment of the present application may include: a memory and a processor, and the memory and the processor are electrically connected.

存储器上存储有计算机程序,该计算机程序由处理器执行以实现本申请实施例所提供的任一目标场所人数的检测方法或任一资源推荐方法。A computer program is stored in the memory, and the computer program is executed by the processor to implement any method for detecting the number of people in a target place or any method for recommending resources provided by the embodiments of the present application.

本技术领域技术人员可以理解,本申请实施例提供的服务器可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何类型的介质中。Those skilled in the art can understand that the server provided by the embodiments of the present application may be specially designed and manufactured for the required purpose, or may also include known devices in a general-purpose computer. These devices have computer programs stored in them that are selectively activated or reconfigured. Such a computer program may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and separately coupled to a bus.

本申请在一个可选实施例中提供了一种服务器,如图8所示,该服务器620包括:存储器621和处理器622,存储器621和处理器622电连接,如通过总线623连接。In an optional embodiment of the present application, a server is provided. As shown in FIG. 8 , the server 620 includes: a memory 621 and a processor 622 , and the memory 621 and the processor 622 are electrically connected, such as through a bus 623 .

可选的,存储器621用于存储执行本申请方案的应用程序代码,并由处理器622来控制执行。处理器622用于执行存储器621中存储的应用程序代码,以实现本申请实施例提供的任一目标场所人数的检测方法或任一资源推荐方法。Optionally, the memory 621 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 622 . The processor 622 is configured to execute the application program code stored in the memory 621 to implement any method for detecting the number of people in a target place or any method for recommending resources provided by the embodiments of the present application.

存储器621可以是ROM(Read-Only Memory,只读存储器)或可存储静态信息和指令的其他类型的静态存储设备,可以是RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM(Electrically ErasableProgrammable Read Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact DiscRead-Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 621 can be a ROM (Read-Only Memory, read-only memory) or other types of static storage devices that can store static information and instructions, and can be a RAM (Random Access Memory, random access memory) or can store information and instructions. Other types of dynamic storage devices can also be EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other CD-ROM storage, CD-ROM storage ( including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being stored by a computer any other medium taken, but not limited to this.

处理器622可以是CPU(Central Processing Unit,中央处理器)、通用处理器,DSP(Digital Signal Processor,数据信号处理器)、ASIC(Application SpecificIntegrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器622也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 622 may be a CPU (Central Processing Unit, central processing unit), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, an application-specific integrated circuit), an FPGA (Field-Programmable Gate Array) , field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure. The processor 622 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

总线623可包括一通路,在上述组件之间传送信息。总线可以是PCI(PeripheralComponent Interconnect,外设部件互连标准)总线或EISA(Extended Industry StandardArchitecture,扩展工业标准结构)总线。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 623 may include a path to transfer information between the aforementioned components. The bus may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.

可选地,服务器620还可以包括收发器624。收发器624可用于信号的接收和发送。收发器624可以允许服务器620与其他设备进行无线或有线通信以交换数据。需要说明的是,实际应用中收发器624不限于一个。Optionally, server 620 may also include transceiver 624 . The transceiver 624 may be used for the reception and transmission of signals. The transceiver 624 may allow the server 620 to communicate wirelessly or by wire with other devices to exchange data. It should be noted that, in practical applications, the transceiver 624 is not limited to one.

可选地,服务器620还可以包括输入单元625。输入单元625可用于接收输入的数字、字符、图像和/或声音信息,或者产生与服务器620的用户设置以及功能控制有关的键信号输入。输入单元625可以包括但不限于触摸屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、拍摄装置、拾音器等中的一种或多种。Optionally, the server 620 may further include an input unit 625 . The input unit 625 may be used to receive input numbers, characters, images and/or sound information, or generate key signal input related to user settings and function control of the server 620 . The input unit 625 may include, but is not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, cameras, pickups, and the like.

可选地,服务器620还可以包括输出单元626。输出单元626可用于输出或展示经过处理器622处理的信息。输出单元626可以包括但不限于显示装置、扬声器、振动装置等中的一种或多种。Optionally, the server 620 may further include an output unit 626 . The output unit 626 may be used to output or display the information processed by the processor 622 . The output unit 626 may include, but is not limited to, one or more of a display device, a speaker, a vibration device, and the like.

虽然图8示出了具有各种装置的服务器620,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。While FIG. 8 shows the server 620 having various devices, it should be understood that not all of the illustrated devices are required to be implemented or available. More or fewer devices may alternatively be implemented or provided.

基于同一发明构思,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例所提供的任一目标场所人数的检测方法或任一资源推荐方法。Based on the same inventive concept, the embodiments of the present application provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any object provided by the embodiments of the present application is realized The method of detecting the number of people in the venue or the method recommended by any resource.

该计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM、RAM、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。The computer-readable medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM, RAM, EPROM (Erasable Programmable Read-Only Memory, Erasable Programmable Read-Only Memory) memory), EEPROM, flash memory, magnetic or optical cards. That is, a readable medium includes any medium that stores or transmits information in a form that can be read by a device (eg, a computer).

本申请实施例提供了一种计算机可读存储介质适用于上述任一目标场所人数的检测方法或任一资源推荐方法,在此不再赘述。An embodiment of the present application provides a computer-readable storage medium suitable for any of the above-mentioned methods for detecting the number of people in a target place or any method for recommending resources, and details are not described herein again.

应用本申请实施例,至少能够实现如下有益效果:By applying the embodiments of the present application, at least the following beneficial effects can be achieved:

1)本申请实施例可基于目标场所的环境图像,确定目标检测区域及其中的面部人头目标框和非面部人头目标框,实现对目标检测区域中的人头目标框的精确识别;基于精确识别出的面部人头目标框和非面部人头目标框的数量,可精确地确定出任意时间段内目标场所的进出人数,为用户选择目标场所提供较精确的参考数据,便于用户快速做出更适合自己的选择,减少用户的选择时间和资源的浪费。1) The embodiment of the present application can determine the target detection area and the facial head target frame and the non-face head target frame based on the environmental image of the target place, so as to realize the accurate identification of the head target frame in the target detection area; The number of face head target frames and non-face head target frames can accurately determine the number of people entering and leaving the target place in any time period, providing more accurate reference data for users to select the target place, so that users can quickly make more suitable for themselves. Select, reduce the waste of user selection time and resources.

2)本申请实施例基于面部人头目标框和非面部人头目标框的数量确定任意时间段内目标场所的进出人数时,可根据人头目标框与参考标记的重合与否、前后两帧人头目标框的交并比以及前后两帧人头目标框的相对方向,精确识别每个人头目标框的移动方向,进而确定出目标场所的进入人数和离开人数。2) When the embodiment of the present application determines the number of people entering and leaving the target place in any time period based on the number of the face head target frame and the non-face head target frame, it can be based on whether the head target frame and the reference mark coincide or not, and the two frames before and after the head target frame. The intersection ratio and the relative direction of the head target frame in the two frames before and after can accurately identify the moving direction of each head target frame, and then determine the number of people entering and leaving the target place.

3)本申请实施例基于精确识别出的面部人头目标框的数量,可精确地确定出目标场所的当前排队人数;在没有识别出面部人头目标框的情形下,可基于之前的第一时间段内目标场所的进出人数,较为精确地估算出目标场所的当前排队人数,为用户选择目标场所提供较精确的参考数据,便于用户快速做出更适合自己的选择,减少用户的选择时间和资源的浪费。3) The embodiment of the present application can accurately determine the number of people currently queuing at the target place based on the number of accurately identified face and head target frames; in the case where the face and head target frame is not identified, it can be based on the previous first time period. The number of people entering and leaving the target place can more accurately estimate the current number of people queuing in the target place, and provide more accurate reference data for users to select the target place, which is convenient for users to quickly make more suitable choices for themselves, and reduce the time and resources for users to choose. waste.

4)本申请实施例在确定每个人头目标框是否为面部人头目标框或非部人头目标框时,可参照与当前人头目标框相邻的第一数量个人头目标框的类型,使当前人头目标框的类型确定为与相邻的人头目标框类型一致,避免单独对某个人头目标框进行识别时可能出现的错误识别,使识别结果更加准确。4) When determining whether each head target frame is a facial head target frame or a non-human head target frame in the embodiment of the present application, the type of the first number of head target frames adjacent to the current head target frame can be referred to, so that the current head target frame is The type of the target frame is determined to be consistent with the type of the adjacent human head target frame, so as to avoid possible erroneous recognition when a certain head target frame is identified alone, so that the recognition result is more accurate.

5)本申请实施例可基于目标场所的人数信息(当前排队人数和第二时间段内的进出人数)、场所位置信息和用户终端位置信息,确定每个场所的推荐分值,根据推荐分值,向用户终端推荐合适的目标场所作为参考,使用户可以结合自身情况更快地选择合适的目标场所,为用户提供了很大的便利,节省了用户的时间。5) This embodiment of the present application can determine the recommended score of each place based on the number of people in the target place (the current number of people in queue and the number of people entering and leaving in the second time period), the location information of the place, and the location information of the user terminal. , recommending a suitable target place to the user terminal as a reference, so that the user can select a suitable target place more quickly according to his own situation, which provides great convenience for the user and saves the user's time.

本技术领域技术人员可以理解,本申请中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本申请中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本申请中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that various operations, methods, steps, measures, and solutions in the process discussed in this application may be alternated, modified, combined or deleted. Further, other steps, measures, and solutions in the various operations, methods, and processes that have been discussed in this application may also be alternated, modified, rearranged, decomposed, combined, or deleted. Further, steps, measures and solutions in the prior art with various operations, methods, and processes disclosed in this application may also be alternated, modified, rearranged, decomposed, combined or deleted.

在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present application, it should be understood that the terms "first" and "second" are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of this application, unless stated otherwise, "plurality" means two or more.

应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.

以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.

Claims (10)

1. A method for detecting the number of people in a target place is characterized by comprising the following steps:
acquiring an environment image of a target place;
determining a target detection area in the environment image;
determining a facial human head target frame and a non-facial human head target frame in the target detection area;
and determining the number of people entering and exiting the target place in any time period according to the facial head target frame and the non-facial head target frame of each target detection area in the time period.
2. The method according to claim 1, wherein the determining the number of people entering and exiting the target location in any time period according to the target frame of the facial head and the target frame of the non-facial head of each target detection area in the time period comprises:
for each of the facial human head target frame and the non-facial human head target frame, determining whether the human head target frame simultaneously satisfies the following conditions within any time period: the human head target frame and a reference mark in the environment image are provided with a superposition part; the intersection ratio of the human head target frame of each frame and the human head target frame of the previous frame is greater than an intersection ratio threshold value; the human head target frame of each frame is in the appointed direction of the human head target frame of the previous frame;
if the head target frame meets the conditions in the time period, determining the moving direction of the head target frame as entering or leaving the target place;
and determining the number of the entering persons and the number of the leaving persons of the target place in the time period according to the number of the head target frames entering or leaving the target place in the time period.
3. The detection method according to claim 1, further comprising:
and determining the current queuing number of the target place according to the number of the face head target frames or the number of the people entering or exiting the target place in the first time period.
4. The detection method according to any one of claims 1 to 3, wherein the determining of the facial human head target frame and the non-facial human head target frame in the target detection region comprises:
cutting out a sub-environment image containing the target detection area from the environment image;
determining each human head target frame in the sub-environment image according to a human head detection algorithm;
determining a human head target frame positioned in the target detection area range from the human head target frames of the sub-environment images;
and recognizing a facial human head target frame and a non-facial human head target frame in each human head target frame in the target detection area according to a human face recognition algorithm.
5. The detection method according to claim 4, wherein the identifying of the facial head target frame and the non-facial head target frame in each head target frame in the target detection area according to a face recognition algorithm comprises:
for each human head target frame in the target detection area, identifying whether the current human head target frame and a first number of human head target frames adjacent to the current human head target frame are equal-face human head target frames or not according to the face recognition algorithm;
if the current human head target frame and a first number of human head target frames adjacent to the current human head target frame are both facial human head target frames, determining that the current human head target frame is a facial human head target frame;
if the current human head target frame is a facial human head target frame and the first number of human head target frames adjacent to the current human head target frame are all non-facial human head target frames, determining that the current human head target frame is a non-facial human head target frame;
if the current human head target frame and a first number of human head target frames adjacent to the current human head target frame are non-facial human head target frames, determining that the current human head target frame is a non-facial human head target frame;
and if the current human head target frame is a non-facial human head target frame and the first number of human head target frames adjacent to the current human head target frame are all facial human head target frames, determining that the current human head target frame is a facial human head target frame.
6. A resource recommendation method, comprising:
for a plurality of target places, acquiring the current queuing number of people, the number of people who enter and exit in a second time period, place position information and request information of a user terminal of each target place; the current queuing number is the current queuing number determined by the detection method of any one of claims 3-5; the number of people who pass in and out is determined by the detection method of any one of claims 1-5; the request information comprises user terminal position information;
determining a recommended score of each target place according to the current queuing number of people, the number of people who enter and exit in the second time period, the place position information and the user position information of each place;
and determining at least one target place to be recommended to send to the user terminal according to the recommendation score.
7. The resource recommendation method according to claim 6, wherein the determining a recommendation score for each of the target sites according to the current number of people in line for each of the sites, the number of people coming in and going out in the second time period, the site location information, and the user location information comprises:
determining the resource use speed of each target place according to the number of people who enter and exit each target place in the second time period;
determining the distance between the user terminal and each target place according to the position information of the user terminal and the position information of each target place;
and determining the recommendation score of each target place according to the current queuing number of people, the resource using speed and the distance between the user and each target place.
8. The resource recommendation method according to claim 6 or 7, further comprising:
and for each target place to be recommended, determining at least one route from the current position of the user terminal to the current position of the target place according to the place position information and the position information of the user terminal, and sending the route information of the at least one route to the user terminal.
9. A detection system, comprising: an image acquisition device and a server;
the image acquisition device is arranged at a target place and is in communication connection with the server;
the image acquisition device is used for: acquiring an environment image of a target place, and sending the environment image to the server;
the server is used for executing the method for detecting the number of people entering or leaving the target place according to any one of claims 1-5.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the method for detecting the number of people coming in and out of a target place according to any one of claims 1 to 5 or the method for recommending resources according to any one of claims 6 to 8.
CN202010923053.6A 2020-09-04 2020-09-04 Method for detecting number of people in target place, recommendation method, detection system and medium Pending CN112036345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010923053.6A CN112036345A (en) 2020-09-04 2020-09-04 Method for detecting number of people in target place, recommendation method, detection system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010923053.6A CN112036345A (en) 2020-09-04 2020-09-04 Method for detecting number of people in target place, recommendation method, detection system and medium

Publications (1)

Publication Number Publication Date
CN112036345A true CN112036345A (en) 2020-12-04

Family

ID=73590738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010923053.6A Pending CN112036345A (en) 2020-09-04 2020-09-04 Method for detecting number of people in target place, recommendation method, detection system and medium

Country Status (1)

Country Link
CN (1) CN112036345A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587035A (en) * 2020-12-08 2021-04-02 珠海市一微半导体有限公司 Control method and system for mobile robot to recognize working scene
CN113192048A (en) * 2021-05-17 2021-07-30 广州市勤思网络科技有限公司 Multi-mode fused people number identification and statistics method
CN113269065A (en) * 2021-05-14 2021-08-17 深圳印像数据科技有限公司 Method for counting people flow in front of screen based on target detection algorithm
CN113570626A (en) * 2021-09-27 2021-10-29 腾讯科技(深圳)有限公司 Image cropping method and device, computer equipment and storage medium
CN113995316A (en) * 2021-09-28 2022-02-01 珠海格力电器股份有限公司 Method and device for determining cooking amount, storage medium and electronic equipment
CN114842416A (en) * 2022-04-27 2022-08-02 杭州海康威视数字技术股份有限公司 Method for counting number of targets in region, and method and device for training region recognition model
CN117789342A (en) * 2024-02-28 2024-03-29 南方电网调峰调频发电有限公司工程建设管理分公司 Tunnel object entry and exit statistics method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844234A (en) * 2016-03-21 2016-08-10 商汤集团有限公司 Method and equipment for counting people based on head and shoulder detection
CN111160169A (en) * 2019-12-18 2020-05-15 中国平安人寿保险股份有限公司 Face detection method, device, equipment and computer readable storage medium
WO2020125406A1 (en) * 2018-12-20 2020-06-25 Oppo广东移动通信有限公司 Safety guardianship method, apparatus, terminal and computer readable storage medium
CN111382719A (en) * 2020-03-18 2020-07-07 浙江新再灵科技股份有限公司 Vertical ladder personnel wearing mask monitoring method for epidemic prevention and control
CN111461086A (en) * 2020-03-18 2020-07-28 深圳北斗应用技术研究院有限公司 People counting method and system based on head detection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844234A (en) * 2016-03-21 2016-08-10 商汤集团有限公司 Method and equipment for counting people based on head and shoulder detection
WO2020125406A1 (en) * 2018-12-20 2020-06-25 Oppo广东移动通信有限公司 Safety guardianship method, apparatus, terminal and computer readable storage medium
CN111160169A (en) * 2019-12-18 2020-05-15 中国平安人寿保险股份有限公司 Face detection method, device, equipment and computer readable storage medium
CN111382719A (en) * 2020-03-18 2020-07-07 浙江新再灵科技股份有限公司 Vertical ladder personnel wearing mask monitoring method for epidemic prevention and control
CN111461086A (en) * 2020-03-18 2020-07-28 深圳北斗应用技术研究院有限公司 People counting method and system based on head detection

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587035A (en) * 2020-12-08 2021-04-02 珠海市一微半导体有限公司 Control method and system for mobile robot to recognize working scene
CN113269065A (en) * 2021-05-14 2021-08-17 深圳印像数据科技有限公司 Method for counting people flow in front of screen based on target detection algorithm
CN113269065B (en) * 2021-05-14 2023-02-28 深圳印像数据科技有限公司 Method for counting people flow in front of screen based on target detection algorithm
CN113192048A (en) * 2021-05-17 2021-07-30 广州市勤思网络科技有限公司 Multi-mode fused people number identification and statistics method
CN113570626A (en) * 2021-09-27 2021-10-29 腾讯科技(深圳)有限公司 Image cropping method and device, computer equipment and storage medium
CN113995316A (en) * 2021-09-28 2022-02-01 珠海格力电器股份有限公司 Method and device for determining cooking amount, storage medium and electronic equipment
CN114842416A (en) * 2022-04-27 2022-08-02 杭州海康威视数字技术股份有限公司 Method for counting number of targets in region, and method and device for training region recognition model
CN117789342A (en) * 2024-02-28 2024-03-29 南方电网调峰调频发电有限公司工程建设管理分公司 Tunnel object entry and exit statistics method and device

Similar Documents

Publication Publication Date Title
CN112036345A (en) Method for detecting number of people in target place, recommendation method, detection system and medium
WO2019149056A1 (en) Identity authentication method, system, device and apparatus
WO2020038140A1 (en) Facial recognition method and device
JP6104454B2 (en) Clustering method, apparatus, and terminal device
RU2664003C2 (en) Method and device for determining associate users
WO2018192448A1 (en) People-credentials comparison authentication method, system and camera
WO2019148491A1 (en) Human-computer interaction method and device, robot, and computer readable storage medium
CN108241434A (en) Man-machine interaction method, device, medium and mobile terminal based on depth of view information
AU2020309094B2 (en) Image processing method and apparatus, electronic device, and storage medium
CN114168644A (en) Interaction method, equipment and system for exhibition scene
CN109670458A (en) A kind of licence plate recognition method and device
CN105335714B (en) Photo processing method, device and equipment
CN109360197A (en) Processing method, device, electronic equipment and the storage medium of image
KR20210124313A (en) Interactive object driving method, apparatus, device and recording medium
WO2021052008A1 (en) Screen projection method and system
JP2019133437A (en) Information processing device, system, information processing device control method, and program
CN113269913B (en) Portable multifunctional epidemic prevention detector
WO2024001617A1 (en) Method and apparatus for identifying behavior of playing with mobile phone
WO2021051580A1 (en) Grouping batch-based picture detection method and apparatus, and storage medium
CN115359789B (en) Voice interaction method, related device, equipment and storage medium
CN113724454B (en) Interaction method of mobile equipment, device and storage medium
CN113205069B (en) False license plate detection method and device and computer storage medium
CN116206481A (en) Method and device for associating parking space availability information
WO2022257306A1 (en) Identity identification method and apparatus, electronic device, and storage medium
KR20230094062A (en) Face recognition system and method for controlling the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination