CN113298025A - Target object determination method and device, storage medium and electronic device - Google Patents
Target object determination method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN113298025A CN113298025A CN202110657297.9A CN202110657297A CN113298025A CN 113298025 A CN113298025 A CN 113298025A CN 202110657297 A CN202110657297 A CN 202110657297A CN 113298025 A CN113298025 A CN 113298025A
- Authority
- CN
- China
- Prior art keywords
- target object
- determining
- target
- preset area
- motion
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000033001 locomotion Effects 0.000 claims abstract description 71
- 239000000779 smoke Substances 0.000 claims abstract description 50
- 238000004590 computer program Methods 0.000 claims description 18
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 230000007613 environmental effect Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000035807 sensation Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/52—Surveillance or monitoring of activities, e.g. for recognising suspicious objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/246—Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30241—Trajectory
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention provides a method and a device for determining a target object, a storage medium and an electronic device, wherein the method comprises the following steps: determining a target object included in a preset area through the acquired temperature information of the object in the preset area; tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object; the number of target objects is determined based on the motion trajectory of the target objects. According to the invention, the problem that the smoke detector cannot determine the number of the objects in the related art is solved, the number of the target objects in the environment where the smoke detector is located is obtained, and the effect of increasing fire safety is achieved.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for determining a target object, a storage medium and an electronic device.
Background
Along with the development of society and the popularization of fire safety awareness, people further deepen the awareness of fire safety, and have the requirement of forcedly installing smoke detectors in public places such as hotels. The current smoke detector only detects the smoke concentration of the surrounding environment in real time, completes the functions of smoke concentration early warning and alarming, and realizes the detection of fire in the very early stage.
Can real-time detection environment smoke in the existing scheme feel concentration to the realization is to the control of site environment. However, the scheme cannot complete people counting in a room, assist subsequent fire rescue, personnel evacuation and the like except for detecting the smoke concentration of the installation environment. The traditional personnel evacuation and statistics are completed by the aid of on-site fire fighters for room-by-room investigation and the assistance of a life detector, the scheme is extremely high in cost, and the life safety of the fire fighters is greatly threatened.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides a method for determining a target object, which is used for at least solving the problem that the smoke detector in the related art cannot determine the number of the objects.
According to an embodiment of the present invention, there is provided a target object determination method including: determining a target object included in a preset area through the acquired temperature information of the object in the preset area; tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object; and determining the number of the target objects based on the motion trail of the target objects.
According to another embodiment of the present invention, there is provided a target object tracking apparatus including: a first sensor part for detecting temperature information of a target object in a preset area;
and the control component is used for tracking the target object by utilizing the temperature information of the target object to obtain the motion track of the target object.
In an exemplary embodiment, the above apparatus further comprises: the second sensor is used for detecting smoke concentration information in the preset area; the control unit is further configured to determine that an abnormality occurs in the preset area when the smoke concentration in the smoke concentration information is greater than a third preset threshold.
In an exemplary embodiment, the above apparatus further comprises: and the alarm component is used for giving an alarm when the preset area is abnormal.
In one exemplary embodiment, the control part includes: and a counting unit configured to count the target object into the number of objects when the target object is in a first moving direction, and delete the target object from the number of objects when the target object is in a second moving direction.
According to another embodiment of the present invention, there is provided a target object determination apparatus including: the first determining module is used for determining a target object included in a preset area through the acquired temperature information of the object in the preset area; the first tracking module is used for tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object; and the second determining module is used for determining the motion direction of the target object based on the motion track of the target object.
In an exemplary embodiment, the first determining module includes: a first acquiring unit configured to acquire a kth frame image of the object in the preset area, where K is a natural number; a second obtaining unit, configured to obtain N temperature values corresponding to N pixel points in the K-th frame image, where N is a natural number greater than or equal to 1; the first calculation unit is used for calculating the difference value between the N temperature values and the environment temperature value in the preset area to obtain N difference values; a first marking unit, configured to mark a pixel point corresponding to a difference value greater than a first preset threshold value among the N difference values, so as to determine an outline of the object; a first determining unit, configured to determine the contour of the object as the target object.
In an exemplary embodiment, the first tracking module includes: a third obtaining unit, configured to obtain M frames of images of the target object in the preset region, where M is a natural number greater than or equal to 1; the second determining unit is used for determining the highest temperature point corresponding to the pixel in each frame of image in the M frames of images to obtain M target temperature points; a first tracking unit, configured to track the target object based on the M target temperature points, so as to obtain a motion trajectory of the target object.
In an exemplary embodiment, the first tracking unit includes: a first determining subunit, configured to determine distribution routes of pixel points corresponding to the M temperature points in the preset area; and the second determining subunit is used for determining the distribution route as the motion trail of the target object.
In an exemplary embodiment, the second determining module includes: a third determining unit, configured to determine pixel point distribution of the motion of the target object from the motion trajectory, where the pixel point distribution includes a starting pixel point when the target object enters the preset region and an ending pixel point when the target object leaves the preset region; a fourth determining unit, configured to determine a moving direction of the target object based on the pixel point distribution, so as to determine the number of the target objects from the moving direction.
In an exemplary embodiment, the fourth determining unit includes one of: a first processing subunit, configured to determine a first motion direction of the target object and count the target object into an object number when the pixel distribution includes arrangement from the starting pixel to the ending pixel; and a second processing subunit, configured to determine a second motion direction of the target object and delete the target object from the object number when the pixel point distribution includes arrangement from the ending pixel point to the starting pixel point.
In an exemplary embodiment, the apparatus further includes: the first acquisition module is used for acquiring the smoke concentration information in the preset area; and the third determining module is used for determining that the preset area is abnormal under the condition that the smoke concentration in the smoke concentration information is greater than a third preset threshold value.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target object included in the preset area is determined through the acquired temperature information of the object in the preset area; tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object; the number of target objects is determined based on the motion trajectory of the target objects. The purpose of acquiring the number of the target objects in the environment where the smoke detector is located is achieved. Therefore, the problem that the smoke detector can not determine the number of the objects in the related art can be solved, the number of the target objects acquired in the environment where the smoke detector is located is achieved, and the fire safety effect is improved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a target object determination method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of target object determination according to an embodiment of the present invention;
fig. 3 is a block diagram of a structure of a tracking apparatus of a target object according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a smoke detector and big data platform interaction according to an embodiment of the present invention;
fig. 5 is a block diagram of a target object determining apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a method for determining a target object according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for determining a target object in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for determining a target object is provided, and fig. 2 is a flowchart of the method for determining a target object according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, determining a target object included in a preset area through the acquired temperature information of the object in the preset area;
step S204, tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object;
in step S206, the number of target objects is determined based on the motion trajectory of the target objects.
The main body of the above steps may be a processor (e.g., a Master Controller Unit, abbreviated as MCU)), and the like, but is not limited thereto.
In the present embodiment, the target object includes, but is not limited to, a pedestrian or the like. The preset area includes, but is not limited to, public places such as hotels, schools, etc.
The embodiment includes but is not limited to being applied to fire fighting scenes, for example, in a scene that a smoke detector is installed in public places such as hotels, and the like, and the number of pedestrians in the environment is detected under the condition of detecting the smoke concentration of the environment in real time. So as to conveniently count the number of people to be rescued under the condition of fire.
In this embodiment, temperature information of an object in a preset area may be acquired by the infrared array sensor. For example, the smoke sensation of an infrared array sensor is installed on top of an aisle or lobby of a hotel. The smoke sensor identifies the human body contour by processing the temperature information output by the infrared array sensor so as to determine a target object. Thereby determining the number of persons passing through the sensing area of the infrared array sensor; the movement direction of the human body outline can be tracked, and whether people enter or exit is judged according to the movement track of the target object, so that the counting of the people in the room is realized.
Through the steps, the target object included in the preset area is determined through the acquired temperature information of the object in the preset area; tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object; the number of target objects is determined based on the motion trajectory of the target objects. The purpose of acquiring the number of the target objects in the environment where the smoke detector is located is achieved. Therefore, the problem that the smoke detector can not determine the number of the objects in the related art can be solved, the number of the target objects acquired in the environment where the smoke detector is located is achieved, and the fire safety effect is improved.
In one exemplary embodiment, determining a target object included in a preset area by the acquired temperature information of the object in the preset area includes:
s1, acquiring a Kth frame of image of the object in the preset area, wherein K is a natural number;
s2, acquiring N temperature values corresponding to N pixel points in the K frame image, wherein N is a natural number greater than or equal to 1;
s3, calculating the difference between the N temperature values and the environmental temperature value in the preset area to obtain N difference values;
s4, marking pixel points corresponding to the difference values larger than the first preset threshold value in the N difference values to determine the outline of the object;
and S5, determining the contour of the object as a target object.
In this embodiment, for example, when an object enters a preset region, a kth frame image of the object is acquired, and a temperature value corresponding to each pixel point in the kth frame image is read. Comparing the temperature value with a background temperature value corresponding to a background area in the Kth frame of image to obtain N difference values; and marking pixel points corresponding to the difference values of the N difference values which are larger than the background temperature value to obtain the outline of the target object.
In this embodiment, the background temperature corresponding to the background area may be detected in advance in a scene without an object passing through, or may be detected in real time in a scene with an object passing through.
By the embodiment, the contour of the object can be accurately obtained by comparing the temperature value of the object with the background temperature value in the background area, so that the target object can be determined.
In an exemplary embodiment, tracking the target object by using the acquired temperature information of the target object to obtain a motion trajectory of the target object includes:
s1, acquiring M frames of images of the target object in a preset area, wherein M is a natural number greater than or equal to 1;
s2, determining the highest temperature point corresponding to the pixel in each frame of image in the M frames of images to obtain M target temperature points;
and S3, tracking the target object based on the M target temperature points to obtain the motion track of the target object.
In this embodiment, after the target object is determined, a point with a higher temperature in the contour of the target object may be selected as a tracking point, and the travel route of the target object may be recorded.
Through the embodiment, the target object is tracked through the highest temperature point, and the running track of the target object can be accurately determined.
In an exemplary embodiment, tracking the target object based on M target temperature points to obtain a motion trajectory of the target object includes:
s1, determining the distribution routes of pixel points corresponding to the M temperature points in a preset area;
and S2, determining the distribution route as the motion trail of the target object.
In this embodiment, after the target object is determined in one frame of image, the target object may be tracked through M temperature points. It should be noted that, in the process of tracking the target object, for a newly appeared image frame, the highest temperature point in the new image frame may be determined according to the above embodiment, so as to continuously track the target object.
In one exemplary embodiment, determining the number of target objects based on the motion trajectory of the target objects includes:
s1, determining pixel point distribution of the target object motion from the motion trail, wherein the pixel point distribution comprises a starting pixel point when the target object enters a preset area and an ending pixel point when the target object leaves the preset area;
s2, determining the moving direction of the target object based on the distribution of the pixel points to determine the number of the target objects from the moving direction.
In this embodiment, the movement direction of the target object may be determined according to the movement trajectory of the target object. For example, the left side of the picture is a gate, the target object enters from left to right, and the number of the target objects is increased by 1; and conversely, the number of the objects is reduced by 1, so that the number of people in the preset area can be accurately counted.
In an exemplary embodiment, determining the moving direction of the target object based on the distribution of the pixel points to determine the number of the target objects from the moving direction includes one of:
s1, determining a first motion direction of the target object under the condition that the pixel point distribution comprises the arrangement from the initial pixel point to the ending pixel point, and counting the target object to the number of the objects;
and S2, determining the second motion direction of the target object and deleting the target object from the number of the objects under the condition that the pixel point distribution comprises arrangement from the ending pixel point to the starting pixel point.
In this embodiment, for example, the pixel point in the left column (1 column) of the image including the target object is the entry starting point, and the pixel point in the right column (8 columns) of the image is the exit starting point. Judging that the track is from 1 row to 8 rows, and counting the number of people plus 1; and (4) judging that the person leaves from the track from 8 rows to 1 row, and counting the number of the persons to be subtracted by 1.
Through the embodiment, the personnel flow condition in the preset area can be accurately counted through the movement direction of the target object.
In an exemplary embodiment, the present embodiment further includes:
s1, acquiring smoke concentration information in a preset area;
and S2, determining that the preset area is abnormal under the condition that the smoke concentration in the smoke concentration information is greater than a third preset threshold value.
In the present embodiment, the smoke density information in the preset area may be acquired by the smoke density detection sensor. According to the embodiment, the smoke concentration information and the quantity information of the target objects are combined, so that the number of people to be rescued can be accurately determined under the condition that a fire disaster is sent in a preset area.
In this embodiment, there is also provided a tracking apparatus for a target object, including:
a first sensor part for detecting temperature information of a target object in a preset area;
and the control component is used for tracking the target object by utilizing the temperature information of the target object to obtain the motion trail of the target object.
In the present embodiment, as shown in fig. 3, the first sensor component includes, but is not limited to, an infrared array sensor, and the control component includes, but is not limited to, an MCU. For example, the smoke sensation of an infrared array sensor is installed on top of an aisle or lobby of a hotel. The smoke sensor identifies the human body outline by processing signals output by the infrared array sensor, so that the number of passing people is determined; the motion direction of the human body contour is tracked, and whether people enter or exit is judged through the motion track so as to count the people inside.
In one exemplary embodiment, the apparatus further comprises:
the second sensor is used for detecting smoke concentration information in a preset area;
and the control component is also used for determining that the preset area is abnormal under the condition that the smoke concentration in the smoke concentration information is greater than a third preset threshold value.
In the present embodiment, as shown in fig. 3, the second sensor includes, but is not limited to, a smoke density detection sensor.
In one exemplary embodiment, the apparatus further comprises:
and the alarm component is used for giving an alarm under the condition that the preset area is abnormal.
In the present embodiment, as shown in fig. 3, the alarm component includes, but is not limited to, an audible and visual alarm module.
In one exemplary embodiment, the control component includes:
and the counting unit is used for counting the target objects into the number of the objects when the target objects are in the first motion direction, and deleting the target objects from the number of the objects when the target objects are in the second motion direction.
In this embodiment, for example, the trajectory is from 1 to 8 rows, it is determined that a person enters, and the statistical unit adds 1 to the number of people counted; the track is from 8 to 1, the person is judged to leave, and the statistical unit counts the number of people to be reduced by 1.
In an exemplary embodiment, the apparatus further includes a wireless transmission module, as shown in fig. 3. The wireless transmission module is used for uploading the acquired temperature information of the target object, the temperature information of the preset area and other data to the big data platform (the working process of the big data platform is shown in fig. 4), and monitoring of the field environment is completed.
In summary, the smoke sensor with the infrared array sensor is installed on the top of the aisle or the hall. The smoke sensor identifies the human body outline by processing signals output by the infrared array sensor, so that the number of passing people is determined; the motion direction of the human body contour is tracked, and whether people enter or exit is judged through the motion track so as to count the people inside. And this equipment is installed at the top in passageway or hall, has solved personnel and has sheltered from the unusual problem of leading to the people to count. The environment smoke concentration detection function and the current environment personnel number detection function are the same, and the detection data are reported to the big data platform in time.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a target object determining apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a target object determining apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus including:
a first determining module 52, configured to determine a target object included in the preset area according to the acquired temperature information of the object in the preset area;
the first tracking module 54 is configured to track the target object by using the acquired temperature information of the target object to obtain a motion trajectory of the target object;
and a second determining module 56, configured to determine a motion direction of the target object based on the motion trajectory of the target object.
In an exemplary embodiment, the first determining module includes:
a first acquiring unit configured to acquire a kth frame image of the object in the preset area, where K is a natural number;
a second obtaining unit, configured to obtain N temperature values corresponding to N pixel points in the K-th frame image, where N is a natural number greater than or equal to 1;
the first calculation unit is used for calculating the difference value between the N temperature values and the environment temperature value in the preset area to obtain N difference values;
a first marking unit, configured to mark a pixel point corresponding to a difference value greater than a first preset threshold value among the N difference values, so as to determine an outline of the object;
a first determining unit, configured to determine the contour of the object as the target object.
In an exemplary embodiment, the first tracking module includes:
a third obtaining unit, configured to obtain M frames of images of the target object in the preset region, where M is a natural number greater than or equal to 1;
the second determining unit is used for determining the highest temperature point corresponding to the pixel in each frame of image in the M frames of images to obtain M target temperature points;
a first tracking unit, configured to track the target object based on the M target temperature points, so as to obtain a motion trajectory of the target object.
In an exemplary embodiment, the first tracking unit includes:
a first determining subunit, configured to determine distribution routes of pixel points corresponding to the M temperature points in the preset area;
and the second determining subunit is used for determining the distribution route as the motion trail of the target object.
In an exemplary embodiment, the second determining module includes:
a third determining unit, configured to determine pixel point distribution of the motion of the target object from the motion trajectory, where the pixel point distribution includes a starting pixel point when the target object enters the preset region and an ending pixel point when the target object leaves the preset region;
a fourth determining unit, configured to determine a moving direction of the target object based on the pixel point distribution, so as to determine the number of the target objects from the moving direction.
In an exemplary embodiment, the fourth determining unit includes one of:
a first processing subunit, configured to determine a first motion direction of the target object and count the target object into an object number when the pixel distribution includes arrangement from the starting pixel to the ending pixel;
and a second processing subunit, configured to determine a second motion direction of the target object and delete the target object from the object number when the pixel point distribution includes arrangement from the ending pixel point to the starting pixel point.
In an exemplary embodiment, the apparatus further includes:
the first acquisition module is used for acquiring the smoke concentration information in the preset area;
and the third determining module is used for determining that the preset area is abnormal under the condition that the smoke concentration in the smoke concentration information is greater than a third preset threshold value.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the above steps.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the steps by a computer program.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (14)
1. A method for determining a target object, comprising:
determining a target object included in a preset area through the acquired temperature information of the object in the preset area;
tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object;
determining the number of the target objects based on the motion trail of the target objects.
2. The method of claim 1, wherein determining the target object included in the preset area through the acquired temperature information of the object in the preset area comprises:
acquiring a Kth frame of image of the object in the preset area, wherein K is a natural number;
acquiring N temperature values corresponding to N pixel points in the K frame of image, wherein N is a natural number greater than or equal to 1;
calculating the difference value between the N temperature values and the environmental temperature value in the preset area to obtain N difference values;
marking pixel points corresponding to the difference values which are larger than a first preset threshold value in the N difference values to determine the outline of the object;
determining the contour of the object as the target object.
3. The method according to claim 1, wherein tracking the target object by using the acquired temperature information of the target object to obtain a motion trajectory of the target object comprises:
acquiring M frames of images of the target object in the preset area, wherein M is a natural number greater than or equal to 1;
determining a highest temperature point corresponding to a pixel in each frame of image in the M frames of images to obtain M target temperature points;
and tracking the target object based on the M target temperature points to obtain the motion track of the target object.
4. The method of claim 3, wherein tracking the target object based on the M target temperature points to obtain the motion trajectory of the target object comprises:
determining distribution routes of pixel points corresponding to the M temperature points in the preset area;
and determining the distribution route as the motion trail of the target object.
5. The method of claim 1, wherein determining the number of target objects based on the motion trajectory of the target objects comprises:
determining pixel point distribution of the target object motion from the motion trail, wherein the pixel point distribution comprises a starting pixel point of the target object entering the preset area and an ending pixel point of the target object leaving the preset area;
determining the movement direction of the target object based on the pixel point distribution so as to determine the number of the target objects from the movement direction.
6. The method of claim 5, wherein determining the motion direction of the target object based on the pixel point distribution to determine the number of the target objects from the motion direction comprises one of:
determining a first motion direction of the target object under the condition that the pixel point distribution comprises arrangement from the starting pixel point to the ending pixel point, and counting the target object to the number of objects;
and determining a second motion direction of the target object and deleting the target object from the object number under the condition that the pixel point distribution comprises arrangement from the ending pixel point to the starting pixel point.
7. The method of claim 1, further comprising:
acquiring smoke concentration information in the preset area;
and determining that the preset area is abnormal under the condition that the smoke concentration in the smoke concentration information is greater than a third preset threshold value.
8. An apparatus for tracking a target object, comprising:
a first sensor part for detecting temperature information of a target object in a preset area;
and the control component is used for tracking the target object by utilizing the temperature information of the target object to obtain the motion track of the target object.
9. The apparatus of claim 8, further comprising:
the second sensor is used for detecting smoke concentration information in the preset area;
the control component is further configured to determine that the preset area is abnormal when the smoke concentration in the smoke concentration information is greater than a third preset threshold.
10. The apparatus of claim 9, further comprising:
and the alarm component is used for giving an alarm under the condition that the preset area is abnormal.
11. The apparatus of claim 8, wherein the control component comprises:
and the counting unit is used for counting the target objects into the number of the objects when the target objects are in a first motion direction, and deleting the target objects from the number of the objects when the target objects are in a second motion direction.
12. A target object determination apparatus, comprising:
the first determining module is used for determining a target object included in a preset area through the acquired temperature information of the object in the preset area;
the first tracking module is used for tracking the target object by using the acquired temperature information of the target object to obtain a motion track of the target object;
and the second determination module is used for determining the motion direction of the target object based on the motion trail of the target object.
13. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 7.
14. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110657297.9A CN113298025A (en) | 2021-06-11 | 2021-06-11 | Target object determination method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110657297.9A CN113298025A (en) | 2021-06-11 | 2021-06-11 | Target object determination method and device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113298025A true CN113298025A (en) | 2021-08-24 |
Family
ID=77328224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110657297.9A Pending CN113298025A (en) | 2021-06-11 | 2021-06-11 | Target object determination method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113298025A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106429685A (en) * | 2016-11-01 | 2017-02-22 | 合肥齐赢网络技术有限公司 | Intelligent monitoring system for elevator |
CN106600777A (en) * | 2016-12-09 | 2017-04-26 | 济南赛英立德电子科技有限公司 | Infrared array number-of-personnel sensor-based counting method and apparatus |
CN107277481A (en) * | 2017-07-14 | 2017-10-20 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN206946650U (en) * | 2017-06-19 | 2018-01-30 | 成都领创先科技有限公司 | A kind of intelligent and safe indoor locating system |
CN108010008A (en) * | 2017-12-01 | 2018-05-08 | 北京迈格威科技有限公司 | Method for tracing, device and the electronic equipment of target |
CN109900363A (en) * | 2019-01-02 | 2019-06-18 | 平高集团有限公司 | A kind of object infrared measurement of temperature method and apparatus based on contours extract |
CN109993941A (en) * | 2019-03-20 | 2019-07-09 | 合肥名德光电科技股份有限公司 | Thermal imaging fire alarm system and its image processing method based on artificial intelligence |
CN110992615A (en) * | 2019-12-27 | 2020-04-10 | 中消云(北京)物联网科技研究院有限公司 | Smoke detection method and device and detector |
CN111339997A (en) * | 2020-03-20 | 2020-06-26 | 浙江大华技术股份有限公司 | Method and apparatus for determining ignition region, storage medium, and electronic apparatus |
CN211294120U (en) * | 2019-12-27 | 2020-08-18 | 中消云(北京)物联网科技研究院有限公司 | Smoke detection device for fire prevention and theft prevention monitoring |
CN112418038A (en) * | 2020-11-13 | 2021-02-26 | 深圳市优必选科技股份有限公司 | Human body detection method, human body detection device, electronic equipment and medium |
CN112509270A (en) * | 2020-11-19 | 2021-03-16 | 北京城市轨道交通咨询有限公司 | Fire monitoring linkage method, device and system for train compartment |
-
2021
- 2021-06-11 CN CN202110657297.9A patent/CN113298025A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106429685A (en) * | 2016-11-01 | 2017-02-22 | 合肥齐赢网络技术有限公司 | Intelligent monitoring system for elevator |
CN106600777A (en) * | 2016-12-09 | 2017-04-26 | 济南赛英立德电子科技有限公司 | Infrared array number-of-personnel sensor-based counting method and apparatus |
CN206946650U (en) * | 2017-06-19 | 2018-01-30 | 成都领创先科技有限公司 | A kind of intelligent and safe indoor locating system |
CN107277481A (en) * | 2017-07-14 | 2017-10-20 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN108010008A (en) * | 2017-12-01 | 2018-05-08 | 北京迈格威科技有限公司 | Method for tracing, device and the electronic equipment of target |
CN109900363A (en) * | 2019-01-02 | 2019-06-18 | 平高集团有限公司 | A kind of object infrared measurement of temperature method and apparatus based on contours extract |
CN109993941A (en) * | 2019-03-20 | 2019-07-09 | 合肥名德光电科技股份有限公司 | Thermal imaging fire alarm system and its image processing method based on artificial intelligence |
CN110992615A (en) * | 2019-12-27 | 2020-04-10 | 中消云(北京)物联网科技研究院有限公司 | Smoke detection method and device and detector |
CN211294120U (en) * | 2019-12-27 | 2020-08-18 | 中消云(北京)物联网科技研究院有限公司 | Smoke detection device for fire prevention and theft prevention monitoring |
CN111339997A (en) * | 2020-03-20 | 2020-06-26 | 浙江大华技术股份有限公司 | Method and apparatus for determining ignition region, storage medium, and electronic apparatus |
CN112418038A (en) * | 2020-11-13 | 2021-02-26 | 深圳市优必选科技股份有限公司 | Human body detection method, human body detection device, electronic equipment and medium |
CN112509270A (en) * | 2020-11-19 | 2021-03-16 | 北京城市轨道交通咨询有限公司 | Fire monitoring linkage method, device and system for train compartment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108734055B (en) | Abnormal person detection method, device and system | |
US20210124914A1 (en) | Training method of network, monitoring method, system, storage medium and computer device | |
CN111325954B (en) | Personnel loss early warning method, device, system and server | |
CN111010547A (en) | Target object tracking method and device, storage medium and electronic device | |
CN110544312A (en) | Video display method and device in virtual scene, electronic equipment and storage device | |
CN110910606A (en) | Target tracking-based child anti-lost method and system | |
CN113887445A (en) | Method and system for identifying standing and loitering behaviors in video | |
CN110244923B (en) | Image display method and device | |
CN117789394B (en) | Early fire smoke detection method based on motion history image | |
CN115841730A (en) | Video monitoring system and abnormal event detection method | |
CN110895663B (en) | Two-wheel vehicle identification method and device, electronic equipment and monitoring system | |
CN111988571B (en) | Method and device for detecting access information | |
CN113298025A (en) | Target object determination method and device, storage medium and electronic device | |
CN115273401B (en) | Method and system for automatically sensing falling of person | |
WO2012074366A2 (en) | A system and a method for detecting a loitering event | |
CN113837138B (en) | Dressing monitoring method, dressing monitoring system, dressing monitoring medium and electronic terminal | |
WO2012074352A1 (en) | System and method to detect loitering event in a region | |
KR20220031258A (en) | A method for providing active security control service based on learning data corresponding to counseling event | |
CN114419471B (en) | Floor identification method and device, electronic equipment and storage medium | |
CN118172711B (en) | AI big data intelligent management method and system | |
KR102161344B1 (en) | Stream reasoning surveilance system and Stream reasoning surveilance method using the same | |
Elgorma et al. | A Review of Methods for Detecting and Preventing Drowning Incorporating Various Techniques, Devices and Technologies | |
CN117636259A (en) | Fall detection method and device, nonvolatile storage medium and electronic equipment | |
KR20220031316A (en) | A recording medium in which an active security control service provision program is recorded | |
CN110755838A (en) | A place intelligent system for sports ground |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210824 |