CN112100668A - Video query method and device and electronic equipment - Google Patents

Video query method and device and electronic equipment Download PDF

Info

Publication number
CN112100668A
CN112100668A CN202011017636.9A CN202011017636A CN112100668A CN 112100668 A CN112100668 A CN 112100668A CN 202011017636 A CN202011017636 A CN 202011017636A CN 112100668 A CN112100668 A CN 112100668A
Authority
CN
China
Prior art keywords
user
hidden
video
time period
user identity
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.)
Granted
Application number
CN202011017636.9A
Other languages
Chinese (zh)
Other versions
CN112100668B (en
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 CN202011017636.9A priority Critical patent/CN112100668B/en
Publication of CN112100668A publication Critical patent/CN112100668A/en
Application granted granted Critical
Publication of CN112100668B publication Critical patent/CN112100668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a video query method, a video query device and electronic equipment, wherein the video query method comprises the following steps: receiving a query request; the query request includes at least: a user identity; finding out at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request; if the user identity is determined to be used for indicating that the hidden video is allowed to be checked according to the user identity, the video segments which are not matched with all the hidden time periods in the at least one video segment and the video segments which are matched with the at least one hidden time period and are provided with the hidden marks are returned to the query end used for sending the query request, so that the video segments which are not matched with all the hidden time periods and the video segments which are matched with the at least one hidden time period and are provided with the hidden marks are respectively displayed by the query end. By using the method provided by the application, the probability of leakage of the privacy information in the important video clip needing to be hidden can be reduced during video inquiry.

Description

Video query method and device and electronic equipment
Technical Field
The present application relates to the field of computer communications, and in particular, to a video query method and apparatus, and an electronic device.
Background
In a monitoring scene, monitoring equipment is deployed in a monitoring area, and the monitoring equipment can send the collected video segments to a background server. The inquiring party can obtain the video segment to be inquired from the background server through the client.
In the existing video recording query technology, a server returns all video recording segments of the video recording time in a query time period input by a query party to the query party. However, in the existing video query technology, a return mode without distinguishing by a server can cause the disclosure of privacy information in some important video clips needing to be hidden.
Disclosure of Invention
In view of this, the present application provides a video recording query method, a video recording query device, and an electronic device, so as to reduce the probability of leakage of privacy information in an important video recording segment that needs to be hidden.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, there is provided a video recording query method, the method including:
receiving a query request; the query request includes at least: a user identity;
finding out at least one corresponding video segment according to the query request;
determining at least one hidden time period corresponding to the query request;
and if the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
Optionally, the hidden flag is set as follows:
determining at least one target video segment matched with the hidden time segment in the searched at least one video segment;
and selecting a target video clip to be returned from the at least one target video clip, and setting a hidden mark for the target video clip to be returned.
Optionally, the determining, in the at least one found video segment, at least one target video segment matched with the hidden time segment includes:
and in the at least one found video segment, aiming at each hidden time segment, determining a target video segment matched with the hidden time segment from the video segment according to the hidden time segment for the video segment with the intersection with the hidden time segment.
Optionally, the target video clips to be returned are all target video clips matched with the hidden time period; or the target video clip to be returned is a target video clip meeting the preset video clip condition;
the preset video clip conditions comprise:
the video level of the video clip to be returned is lower than the preset video level; and/or the presence of a gas in the gas,
matching the video level of the video clip to be returned with the video level corresponding to the user identity mark; and/or the presence of a gas in the gas,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark; and/or the presence of a gas in the gas,
and setting the user level of the user of the hidden time period corresponding to the video clip to be returned to be lower than the user level indicated by the user identity identification.
Optionally, the method further includes:
and if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, deleting all target video segments from the searched video segments and returning the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
Optionally, the determining, according to the user identity, that the user identity is used to indicate that viewing of the hidden video is prohibited includes:
if the user identity identification meets a first condition and/or a second condition, determining that the user identity identification is used for indicating that the hidden video is prohibited from being viewed;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet a preset user condition; the first type of user has the right to set a hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
and setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity.
Optionally, determining, according to the user identity, that the user identity is used to indicate that viewing of the hidden video is allowed includes:
if the user identity meets the third condition and/or the fourth condition, determining that the user identity is used for indicating that the hidden video is allowed to be viewed;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition; the first type of user has the right to set a hidden time period;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
and setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity.
Optionally, the method further includes:
receiving a hidden video setting request; the hidden video setting request includes: marking a monitoring point to be set and hiding a time period; the hidden time period is determined according to the information of the specified object identified in the snapshot image of the monitoring point;
recording the corresponding relation between the monitoring point identifier to be set and the hidden time period;
the query request further includes: identifying a target monitoring point to be inquired;
the determining at least one hidden time period corresponding to the query request includes:
and determining at least one hidden time period corresponding to the target monitoring point identifier in the corresponding relation.
According to a second aspect of the present application, there is provided a video recording inquiry apparatus, the apparatus comprising:
a receiving unit, configured to receive a query request; the query request includes at least: a user identity;
the searching unit is used for searching at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request;
and if the user identity is determined to be used for indicating permission to view the hidden videos according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to the query end for sending the query request, so that the query end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
Optionally, the returning unit is configured to determine, in the found at least one video segment, at least one target video segment that matches the hidden time segment when the hidden flag is set; selecting a target video clip to be returned from the at least one target video clip, and setting a hidden mark for the target video clip to be returned;
the return unit is used for determining the target video segment matched with the hidden time period from the video segment according to the hidden time period when determining the target video segment matched with the hidden time period in the searched at least one video segment;
the target video clips to be returned are all target video clips matched with the hidden time period; or the target video clip to be returned is a target video clip meeting the preset video clip condition;
the preset video clip conditions comprise:
the video level of the video clip to be returned is lower than the preset video level; and/or the presence of a gas in the gas,
matching the video level of the video clip to be returned with the video level corresponding to the user identity mark; and/or the presence of a gas in the gas,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark; and/or the presence of a gas in the gas,
and setting the user level of the user of the hidden time period corresponding to the video clip to be returned to be lower than the user level indicated by the user identity identification.
The returning unit is further configured to delete all target video segments from the found video segments and return the target video segments to the query end for sending the query request if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, where all the target video segments include a target video segment which is determined for each hidden time period and matches the hidden time period;
the return unit is used for determining that the user identity is used for indicating that the hidden video is prohibited to be viewed if the user identity meets a first condition and/or a second condition when the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet a preset user condition; the first type of user has the right to set a hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
the return unit is used for determining that the user identity is used for indicating that the hidden video is allowed to be viewed if the user identity meets a third condition and/or a fourth condition when the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition; the first type of user has the right to set a hidden time period;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
the receiving unit is also used for receiving a hidden video setting request; the hidden video setting request includes: marking a monitoring point to be set and hiding a time period; the hidden time period is determined according to the information of the specified object identified in the snapshot image of the monitoring point; recording the corresponding relation between the monitoring point identifier to be set and the hidden time period;
the query request further includes: identifying a target monitoring point to be inquired;
and the determining unit is used for determining at least one hidden time period corresponding to the target monitoring point identifier in the corresponding relationship when determining at least one hidden time period corresponding to the query request.
According to a third aspect of the present application, there is provided an electronic device comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor is configured to read the machine executable instruction on the readable storage medium and execute the instruction to implement the video recording query method.
According to a fourth aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, implements the video recording query method described above.
According to a fifth aspect of the present application, there is provided a computer program, which is stored in a computer-readable storage medium and causes a processor to implement the above-mentioned video recording inquiry method when the computer program is executed by the processor.
As can be seen from the above description, when receiving a query request, the server may find at least one corresponding video segment according to the query request, and determine at least one hidden time segment corresponding to the query request. If the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end respectively displays the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks.
On one hand, the server returns the hidden video segment within the authority range of the inquiring party to the inquiring party based on the user identity of the inquiring party, so that the hidden video with privacy in the video segment can be ensured not to be revealed.
On the other hand, the inquiring party can distinguish important hidden videos and common videos based on the hidden marks, and further can distinguish and display the hidden videos and the common videos.
Drawings
FIG. 1 is a block diagram illustrating the networking architecture of a video cassette recording query system according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating a video recording query method according to an exemplary embodiment of the present application;
FIG. 3 is a diagram illustrating a video presentation according to an exemplary embodiment of the present application;
FIG. 4 is a flow diagram illustrating another video recording query method according to an exemplary embodiment of the present application;
FIG. 5 is a flow diagram illustrating another video recording query method according to an exemplary embodiment of the present application;
FIG. 6 is a diagram illustrating a hardware configuration of an electronic device according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a video recording inquiry apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application aims to provide a video query method, and when a server receives a query request, the server can search at least one corresponding video segment according to the query request and determine at least one hidden time segment corresponding to the query request. And if the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end displays the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks in a distinguishing manner.
On one hand, the server returns the hidden video segment (namely the video segment which is matched with at least one hidden time period and is provided with the hidden mark) in the authority range of the inquiring party to the inquiring party based on the user identity of the inquiring party, so that the hidden video with privacy in the video segment can be ensured not to be revealed.
On the other hand, the inquiring party can distinguish important hidden videos and common videos based on the hidden marks, and further can distinguish and display the hidden videos and the common videos.
Referring to fig. 1, fig. 1 is a block diagram illustrating a networking architecture of a video recording query system according to an exemplary embodiment of the present application.
The networking of the video inquiry system comprises: object recognition device, client and server.
The object identification device is deployed in the monitoring area and used for identifying whether a specified object appears in the monitoring area or not and informing the client when the specified object appears. In addition, the object recognition device can also send the video collected in the monitoring area to the server for storage.
The object recognition device may be a physical device such as a monitoring device having an object recognition function (the monitoring device is also referred to as a monitoring point such as a camera, or the like). Of course, the object recognition device may also be a virtual device, for example, the object device is a virtual device composed of a monitoring device and an object recognition server. The monitoring equipment is used for collecting images and sending the images to the object recognition server, and the object recognition server recognizes the object from the images.
Further, it should be noted that the above-mentioned objects may include people, vehicles, animals, etc., and the objects are only exemplary and not particularly limited.
And the client is used for providing the functions of setting the hidden time period and inquiring the video recording period for the user.
And the server is used for storing the video segments collected by the object identification equipment, storing the hidden time segments set by the user, returning the video segments to be inquired by the user when the user inquires the video segments and the like.
The following describes the video recording inquiry method provided by the present application in detail from both the setting of the hidden time period and the inquiry of the video recording period.
1. Setting of hidden time periods
In the present application, the client provides multiple types of roles for the user, such as a first type of role and a second type of role. Wherein, the first type role (also called as a first type user) has the authority to set the hidden time period, and the second type role (also called as a second type user) does not have the authority to set the hidden time period. For example, the first type of role can be an administrator role. The second type of role can be an operator role. Of course, other roles are possible, and this is only an example and is not particularly limited.
The following describes an exemplary setting of the hidden time period provided by the present application, taking the first type role as an administrator and the second type role as an operator.
The administrator has the authority to set the hidden period, and the operator does not have the authority to set the hidden period.
Specifically, after the user logs in the system, if the user logs in the client in the administrator status, the client displays an administrator page to the user. The administrator page is provided with an option for triggering the setting of the hidden time period, and the administrator can complete the setting of the hidden time period by triggering the option.
If the user logs in the client in the operator status, the client displays an operator page to the user. The operator page does not have an option to trigger setting of the hidden period, so the operator cannot set the hidden period.
In an alternative implementation manner, when the object recognition device detects that a specified object appears in the monitored area, the object recognition device may send a prompt message to the client. After receiving the prompt message displayed by the client, the administrator can set a hidden time period according to the video collected by the object identification device.
When the method is realized, the information of the specified object is pre-configured on the object recognition equipment, the information of the target object appearing at the monitoring point is collected at the object recognition equipment, whether the recorded information of the specified object is hit or not can be detected, and if the recorded information of the specified object is hit, the target object is determined to be the specified object.
It should be noted that, when the object is a person, the information of the specified object is a face image or a face feature of the specified person, and the information of the target object is a face image or a face feature of a person appearing at the monitoring point.
When the object is a vehicle, the information of the designated object is the license plate number and the color of the designated vehicle, and the information of the target object is the license plate number and the color of the vehicle appearing at the monitoring point.
In the embodiment of the application, after the object identification device determines that the target object is the designated object, the object identification device may send prompt information to the client. After receiving the prompt message, the administrator of the client may set a hidden time period based on the video returned by the object identification device (e.g., according to the time length of the target object appearing at the monitoring point).
The monitoring area is, for example, a conference room. The designated object is a company manager. And when the object identification equipment of the conference room detects that the manager enters the conference room, sending a reminding message to the client. The administrator may set the conference time length of the manager's meeting as the hidden time period, or set the time length occupied by important conference content in the conference as the hidden time period.
The administrator sets a corresponding relationship between the hidden time period and the monitoring point identifier (i.e., the identifier of the monitoring device in the monitoring area) on the administrator page. And the client generates a hidden video setting request according to the corresponding relation between the hidden time period and the monitoring point identifier, and sends the hidden video setting request to the server.
After receiving the hidden video setting request, the server may record the corresponding relationship between the hidden time period and the monitoring point identifier.
In another alternative implementation manner, when the object recognition device detects that the specified object appears at the monitoring point, the object recognition device may send a prompt message to the client. The prompt message includes: the monitoring point identifies and specifies information of the object. The client may set the hiding period based on the information of the specified object returned by the object recognition device.
For example, the client may determine the stay time of the specified object at the monitoring point based on the video of the monitoring point returned by the object recognition device, and set the hidden time period according to the stay time.
For another example, the object recognition device further has a voice recognition function, and the object recognition device sends the recognized specified vocabulary to the client. For example, when the object recognition device recognizes "important content", the "important content" is returned to the client, and the client sets the hidden time period according to the receiving time of the vocabulary.
Here, the client automatically sets the hidden period is merely exemplified and not particularly limited.
After determining the hidden time period, the client can send a hidden video setting request to the server. The hidden video setting request includes: and hiding the corresponding relation between the time period and the monitoring point identification.
After receiving the hidden video setting request, the server may record the corresponding relationship between the hidden time period and the monitoring point identifier.
2. Video segment query
Referring to fig. 2, fig. 2 is a flowchart illustrating a video recording query method according to an exemplary embodiment of the present application, where the method may be applied to a server and may include the following steps.
Step 201: the server receives the query request; the query request includes at least: a user identity;
the query request may further include: the identification of the target monitoring point to be inquired, the inquiry time period of the target to be inquired and the like. Here, the query request is merely exemplary and is not specifically limited.
When the user wants to inquire the video segment, the user can input the target monitoring point mark to be inquired, the target inquiry time segment to be inquired and other information on the client
The client may obtain the user identity when the user logs in the client, or may generate the user identity based on the identity used/displayed when the user logs in the client.
The client side can generate a query request based on a target monitoring point identifier, a target query time period and a user identity identifier which are input by a user, and send the generated query request to the server.
Step 202: the server searches at least one corresponding video segment according to the query request; the server determines at least one hidden time period corresponding to the query request.
When implemented, the query request may further include: and identifying a target monitoring point to be queried and querying a time period.
During query, the server stores the video segments collected by each monitoring point and the video time corresponding to each video segment. The recording time is a time period formed by the start time and the end time of a recording segment.
The server can search at least one video segment of the video time in the target query time period and corresponding to the target monitoring point identifier in the collected video segments.
In the implementation of the present application, as can be seen from the above description, the server may record the correspondence between the monitoring point identifier and the hidden time period.
The query request may also carry an identifier of a target monitoring point to be queried.
When the server determines at least one hidden time period corresponding to the query request, the server may search for the at least one hidden time period corresponding to the target monitoring point identifier in the correspondence between the monitoring point identifier and the hidden time period, as the at least one hidden time period corresponding to the query request.
Step 203: if the server determines that the user identity is used for indicating permission to view the hidden video according to the user identity, the server returns the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end respectively displays the video segments which are not matched with the hidden time periods and the video segments which are matched with the hidden time periods and provided with the hidden marks.
Step 203 is explained in detail below through step 2031 to step 2032.
Step 2031: and the server sets a hidden mark in the searched at least one video segment.
Step 2031 is described in detail below by steps a1 through a 2.
Step A1: and the server determines at least one target video segment matched with the hidden time segment in the searched at least one video segment.
Here, it may be that at least one target video segment matching the partial hiding period is determined, for example, in the case that in at least one hiding period, a video segment corresponding to the partial hiding period cannot be returned to the query side for display, only a target video segment matching another partial hiding period except the partial hiding period needs to be determined; or determining all target video segments according to each hidden time period, wherein all the target video segments include the target video segment which is determined for each hidden time period and is matched with the hidden time period.
When the method is realized, for the found video segments with intersection with the hidden time period, the target video segments matched with the hidden time period are determined from the video segments according to the hidden time period.
The found video segment having an intersection with the hidden time segment includes two cases.
In the first case, there is an intersection between the recording time of the recording segment and the hidden time segment, and the recording time of the recording segment is included in the hidden time segment. For this case, the server may directly use the recorded segment as a target recorded segment matching the hidden segment.
In the second case, there is an intersection between the recording time of the recording segment and the hidden time segment, and the recording time of the recording segment is not included in the hidden time segment. In this case, the server may divide the video segment based on the start time or the end time of the hidden time period to obtain a plurality of video segments, and use the divided video segments in the hidden time period as the target video segments.
Example 1, assume that the target monitoring point in the query request is monitoring point 1 and the target query time period is 2020-06-0108: 00:00 to 2020-06-0112: 00: 00.
Suppose that the hidden time period corresponding to the monitoring point 1 is 2020-06-0109: 20:00 to 2020-06-0110: 20: 00.
After receiving the query request, the server may search at least one video segment, in the collected video segments, whose video recording time is within the target query time period (i.e., 2020-06-0108: 00:00 to 2020-06-0112: 00:00) and which corresponds to the target monitoring point identifier (i.e., monitoring point 1), where the searched video segment is shown in table 1.
Video segment Starting time End time
Video segment 1 2020-06-01T08:00:00.000Z 2020-06-01T09:10:00.000Z
Video segment 2 2020-06-01T09:10:00.000Z 2020-06-01T10:10:00.000Z
Video segment 3 2020-06-01T10:10:00.000Z 2020-06-01T11:10:00.000Z
Video segment 4 2020-06-01T11:10:00.000Z 2020-06-01T12:00:00.000Z
TABLE 1
The server may then record segments that intersect the hidden segments, in this example, segments 2 and 3.
For recorded segment 2, the server may divide recorded segment 2 into segments 21 of 9:10-9:20 and segments 22 of 9:20-10:00 based on the starting time of the hidden time period (i.e., 9:20), consistent with the second case described above. Since the segment 22 is within the hidden time period, the server may determine that the segment 22 is a target video segment.
For the recorded segment 3, the server divides the recorded segment 2 into segments 31 of 10:10-10:20 and recorded segments 32 of 10:20-11:10 based on the end time of the hidden time period (i.e., 10:20), in conformity with the second case described above. Since the segment 31 is in the hidden period, the server may determine that the segment 31 is the target video segment.
The divided fragments are shown in table 2.
Video segment Starting time End time
Video segment 1 2020-06-01T08:00:00.000Z 2020-06-01T09:10:00.000Z
Segment 21 2020-06-01T09:10:00.000Z 2020-06-01T09:20:00.000Z
Segment 22 2020-06-01T09:20:00.000Z 2020-06-01T10:10:00.000Z
Segment 31 2020-06-01T10:10:00.000Z 2020-06-01T10:20:00.000Z
Segment 32 2020-06-01T10:20:00.000Z 2020-06-01T11:10:00.000Z
Video segment 4 2020-06-01T11:10:00.000Z 2020-06-01T12:00:00.000Z
TABLE 2
Step A2: and the server selects a target video clip to be returned from the at least one target video clip, and sets a hidden mark for the target video clip to be returned.
In an optional implementation manner, the target video segments to be returned are all target video segments matched with the hidden time period, and the server may set hidden marks for all target video segments matched with the hidden time period. Optionally, if the server determines all target video segments in the found at least one video segment according to each hidden time period, where all the target video segments include a target video segment determined for each hidden time period and matching with the hidden time period, the target video segment to be returned may be all the target video segments, and the server may set hidden marks for all the target video segments.
The hidden mark is used for enabling an inquiring party to distinguish the hidden video segment and the common video segment in the video segments returned by the server, so that the inquiring party can distinguish and display the hidden video segment and the common video segment.
Still taking the example of table 1 as an example, in this implementation, the server may determine that segment 22 and segment 31 are to-be-returned segments and set a hidden flag for segment 22 and segment 31.
In another optional implementation manner, the server may select, from the determined at least one target video segment, a target video segment that meets a preset video segment condition as a video segment to be returned, and set a hidden mark for the video segment to be returned.
Wherein, the preset video segment condition may include one or more of the following:
condition 1: the video level of the video clip to be returned is lower than the preset video level;
condition 2: matching the video level of the video clip to be returned with the video level corresponding to the user identity mark;
condition 3: the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark;
condition 4: and setting the user level of the user of the hidden time period corresponding to the video clip to be returned to be lower than or equal to the user level indicated by the user identity identification.
For condition 1:
the server can set different video recording levels for the collected video recording sections according to factors such as the importance of the video recording sections, and the lower the video recording level is, the lower the importance degree of the video recording is. Regardless of the identity of the inquiring party, as long as the inquiring party allows the hidden videos to be viewed, the server can return the target video segments with the video level lower than the preset threshold value to the inquiring party, and does not return the target video segments with the video level higher than the preset threshold value to the inquiring party. In other words, the service may return the video clips with low importance to the inquiring party and not return the video clips with high importance to the inquiring party.
For condition 2:
condition 2 is implemented such that the user can only view the hidden video segments of the video level that match the user level of the user (i.e., the video segments that match the hidden time period).
The server may set a video level for the collected video segments and a different user level for the user. In addition, the server pre-configures the video recording level of the target video recording segment which can be viewed by each user level.
For example, the video recording levels are respectively a level a, B level, and C level. The user level is configured to be a high-level administrator, a middle-level administrator and a common administrator.
The recording level corresponding to the user id configured by the server is shown in table 3.
Figure BDA0002699612020000161
Figure BDA0002699612020000171
TABLE 3
Assuming that the inquiring party is a middle-level administrator, the server may select a video segment with a video level of B-C from at least one target video segment matched with each hidden time period as a video segment to be returned.
For condition 3:
the object achieved by condition 3 is: when the user identity is used for indicating that the hidden video is allowed to be viewed, the user can view the video clip matched with the hidden time period set by the user.
For example, the example in example 1 is also taken as an example.
If the hidden time period 2020-06-0109: 20:00 to 2020-06-0110: 20:00 is set by the inquiring party, both the determined section 22 and the section 31 are determined as the video sections to be returned.
And if the hidden time period 2020-06-0109: 20:00 to 2020-06-0110: 20:00 is not set by the inquiring party, determining that no video segment to be returned is matched with the hidden time period.
For condition 4:
the object to be achieved by condition 4 is: the high-level user can check the video clips matched with the hidden time periods set by the low-level user.
For example, the example in example 1 is still taken as an example.
Assume that the above hidden time periods 2020-06-0109: 20:00 through 2020-06-0110: 20:00 are set by a middle-level administrator and the querying party is a high-level administrator.
The server may determine both the determined segment 22 and the segment 31 as video segments to be returned.
Further assume that the above hidden time periods 2020-06-0109: 20:00 through 2020-06-0110: 20:00 are set by a senior administrator and the querying party is a senior administrator.
Since the level of the inquiring party is lower than the level of the user who sets the hidden time period, the server can determine that there is no target video segment matching the hidden time period, which meets the inquiry authority of the inquiring party, so in this example, there is no video segment to be returned matching the hidden time period.
Step 2032: and if the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
When the method is realized, if the user identity identification meets a third condition and/or a fourth condition, determining that the user identity identification is used for indicating that the hidden video is allowed to be viewed;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold value.
Step 204: and if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, deleting all target video segments from the searched video segments and returning the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
When the user identity identification is realized, if the user identity identification meets a first condition and/or a second condition, the server determines that the user identity identification is used for indicating that the hidden video is prohibited to be viewed;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet the preset user condition.
Wherein, the first type user has the authority to set the hiding time period, and the second type user does not have the authority to set the hiding time period. For example, the first type of user is an administrator and the second type of user is an operator. Here, the first type user and the second type user are only exemplified and not particularly limited.
Various implementations of step 2032 and step 204 are described in detail below.
Case 1: a first type of user (e.g., an administrator) may view the hidden video, and a second type of user (e.g., an operator) may not allow viewing of the hidden video.
In this case, when the server determines, according to the user identity, whether the user identity is used for indicating that the hidden video is prohibited from being viewed or permitted to be viewed, the server may determine a user type corresponding to the user identity, and if the user type is the second type, determine that the user identity is used for indicating that the hidden video is prohibited from being viewed. At this time, the server may delete all target video segments from the found video segments and return the target video segments to the query end for sending the query request, where all the target video segments include the target video segment determined for each hidden time segment and matched with the hidden time segment.
If the user type is the first type, determining that the user identity is used for indicating that hidden video viewing is allowed, and returning video segments which are not matched with all the hidden time periods and video segments which are matched with at least one hidden time period and are provided with hidden marks to the query end.
Case 2: the present application divides the level of a first type of user (e.g., administrator), such as a high level administrator, a medium level administrator, a low level administrator, etc.
When the first type of user satisfies the user condition, the server determines that the user is a user who is allowed to view the hidden video.
The second type of user (e.g., an operator) cannot view the hidden video.
In this case, the user conditions include: in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity.
Several implementations of determining whether the user id indicates that the hidden video record is prohibited or permitted to be viewed according to the user id are described below, which are only exemplary and are not specifically limited.
The implementation mode is as follows:
the server may determine a user type to which the user identity corresponds.
1) If the user type is the first type, the server can detect whether each hidden time period is set for the user corresponding to the user identity. If any hidden time period (any hidden time period or any plurality of hidden time periods) is set for the user corresponding to the user identity in each hidden time period, determining that the user identity is used for indicating that the hidden video is allowed to be viewed, and returning video segments which are not matched with the hidden time periods and video segments which are matched with at least one hidden time period and are set with the hidden marks to the query end. And if all the hidden time periods are not the user setting corresponding to the user identity, determining that the user identity is used for indicating that the hidden video is forbidden to be viewed.
For example, assume that two determined concealment periods are 9:00-10:00, 13:00-14: 00.
Assume that the query time period carried in the query request is 8:00-15: 00.
Assume that administrator 1 sets the hidden period 9:00-10:00 and administrator 2 sets the hidden period 13:00-14: 00.
Assume that the inquirer is administrator 1. Since administrator 1 sets the hidden period of the hidden period 9:00 to 10:00, administrator 1 allows viewing of the hidden video.
In addition, in combination with the above-mentioned manner that "the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identification", since the administrator 1 sets the hidden time period 9:00 to 10:00, the server may set the hidden flag for the video clip of 9:00 to 10:00, and the server may return the hidden flag set for 9:00 to 10: the video clip of 00, and the video clips of 8:00-9:00, 10:00-13:00 and 14:00-15:00 which are not matched with all the hidden time periods are returned.
2) If the user type is the second type, the server deletes all target video segments from the found video segments and returns the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time period and are matched with the hidden time period.
Therefore, the administrator can only inquire the hidden video corresponding to the hidden time period set by the administrator and cannot inquire the hidden video corresponding to the hidden time period set by other administrators. The operator cannot view the hidden video.
The implementation mode two is as follows:
the server may determine a user type to which the user identity corresponds.
1) If the user type is the first type, the server can detect whether the user level of the user set in each hidden time period is lower than or equal to the user level corresponding to the user identity. And if the user level of the user with the any hidden time period is lower than the user level corresponding to the user identity, determining that the user identity is used for indicating that the hidden video is allowed to be checked, and returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and are provided with the hidden marks to the inquiry end. And if the user levels of the users in all the hidden time periods are higher than the user levels corresponding to the user identity identifiers, determining that the user identity identifiers are used for indicating that the hidden video is forbidden to be viewed, deleting all target video segments from the searched video segments by the server and returning the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time period and are matched with the hidden time period.
For example, assume that two determined concealment periods are 9:00-10:00, 13:00-14: 00.
Assume that the query time period carried in the query request is 8:00-15: 00.
Assume that administrator 1 sets the hidden period 9:00-10:00 and administrator 2 sets the hidden period 13:00-14: 00.
Assuming that there are 3 administrators, administrator 1, administrator 2, and administrator 3, the levels of these three administrators are, in order from high to low: administrator 1> administrator 3> administrator 2.
Assume that the inquirer is administrator 3. Since the level of the administrator 3 is higher than that of the administrator 2 who sets the hidden period 13:00-14:00, the administrator 3 allows viewing of the hidden video.
In addition, in combination with the fact that the user level of the user for setting the hidden time period corresponding to the video clip to be returned is lower than or equal to the user level indicated by the user identity identifier in the mode of determining the video clip to be returned, since the level of the administrator 3 is higher than the level of the administrator 2 for setting the hidden time period 13:00-14:00, the server can set the hidden mark on the video clip of 9:00-10:00, the server can return the video clip of 13:00-14:00 with the hidden mark to the device of the administrator 1, and return the video clip of 8:00-9:00, the video clip of 10:00-13:00 and the video clip of 14:00-15:00 which are not matched with the hidden time periods.
2) If the user type is the second type, the server deletes all target video segments from the found video segments and returns the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time period and are matched with the hidden time period.
Therefore, the hidden video segment corresponding to the hidden time segment set by the low-level administrator can be inquired by the high-level administrator. The operator cannot view the hidden video.
The implementation mode is three:
the server may determine a user type to which the user identity corresponds.
1) If the user type is the first type, the server detects whether each hidden time period is set by the user corresponding to the user identity identification, and detects whether the user level of the user set in each hidden time period is lower than the user level corresponding to the user identity identification.
And if any hidden time period is set for the user corresponding to the user identity and/or the user level of the user in the any hidden time period is set to be lower than the user level corresponding to the user identity, determining that the user identity is used for indicating that the hidden video is allowed to be viewed.
And if all the hidden time periods are not set for the users corresponding to the user identity identifiers and the user levels of the users in all the hidden time periods are set to be higher than the user levels corresponding to the user identity identifiers, determining that the user identity identifiers are used for indicating that the hidden videos are forbidden to be viewed.
For example, assume that two determined concealment periods are 9:00-10:00, 13:00-14: 00.
Assume that the query time period carried in the query request is 8:00-15: 00.
Assume that administrator 1 sets the hidden period 9:00-10:00 and administrator 2 sets the hidden period 13:00-14: 00. The level of administrator 1 is higher than the level of administrator 2.
Assuming that the inquirer is administrator 1, since administrator 1 has set the hidden period 9:00-10:00 and the level of administrator 1 is higher than that of administrator 2 having set the hidden period 13:00-14:00, the server may determine that administrator 1 allows viewing of the hidden video.
In addition, in combination with the fact that "the user level of the user setting the hidden time period corresponding to the video clip to be returned is lower than or equal to the user level indicated by the user identifier and the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identifier" in the above manner of determining the video clip to be returned, since the administrator 1 sets the hidden time period 9:00 to 10:00 and the administrator 1 is higher than the administrator 2 setting the hidden time period 13:00 to 14:00, the server can put back the video clip of 13:00 to 14:00 setting the hidden mark, the video clip of 9:00 to 10 setting the hidden mark to the device of the administrator 1: the video recording segment of 00, and the video recording segments of 8:00-9:00, 10:00-13:00 and 14:00-15:00 which are not matched with all the hidden time segments.
2) And if the user type is the second type, determining that the user identity is used for indicating that the hidden video is prohibited to be viewed.
Therefore, the inquiring party can inquire the hidden video segment which is set by the inquiring party and corresponds to the hidden time segment which is set by the administrator and has lower level than the inquiring party. The operator cannot view the hidden video.
Case 3: the first type of user allows viewing of the hidden video or the first type of user allows viewing of the hidden video when a preset user condition is met.
The present application divides the level of the second type of user (i.e., operator), such as a high level operator, a medium level operator, a low level operator, etc. The second type of users with the level higher than the preset user level threshold can view the hidden segment, and the second type of users with the level lower than the preset user level threshold cannot view the hidden segment.
The first type of user allows viewing the hidden video, or the first type of user allows viewing the hidden video when a preset user condition is met. "as shown in cases 1 and 2 above, and will not be described in detail here.
The following introduces that "a second type of user with a level higher than a preset user level threshold cannot view a hidden segment" and a second type of user with a level lower than the preset user level threshold cannot view the hidden segment ". "is used in the implementation of the method.
When the method is implemented, the server can determine the user type and the user level corresponding to the user identity, and if the user type is the second type and the user level is lower than a user level threshold value, the server determines that the user identity is used for indicating that the hidden video is prohibited from being viewed.
And if the user type is a second type and the user level is higher than or equal to a user level threshold value, determining that the user identity is used for indicating that the hidden video is allowed to be viewed.
Therefore, the hidden video can be checked by the operator with the level higher than the user level threshold, and the hidden video cannot be checked by the operator with the level lower than the user level threshold.
In addition, in the embodiment of the present application, after the querying party receives the video segments that do not match with each hidden time period and the video segments that match with at least one hidden time period and are provided with the hidden marks, the querying party can distinguish and display the video segments that do not match with each hidden time period and the video segments that match with at least one hidden time period and are provided with the hidden marks.
For example, as shown in fig. 3, the query end may display the video clips that do not match with each hidden time period and the video clips that match with at least one hidden time period and are provided with the hidden marks in a manner of distinguishing by the color of the video progress bar. For example, the progress bar corresponding to the video segment that matches at least one hidden time period and is set with the hidden mark is light gray. The progress bar corresponding to the video clip with unmatched hidden time periods is dark gray and the like.
Of course, in practical applications, the two different video clips may be displayed in a manner that the prompt characters appear on the video picture. For example, when a video segment is displayed in which all hidden time periods are not matched, the video playing window simultaneously displays a character of 'common video', and when a video segment is displayed in which at least one hidden time period is matched and a hidden mark is set, the video playing window simultaneously displays a character of 'hidden video'. Here, the manner of the differentiated display is merely exemplified and is not particularly limited.
In addition, in the embodiment of the present application, if the query end only receives the video segments that do not match with each hidden time period, but does not receive the video segments that match with at least one hidden time period and are provided with the hidden marks, the video segments that do not match with each hidden time period are displayed, and the content of the video segments that match with at least one hidden time period and are provided with the hidden marks is not displayed.
According to the above description, on one hand, the server returns the hidden video segment within the authority range of the inquiring party to the inquiring party based on the user identity of the inquiring party, so that the hidden video with privacy in the video segment can be ensured not to be disclosed.
On the other hand, the method also sets the first type user level, the video level of the hidden video clip, the level of the second type user and the like, and returns the video clips of different levels to the inquiring party according to the user type and level corresponding to the user identity, thereby realizing multi-level and fine-grained management of the access authority.
Referring to fig. 4, fig. 4 is a flowchart illustrating a video recording query method according to an exemplary embodiment of the present application, where the method may be applied to a server and may include the following steps.
Step 401: receiving a query request; the query request includes at least: a user identity;
step 402: finding out at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request;
step 403: and if the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
For details, reference may be made to the description of step 201 to step 204, which is not described herein again.
Referring to fig. 5, fig. 5 is a flowchart illustrating a video recording query method according to an exemplary embodiment of the present application, where the method may be applied to a server and may include the following steps.
Step 501: receiving a query request; the query request includes at least: a user identity;
step 502: finding out at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request;
step 503: and if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, deleting all target video segments from the searched video segments and returning the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
For details, reference may be made to the description of step 201 to step 204, which is not described herein again.
In addition, the present application also provides an electronic device, which may include: a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor is configured to read the machine executable instructions on the readable storage medium and execute the instructions to implement the method steps of video recording query determination.
Optionally, as shown in fig. 6, the electronic device may further include a communication interface 601, a bus 604; wherein the communication interface 601, the processor 602, and the machine-readable storage medium 603 communicate with each other via a bus 604. The processor 602 may perform the video recording query method described above by reading and executing machine-executable instructions corresponding to the graph selection control logic in the machine-readable storage medium 603.
The electronic device may be the server described above.
Referring to fig. 7, fig. 7 is a block diagram of a video recording inquiry apparatus according to an exemplary embodiment of the present application. The apparatus may be applied to an electronic device (such as the server), and may include:
a receiving unit 701, configured to receive a query request; the query request includes at least: a user identity;
a searching unit 702, configured to search for at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request;
a returning unit 703, configured to, if it is determined that the user identifier is used to indicate that viewing of a hidden video is allowed according to the user identifier, return the video segments that are not matched with all the hidden time periods and the video segments that are matched with at least one hidden time period and are provided with hidden marks in the at least one video segment to an inquiry end that is used to send the inquiry request, so that the inquiry end displays the video segments that are not matched with all the hidden time periods and the video segments that are matched with at least one hidden time period and are provided with hidden marks in a differentiated manner.
Optionally, the returning unit 703 is configured to, when the hidden flag is set, determine, in the at least one found video segment, at least one target video segment that matches the hidden time segment; and selecting a target video clip to be returned from the at least one target video clip, and setting a hidden mark for the target video clip to be returned.
Optionally, the returning unit 703 is configured to, when determining, in the at least one found video segment, at least one target video segment that matches the hidden time segment, for each hidden time segment in the at least one found video segment, determine, according to the hidden time segment, the target video segment that matches the hidden time segment from the video segment for the video segment that has an intersection with the hidden time segment.
Optionally, the target video clips to be returned are all target video clips matched with the hidden time period; or the target video clip to be returned is a target video clip meeting the preset video clip condition;
the preset video clip conditions comprise:
the video level of the video clip to be returned is lower than the preset video level; and/or the presence of a gas in the gas,
matching the video level of the video clip to be returned with the video level corresponding to the user identity mark; and/or the presence of a gas in the gas,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark; and/or the presence of a gas in the gas,
and setting the user level of the user of the hidden time period corresponding to the video clip to be returned to be lower than the user level indicated by the user identity identification.
Optionally, the returning unit 703 is further configured to delete all target video segments from the found video segments and return the target video segments to the query end for sending the query request if the user identity is determined to indicate that hidden video viewing is prohibited according to the user identity, where all the target video segments include a target video segment that is determined for each hidden time period and matches the hidden time period;
optionally, the returning unit 703 is configured to, when determining, according to the user identity, that the user identity is used to indicate that viewing of the hidden video is prohibited, determine that the user identity is used to indicate that viewing of the hidden video is prohibited if the user identity meets a first condition and/or meets a second condition;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet a preset user condition; the first type of user has the right to set a hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
optionally, when determining, according to the user identity, that the user identity is used to indicate that the hidden video is allowed to be viewed, the returning unit 703 is configured to determine, if the user identity satisfies a third condition and/or a fourth condition, that the user identity is used to indicate that the hidden video is allowed to be viewed;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition; the first type of user has the right to set a hidden time period;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
optionally, the receiving unit 701 is further configured to receive a hidden video setting request; the hidden video setting request includes: marking a monitoring point to be set and hiding a time period; the hidden time period is determined according to the information of the specified object identified in the snapshot image of the monitoring point; recording the corresponding relation between the monitoring point identifier to be set and the hidden time period;
the query request further includes: identifying a target monitoring point to be inquired;
the determining unit 702 is configured to determine, in the correspondence, at least one hidden time period corresponding to the target monitoring point identifier when determining at least one hidden time period corresponding to the query request.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
In addition, the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program is executed by a processor to realize the identification method for the vehicle entering and exiting from the parking lot.
A computer-readable storage medium as referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media. In particular, the computer-readable storage medium may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
Further, the present application provides a computer program, which is stored in a computer-readable storage medium and causes a processor to implement the above-described method for recognizing entrance and exit of a parking lot to and from a vehicle when the processor executes the computer program.
For the apparatus, the computer-readable storage medium, the computer program, and the electronic device embodiment, since they substantially correspond to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A video recording query method, the method comprising:
receiving a query request; the query request includes at least: a user identity;
finding out at least one corresponding video segment according to the query request;
determining at least one hidden time period corresponding to the query request;
and if the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to an inquiry end for sending the inquiry request, so that the inquiry end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
2. The method of claim 1, wherein the hidden flag is set by:
determining at least one target video segment matched with the hidden time segment in the searched at least one video segment;
and selecting a target video clip to be returned from the at least one target video clip, and setting a hidden mark for the target video clip to be returned.
3. The method as claimed in claim 2, wherein the determining at least one target video segment matching the hidden time segment in the at least one found video segment comprises:
in the at least one found video segment, aiming at each hidden time segment, determining a target video segment matched with the hidden time segment from the video segment according to the hidden time segment for the video segment with the intersection with the hidden time segment;
the target video clips to be returned are all target video clips matched with the hidden time period; or the target video clip to be returned is a target video clip meeting the preset video clip condition;
the preset video clip conditions comprise:
the video level of the video clip to be returned is lower than the preset video level; and/or the presence of a gas in the gas,
matching the video level of the video clip to be returned with the video level corresponding to the user identity mark; and/or the presence of a gas in the gas,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark; and/or the presence of a gas in the gas,
and setting the user level of the user of the hidden time period corresponding to the video clip to be returned to be lower than or equal to the user level indicated by the user identity identification.
4. The method of claim 1, further comprising:
and if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, deleting all target video segments from the searched video segments and returning the target video segments to the query end for sending the query request, wherein all the target video segments comprise the target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
5. The method of claim 4, wherein said determining the user identity indicating that hidden video recording is prohibited from being viewed based on the user identity comprises:
if the user identity identification meets a first condition and/or a second condition, determining that the user identity identification is used for indicating that the hidden video is prohibited from being viewed;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet a preset user condition; the first type of user has the right to set a hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
and setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity.
6. The method of claim 1, wherein determining the user identification for indicating permission to view the hidden video from the user identification comprises:
if the user identity meets the third condition and/or the fourth condition, determining that the user identity is used for indicating that the hidden video is allowed to be viewed;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition; the first type of user has the right to set a hidden time period;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
and setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity.
7. The method of claim 1, further comprising:
receiving a hidden video setting request; the hidden video setting request includes: marking a monitoring point to be set and hiding a time period; the hidden time period is determined according to the information of the specified object identified in the snapshot image of the monitoring point;
recording the corresponding relation between the monitoring point identifier to be set and the hidden time period;
the query request further includes: identifying a target monitoring point to be inquired;
the determining at least one hidden time period corresponding to the query request includes:
and determining at least one hidden time period corresponding to the target monitoring point identifier in the corresponding relation.
8. A video recording query apparatus, comprising:
a receiving unit, configured to receive a query request; the query request includes at least: a user identity;
the searching unit is used for searching at least one corresponding video segment according to the query request; determining at least one hidden time period corresponding to the query request;
and if the user identity is determined to be used for indicating permission to view the hidden videos according to the user identity, returning the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in the at least one video segment to the query end for sending the query request, so that the query end displays the video segments which are not matched with all the hidden time periods and the video segments which are matched with at least one hidden time period and provided with the hidden marks in a distinguishing manner.
9. The apparatus according to claim 8, wherein the returning unit, when setting the hidden flag, is configured to determine, in the at least one found video segment, at least one target video segment that matches the hidden time segment; selecting a target video clip to be returned from the at least one target video clip, and setting a hidden mark for the target video clip to be returned;
the return unit is used for determining the target video segment matched with the hidden time period from the video segment according to the hidden time period when determining the target video segment matched with the hidden time period in the searched at least one video segment;
the target video clips to be returned are all target video clips matched with the hidden time period; or the target video clip to be returned is a target video clip meeting the preset video clip condition;
the preset video clip conditions comprise:
the video level of the video clip to be returned is lower than the preset video level; and/or the presence of a gas in the gas,
matching the video level of the video clip to be returned with the video level corresponding to the user identity mark; and/or the presence of a gas in the gas,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity mark; and/or the presence of a gas in the gas,
setting the user level of the user in the hidden time period corresponding to the video clip to be returned to be lower than the user level indicated by the user identity mark;
the returning unit is further configured to delete all target video segments from the found video segments and return the target video segments to the query end for sending the query request if the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity, where all the target video segments include a target video segment which is determined for each hidden time period and matches the hidden time period;
the return unit is used for determining that the user identity is used for indicating that the hidden video is prohibited to be viewed if the user identity meets a first condition and/or a second condition when the user identity is determined to be used for indicating that the hidden video is prohibited to be viewed according to the user identity;
the first condition includes: the user type corresponding to the user identity is a second type, or the user type corresponding to the user identity is the second type and the user level corresponding to the user identity is lower than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
the second condition includes: the user type corresponding to the user identity is a first type, and the user identity does not meet a preset user condition; the first type of user has the right to set a hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
the return unit is used for determining that the user identity is used for indicating that the hidden video is allowed to be viewed if the user identity meets a third condition and/or a fourth condition when the user identity is determined to be used for indicating that the hidden video is allowed to be viewed according to the user identity;
the third condition includes: the user type corresponding to the user identity is a first type, or the user type corresponding to the user identity is the first type and the user identity meets a preset user condition; the first type of user has the right to set a hidden time period;
the fourth condition includes: the user type corresponding to the user identity is a second type, and the user level corresponding to the user identity is higher than a preset user level threshold; the second type of user does not have the authority to set the hidden time period;
wherein the user condition includes:
in at least one hiding time period, any hiding time period is set by a user indicated by the user identity; and/or the presence of a gas in the gas,
setting the user level of the user in any hidden time period to be lower than the user level corresponding to the user identity;
the receiving unit is also used for receiving a hidden video setting request; the hidden video setting request includes: marking a monitoring point to be set and hiding a time period; the hidden time period is determined according to the information of the specified object identified in the snapshot image of the monitoring point; recording the corresponding relation between the monitoring point identifier to be set and the hidden time period;
the query request further includes: identifying a target monitoring point to be inquired;
and the determining unit is used for determining at least one hidden time period corresponding to the target monitoring point identifier in the corresponding relationship when determining at least one hidden time period corresponding to the query request.
10. An electronic device, comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor configured to read the machine executable instructions on the readable storage medium and execute the instructions to implement the steps of the method of any one of claims 1-7.
CN202011017636.9A 2020-09-24 2020-09-24 Video query method and device and electronic equipment Active CN112100668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017636.9A CN112100668B (en) 2020-09-24 2020-09-24 Video query method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017636.9A CN112100668B (en) 2020-09-24 2020-09-24 Video query method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112100668A true CN112100668A (en) 2020-12-18
CN112100668B CN112100668B (en) 2024-02-27

