CN111914591A - Duration determination method and device - Google Patents

Duration determination method and device Download PDF

Info

Publication number
CN111914591A
CN111914591A CN201910380107.6A CN201910380107A CN111914591A CN 111914591 A CN111914591 A CN 111914591A CN 201910380107 A CN201910380107 A CN 201910380107A CN 111914591 A CN111914591 A CN 111914591A
Authority
CN
China
Prior art keywords
information
analyzed
target
exit
time
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
CN201910380107.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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910380107.6A priority Critical patent/CN111914591A/en
Publication of CN111914591A publication Critical patent/CN111914591A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items

Abstract

The embodiment of the invention provides a duration determination method, which comprises the following steps: the method comprises the steps of obtaining outlet information of a target to be analyzed, wherein the outlet information is information collected at an outlet, the outlet information comprises outlet time of the target to be analyzed, then determining inlet information of the target to be analyzed according to the outlet information of the target to be analyzed, the inlet information is information collected at an inlet, the inlet information comprises inlet time of the target to be analyzed, and further determining passing time of the target to be analyzed according to the outlet time and the inlet time. Therefore, when the target to be analyzed reaches the outlet, the passing time of the target to be analyzed can be automatically calculated, and the working efficiency of workers can be monitored in real time.

Description

Duration determination method and device
Technical Field
The invention relates to the technical field of video monitoring, in particular to a duration determination method and device.
Background
In some scenarios, it is necessary to determine the passing time of a certain target at a certain gate so as to monitor the working efficiency of the staff, for example, the working efficiency of the staff at a toll station or the working efficiency of the security check staff can be monitored by the time when the vehicle passes through the toll station or the time when the passenger passes through the security check, and the like.
In the related art, the target passing time period is determined by counting the number of all passing persons in a long time period, and calculating the average passing time period per unit time, for example, if 100 persons pass in 24 hours, the average passing time period per person is about 14 minutes.
However, the above method can only determine the average passing time within a period of time, has a certain hysteresis, and cannot monitor the working efficiency of the staff in real time, so that the number of the staff or the working mode cannot be adjusted in time. Therefore, a method capable of determining the passing time of the target in real time is needed.
Disclosure of Invention
The embodiment of the invention aims to provide a time length determining method and a time length determining device, so as to determine the target passing time length in real time. The specific technical scheme is as follows:
the embodiment of the invention provides a duration determination method, which comprises the following steps:
acquiring outlet information of a target to be analyzed, wherein the outlet information is information acquired at an outlet and comprises outlet time of the target to be analyzed;
determining entry information of the target to be analyzed according to the exit information of the target to be analyzed, wherein the entry information is information collected at an entry, and the entry information comprises entry time of the target to be analyzed;
and determining the passing time of the target to be analyzed according to the exit time and the entrance time.
Optionally, before the obtaining the target exit information, the method further includes:
acquiring a plurality of pieces of entrance information, and storing the plurality of pieces of entrance information into a preset database;
the determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed includes:
and searching entry information matched with the exit information from the preset database to serve as the entry information of the target to be analyzed.
Optionally, the searching, from the preset database, for the entry information matched with the exit information as the entry information of the target to be analyzed includes:
acquiring entrance information within a preset first time range from the exit time from the preset database, and taking the entrance information as candidate entrance information;
and searching entry information matched with the exit information from the candidate entry information to be used as entry information of the target to be analyzed.
Optionally, the searching, from the preset database, for the entry information matched with the exit information as the entry information of the target to be analyzed includes:
calculating the time difference between the entrance time corresponding to each piece of entrance information in the preset database and the exit time;
determining a preset number of pieces of entry information according to the sequence of the time differences from small to large, and matching the preset number of pieces of entry information with the exit information;
and if the matching is successful, taking the matched entry information as the entry information of the target to be analyzed, if the matching is unsuccessful, determining a new preset number of pieces of entry information according to the sequence of the time difference from small to large, and returning to the step of matching the preset number of pieces of entry information with the exit information.
Optionally, the acquiring the exit information of the target to be analyzed includes:
acquiring an exit image and exit time of a target to be analyzed;
performing feature analysis on the exit image to obtain exit feature data of the target to be analyzed, and taking the exit feature data and the exit time as exit information of the target to be analyzed;
the determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed includes:
and calculating the similarity between the exit characteristic data and the entrance characteristic data corresponding to the entry information aiming at each entry information, and if the similarity is greater than a preset threshold value, taking the entry information as the entry information of the target to be analyzed.
Optionally, the acquiring an exit image and an exit time of the target to be analyzed includes:
acquiring all candidate exit images of a target to be analyzed within a preset second time range, taking the candidate exit image with the acquisition time closest to the current time as an exit image of the target to be analyzed, and taking the acquisition time of the exit image as the exit time of the target to be analyzed.
Optionally, the method further includes:
acquiring a time period to be queried;
and outputting the passage time of all targets to be analyzed in the period to be inquired of the exit time and the entrance time.
Optionally, the method further includes:
acquiring information to be inquired;
and matching the information to be inquired with the exit information and/or the entrance information of all the targets to be analyzed, and outputting the passing time of the target to be analyzed corresponding to the matched exit information and/or entrance information.
Optionally, the exit information further includes a first image of the object to be analyzed acquired at the exit, and the entrance information further includes a second image of the object to be analyzed acquired at the entrance; the matching the information to be queried with the exit information and/or the entrance information of all the targets to be analyzed, and outputting the passing time of the target to be analyzed corresponding to the matched exit information and/or entrance information, includes:
matching the information to be inquired with the outlet information and/or the inlet information of all the targets to be analyzed, and taking the matched targets to be analyzed as candidate output targets;
acquiring a first image, a second image and a passing time of the candidate output target;
verifying the passing time of the candidate output target based on the first image, the second image and the monitoring videos at the outlet and the inlet;
and if the verification is successful, outputting the passing time of the candidate output target.
The embodiment of the invention also provides a duration determining device, which comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring outlet information of a target to be analyzed, the outlet information is information acquired at an outlet, and the outlet information comprises outlet time of the target to be analyzed;
the determining module is used for determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed, wherein the entrance information is information collected at an entrance, and the entrance information comprises the entrance time of the target to be analyzed;
and the calculation module is used for determining the passing time of the target to be analyzed according to the exit time and the entrance time.
Optionally, the apparatus further comprises:
the storage module is used for acquiring a plurality of pieces of entrance information and storing the plurality of pieces of entrance information into a preset database;
the determining module is specifically configured to:
and searching entry information matched with the exit information from the preset database to serve as the entry information of the target to be analyzed.
Optionally, the determining module is specifically configured to:
acquiring entrance information within a preset first time range from the exit time from the preset database, and taking the entrance information as candidate entrance information;
and searching entry information matched with the exit information from the candidate entry information to be used as entry information of the target to be analyzed.
Optionally, the determining module is specifically configured to:
calculating the time difference between the entrance time corresponding to each piece of entrance information in the preset database and the exit time;
determining a preset number of pieces of entry information according to the sequence of the time differences from small to large, and matching the preset number of pieces of entry information with the exit information;
and if the matching is successful, taking the matched entry information as the entry information of the target to be analyzed, if the matching is unsuccessful, determining a new preset number of pieces of entry information according to the sequence of the time difference from small to large, and returning to the step of matching the preset number of pieces of entry information with the exit information.
Optionally, the obtaining module is specifically configured to:
acquiring an exit image and exit time of a target to be analyzed;
performing feature analysis on the exit image to obtain exit feature data of the target to be analyzed, and taking the exit feature data and the exit time as exit information of the target to be analyzed;
the determining module is specifically configured to:
and calculating the similarity between the exit characteristic data and the entrance characteristic data corresponding to the entry information aiming at each entry information, and if the similarity is greater than a preset threshold value, taking the entry information as the entry information of the target to be analyzed.
Optionally, the obtaining module is specifically configured to:
acquiring all candidate exit images of a target to be analyzed within a preset second time range, taking the candidate exit image with the acquisition time closest to the current time as an exit image of the target to be analyzed, and taking the acquisition time of the exit image as the exit time of the target to be analyzed.
Optionally, the apparatus further comprises:
the first query module is used for acquiring a time period to be queried; and outputting the passing time of all the targets to be analyzed in the period to be queried of the exit time and the entry time.
Optionally, the apparatus further comprises:
the second query module is used for acquiring information to be queried; and matching the information to be inquired with the outlet information and/or the inlet information of all targets to be analyzed, and outputting the passing time of the targets to be analyzed corresponding to the matched outlet information and/or inlet information.
Optionally, the exit information further includes a first image of the object to be analyzed acquired at the exit, and the entrance information further includes a second image of the object to be analyzed acquired at the entrance;
the second query module is specifically configured to:
matching the information to be inquired with the outlet information and/or the inlet information of all the targets to be analyzed, and taking the matched targets to be analyzed as candidate output targets;
acquiring a first image, a second image and a passing time of the candidate output target;
verifying the passing time of the candidate output target based on the first image, the second image and the monitoring videos at the outlet and the inlet;
and if the verification is successful, outputting the passing time of the candidate output target.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the time length determination methods when executing the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for determining a duration is implemented as any one of the above methods.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above-mentioned duration determination methods.
The method and the device for determining the time length provided by the embodiment of the invention comprise the steps of firstly, acquiring outlet information of a target to be analyzed, wherein the outlet information is information acquired at an outlet, the outlet information comprises outlet time of the target to be analyzed, then, determining inlet information of the target to be analyzed according to the outlet information of the target to be analyzed, the inlet information is information acquired at an inlet, the inlet information comprises inlet time of the target to be analyzed, and further, determining the passing time length of the target to be analyzed according to the outlet time and the inlet time. Therefore, when the target to be analyzed reaches the outlet, the passing time of the target to be analyzed can be automatically calculated, and the working efficiency of workers can be monitored in real time. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without any creative effort.
Fig. 1 is a schematic flowchart of a duration determination method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system for determining duration according to an embodiment of the present invention in an implementation manner;
fig. 3 is a schematic flowchart of a duration determining apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, the method of determining the passing time of the target is generally to calculate the average passing time per unit time by counting the number of all passing persons in a longer time, for example, if 100 persons pass in 24 hours, the average passing time per person is about 14 minutes.
However, the above method can only determine the average passing time within a period of time, has a certain hysteresis, and cannot monitor the working efficiency of the staff in real time, so that the number of the staff or the working mode cannot be adjusted in time. Therefore, a method capable of determining the passing time of the target in real time is needed.
In order to solve the above technical problem, an embodiment of the present invention provides a duration determining method, which may be applied to a computer, a server, a network hard disk video recorder, and other devices.
The following generally describes the duration determination method provided by the embodiment of the present invention:
acquiring outlet information of a target to be analyzed, wherein the outlet information is information acquired at an outlet and comprises outlet time of the target to be analyzed;
determining inlet information of the target to be analyzed according to outlet information of the target to be analyzed, wherein the inlet information is information collected at an inlet, and the inlet information comprises inlet time of the target to be analyzed;
and determining the passing time of the target to be analyzed according to the exit time and the entrance time.
Therefore, according to the time length determining method provided by the embodiment of the invention, the passing time length can be automatically calculated when the target to be analyzed reaches the outlet, so that the working efficiency of workers can be monitored in real time.
The following describes the duration determination method provided by the embodiment of the present invention in detail through specific embodiments.
As shown in fig. 1, a schematic flow chart for determining a duration according to an embodiment of the present invention includes the following steps:
s101: and acquiring the exit information of the target to be analyzed.
The exit information is information collected at the exit, and the exit information includes exit time of the target to be analyzed. The object to be analyzed may be a person or a vehicle, and each exit has a corresponding entrance, for example, a person enters a security check from the entrance of the security check entrance, exits from the exit of the security check entrance, or a vehicle enters from the entrance of a toll station, exits from the exit of the toll station, etc.
The exit information of the target to be analyzed may include, in addition to the exit time, information related to the target to be analyzed, such as an image or feature information of the target to be analyzed, which uniquely corresponds to each target to be analyzed, in other words, a uniquely corresponding target to be analyzed may be determined according to the exit information.
In one implementation, when acquiring the exit information, an exit image and exit time of the target to be analyzed may be acquired first, then the exit image is subjected to feature analysis to obtain exit feature data of the target to be analyzed, and then the exit feature data and the exit time are used as the exit information of the target to be analyzed.
In some cases, a plurality of candidate exit images of the target to be analyzed at the exit are collected, and in this case, one candidate exit image needs to be determined as the exit image, so as to reduce multiple calculations on the same target to be analyzed.
For example, first, all candidate exit images of the target to be analyzed within a preset second time range may be obtained, then, the candidate exit image whose collection time is closest to the current time is taken as the exit image of the target to be analyzed, and further, the collection time of the exit image is taken as the exit time of the target to be analyzed. Therefore, a candidate exit image with the closest time is selected as the exit image, namely the time when the target to be analyzed finally leaves the exit, and the calculated passing time is more accurate.
S102: and determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed.
The entrance information is information collected at an entrance, and the entrance information comprises entrance time of the target to be analyzed.
The entry information of the target to be analyzed is similar to the exit information, and the entry information may include, in addition to the entry time, information related to the target to be analyzed, such as an image or feature information of the target to be analyzed, which uniquely corresponds to each target to be analyzed, in other words, a uniquely corresponding target to be analyzed may be determined based on the entry information.
Based on the above example that the exit characteristic data and the exit time are taken as the exit information of the target to be analyzed, the entry information may be the entry characteristic data and the entry time, in this case, when the entry information of the target to be analyzed is determined according to the exit information of the target to be analyzed, for each entry information, a similarity between the exit characteristic data and the entry characteristic data corresponding to the entry information may be calculated, and if the similarity is greater than a preset threshold, the entry information may be taken as the entry information of the target to be analyzed.
In one implementation, before obtaining the exit information of the target, a plurality of pieces of entry information may be obtained, and the plurality of pieces of entry information are stored in a preset database, so that, when determining the entry information of the target to be analyzed according to the exit information of the target to be analyzed, the entry information matched with the exit information may be searched from the preset database.
In this case, when searching for entry information matched with the exit information from the preset database, the entry information within a preset first time range from the exit time may be obtained from the preset database as candidate entry information, and then, the entry information matched with the exit information may be searched for from the candidate entry information as entry information of the target to be analyzed.
For example, the preset first time range may be 10 minutes, that is, the entry information within 10 minutes from the exit time may be acquired from the preset database, and the entry information is used as the candidate entry information, and then only the entry information of the target to be analyzed is searched from the candidate entry information, so that the calculation amount may be reduced.
In addition, when searching for entry information matched with the exit information from the preset database, the time difference between the entry time corresponding to each entry information in the preset database and the exit time can be calculated first, then, the preset number of pieces of entry information are determined according to the sequence of the time differences from small to large, the preset number of pieces of entry information are matched with the exit information, if the matching is successful, the matched entry information is used as the entry information of the target to be analyzed, if the matching is unsuccessful, the new preset number of pieces of entry information are determined according to the sequence of the time differences from small to large, and the step of matching the preset number of pieces of entry information with the exit information is returned.
That is to say, according to the time reverse order, a preset number of pieces of entry information are selected for matching each time, so that resources can be reasonably utilized, and the calculation efficiency is improved. The preset number may be 100 or 1, and is not limited specifically.
S103: and determining the passing time of the target to be analyzed according to the exit time and the entrance time.
Wherein the difference between the exit time and the entry time can be directly used as the passage time of the object to be analyzed.
After determining the passing time length of the target to be analyzed, the passing time length can be stored for subsequent query and statistics.
For example, after the user inputs the period to be queried, the passage durations of all the targets to be analyzed in the period to be queried of the exit time and the entry time may be output, for example, the period to be queried may be 12 o 'clock to 15 o' clock in 1 month and 1 day of 2019, after the user inputs the period, the passage durations of all the targets to be analyzed in the period of the exit time and the entry time may be obtained, and then, the average passage duration of the targets to be analyzed in the period may be calculated, so as to evaluate the work efficiency of the staff in the period.
Or, after the user inputs the information to be queried, the information to be queried may be matched with the exit information and/or the entry information of all the targets to be analyzed, and the passing time of the target to be analyzed corresponding to the matched exit information and/or entry information is output. The information to be queried may be some characteristic information of the target to be analyzed, such as identity information, face characteristic information, license plate information, and the like, and may also be image information of the target to be analyzed.
In one implementation, the exit information further includes a first image of a target to be analyzed acquired at the exit, and the entry information further includes a second image of the target to be analyzed at the entry, so that after the information to be queried is matched with the exit information and/or the entry information of all the targets to be analyzed, the matched target to be analyzed can be taken as a candidate output target, the first image, the second image and the passing time of the candidate output target are obtained, then, the passing time of the candidate output target is verified based on the first image, the second image and the monitoring videos at the exit and the entry, and after the verification is successful, the passing time of the candidate output target is output. The monitoring videos at the exit and the entrance can be obtained from preset monitoring equipment, and can also be respectively used as part of exit information and entrance information.
That is to say, the passing time of the target to be analyzed at the exit and the entrance can be attested by using the monitoring videos at the exit and the entrance, for example, when the time spent for the airport customer to complain about the security inspection is long, the customer can inquire where the problem occurs in the security inspection process at that time, and the monitoring images can be used for reference for both the passenger and the manager. In this way, the reliability of evaluating the work efficiency of the worker can be further improved.
Therefore, according to the time length determining method provided by the embodiment of the invention, the passing time length can be automatically calculated when the target to be analyzed reaches the outlet, so that the working efficiency of workers can be monitored in real time.
For example, as shown in fig. 2, there is provided an illustration of a system for determining a duration according to an embodiment of the present invention. The system comprises a face snapshot camera 1 for acquiring images at an entrance, a face snapshot camera 2 for acquiring images at an exit and an NVR (network Video Recorder).
The method comprises the steps that a face snapshot camera 1 collects an inlet image of a target to be analyzed, a face snapshot camera 2 collects an outlet image of the target to be analyzed, then the image is sent to an NVR, and the NVR determines the passing time of the target to be analyzed according to the images collected by the face snapshot camera 1 and the face snapshot camera 2.
Firstly, when a target to be analyzed passes through an entrance, the face snapshot camera 1 sends an acquired entrance image and entrance time to the NVR, the NVR performs feature analysis on the entrance image to obtain entrance feature data of the target to be analyzed, and the entrance feature data and the entrance time are used as entrance information and stored in a preset database.
Then, when the target to be analyzed passes through an outlet, the face snapshot camera 2 sends the acquired outlet image and the outlet time to the NVR, the NVR performs feature analysis on the outlet image to obtain outlet feature data of the target to be analyzed, the inlet feature data matched with the outlet feature data is searched from a preset database, and the inlet information of the target to be analyzed is determined.
Further, the NVR can calculate the difference between the exit time and the entrance time as the passage time of the object to be analyzed.
As shown in fig. 3, an embodiment of the present invention further provides a duration determining apparatus, where the duration determining apparatus includes:
an obtaining module 301, configured to obtain exit information of a target to be analyzed, where the exit information is information collected at an exit, and the exit information includes exit time of the target to be analyzed;
a determining module 302, configured to determine entry information of the target to be analyzed according to exit information of the target to be analyzed, where the entry information is information collected at an entry, and the entry information includes entry time of the target to be analyzed;
and the calculating module 303 is configured to determine a passing time of the target to be analyzed according to the exit time and the entry time.
In one implementation, the apparatus further includes:
a storage module (not shown in the figure) for acquiring a plurality of pieces of entry information and storing the plurality of pieces of entry information into a preset database;
the determining module 302 is specifically configured to:
and searching entry information matched with the exit information from the preset database to serve as the entry information of the target to be analyzed.
In an implementation manner, the determining module 302 is specifically configured to:
acquiring entrance information within a preset first time range from the exit time from the preset database, and taking the entrance information as candidate entrance information;
and searching entry information matched with the exit information from the candidate entry information to be used as entry information of the target to be analyzed.
In an implementation manner, the determining module 302 is specifically configured to:
calculating the time difference between the entrance time corresponding to each piece of entrance information in the preset database and the exit time;
determining a preset number of pieces of entry information according to the sequence of the time differences from small to large, and matching the preset number of pieces of entry information with the exit information;
and if the matching is successful, taking the matched entry information as the entry information of the target to be analyzed, if the matching is unsuccessful, determining a new preset number of pieces of entry information according to the sequence of the time difference from small to large, and returning to the step of matching the preset number of pieces of entry information with the exit information.
In an implementation manner, the obtaining module 301 is specifically configured to:
acquiring an exit image and exit time of a target to be analyzed;
performing feature analysis on the exit image to obtain exit feature data of the target to be analyzed, and taking the exit feature data and the exit time as exit information of the target to be analyzed;
the determining module 302 is specifically configured to:
and calculating the similarity between the exit characteristic data and the entrance characteristic data corresponding to the entry information aiming at each entry information, and if the similarity is greater than a preset threshold value, taking the entry information as the entry information of the target to be analyzed.
In an implementation manner, the obtaining module 301 is specifically configured to:
acquiring all candidate exit images of a target to be analyzed within a preset second time range, taking the candidate exit image with the acquisition time closest to the current time as an exit image of the target to be analyzed, and taking the acquisition time of the exit image as the exit time of the target to be analyzed.
In one implementation, the apparatus further includes:
a first query module 304, configured to obtain a time period to be queried; and outputting the passing time of all the targets to be analyzed in the period to be queried of the exit time and the entry time.
In one implementation, the apparatus further includes:
a second query module 305, configured to obtain information to be queried; and matching the information to be inquired with the exit information and/or the entrance information of all the targets to be analyzed, and outputting the passing time of the target to be analyzed corresponding to the matched exit information and/or entrance information.
In one implementation, the exit information further includes a first image of the object to be analyzed acquired at the exit, and the entry information further includes a second image of the object to be analyzed acquired at the entry;
the second query module 305 is specifically configured to:
matching the information to be inquired with the outlet information and/or the inlet information of all the targets to be analyzed, and taking the matched targets to be analyzed as candidate output targets;
acquiring a first image, a second image and a passing time of the candidate output target;
verifying the passing time of the candidate output target based on the first image, the second image and the monitoring videos at the outlet and the inlet;
and if the verification is successful, outputting the passing time of the candidate output target.
Therefore, the time length determining device provided by the embodiment of the invention can automatically calculate the passing time length of the target to be analyzed when the target to be analyzed reaches the outlet, so that the working efficiency of workers can be monitored in real time.
The embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
acquiring outlet information of a target to be analyzed, wherein the outlet information is information acquired at an outlet and comprises outlet time of the target to be analyzed;
determining inlet information of the target to be analyzed according to outlet information of the target to be analyzed, wherein the inlet information is information collected at an inlet, and the inlet information comprises inlet time of the target to be analyzed;
and determining the passing time of the target to be analyzed according to the exit time and the entrance time.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Therefore, according to the time length determining method provided by the embodiment of the invention, the passing time length can be automatically calculated when the target to be analyzed reaches the outlet, so that the working efficiency of workers can be monitored in real time.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, which when run on a computer, cause the computer to perform the duration determination method described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method for determining duration as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed.

