CN113887533A - People number detection method, device, equipment and storage medium - Google Patents

People number detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN113887533A
CN113887533A CN202111411316.6A CN202111411316A CN113887533A CN 113887533 A CN113887533 A CN 113887533A CN 202111411316 A CN202111411316 A CN 202111411316A CN 113887533 A CN113887533 A CN 113887533A
Authority
CN
China
Prior art keywords
area
people
image information
single person
determining
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
CN202111411316.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111411316.6A priority Critical patent/CN113887533A/en
Publication of CN113887533A publication Critical patent/CN113887533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Alarm Systems (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for detecting the number of people, wherein the method is used for acquiring image information of an area to be detected; extracting the image information to obtain at least one motion area; determining a movement area which accords with a preset size as an area where a single person is located; the image information is marked in the region where each single person is located, the number of people in the region to be detected is determined according to the region where each single person is located, a large amount of manpower is not required to be consumed, and the image information is compared with the manpower, the counting time is shortened, the efficiency is improved, meanwhile, the error caused by manual counting is reduced, and the accuracy of number detection is improved.

Description

People number detection method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting a number of people.
Background
In public places in daily life, the conditions of crowd gathering and people flow increasing exist, and under the conditions, people counting is needed to manage and control the crowd so as to ensure the safety and stability of the public places.
At present, people counting mainly depends on manual identification, people counting and people flow prediction are carried out manually, and whether corresponding measures need to be taken or not is judged according to experience so as to adjust and plan the number of people in public places.
However, the prior art only relies on manual statistics to have the problem of inaccurate results, and the statistics workload is large and the efficiency is low.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for detecting the number of people, which are used for solving the technical problems that the result is inaccurate only by manual statistics, the statistics workload is large and the efficiency is low in the prior art.
In a first aspect, the present application provides a method for detecting a number of people, comprising:
acquiring image information of a region to be detected;
extracting the image information to obtain at least one motion area;
determining a movement area which accords with a preset size as an area where a single person is located;
marking the area where each single person is located on the image information, and determining the number of people in the area to be detected according to the area where each single person is located.
Here, when the embodiment of the application performs people number detection, image information of an area to be detected can be obtained, the image information can be video information, the image information can also be a set of picture information and video information, motion areas can be extracted through extraction of the image information, people can be preliminarily identified according to the motion areas, then the size of each motion area is judged, when the motion areas are similar to the size of people, one person can be considered to pass through the motion areas, so that the number of people can be accurately estimated, the identified area where the one person is located is marked, the total number of people is determined, here, manual statistics is not needed, only the image information of the area to be detected is obtained, the number of people in the image and the number of people in the current area after the number of people marking can be automatically obtained without consuming a large amount of manpower, and compared with manual statistics, the counting time is reduced, the efficiency is improved, and simultaneously, the error that artifical statistics brought has been reduced, the accuracy that the number detected has been improved.
Optionally, the determining the movement area conforming to the preset size as the area where the single person is located includes:
and if the difference value between the size of the single motion area and the size of the preset single person is within a preset range, determining that the single motion area is the area where the single person is located.
Here, when the determination of the area where a single person is located is performed, each movement area is compared with a preset single person size, if the difference is within a preset range, it can be determined that a single person is included in the single movement area, and then the movement area can be determined as the area where a unit is located, and the location where each person is located can be accurately determined.
Optionally, the determining the movement area conforming to the preset size as the area where the single person is located includes:
if the size of a single motion area is larger than 2 times of the size of a preset single person, determining that the single motion area comprises a plurality of single persons;
and carrying out segmentation processing on the motion area to obtain a plurality of single person areas.
Here, the embodiment of the application can perform segmentation processing on a motion area 2 times larger than a preset single size, and aims to adopt the priori knowledge of the size of a human body to segment one motion area into a plurality of single areas when a plurality of people are close to each other, so as to prevent the interference of the aggregation of a plurality of people on the result of the people number detection and further improve the accuracy of the people number detection.
Optionally, the acquiring image information of the region to be detected includes:
receiving image information sent by a monitoring system, wherein the image information is pictures and/or videos shot by the monitoring system.
The embodiment of the application can acquire the pictures and/or videos sent by the monitoring equipment, process the acquired image information of the monitoring system, quickly identify the number of people in the monitoring area of the monitoring system, detect the number of people in real time and improve the efficiency of detecting the number of people.
Optionally, after receiving the image information sent by the monitoring system, the method further includes:
according to the format and the file size of the image information, packaging the image information to obtain image information to be processed;
correspondingly, the extracting the image information includes:
and extracting the image information to be processed.
After the image information is acquired, the image information is firstly packaged into a data format required by intelligent extraction according to the format of the uploaded file, the size of the file and the like, so that the image information is conveniently extracted, and the people number detection efficiency is further improved.
Optionally, after determining the number of people in the area to be detected according to the area where each single person is located, the method further includes:
and carrying out format conversion and packaging processing on the image information after the annotation to obtain a playable annotation image.
Here, after the labeled image information is obtained, format conversion and encapsulation processing can be performed on the labeled image information, so that online playing can be supported, user experience is improved, and a user can conveniently, intuitively and rapidly master the number of people in the area to be detected.
Optionally, after obtaining the playable annotation image, the method further includes:
packaging the marked image and/or the number of people in the area to be detected to obtain information of the number of people to be sent;
and sending the information of the number of people to be sent to a receiving system.
Here, after the playable annotation image is acquired, the annotation image and/or the number of people in the area to be detected can be packaged and sent to the receiving system, so that the receiving system side can grasp the number of people and process the flow of people, user experience is further improved, and the safety of the area to be detected is ensured.
Optionally, after determining the number of people in the area to be detected according to the area where each single person is located, the method further includes:
and planning the pedestrian flow of the area to be detected according to the marked image information and the number of people.
Here, after the number of people in the area to be detected is marked and determined, the flow of people can be planned according to the marked image information and the number of people so as to judge whether potential safety hazards exist, timely flow guiding and limiting are achieved, and the safety of the people in the area to be detected is improved.
In a second aspect, the present application provides a people number detection apparatus, comprising:
the acquisition module is used for acquiring the image information of the area to be detected;
the extraction module is used for extracting the image information to obtain at least one motion area;
the determining module is used for determining the motion area which accords with the preset size as the area where the single person is located;
and the first processing module is used for marking the area where each single person is located on the image information and determining the number of people in the area to be detected according to the area where each single person is located.
Optionally, the determining module is specifically configured to:
and if the difference value between the size of the single motion area and the size of the preset single person is within a preset range, determining that the single motion area is the area where the single person is located.
Optionally, the determining module is further configured to:
if the size of a single motion area is larger than 2 times of the size of a preset single person, determining that the single motion area comprises a plurality of single persons;
and carrying out segmentation processing on the motion area to obtain a plurality of single person areas.
Optionally, the obtaining module is specifically configured to:
receiving image information sent by a monitoring system, wherein the image information is pictures and/or videos shot by the monitoring system.
Optionally, after the obtaining module receives the image information sent by the monitoring system, the apparatus further includes:
the second processing module is used for packaging the image information according to the format and the file size of the image information to obtain image information to be processed;
correspondingly, the extraction module is specifically configured to:
and extracting the image information to be processed.
Optionally, after the first processing module determines the number of people in the area to be detected according to the area where each single person is located, the apparatus further includes:
and the third processing module is used for carrying out format conversion and packaging processing on the image information after the annotation to obtain a playable annotation image.
Optionally, after the third processing module obtains the playable annotation image, the apparatus further includes:
the sending module is used for packaging the number of people in the marked image and/or the area to be detected to obtain the information of the number of people to be sent;
and sending the information of the number of people to be sent to a receiving system.
Optionally, after the first processing module determines the number of people in the area to be detected according to the area where each single person is located, the apparatus further includes:
and the planning module is used for planning the pedestrian flow of the area to be detected according to the marked image information and the number of people.
In a third aspect, the present application provides a people number detection apparatus comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method for people detection as described above in the first aspect and in various possible designs of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the people detection method according to the first aspect and various possible designs of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method for detecting a number of persons as described above in the first aspect and in various possible designs of the first aspect.
The application provides a method, a device, a server and a storage medium for detecting the number of people, wherein the method
When people number detection is carried out, image information of an area to be detected can be obtained, the image information can be video information, the image information can also be a set of picture information and video information, motion areas can be extracted through extraction of the image information, people can be preliminarily identified according to the motion areas, the size of each motion area is judged, when the motion areas are similar to the size of people, one person can pass through the motion areas, people number can be accurately estimated, the area where the identified person is located is marked, the total number of people is determined, here, manual statistics is not needed, only the image information of the area to be detected is obtained, the number-marked image and the number of people in the current area can be automatically obtained, a large amount of manpower is not needed, compared with manual work, the counting time is reduced, and the efficiency is improved, meanwhile, errors caused by manual statistics are reduced, and accuracy of people number detection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a system architecture for detecting a number of people according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a method for detecting a number of people according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of another method for detecting a number of people according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating another method for detecting a number of people according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a device for detecting a number of people according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a person number detection device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terms "first," "second," "third," and "fourth," if any, in the description and claims of this application and the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In public places in life, public places with extremely large pedestrian flow often exist, people need to count the pedestrian flow, the regional flow and the number of people in core regions, for example, a monitoring system of public places such as airports, stations, exhibitions, exhibition halls, scenic spots, schools, stadiums and the like needs to monitor the pedestrian flow, guide and limit flow in time, and warn potential safety hazards such as excessively dense crowds in the core regions; shopping malls and stores need to count the flow of people going in and out, and analyze areas where consumers focus on and stay so as to support the applications of store planning, passenger group diversion, goods display optimization, store address selection, purchase, sale, inventory management and the like; aiming at passenger vehicles, the number of passengers getting on or off the vehicle and passengers in the vehicle need to be monitored in real time, the passenger flow of a station and the overload condition in the vehicle are analyzed, and an accurate reference basis is provided for line planning and platform design. However, the current method for collecting the number of people is difficult, the counting number is inaccurate only by manual counting, the counting workload is large, the efficiency is low, and a large amount of manpower is consumed.
In order to solve the above technical problem, embodiments of the present application provide a method, an apparatus, a server, and a storage medium for detecting a number of people, which can automatically extract a moving area in image information, identify the number of people according to the moving area, label people in the image, and accurately and quickly extract the number of people.
Optionally, fig. 1 is a schematic diagram of a people number detection system according to an embodiment of the present disclosure. As shown in fig. 1, the architecture includes a monitoring system 101, a server 102, and a receiving system 103.
The monitoring system 101 may be a monitoring camera in any area, and may collect image information in real time. The monitoring system 101 may send image information to the server 102.
The server 102 can automatically extract the motion area in the image information, and can identify the number of people according to the motion area and label the people in the image, so that the number of people can be accurately and quickly extracted.
The receiving system 103 can be a client of a user, or a security system in an area such as an enterprise, a government, a market, or the like, or a client of security personnel, and the receiving system 103 can receive the number information sent by the server 102, and judge whether potential safety hazards exist according to the number information, so as to achieve timely flow guiding and flow limiting.
Alternatively, the server 102 may be in communication with the monitoring system 101 and the receiving system 103, respectively.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the architecture of the human number detection system. In other possible embodiments of the present application, the foregoing architecture may include more or less components than those shown in the drawings, or combine some components, or split some components, or arrange different components, which may be determined according to practical application scenarios, and is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that along with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The technical solutions of the present application are described below with several embodiments as examples, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a flowchart illustrating a method for detecting a number of people according to an embodiment of the present application, where an execution subject according to the embodiment of the present application may be the server 102 in the embodiment shown in fig. 1, and a specific execution subject may be determined according to an actual application scenario. As shown in fig. 2, the method comprises the steps of:
s201: and acquiring image information of the area to be detected.
Optionally, acquiring image information of the to-be-detected region includes:
and receiving image information sent by the monitoring system, wherein the image information is pictures and/or videos shot by the monitoring system.
Optionally, after receiving the transmitted image information of the monitoring system, the method further includes: and packaging the image information according to the format and the file size of the image information to obtain the image information to be processed.
Correspondingly, the extraction processing of the image information comprises the following steps: and extracting the image information to be processed.
Optionally, the monitoring system in a person-intensive location such as a bank outlet or a mall uploads the collected pictures or videos, the file stream is transmitted through a network communication device, the network communication device is a data interface implemented by using json language based on a HyperText Transfer Protocol (HTTP), and the data interface defines parameters such as a file format and a file type which need to be uploaded.
Optionally, the data stream processed by the people counting service may be returned to the information receiver in json form through the network communication device, and the system receiving the data may directly display the identified people, or may analyze the data through an integrated third-party system and apply the analyzed data.
After the image information is acquired, the image information is firstly packaged into a data format required by intelligent extraction according to the format of the uploaded file, the size of the file and the like, so that the image information is conveniently extracted, and the people number detection efficiency is further improved.
The embodiment of the application can acquire the pictures and/or videos sent by the monitoring equipment, process the acquired image information of the monitoring system, quickly identify the number of people in the monitoring area of the monitoring system, detect the number of people in real time and improve the detection efficiency of the number of people.
Alternatively, the acquiring of the image information of the region to be detected may be acquiring the image information by a camera.
S202: and extracting the image information to obtain at least one motion area.
In some possible implementations, the motion region may be extracted with respect to video information, or may be extracted with reference to multiple pieces of picture information.
Alternatively, the extraction process may be performed by a previously trained motion region extraction model.
Alternatively, the extraction process may be performed by a motion region extraction algorithm based on accumulated difference and mathematical morphology processing.
S203: and determining the motion area conforming to the preset size as the area where the single person is located.
Optionally, determining the movement area conforming to the preset size as the area where the single person is located includes:
and if the difference value between the size of the single motion area and the size of the preset single person is within the preset range, determining the single motion area as the area where the single person is located.
Here, when the determination of the area where a single person is located is performed, each movement area is compared with a preset single person size, if the difference is within a preset range, it can be determined that a single person is included in the single movement area, and then the movement area can be determined as the area where a unit is located, and the location where each person is located can be accurately determined.
Optionally, determining the movement area conforming to the preset size as the area where the single person is located includes:
if the size of the single motion area is larger than 2 times of the size of the preset single person, determining that the single motion area comprises a plurality of single persons; and performing segmentation processing on the motion area to obtain a plurality of single person areas.
Here, the embodiment of the application can perform segmentation processing on a motion area 2 times larger than a preset single size, and aims to adopt the priori knowledge of the size of a human body to segment one motion area into a plurality of single areas when a plurality of people are close to each other, so as to prevent the interference of the aggregation of a plurality of people on the result of the people number detection and further improve the accuracy of the people number detection.
S204: and marking the area where each single person is located on the image information, and determining the number of people in the area to be detected according to the area where each single person is located.
Optionally, after determining the number of people in the area to be detected according to the area where each single person is located, the method further includes: and planning the pedestrian flow of the area to be detected according to the marked image information and the number of people.
Here, after the number of people in the area to be detected is marked and determined, the flow of people can be planned according to the marked image information and the number of people so as to judge whether potential safety hazards exist, timely flow guiding and limiting are achieved, and the safety of the people in the area to be detected is improved.
Here, when the embodiment of the application performs people number detection, image information of an area to be detected can be obtained, the image information can be video information, the image information can also be a set of picture information and video information, motion areas can be extracted through extraction of the image information, people can be preliminarily identified according to the motion areas, then the size of each motion area is judged, when the motion areas are similar to the size of people, one person can be considered to pass through the motion areas, so that the number of people can be accurately estimated, the identified area where the one person is located is marked, the total number of people is determined, here, manual statistics is not needed, only the image information of the area to be detected is obtained, the number of people in the image and the number of people in the current area after the number of people marking can be automatically obtained without consuming a large amount of manpower, and compared with manual statistics, the counting time is reduced, the efficiency is improved, and simultaneously, the error that artifical statistics brought has been reduced, the accuracy that the number detected has been improved.
Optionally, in the embodiment of the present application, the image information after being labeled may also be processed to facilitate playing and viewing, and correspondingly, fig. 3 is a schematic flow chart of another method for detecting the number of people provided in the embodiment of the present application, as shown in fig. 3, the method includes:
s301: and acquiring image information of the area to be detected.
S302: and extracting the image information to obtain at least one motion area.
S303: and determining the motion area conforming to the preset size as the area where the single person is located.
S304: and marking the area where each single person is located on the image information, and determining the number of people in the area to be detected according to the area where each single person is located.
S305: and carrying out format conversion and packaging processing on the image information after the annotation to obtain a playable annotation image.
Optionally, after obtaining the playable annotation image, the method further includes:
packaging the number of people in the marked image and/or the area to be detected to obtain the information of the number of people to be sent; and sending the information of the number of people to be sent to a receiving system.
Optionally, the picture Format may be converted into a jpg picture Format or an image file storage Format (PNG) through Format conversion and packaging processing, and the video Format may be converted into an MP4, so as to support the data receiving party to perform online playing.
Optionally, data encapsulation refers to encapsulating the encoded value in a json data message in response to the encoded file stream being encoded by base64 and then sending the json data message to the receiving system.
Here, after the playable annotation image is acquired, the annotation image and/or the number of people in the area to be detected can be packaged and sent to the receiving system, so that the receiving system side can grasp the number of people and process the flow of people, user experience is further improved, and the safety of the area to be detected is ensured.
After the marked image information is obtained, format conversion and packaging processing can be carried out on the marked image information so as to support online playing, user experience is improved, and the user can conveniently, visually and rapidly master the number of people in the area to be detected.
Optionally, fig. 4 is a schematic flowchart of a still another method for detecting the number of people according to an embodiment of the present disclosure, and as shown in fig. 4, a monitoring system uploads a collected picture or video, a file stream is transmitted through a network communication device, a data stream processed by a people counting service (the server 102 in fig. 1) is returned to an information receiving party through the network communication device again in a json manner, and a system receiving the data may directly display the identified number of people, or may analyze and apply the data through an integrated third-party system. According to the embodiment of the application, the people counting service of the pictures or videos can be packaged, an external service calling interface is provided, the people counting and identifying algorithm is protected, and meanwhile convenience is provided for clients needing to integrate the function.
Fig. 5 is a schematic structural diagram of a device for detecting a number of people according to an embodiment of the present application, and as shown in fig. 5, the device according to the embodiment of the present application includes: an acquisition module 501, an extraction module 502, a determination module 503, and a first processing module 504. The number-of-persons detecting device may be the server 102 or the processor itself, or a chip or an integrated circuit that realizes the functions of the server. It should be noted here that the division of the obtaining module 501, the extracting module 502, the determining module 503 and the first processing module 504 is only a division of logical functions, and the two may be integrated or independent physically.
The acquisition module is used for acquiring image information of a region to be detected;
the extraction module is used for extracting and processing the image information to obtain at least one motion area;
the determining module is used for determining the motion area which accords with the preset size as the area where the single person is located;
the first processing module is used for marking the area where each single person is located on the image information and determining the number of people in the area to be detected according to the area where each single person is located.
Optionally, the determining module is specifically configured to:
and if the difference value between the size of the single motion area and the size of the preset single person is within the preset range, determining the single motion area as the area where the single person is located.
Optionally, the determining module is further configured to:
if the size of the single motion area is larger than 2 times of the size of the preset single person, determining that the single motion area comprises a plurality of single persons;
and performing segmentation processing on the motion area to obtain a plurality of single person areas.
Optionally, the obtaining module is specifically configured to:
and receiving image information sent by the monitoring system, wherein the image information is pictures and/or videos shot by the monitoring system.
Optionally, after the obtaining module receives the image information sent by the monitoring system, the apparatus further includes:
the second processing module is used for packaging the image information according to the format and the file size of the image information to obtain image information to be processed;
correspondingly, the extraction module is specifically configured to:
and extracting the image information to be processed.
Optionally, after the first processing module determines the number of people in the area to be detected according to the area where each single person is located, the apparatus further includes:
and the third processing module is used for carrying out format conversion and packaging processing on the image information after the annotation to obtain a playable annotation image.
Optionally, after the third processing module obtains the playable annotation image, the apparatus further includes:
the sending module is used for packaging the number of people in the marked image and/or the area to be detected to obtain the information of the number of people to be sent;
and sending the information of the number of people to be sent to a receiving system.
Optionally, after the first processing module determines the number of people in the area to be detected according to the area where each single person is located, the apparatus further includes:
and the planning module is used for planning the people flow of the area to be detected according to the marked image information and the number of people.
Fig. 6 is a schematic structural diagram of a people number detection device (which may be the server 102 in fig. 1) according to an embodiment of the present application. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not limiting to the implementations of the present application described and/or claimed herein.
As shown in fig. 6, the person number detecting apparatus includes: a processor 601 and a memory 602, the various components being interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor 601 may process instructions for execution within the terminal, including instructions for graphical information stored in or on a memory for display on an external input/output device (such as a display device coupled to an interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. In fig. 6, one processor 601 is taken as an example.
The memory 602, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the acquisition module 501, the extraction module 502, the determination module 503, and the first processing module 504 shown in fig. 5) corresponding to the method of the person number detecting apparatus in the embodiment of the present application. The processor 601 executes various functional applications and data processing of the people number detection device by running non-transitory software programs, instructions and modules stored in the memory 602, i.e. implementing the method of the people number detection device in the above-described method embodiments.
The number-of-persons detecting device may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the people number detection apparatus, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output device 604 may be an output device such as a display device of the person number detection device. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
The people number detection device in the embodiment of the application can be used for executing the technical scheme in the method embodiments of the application, the implementation principle and the technical effect are similar, and the details are not repeated here.
The embodiment of the application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when being executed by a processor, the computer-executable instructions are used for implementing any one of the people number detection methods.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program is configured to implement any one of the above-mentioned people number detection methods.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method for detecting a number of people, comprising:
acquiring image information of a region to be detected;
extracting the image information to obtain at least one motion area;
determining a movement area which accords with a preset size as an area where a single person is located;
marking the area where each single person is located on the image information, and determining the number of people in the area to be detected according to the area where each single person is located.
2. The method as claimed in claim 1, wherein the determining the motion area conforming to the preset size as the area of the single person comprises:
and if the difference value between the size of the single motion area and the size of the preset single person is within a preset range, determining that the single motion area is the area where the single person is located.
3. The method as claimed in claim 1, wherein the determining the motion area conforming to the preset size as the area of the single person comprises:
if the size of a single motion area is larger than 2 times of the size of a preset single person, determining that the single motion area comprises a plurality of single persons;
and carrying out segmentation processing on the motion area to obtain a plurality of single person areas.
4. The method according to any one of claims 1 to 3, wherein the acquiring image information of the region to be detected comprises:
receiving image information sent by a monitoring system, wherein the image information is pictures and/or videos shot by the monitoring system.
5. The method of claim 4, further comprising, after receiving the transmitted image information of the monitoring system:
according to the format and the file size of the image information, packaging the image information to obtain image information to be processed;
correspondingly, the extracting the image information includes:
and extracting the image information to be processed.
6. The method according to any one of claims 1 to 3, wherein after determining the number of people in the area to be detected according to the area of each single person, the method further comprises:
and carrying out format conversion and packaging processing on the image information after the annotation to obtain a playable annotation image.
7. The method of claim 6, further comprising, after said obtaining the playable annotation image:
packaging the marked image and/or the number of people in the area to be detected to obtain information of the number of people to be sent;
and sending the information of the number of people to be sent to a receiving system.
8. The method according to any one of claims 1 to 3, wherein after determining the number of people in the area to be detected according to the area of each single person, the method further comprises:
and planning the pedestrian flow of the area to be detected according to the marked image information and the number of people.
9. A device for detecting a number of people, comprising:
the acquisition module is used for acquiring the image information of the area to be detected;
the extraction module is used for extracting the image information to obtain at least one motion area;
the determining module is used for determining the motion area which accords with the preset size as the area where the single person is located;
and the first processing module is used for marking the area where each single person is located on the image information and determining the number of people in the area to be detected according to the area where each single person is located.
10. A person number detection apparatus, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 8.
11. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of detecting a number of people as claimed in any one of claims 1 to 8.
CN202111411316.6A 2021-11-25 2021-11-25 People number detection method, device, equipment and storage medium Pending CN113887533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111411316.6A CN113887533A (en) 2021-11-25 2021-11-25 People number detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111411316.6A CN113887533A (en) 2021-11-25 2021-11-25 People number detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113887533A true CN113887533A (en) 2022-01-04

Family

ID=79016081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111411316.6A Pending CN113887533A (en) 2021-11-25 2021-11-25 People number detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113887533A (en)

Similar Documents

Publication Publication Date Title
CN106407946B (en) Cross-line counting method, deep neural network training method, device and electronic equipment
CN103839308B (en) Number acquisition methods, Apparatus and system
CN111563396A (en) Method and device for online identifying abnormal behavior, electronic equipment and readable storage medium
CN109308490A (en) Method and apparatus for generating information
CN109740590A (en) The accurate extracting method of ROI and system based on target following auxiliary
CN110769195A (en) Intelligent monitoring and recognizing system for violation of regulations on power transmission line construction site
CN113094325B (en) Device deployment method, device, computer system and computer readable storage medium
CN113096158A (en) Moving object identification method and device, electronic equipment and readable storage medium
CN111047824B (en) Indoor child nursing linkage control early warning method and system
CN108288025A (en) A kind of car video monitoring method, device and equipment
CN112233428B (en) Traffic flow prediction method, device, storage medium and equipment
CN111008859A (en) Information presentation method and device in virtual shop, electronic equipment and storage medium
CN112528825A (en) Station passenger recruitment service method based on image recognition
CN112149551A (en) Safety helmet identification method based on embedded equipment and deep learning
CN112699754A (en) Signal lamp identification method, device, equipment and storage medium
CN105184435A (en) Field staff management method and system
Liciotti et al. An intelligent RGB-D video system for bus passenger counting
Seitz et al. Augmenting the industrial internet of things with emojis
CN109903308B (en) Method and device for acquiring information
CN114419493A (en) Image annotation method and device, electronic equipment and storage medium
CN110334620A (en) Appraisal procedure, device, storage medium and the electronic equipment of quality of instruction
CN111506769B (en) Video file processing method and device, storage medium and electronic device
CN117289797A (en) Transformer substation inspection information interaction method and system based on meta-universe technology
CN117037059A (en) Equipment management method and device based on inspection monitoring and electronic equipment
CN116012360A (en) Method, apparatus, device, medium, and program product for detecting legacy items

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