Family

ID=73755330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017636.9A Active CN112100668B (en) 2020-09-24 2020-09-24 Video query method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112100668B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645925A (en) * 2004-01-19 2005-07-27 三星电子株式会社 Method and apparatus for recording video data, and method and apparatus for reproducing video data
US20090304350A1 (en) * 2008-06-09 2009-12-10 Verizon Data Services Llc Digital video recorder content filtering
US20120047534A1 (en) * 2010-08-17 2012-02-23 Verizon Patent And Licensing, Inc. Matrix search of video using closed caption information
CN102868928A (en) * 2011-07-05 2013-01-09 腾讯科技(深圳)有限公司 Video image display method and device implementing closed caption
CN103945156A (en) * 2014-04-16 2014-07-23 深圳英飞拓科技股份有限公司 Alarm video replaying method and system
US20140207450A1 (en) * 2013-01-21 2014-07-24 International Business Machines Corporation Real-Time Customizable Media Content Filter
US20150288993A1 (en) * 2014-04-07 2015-10-08 Naver Corporation Service method and system for providing multi-track video contents
US20150355826A1 (en) * 2014-06-10 2015-12-10 Microsoft Corporation Enabling user interactions with video segments
CN106919849A (en) * 2015-12-24 2017-07-04 北京三星通信技术研究有限公司 Method for secret protection and device
CN109325870A (en) * 2018-10-10 2019-02-12 上海保险交易所股份有限公司 The method and system of shared private data
CN109479110A (en) * 2016-03-08 2019-03-15 优确诺股份有限公司 The system and method that dynamic creation individualizes exercise videos
CN110278398A (en) * 2018-03-16 2019-09-24 杭州海康威视数字技术股份有限公司 Date storage method, video clip searching method, device and electronic equipment
CN110414271A (en) * 2019-08-02 2019-11-05 Oppo(重庆)智能科技有限公司 A kind of private data guard method, device and computer readable storage medium
KR102045924B1 (en) * 2019-07-15 2019-11-18 (주)글로벌시스템스 Integrated controlling and operation system of user GUI base for video watching device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645925A (en) * 2004-01-19 2005-07-27 三星电子株式会社 Method and apparatus for recording video data, and method and apparatus for reproducing video data
US20090304350A1 (en) * 2008-06-09 2009-12-10 Verizon Data Services Llc Digital video recorder content filtering
US20120047534A1 (en) * 2010-08-17 2012-02-23 Verizon Patent And Licensing, Inc. Matrix search of video using closed caption information
CN102868928A (en) * 2011-07-05 2013-01-09 腾讯科技(深圳)有限公司 Video image display method and device implementing closed caption
US20140207450A1 (en) * 2013-01-21 2014-07-24 International Business Machines Corporation Real-Time Customizable Media Content Filter
US20150288993A1 (en) * 2014-04-07 2015-10-08 Naver Corporation Service method and system for providing multi-track video contents
CN103945156A (en) * 2014-04-16 2014-07-23 深圳英飞拓科技股份有限公司 Alarm video replaying method and system
US20150355826A1 (en) * 2014-06-10 2015-12-10 Microsoft Corporation Enabling user interactions with video segments
CN106919849A (en) * 2015-12-24 2017-07-04 北京三星通信技术研究有限公司 Method for secret protection and device
CN109479110A (en) * 2016-03-08 2019-03-15 优确诺股份有限公司 The system and method that dynamic creation individualizes exercise videos
CN110278398A (en) * 2018-03-16 2019-09-24 杭州海康威视数字技术股份有限公司 Date storage method, video clip searching method, device and electronic equipment
CN109325870A (en) * 2018-10-10 2019-02-12 上海保险交易所股份有限公司 The method and system of shared private data
KR102045924B1 (en) * 2019-07-15 2019-11-18 (주)글로벌시스템스 Integrated controlling and operation system of user GUI base for video watching device
CN110414271A (en) * 2019-08-02 2019-11-05 Oppo(重庆)智能科技有限公司 A kind of private data guard method, device and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CHIH-YI CHIU 等: "Efficient videosegmentmatchingfordetectingtemporal-basedvideocopies", 《NEUROCOMPUTING》 *
COSTAS COTSACES 等: "Semantic video fingerprinting and retrieval using face information", 《SIGNAL PROCESSING-IMAGE COMMUNICATION 2009》 *
张泽鹏: "基于大数据技术的交通视频监控分析", 《信息科技探索》 *
王智慧 等: "数据自治开放模式下的隐私保护", 《西南政法大学学报》 *