Claims (12)

1. A method for determining a duration, the method comprising:
acquiring outlet information of a target to be analyzed, wherein the outlet information is information acquired at an outlet and comprises outlet time of the target to be analyzed;
determining entry information of the target to be analyzed according to the exit information of the target to be analyzed, wherein the entry information is information collected at an entry, and the entry information comprises entry time of the target to be analyzed;
and determining the passing time of the target to be analyzed according to the exit time and the entrance time.
2. The method of claim 1, wherein prior to the obtaining target egress information, the method further comprises:
acquiring a plurality of pieces of entrance information, and storing the plurality of pieces of entrance information into a preset database;
the determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed includes:
and searching entry information matched with the exit information from the preset database to serve as the entry information of the target to be analyzed.
3. The method according to claim 2, wherein the searching entry information matched with the exit information from the preset database as entry information of the target to be analyzed comprises:
acquiring entry information within a preset first time range from the exit time from the preset database, and taking the entry information as candidate entry information;
and searching entry information matched with the exit information from the candidate entry information to be used as the entry information of the target to be analyzed.
4. The method according to claim 2, wherein the searching entry information matched with the exit information from the preset database as entry information of the target to be analyzed comprises:
calculating the time difference between the entrance time corresponding to each piece of entrance information in the preset database and the exit time;
determining a preset number of pieces of entry information according to the sequence of the time differences from small to large, and matching the preset number of pieces of entry information with the exit information;
and if the matching is successful, using the matched entry information as the entry information of the target to be analyzed, if the matching is unsuccessful, determining a new preset number of pieces of entry information according to the sequence of the time difference from small to large, and returning to the step of matching the preset number of pieces of entry information with the exit information.
5. The method of claim 1, wherein the obtaining of the exit information of the target to be analyzed comprises:
acquiring an exit image and exit time of a target to be analyzed;
performing feature analysis on the exit image to obtain exit feature data of the target to be analyzed, and taking the exit feature data and the exit time as exit information of the target to be analyzed;
the determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed includes:
and calculating the similarity between the exit characteristic data and the entry characteristic data corresponding to the entry information aiming at each entry information, and if the similarity is greater than a preset threshold value, taking the entry information as the entry information of the target to be analyzed.
6. The method of claim 5, wherein the obtaining of the exit image and the exit time of the target to be analyzed comprises:
acquiring all candidate exit images of a target to be analyzed within a preset second time range, taking the candidate exit image with the acquisition time closest to the current time as an exit image of the target to be analyzed, and taking the acquisition time of the exit image as the exit time of the target to be analyzed.
7. The method of claim 1, further comprising:
acquiring a time period to be queried;
and outputting the passing time of all the targets to be analyzed in the period to be queried of the exit time and the entry time.
8. The method of claim 1, further comprising:
acquiring information to be inquired;
and matching the information to be inquired with the exit information and/or the entrance information of all the targets to be analyzed, and outputting the passing time of the target to be analyzed corresponding to the matched exit information and/or entrance information.
9. The method of claim 8, wherein the exit information further comprises a first image of the object to be analyzed acquired at an exit, and the entrance information further comprises a second image of the object to be analyzed acquired at an entrance; the matching the information to be queried with the exit information and/or the entrance information of all the targets to be analyzed, and outputting the passing time of the target to be analyzed corresponding to the matched exit information and/or entrance information, includes:
matching the information to be inquired with the outlet information and/or the inlet information of all the targets to be analyzed, and taking the matched targets to be analyzed as candidate output targets;
acquiring a first image, a second image and a passing time of the candidate output target;
verifying the passing time of the candidate output target based on the first image, the second image and the monitoring videos at the outlet and the inlet;
and if the verification is successful, outputting the passing time of the candidate output target.
10. An apparatus for determining a duration, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring outlet information of a target to be analyzed, the outlet information is information acquired at an outlet, and the outlet information comprises outlet time of the target to be analyzed;
the determining module is used for determining the entrance information of the target to be analyzed according to the exit information of the target to be analyzed, wherein the entrance information is information collected at an entrance, and the entrance information comprises the entrance time of the target to be analyzed;
and the calculation module is used for determining the passing time of the target to be analyzed according to the exit time and the entrance time.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-9 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-9.
CN201910380107.6A 2019-05-08 2019-05-08 Duration determination method and device Pending CN111914591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380107.6A CN111914591A (en) 2019-05-08 2019-05-08 Duration determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380107.6A CN111914591A (en) 2019-05-08 2019-05-08 Duration determination method and device

Publications (1)

Publication Number Publication Date
CN111914591A true CN111914591A (en) 2020-11-10

Family

ID=73241759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380107.6A Pending CN111914591A (en) 2019-05-08 2019-05-08 Duration determination method and device

Country Status (1)

Country Link
CN (1) CN111914591A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159415A (en) * 2021-04-19 2021-07-23 武汉亿融信科科技有限公司 Intelligent tourist attraction route recommendation method based on mobile internet and big data analysis
CN114244852A (en) * 2021-11-09 2022-03-25 北京罗克维尔斯科技有限公司 Data transmission method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000215337A (en) * 1999-01-26 2000-08-04 Amano Corp Time recorder terminal provided with inquiry display function
JP2003337992A (en) * 2002-05-22 2003-11-28 Hitachi Kokusai Electric Inc Traffic information providing system using vehicle speed monitor system
JP2012137906A (en) * 2010-12-27 2012-07-19 Kozo Keikaku Engineering Inc Staying time measuring device, staying time measuring system and staying time measuring method
JP2017151832A (en) * 2016-02-26 2017-08-31 株式会社日立製作所 Wait time calculation system
CN107578521A (en) * 2017-08-22 2018-01-12 西南交通大学 Queuing management method and system, electronic equipment and computer-readable recording medium
JP2019032181A (en) * 2017-08-04 2019-02-28 株式会社ナビタイムジャパン Information processing system, information processing program, information processing apparatus and information processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000215337A (en) * 1999-01-26 2000-08-04 Amano Corp Time recorder terminal provided with inquiry display function
JP2003337992A (en) * 2002-05-22 2003-11-28 Hitachi Kokusai Electric Inc Traffic information providing system using vehicle speed monitor system
JP2012137906A (en) * 2010-12-27 2012-07-19 Kozo Keikaku Engineering Inc Staying time measuring device, staying time measuring system and staying time measuring method
JP2017151832A (en) * 2016-02-26 2017-08-31 株式会社日立製作所 Wait time calculation system
JP2019032181A (en) * 2017-08-04 2019-02-28 株式会社ナビタイムジャパン Information processing system, information processing program, information processing apparatus and information processing method
CN107578521A (en) * 2017-08-22 2018-01-12 西南交通大学 Queuing management method and system, electronic equipment and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159415A (en) * 2021-04-19 2021-07-23 武汉亿融信科科技有限公司 Intelligent tourist attraction route recommendation method based on mobile internet and big data analysis
CN114244852A (en) * 2021-11-09 2022-03-25 北京罗克维尔斯科技有限公司 Data transmission method, device, equipment and storage medium
CN114244852B (en) * 2021-11-09 2024-01-30 北京罗克维尔斯科技有限公司 Data transmission method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111724522B (en) Access control system, method and device, control equipment and storage medium
CN110751675B (en) Urban pet activity track monitoring method based on image recognition and related equipment
CN109672936B (en) Method and device for determining video evaluation set and electronic equipment
CN111028503B (en) Vehicle lane change monitoring method and device
CN111914591A (en) Duration determination method and device
CN110706016A (en) Method and device for detecting business abnormity and computer readable storage medium
CN113343913A (en) Target determination method, target determination device, storage medium and computer equipment
CN114415908A (en) Display method, display device, electronic equipment and storage medium
CN113077018A (en) Target object identification method and device, storage medium and electronic device
CN113282920A (en) Log abnormity detection method and device, computer equipment and storage medium
CN112687044A (en) Method, system, medium, and apparatus for managing staying person
CN112149451B (en) Affinity analysis method and device
CN111369703A (en) Online time determination method, device, server and medium
CN113343004B (en) Object identification method and device, storage medium and electronic device
CN113327336B (en) Method and device for identifying people-vehicle relationship and electronic equipment
CN114038040A (en) Machine room inspection monitoring method, device and equipment
CN111831841B (en) Information retrieval method, device, electronic equipment and storage medium
CN112150795B (en) Method and device for detecting vehicle track abnormity
CN111858285A (en) Video operation behavior abnormity identification method and device, server and storage medium
CN112488562A (en) Service implementation method and device
CN114666142B (en) Object authentication method, device and system
CN112037358B (en) Attendance statistics method and device, electronic equipment and storage medium
CN110113228B (en) Network connection detection method and device
CN112863231B (en) Method, system and device for calibrating remaining parking spaces of parking lot and storage medium
CN113095110B (en) Method, device, medium and electronic equipment for dynamically warehousing face data

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