Also Published As

Publication number Publication date
CN112100668B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN111131902B (en) Method for determining target object information and video playing equipment
US20160155465A1 (en) Video masking processing method and apparatus
CN108632541B (en) Multi-video-clip merging method and device
CN108804607B (en) Chat message query method, device and equipment
US20100318566A1 (en) Behavior history retrieval apparatus and behavior history retrieval method
CN109858354B (en) Face identity library, track table establishment method and face track query method and system
US20190012366A1 (en) Information processing device, data processing method therefor, and recording medium
US11657623B2 (en) Traffic information providing method and device, and computer program stored in medium in order to execute method
CN110543584B (en) Method, device, processing server and storage medium for establishing face index
CN113255438B (en) Structured video file marking method, system, host and storage medium
CN112100668B (en) Video query method and device and electronic equipment
CN113938827A (en) Method, device, equipment and storage medium for verifying communication number user
CN116720824B (en) Electronic license library management system and method based on blockchain
CN110876090B (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN111954013B (en) Live broadcast interaction method and device, terminal equipment, server and storage medium
CN113343010A (en) Image identification method, electronic equipment and computer readable storage medium
CN110876029B (en) Video abstract playback method and device, electronic equipment and readable storage medium
JP3928006B2 (en) Customer information management system
CN112669509A (en) Access control management method, system, electronic device and storage medium
CN108667685B (en) Mobile application network flow clustering device
CN111090816A (en) Management method and device of space-time trajectory data
CN110717386A (en) Method and device for tracking affair-related object, electronic equipment and non-transitory storage medium
CN111369791A (en) Method and device for determining landing points, electronic equipment and storage medium
CN110969743A (en) Person retention detection method and device, electronic device and readable storage medium
CN117312612B (en) Multi-mode-based teleconference data recording method, system and medium

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
GR01 Patent grant
GR01 Patent grant