CN112100668B - Video query method and device and electronic equipment - Google Patents
Video query method and device and electronic equipment Download PDFInfo
- Publication number
- CN112100668B CN112100668B CN202011017636.9A CN202011017636A CN112100668B CN 112100668 B CN112100668 B CN 112100668B CN 202011017636 A CN202011017636 A CN 202011017636A CN 112100668 B CN112100668 B CN 112100668B
- Authority
- CN
- China
- Prior art keywords
- hidden
- user
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012544 monitoring process Methods 0.000 claims description 64
- 239000012634 fragment Substances 0.000 description 12
- 238000004590 computer program Methods 0.000 description 6
- 238000012806 monitoring device Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting 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/6227—Protecting 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/7867—Retrieval 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (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, comprising the following steps: receiving a query request; the query request includes at least: a user identity mark; searching 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 each hidden time period in at least one video segment and the video segments which are matched with at least one hidden time period and are provided with the hidden marks are returned to the query end for sending the query request, so that the query end area displays the video segments which are not matched with each hidden time period and the video segments which are matched with at least one hidden time period and are provided with the hidden marks. By using the method provided by the application, the probability of revealing the privacy information in the important video clips needing to be hidden can be reduced during video inquiry.
Description
Technical Field
The present disclosure relates to the field of computer communications, and in particular, to a method and an apparatus for querying video, and an electronic device.
Background
In a monitoring scene, monitoring equipment is deployed in a monitoring area, and the monitoring equipment can send collected video segments to a background server. The inquiring party can obtain the video segments to be inquired from the background server through the client.
In the existing video query technology, a server returns all video segments of the video time in a query time period input by a query party to the query party. However, in the existing video query technology, the indiscriminate return mode of the server can cause leakage of privacy information in some important video clips to be hidden.
Disclosure of Invention
In view of this, the present application provides a video query method, apparatus and electronic device, so as to reduce the probability of revealing private information in important video clips that need to be hidden.
Specifically, the application is realized by the following technical scheme:
according to a first aspect of the present application, there is provided a video query method, the method including:
receiving a query request; the query request includes at least: a user identity mark;
searching 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 each hidden time period in the at least one video segment and the video segments which are matched with the at least one hidden time period and set with the hidden mark are returned to the query end for sending the query request, so that the query end displays the video segments which are not matched with each hidden time period and the video segments which are matched with the at least one hidden time period and set with the hidden mark in a distinguishing mode.
Optionally, the hidden flag is set in the following manner:
determining at least one target video segment matched with the hidden time period in the 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 video segment that is found, at least one target video segment that matches the hidden time segment includes:
and determining a target video clip matched with the hidden time slot from the video slots according to the hidden time slot for each video slot which has an intersection with the hidden time slot in the searched at least one video slot.
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 include:
the video grade of the video clip to be returned is lower than the preset video grade; and/or the number of the groups of groups,
matching the video grade of the video clip to be returned with the video grade corresponding to the user identity; and/or the number of the groups of groups,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity; and/or the number of the groups of groups,
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.
Optionally, the method further comprises:
if the user identity is determined to be used for indicating to prohibit from viewing the hidden video according to the user identity, deleting all target video segments from the searched video segments and returning to a query end for sending the query request, wherein all target video segments comprise 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 for indicating to prohibit viewing of the hidden video includes:
if the user identity meets the first condition and/or meets the second condition, determining that the user identity is used for indicating to prohibit the hidden video from being checked;
the first condition includes: the user type corresponding to the user identity is the 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 right 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 preset user conditions; the first type of user has the right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 permission to view the hidden video includes:
if the user identity meets the third condition and/or meets the fourth condition, determining that the user identity is used for indicating permission to view the hidden video;
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 a first type and the user identity meets the preset user condition; the first type of user has the right to set the 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 right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 comprises:
receiving a hidden video setting request; the hidden video setting request includes: the monitoring point to be set is identified and the time period is hidden; the hidden time period is determined according to the information of the appointed object identified in the snapshot image of the monitoring point;
recording the corresponding relation between the monitoring point mark to be set and the hidden time period;
the query request further includes: target monitoring point identification to be queried;
the determining at least one hidden time period corresponding to the query request includes:
and in the corresponding relation, determining at least one hidden time period corresponding to the target monitoring point identification.
According to a second aspect of the present application, there is provided a video query apparatus, the apparatus comprising:
a receiving unit, configured to receive a query request; the query request includes at least: a user identity mark;
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 the return unit is used for returning 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 at least one hidden time period and provided with the hidden marks 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 allowed to be checked according to the user identity, 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 mode.
Optionally, the return unit is configured to determine, when the hidden flag is set, at least one target video segment that matches the hidden time segment in the at least one video segment that is found; 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 at least one target video clip matched with the hidden time period from the video clips according to the hidden time period for each video clip intersected with the hidden time period in the searched at least one video clip when the at least one target video clip matched with the hidden time period is determined in the searched at least one video clip;
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 include:
the video grade of the video clip to be returned is lower than the preset video grade; and/or the number of the groups of groups,
matching the video grade of the video clip to be returned with the video grade corresponding to the user identity; and/or the number of the groups of groups,
The hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity; and/or the number of the groups of groups,
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.
The return unit is further configured to, if the user identity is determined according to the user identity, determine that the user identity is used to indicate that viewing of the hidden video is prohibited, delete all target video segments from the searched video segments and return to the query terminal for sending the query request, where the all target video segments include target video segments determined for each hidden time segment and matched with the hidden time segment;
the return unit is used for determining that the user identity is used for indicating to prohibit viewing of the hidden video if the user identity meets a first condition and/or meets a second condition when determining that the user identity is used for indicating to prohibit viewing of the hidden video according to the user identity;
the first condition includes: the user type corresponding to the user identity is the 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 right 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 preset user conditions; the first type of user has the right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 to allow viewing of the hidden video if the user identity meets a third condition and/or meets a fourth condition when determining that the user identity is used for indicating to allow viewing of the hidden video 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 a first type and the user identity meets the preset user condition; the first type of user has the right to set the 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 right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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: the monitoring point to be set is identified and the time period is hidden; the hidden time period is determined according to the information of the appointed object identified in the snapshot image of the monitoring point; recording the corresponding relation between the monitoring point mark to be set and the hidden time period;
the query request further includes: target monitoring point identification to be queried;
the searching unit is used for determining at least one hidden time period corresponding to the target monitoring point identifier in the corresponding relation 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 for storing 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 video query method described above.
According to a fourth aspect of the present application, there is provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the above-described video query method.
According to a fifth aspect of the present application, there is provided a computer program stored on a computer readable storage medium, and which when executed by a processor causes the processor to implement the above-described video query method.
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 checked according to the user identity, the video segments which are not matched with 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 set with the hidden mark are returned to the query end for sending the query request, so that the query end displays the video segments which are not matched with the hidden time periods and the video segments which are matched with the at least one hidden time period and set with the hidden mark in a distinguishing mode.
On the one hand, the server returns the hidden video clips within the authority range to the inquiring party based on the user identification of the inquiring party, so that the hidden video with privacy in the video clips can be ensured not to be revealed.
On the other hand, the inquiring party can distinguish important hidden video from common video based on the hidden marks, so that the hidden video and the common video can be displayed in a distinguishing mode.
Drawings
FIG. 1 is a grid construction of a video query system according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a video query method according to an exemplary embodiment of the present application;
FIG. 3 is a schematic illustration of a video presentation shown in an exemplary embodiment of the present application;
FIG. 4 is a flow chart illustrating another video query method according to an exemplary embodiment of the present application;
FIG. 5 is a flow chart illustrating another video query method according to an exemplary embodiment of the present application;
FIG. 6 is a hardware configuration diagram of an electronic device according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a video query apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present 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 or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The application aims to provide a video query method, wherein when a server receives a query request, the server can 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 checked according to the user identity, the video segments which are not matched with 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 for sending the query request, so that the query end displays the video segments which are not matched with 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 in a distinguishing mode.
On the one hand, the server returns the hidden video clips (i.e. the video clips which are matched with at least one hidden time period and are provided with the hidden marks) in the authority range to the inquiring party based on the user identity of the inquiring party, so that the hidden video with privacy in the video clips can be ensured not to be revealed.
On the other hand, the inquiring party can distinguish important hidden video from common video based on the hidden marks, so that the hidden video and the common video can be displayed in a distinguishing mode.
Referring to fig. 1, fig. 1 is a network architecture diagram of a video query system according to an exemplary embodiment of the present application.
The networking of the video inquiry system comprises the following steps: object recognition device, client and server.
The object recognition device is deployed in the monitoring area and is used for recognizing whether a specified object appears in the monitoring area and notifying the client when the specified object appears. In addition, the object recognition device can also send the video collected in the monitoring area to a server for storage.
The object recognition device may be a physical device such as a monitoring device with object recognition functionality (the monitoring device is also referred to as a monitoring point such as a camera, etc.). Of course, the object recognition device may also be a virtual device, such as a virtual device composed of a monitoring device and an object recognition server. The monitoring device is used for collecting images and sending the images to the object recognition server, and the object recognition server recognizes objects from the images.
In addition, it should be noted that the above objects may include people, vehicles, animals, etc., and the objects are only exemplarily described herein and are not specifically limited thereto.
And the client is used for providing the functions of setting the hidden time period and inquiring the video recording section for the user.
The server is used for storing the video segments collected by the object recognition equipment, storing the hidden time segments set by the user, returning the video segments to be queried by the user when the user queries the video segments, and the like.
The video query method provided by the application is described in detail below from both the setting of the hidden time period and the query of the video period.
1. Setting of hidden time periods
In this application, a client provides multiple types of roles for a user, such as a first type of role and a second type of role. Wherein a first type of character (also referred to as a first type of user) has the right to set a hidden time period and a second type of character (also referred to as a second type of user) does not have the right to set a hidden time period. For example, the first type of role may be an administrator role. The second type of role may be an operator role. Of course, other roles are possible, which are only exemplary and not specifically limited.
The setting of the hidden time period provided in the present application will be exemplarily described below using the first type of role as an administrator and the second type of role as an operator.
The administrator has the right to set the hidden time period, and the operator does not have the right to set the hidden time period.
Specifically, after the user logs into the system, if the user logs into the client with the administrator identity, the client will display the administrator page to the user. The administrator page is provided with an option for triggering the setting of the hidden time period, and the setting of the hidden time period can be completed when the administrator triggers the option.
If the user logs in the client with the operator identity, the client displays an operator page to the user. The operator page does not have an option to trigger setting the hidden time period, so the operator cannot set the hidden time period.
In an alternative implementation, the object recognition device may send a prompt message to the client when detecting that the specified object is present in the monitoring area. After receiving the prompt information displayed by the client, the administrator can set a hidden time period according to the video collected by the object recognition device.
When the method is realized, the information of the appointed object is preconfigured on the object recognition equipment, the object recognition equipment collects the information of the target object appearing at the monitoring point, whether the information of the target object hits the recorded information of the appointed object or not can be detected, and if the information of the target object hits, the target object is determined to be the appointed object.
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 the person appearing at the monitoring point.
When the object is a vehicle, the information of the specified object is the license plate number and the color of the specified 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 this embodiment of the present application, after determining that the target object is a specified object, the object recognition device may send a prompt message to the client. After receiving the prompt information, the administrator of the client can set the hidden time period based on the video returned by the object recognition device (such as according to the time length of the target object appearing at the monitoring point).
For example, the monitoring area is a conference room. The designated object is a corporate manager. And after the object identification equipment of the conference room detects that the manager enters the conference room, a reminding message is sent to the client. The administrator may set the duration of the meeting at the manager to be a hidden time period, or the duration occupied by important meeting content in the meeting to be a hidden time period.
The administrator sets a correspondence 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 mark, and sends the hidden video setting request to the server.
After receiving the hidden video setting request, the server can record the corresponding relation between the hidden time period and the monitoring point mark.
In another alternative implementation, the object recognition device may send a prompt to the client when detecting that the monitoring point presents the specified object. The prompt message comprises: the monitoring points identify and specify information of the object. The client may set the hidden time period based on information of the specified object returned by the object recognition apparatus.
For example, the client may determine a residence 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 residence time.
For another example, the object recognition device further has a voice recognition function, and the object recognition device transmits 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.
The client automatically setting the hidden period is only exemplarily described here, and is 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: hiding the corresponding relation between the time period and the monitoring point mark.
After receiving the hidden video setting request, the server can record the corresponding relation between the hidden time period and the monitoring point mark.
2. Query of video segments
Referring to fig. 2, fig. 2 is a flowchart of a video 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 a query request; the query request includes at least: a user identity mark;
the query request may further include: the target monitoring point identification to be queried, the target query time period to be queried and other information. The query request is only exemplarily described here, and is not specifically limited thereto.
When the user wants to inquire the video segment, the user can input the information such as the target monitoring point identification to be inquired, the target inquiring time period to be inquired and the like on the client
The client may acquire the user identity when the user logs into the client, or may generate the user identity based on the identity used/displayed when the user logs into the client.
The client may generate a query request based on the target monitoring point identifier, the target query time period, and the user identity input by the 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.
In implementation, the query request may further include: the target monitoring point to be queried is identified and queried for a time period.
During inquiry, the server stores video segments collected by each monitoring point and video time corresponding to each video segment. The recording time refers to a time period formed by the starting time and the ending time of one recording section.
The server can search at least one video segment with video time in the target inquiry time period and corresponding to the target monitoring point identification in the acquired video segments.
In the implementation of the present application, as can be seen from the above description, the corresponding relationship between the monitoring point identifier and the hidden time period may be recorded on the server.
The query request may also carry the target monitoring point identifier to be queried.
When determining 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 corresponding relationship 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 video segments which are not matched with 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 set with the hidden mark are returned to the query end for sending the query request, so that the query end displays the video segments which are not matched with the hidden time periods and the video segments which are matched with the at least one hidden time period and set with the hidden mark in a distinguishing mode.
Step 203 is described in detail below by steps 2031 to 2032.
Step 2031: the server sets a hidden mark in the at least one video segment.
Step 2031 is described in detail below by steps A1 to A2.
Step A1: and the server determines at least one target video clip matched with the hidden time period in the searched at least one video clip.
Here, it may be that at least one target video clip matching with the partial concealment period is determined, for example, in the case that, in the at least one concealment period, a video clip corresponding to the partial concealment period cannot be returned to the query for display, then only the target video clip matching with another partial concealment period other than the partial concealment period needs to be determined; all target video clips can be determined according to each hiding time period, wherein all target video clips comprise target video clips which are determined for each hiding time period and matched with the hiding time period.
When the method is realized, for the searched video clips with intersections with the hidden time period, determining the target video clip matched with the hidden time period from the video clips according to the hidden time period.
The found video segments that have intersections with the hidden time segments include two cases.
In the first case, the recording time of the recording section and the hidden time section have an intersection, and the recording time of the recording section is included in the hidden time section. For this case, the server may directly treat the video segment as a target video segment that matches the hidden time segment.
In the second case, the recording time of the recording section and the hidden time section have an intersection, and the recording time of the recording section is not included in the hidden time section. For this case, the server may divide the video segment based on the start time or the end time of the hidden time period, obtain a plurality of video segments, and use the divided video segments within the hidden time period as 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-01 08:00:00 to 2020-06-01-12:00:00.
Assume that the hidden time period corresponding to the monitoring point 1 is 2020-06-01 09:20:00 to 2020-06-0110:20:00.
After receiving the query request, the server may search for at least one video segment of the video time within the target query time period (i.e. 2020-06-01 08:00:00 to 2020-06-01 12:00:00) and corresponding to the target monitoring point identifier (i.e. monitoring point 1) in the acquired video segments, where the searched video segment is shown in table 1.
Video segment | Start 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 have video segments, in this example video segment 2 and video segment 3, that intersect with the hidden time segment.
For video segment 2, in accordance with the second scenario described above, the server may divide video segment 2 into segments 21 of 9:10-9:20 and segments 22 of 9:20-10:00 based on the start time of the hidden time period (i.e., 9:20). Since segment 22 is within the hidden period, the server may determine that segment 22 is the target video segment.
For video segment 3, in accordance with the second scenario described above, the server divides video segment 2 into 10:10-10:20 segments 31, 10:20-11:10 video segments 32 based on the end time of the hidden time period (i.e., 10:20). Since segment 31 is within the hidden period, the server may determine that segment 31 is the target video segment.
The divided fragments are shown in table 2.
Video segment | Start time | End time |
Video segment 1 | 2020-06-01T08:00:00.000Z | 2020-06-01T09:10:00.000Z |
Fragment 21 | 2020-06-01T09:10:00.000Z | 2020-06-01T09:20:00.000Z |
Fragment 22 | 2020-06-01T09:20:00.000Z | 2020-06-01T10:10:00.000Z |
Fragment 31 | 2020-06-01T10:10:00.000Z | 2020-06-01T10:20:00.000Z |
Fragment 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 alternative implementation, the target video clip to be returned is all target video clips matching the hidden time period, and the server may set a hidden flag for all target video clips matching the hidden time period. Optionally, if the server determines all the target video clips according to each hidden time period in the at least one video clip that is found, where the all the target video clips include the target video clips that are determined for each hidden time period and that match the hidden time period, the target video clip to be returned may be the all the target video clips, and the server may set a hidden flag for the all the target video clips.
The hidden mark is used for enabling the inquirer to distinguish the hidden video clip and the common video clip in the video clip returned by the server, so that the inquirer can distinguish and display the hidden video clip and the common video clip.
Still taking the example of table 1 as an example, in such an implementation, the server may determine that fragments 22 and 31 are fragments to be returned and set hidden flags for fragments 22 and 31.
In another alternative implementation manner, the server may select, from the determined at least one target video clip, a target video clip that meets a preset video clip condition as the video clip to be returned, and set a hidden flag for the video clip to be returned.
Wherein, the preset video clip condition may include one or more of the following:
condition 1: the video grade of the video clip to be returned is lower than the preset video grade;
condition 2: matching the video grade of the video clip to be returned with the video grade corresponding to the user identity;
condition 3: the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity;
condition 4: 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.
For condition 1:
the server can set different video levels for the acquired video segments according to factors such as importance of the video segments, and the lower the video level is, the lower the importance of video is. Regardless of the identity of the querying party, as long as the querying party is permitted to view the hidden video, the server may return the target video clips with video levels below the preset threshold to the querying party, but not return the target video clips with video levels above the preset threshold to the querying party. In other words, the service may return video clips of low importance to the querying party and not return video clips of high importance to the querying party.
For condition 2:
condition 2 achieves the goal that the user can only view hidden video clips of video levels that match the user's own level (i.e., video clips that match the hidden time period).
The server may set video levels for the video segments collected and different user levels for the user. In addition, the server pre-configures the video levels of the target video clips that can be viewed by each user level.
For example, video recording levels are configured as level a, level B, and level C, respectively. The user level is configured as a high-level manager, a medium-level manager and a general manager.
The video recording level corresponding to the user identity configured by the server is shown in table 3.
TABLE 3->
Assuming that the inquirer is a middle-level administrator, the server can select a video clip with a video level of B-C from at least one target video clip matched with each hidden time period as a video clip to be returned.
For condition 3:
the object achieved by condition 3 is that: when the user identity is used for indicating that the hidden video is allowed to be viewed, the user can view the video clip which is set by the user and is matched with the hidden time period.
For example, the example in example 1 is still taken as an example.
If the above hidden time periods 2020-06-01:20:00 to 2020-06-01:10:20:00 are set by the inquirer, then the determined segments 22 and 31 are determined to be video clips to be returned.
If the above-mentioned hidden time periods 2020-06-01:20:00 to 2020-06-01:10:20:00 are not set by the inquirer, it is determined that there is no video clip to be returned that matches the hidden time period.
For condition 4:
the object to be achieved by condition 4 is: the high-level user can view the video clips that match the hidden time period set by the low-level user.
For example, the example in example 1 is still taken as an example.
It is assumed that the above-described hidden time periods 2020-06-01:20:00 to 2020-06-01:10:20:00 are set by a middle-level administrator, and that the inquirer is a high-level administrator.
The server may determine that both the determined segment 22 and segment 31 are to be video clips to be returned.
It is further assumed that the above-described hidden time periods 2020-06-01:20:00 to 2020-06-01:10:20:00 are set by a senior manager, and that the inquirer is a senior manager.
Since the inquirer level is lower than the user level for setting the hidden time period, the server can determine that there is no target video clip matching the hidden time period that meets the inquirer's inquiry authority, so in this example, there is no video clip to be returned that matches the hidden time period.
Step 2032: 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 each hidden time period in the at least one video segment and the video segments which are matched with the at least one hidden time period and set with the hidden mark are returned to the query end for sending the query request, so that the query end displays the video segments which are not matched with each hidden time period and the video segments which are matched with the at least one hidden time period and set with the hidden mark in a distinguishing mode.
When the method is realized, if the user identity meets a third condition and/or meets a fourth condition, determining that the user identity is used for indicating permission to view the hidden video;
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 a first type and the user identity meets the preset user condition;
the fourth condition includes: the user type corresponding to the user identity is of a second type, and the user level corresponding to the user identity is higher than a preset user level threshold.
Step 204: if the user identity is determined to be used for indicating to prohibit from viewing the hidden video according to the user identity, deleting all target video segments from the searched video segments and returning to a query end for sending the query request, wherein all target video segments comprise target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
When the method is realized, if the user identity meets a first condition and/or meets a second condition, the server determines that the user identity is used for indicating to prohibit viewing of the hidden video;
The first condition includes: the user type corresponding to the user identity is the 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 preset user conditions.
Wherein the first type of user has the right to set the hidden time period and the second type of user does not have the right to set the hidden time period. For example, the first type of user is an administrator and the second type of user is an operator. The first type user and the second type user are only exemplarily described herein, and are not particularly limited.
Various implementations of steps 2032 and 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 be allowed to view the hidden video.
In this case, when the server determines, according to the user identity, that the user identity is used to indicate whether to prohibit viewing of the hidden video or permit viewing of the hidden video, 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 to indicate that viewing of the hidden video is prohibited. At this time, the server may delete all the target video clips from the searched video clips and return the target video clips to the query end for sending the query request, where the all the target video clips include the target video clip that is determined for each hidden time period and matches the hidden time period.
If the user type is the first type, 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 set with the hidden mark to the query end.
Case 2: the present application classifies the level of a first type of user (e.g., administrator), such as a senior administrator, a middle level administrator, a primary administrator, and the like.
When the first type of user satisfies the user condition, the server determines that the user is a user permitted to view the hidden video.
A second type of user, such as an operator, cannot view the hidden video.
In this case, the user conditions include: in at least one hidden time period, any hidden 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 the user identity as indicating whether to prohibit viewing of the hidden video or allow viewing of the hidden video based on the user identity are described below, which are exemplary only and not specifically limited.
The implementation mode is as follows:
the server may determine the 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 by the user corresponding to the user identity. If any hidden time period (any hidden time period or any multiple hidden time periods) is set for the user corresponding to the user identity, determining that the user identity is used for indicating permission to view the hidden video, and returning a video segment which is not matched with each hidden time period and a video segment which is matched with at least one hidden time period and is provided with a hidden mark to the query terminal. If all the hidden time periods are not the user settings corresponding to the user identification, determining that the user identification is used for indicating to prohibit the hidden video from being checked.
For example, assume that there are two determined concealment periods of 9:00-10:00, 13:00-14:00, respectively.
The query time period carried in the query request is assumed to be 8:00-15:00.
Assuming that administrator 1 sets the hidden time period 9:00-10:00, administrator 2 sets the hidden time period 13:00-14:00.
Suppose the inquirer is administrator 1. Since the administrator 1 sets the hidden time period of 9:00-10:00, the administrator 1 allows viewing of the hidden video.
In addition, in combination with the above determination that the "the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user id" in the manner of determining the video clip to be returned, since the administrator 1 sets the hidden time period 9:00-10:00, the server may set the hidden flag for the video clip 9:00-10:00, and the server may return the 9:00-10 with the hidden flag set to the device of the administrator 1: 00 video clips, 8:00-9:00 video clips, 10:00-13:00 video clips, and 14:00-15:00 video clips that do not match each hidden time period.
2) If the user type is the second type, the server deletes all target video clips from the searched video clips and returns the target video clips to the query end for sending the query request, wherein the target video clips are determined for each hidden time period and matched with the hidden time period.
Therefore, the manager can only inquire the hidden video corresponding to the hidden time period set by the manager, and can not inquire the hidden video corresponding to the hidden time period set by other managers. The operator cannot view the hidden video.
The implementation mode II is as follows:
The server may determine the user type to which the user identity corresponds.
1) If the user type is the first type, the server may detect whether the user level of the user setting each hidden time period is lower than or equal to the user level corresponding to the user identity. If the user level of the user setting any hidden time period is lower than the user level corresponding to the user identity, determining that the user identity is used for indicating permission to view the hidden video, and returning video segments which are not matched with all 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. If the user level of the user setting all the hidden time periods is higher than the user level corresponding to the user identity, determining that the user identity is used for indicating to prohibit from viewing the hidden video, deleting all the target video clips from the searched video clips and returning the target video clips to the query end for sending the query request, wherein the target video clips are determined for each hidden time period and are matched with the hidden time period.
For example, assume that there are two determined concealment periods of 9:00-10:00, 13:00-14:00, respectively.
The query time period carried in the query request is assumed to be 8:00-15:00.
Assuming that administrator 1 sets the hidden time period 9:00-10:00, administrator 2 sets the hidden time period 13:00-14:00.
Assuming that there are 3 administrators, respectively administrator 1, administrator 2, and administrator 3, the three administrators are in order from high to low: administrator 1> administrator 3> administrator 2.
Suppose the inquirer is administrator 3. Since the level of the administrator 3 is higher than that of the administrator 2 who sets the hidden time period 13:00-14:00, the administrator 3 allows viewing of hidden videos.
In addition, in combination with the above manner of determining the video clip to be returned, 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 id, and since the level of the administrator 3 is higher than the level of the administrator 2 setting the hidden time period 13:00-14:00, the server may set the hidden flag for the video clip 9:00-10:00, and the server may return the video clip 13:00-14:00 with the hidden flag, and return the video clip 8:00-9:00, the video clip 10:00-13:00, and the video clip 14:00-15:00, which are not matched with each hidden time period, to the device of the administrator 1.
2) If the user type is the second type, the server deletes all target video clips from the searched video clips and returns the target video clips to the query end for sending the query request, wherein the target video clips are determined for each hidden time period and matched with the hidden time period.
Therefore, the hidden video segments corresponding to the hidden time segments set by the low-level administrator can be queried by the high-level administrator. The operator cannot view the hidden video.
And the implementation mode is three:
the server may determine the 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, and detects whether the user level of the user setting each hidden time period is lower than the user level corresponding to the user identity.
If the user level of the user in any hidden time period is lower than the user level corresponding to the user identity, determining that the user identity is used for indicating permission to view the hidden video.
If all the hidden time periods are not set for the users corresponding to the user identification marks and the user levels of the users setting all the hidden time periods are higher than the user levels corresponding to the user identification marks, determining that the user identification marks are used for indicating to prohibit viewing of the hidden video.
For example, assume that there are two determined concealment periods of 9:00-10:00, 13:00-14:00, respectively.
The query time period carried in the query request is assumed to be 8:00-15:00.
Assuming that administrator 1 sets the hidden time period 9:00-10:00, administrator 2 sets the hidden time period 13:00-14:00. The level of administrator 1 is higher than the level of administrator 2.
Assuming that the querying party is administrator 1, since administrator 1 has set the hidden time period 9:00-10:00 and administrator 1 has a higher level than administrator 2 has set the hidden time period 13:00-14:00, the server may determine that administrator 1 allows viewing of the hidden video.
In addition, in combination with the above manner of determining the video clip to be returned, 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 id, and the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user id, since the hidden time period 9:00-10:00 is set by the administrator 1 and the level of the administrator 1 is higher than the level of the administrator 2 setting the hidden time period 13:00-14:00, the server may replace the video clip 13:00-14:00 with the hidden flag and the video clip 9:00-10 with the hidden flag to the device of the administrator 1: 00 video clips, 8:00-9:00 video clips, 10:00-13:00 video clips, and 14:00-15:00 video clips that do not match each of the concealment periods.
2) If the user type is the second type, determining that the user identity is used for indicating that the hidden video is forbidden to be checked.
Therefore, the hidden video segments corresponding to the hidden time segments set by the inquirer and set by the manager with the lower level than the inquirer can be inquired. 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 classifies the level of the second type of user (i.e., operator), such as high-level operators, medium-level operators, primary operators, etc. The second type users with the level higher than the preset user level threshold can only view the hidden fragments, and the second type users with the level lower than the preset user level threshold cannot view the hidden fragments.
Wherein, the user of the first type is allowed to view the hidden video, or the user of the first type is allowed to view the hidden video when the preset user condition is met. "as shown in case 1 and case 2 above, no further description is given here.
The following describes that a second type user with a level higher than a preset user level threshold can view the hidden fragments, and a second type user with a level lower than the preset user level threshold cannot view the hidden fragments. "implementation of the invention.
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, the server determines that the user identity is used for indicating that the hidden video is prohibited from being checked.
If the user type is the second type and the user level is greater than or equal to the user level threshold, determining that the user identity is used for indicating permission to view the hidden video.
Therefore, the hidden video can be checked by the operators with the level higher than the user level threshold, and the hidden video cannot be checked by the operators with the level lower than the user level threshold.
In addition, in the embodiment of the application, after receiving the video segments which are not matched with each hidden time period and the video segments which are matched with at least one hidden time period and provided with the hidden mark, the query terminal can distinguish and display the video segments which are not matched with each hidden time period and the video segments which are matched with at least one hidden time period and provided with the hidden mark.
For example, as shown in fig. 3, the query end may display video clips that do not match each hidden time period and video clips that match at least one hidden time period and have a hidden flag set by using the color of the video progress bar. For example, a progress bar corresponding to a video clip that matches at least one hidden time period and has a hidden flag set is light gray. The color of the progress bar corresponding to the video clips which are not matched in each hidden time period is dark gray and the like.
Of course, in practical application, the two different video clips can also be displayed in a distinguishing manner by presenting a prompt word on the video picture. For example, when video clips with all hidden time periods not matched are displayed, the video playing window simultaneously displays the word of "common video", and when video clips with at least one hidden time period matched and provided with a hidden mark are displayed, the video playing window simultaneously displays the word of "hidden video". The manner of distinguishing the display is described here by way of example only, and is not particularly limited.
In addition, in the embodiment of the present application, if the query end only receives the video segments which are not matched with each hidden time period, but does not receive the video segments which are matched with at least one hidden time period and set with the hidden mark, the video segments which are not matched with each hidden time period are displayed, and the content of the video segments which are matched with at least one hidden time period and set with the hidden mark is not displayed.
According to the description, on one hand, the server returns the hidden video clips within the authority range to the inquiring party based on the user identification of the inquiring party, so that the hidden video with privacy in the video clips can be ensured not to be revealed.
On the other hand, the method and the device also set the first type user level, the video level of the hidden video clip, the level of the second type user and the like, and return video clips of different levels to the inquiring party according to the user type and the level corresponding to the user identity, thereby realizing multi-level and fine-grained management of access rights.
Referring to fig. 4, fig. 4 is a flowchart of a video 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 mark;
step 402: searching 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: 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 each hidden time period in the at least one video segment and the video segments which are matched with the at least one hidden time period and set with the hidden mark are returned to the query end for sending the query request, so that the query end displays the video segments which are not matched with each hidden time period and the video segments which are matched with the at least one hidden time period and set with the hidden mark in a distinguishing mode.
See the descriptions of the steps 201 to 204, and are not repeated here.
Referring to fig. 5, fig. 5 is a flowchart of a video 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 mark;
step 502: searching 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: if the user identity is determined to be used for indicating to prohibit from viewing the hidden video according to the user identity, deleting all target video segments from the searched video segments and returning to a query end for sending the query request, wherein all target video segments comprise target video segments which are determined for each hidden time segment and are matched with the hidden time segment.
See the descriptions of the steps 201 to 204, and are not repeated here.
In addition, the application also provides an electronic device, which may include: a readable storage medium and a processor;
wherein the readable storage medium is for storing 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 for video query determination described above.
Optionally, as shown in fig. 6, the electronic device may include a communication interface 601, a bus 604 in addition to a processor 602, a machine-readable storage medium 603; wherein the communication interface 601, the processor 602 and the machine-readable storage medium 603 perform communication with each other via a bus 604. The processor 602 may perform the video query method described above by reading and executing machine-executable instructions corresponding to the graphic 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 illustrating a video query apparatus according to an exemplary embodiment of the present application. The device can be applied to electronic equipment (such as the server) and can comprise:
a receiving unit 701, configured to receive a query request; the query request includes at least: a user identity mark;
a searching unit 702, configured to find a corresponding at least one video segment according to the query request; determining at least one hidden time period corresponding to the query request;
And a return unit 703, configured to return, if the user identity is determined to indicate that the hidden video is allowed to be viewed according to the user identity, the video segments of the at least one video segment that are not matched with each hidden time segment and the video segments that are matched with at least one hidden time segment and have the hidden marks set, to a query terminal that is configured to issue the query request, so that the query terminal displays the video segments that are not matched with each hidden time segment and the video segments that are matched with at least one hidden time segment and have the hidden marks differently.
Optionally, when the hidden flag is set, the returning unit 703 is configured to determine, in the at least one video segment that is found, 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 determine, in the at least one video segment that is searched, when determining at least one target video segment that matches a hidden time segment, for each hidden time segment in the at least one video segment that is searched, for a video segment that has an intersection with the hidden time segment, determine, according to the hidden time segment, the target video segment that matches the hidden time segment from the video segments.
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 include:
the video grade of the video clip to be returned is lower than the preset video grade; and/or the number of the groups of groups,
matching the video grade of the video clip to be returned with the video grade corresponding to the user identity; and/or the number of the groups of groups,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity; and/or the number of the groups of groups,
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.
Optionally, the returning unit 703 is further configured to, if the user identity is determined according to the user identity, determine that the user identity is used to indicate that viewing of the hidden video is prohibited, delete all target video segments from the searched video segments and return to the query terminal for sending the query request, where the all target video segments include target video segments determined for each hidden time segment and matched with the hidden time segment;
Optionally, the returning unit 703 is configured to determine, when determining, according to the user identity, 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, that the user identity is used to indicate that viewing of the hidden video is prohibited;
the first condition includes: the user type corresponding to the user identity is the 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 right 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 preset user conditions; the first type of user has the right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 returning unit 703 is configured to determine, when determining, according to the user identity, that the user identity is used to indicate that the hidden video is allowed to be viewed, if the user identity meets a third condition and/or meets 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 a first type and the user identity meets the preset user condition; the first type of user has the right to set the 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 right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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: the monitoring point to be set is identified and the time period is hidden; the hidden time period is determined according to the information of the appointed object identified in the snapshot image of the monitoring point; recording the corresponding relation between the monitoring point mark to be set and the hidden time period;
the query request further includes: target monitoring point identification to be queried;
the searching unit 702 is configured to, when determining at least one hidden time period corresponding to the query request, determine, in the correspondence, at least one hidden time period corresponding to the target monitoring point identifier.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
In addition, the application further provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the identification method for the vehicles entering and exiting the parking lot when being executed by a processor.
The computer-readable storage medium 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, or the like. For example, a machine-readable storage medium may be: volatile memory, nonvolatile memory, or similar storage medium. In particular, the computer readable storage medium may be RAM (Radom Access Memory, random access memory), flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, DVD, etc.), or a similar storage medium, or a combination thereof.
In addition, the application also provides a computer program which is stored in a computer readable storage medium and when executed by a processor, causes the processor to realize the identification method for the vehicles entering and exiting the parking lot.
For an apparatus, a computer-readable storage medium, a computer program, an electronic device embodiment, reference is made to the description of method embodiments for relevance, since it essentially corresponds to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.
Claims (10)
1. A video query method, the method comprising:
receiving a hidden video setting request; the hidden video setting request includes: the monitoring point to be set is identified and the time period is hidden;
recording the corresponding relation between the monitoring point mark to be set and the hidden time period;
receiving a query request; the query request includes at least: user identity and target monitoring point identity to be inquired;
searching at least one corresponding video segment according to the query request;
in the corresponding relation, determining at least one hidden time period corresponding to the target monitoring point identification;
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, returning a video segment which is not matched with each hidden time period in the at least one video segment and a video segment which is matched with at least one hidden time period and provided with a hidden mark to a query end for sending the query request so that the query end displays the video segment which is not matched with each hidden time period and the video segment which is matched with at least one hidden time period and provided with the hidden mark in a distinguishing mode; the hidden marks are used for distinguishing video clips which are not matched with each hidden time period from video clips which are matched with the hidden time period and are provided with the hidden marks.
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 period in the 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 of claim 2, wherein the determining at least one target video clip that matches the hidden time period in the at least one video clip that is found comprises:
in the at least one video segment which is searched, aiming at each hidden time segment, determining a target video segment which is matched with the hidden time segment from the video segments according to the hidden time segment for the video segments which are intersected 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 include:
the video grade of the video clip to be returned is lower than the preset video grade; and/or the number of the groups of groups,
Matching the video grade of the video clip to be returned with the video grade corresponding to the user identity; and/or the number of the groups of groups,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity; and/or the number of the groups of groups,
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.
4. The method according to claim 1, wherein the method further comprises:
if the user identity is determined to be used for indicating to prohibit from viewing the hidden video according to the user identity, deleting all target video segments from the searched video segments and returning to a query end for sending the query request, wherein all target video segments comprise 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 determining, based on the user identity, that the user identity is used to indicate that viewing of the hidden video is prohibited comprises:
if the user identity meets the first condition and/or meets the second condition, determining that the user identity is used for indicating to prohibit the hidden video from being checked;
The first condition includes: the user type corresponding to the user identity is the 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 right 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 preset user conditions; the first type of user has the right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 identity to indicate permission to view the hidden video based on the user identity comprises:
if the user identity meets the third condition and/or meets the fourth condition, determining that the user identity is used for indicating permission to view the hidden video;
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 a first type and the user identity meets the preset user condition; the first type of user has the right to set the 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 right to set the hidden time period;
wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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, wherein the hidden time period is determined from information of a specified object identified in the monitoring point snapshot image.
8. A video query apparatus, the apparatus comprising:
the receiving unit is used for receiving the hidden video setting request; the hidden video setting request includes: the monitoring point to be set is identified and the time period is hidden; recording the corresponding relation between the monitoring point mark to be set and the hidden time period; receiving a query request; the query request includes at least: user identity and target monitoring point identity to be inquired;
The searching unit is used for searching at least one corresponding video segment according to the query request; in the corresponding relation, determining at least one hidden time period corresponding to the target monitoring point identification;
a return unit, configured to return, if the user identity is determined according to the user identity and the user identity is used to indicate that the hidden video is allowed to be viewed, a video segment that is not matched with each hidden time segment in the at least one video segment and a video segment that is matched with at least one hidden time segment and has a hidden mark set, to a query end that is used to issue the query request, so that the query end displays the video segment that is not matched with each hidden time segment and the video segment that is matched with at least one hidden time segment and has the hidden mark set differently; the hidden marks are used for distinguishing video clips which are not matched with each hidden time period from video clips which are matched with the hidden time period and are provided with the hidden marks.
9. The apparatus of claim 8, wherein the return unit, when setting the hidden flag, is configured to determine, in the at least one video segment that is found, 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 at least one target video clip matched with the hidden time period from the video clips according to the hidden time period for each video clip intersected with the hidden time period in the searched at least one video clip when the at least one target video clip matched with the hidden time period is determined in the searched at least one video clip;
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 include:
the video grade of the video clip to be returned is lower than the preset video grade; and/or the number of the groups of groups,
matching the video grade of the video clip to be returned with the video grade corresponding to the user identity; and/or the number of the groups of groups,
the hidden time period corresponding to the video clip to be returned is set by the user indicated by the user identity; and/or the number of the groups of groups,
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;
The return unit is further configured to, if the user identity is determined according to the user identity, determine that the user identity is used to indicate that viewing of the hidden video is prohibited, delete all target video segments from the searched video segments and return to the query terminal for sending the query request, where the all target video segments include target video segments determined for each hidden time segment and matched with the hidden time segment;
the return unit is used for determining that the user identity is used for indicating to prohibit viewing of the hidden video if the user identity meets a first condition and/or meets a second condition when determining that the user identity is used for indicating to prohibit viewing of the hidden video according to the user identity;
the first condition includes: the user type corresponding to the user identity is the 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 right 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 preset user conditions; the first type of user has the right to set the hidden time period;
Wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 to allow viewing of the hidden video if the user identity meets a third condition and/or meets a fourth condition when determining that the user identity is used for indicating to allow viewing of the hidden video 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 a first type and the user identity meets the preset user condition; the first type of user has the right to set the 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 right to set the hidden time period;
Wherein the user condition includes:
in at least one hidden time period, any hidden time period is set by a user indicated by the user identity; and/or the number of the groups of groups,
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 hidden time period is determined according to the information of the appointed object identified in the snapshot image of the monitoring point.
10. An electronic device comprising a readable storage medium and a processor;
wherein the readable storage medium is for storing machine executable instructions;
the processor is configured to read the machine-executable instructions on the readable storage medium and execute the instructions to perform the steps of the method of any of claims 1-7.
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 CN112100668A (en) | 2020-12-18 |
CN112100668B true 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 (9)
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 |
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 |
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 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8718449B2 (en) * | 2008-06-09 | 2014-05-06 | Verizon Patent And Licensing Inc. | Digital video recorder content filtering |
US9544528B2 (en) * | 2010-08-17 | 2017-01-10 | Verizon Patent And Licensing Inc. | Matrix search of video using closed caption information |
US9401943B2 (en) * | 2013-01-21 | 2016-07-26 | International Business Machines Corporation | Real-time customizable media content filter |
KR101560727B1 (en) * | 2014-04-07 | 2015-10-15 | 네이버 주식회사 | Service method and system for providing multi-track video contents |
US10264320B2 (en) * | 2014-06-10 | 2019-04-16 | Microsoft Technology Licensing, Llc | Enabling user interactions with video segments |
-
2020
- 2020-09-24 CN CN202011017636.9A patent/CN112100668B/en active Active
Patent Citations (9)
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 |
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 |
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)
Title |
---|
Efficient videosegmentmatchingfordetectingtemporal-basedvideocopies;Chih-Yi Chiu 等;《Neurocomputing》;全文 * |
Semantic video fingerprinting and retrieval using face information;Costas Cotsaces 等;《Signal Processing-image Communication 2009》;全文 * |
基于大数据技术的交通视频监控分析;张泽鹏;《信息科技探索》;全文 * |
数据自治开放模式下的隐私保护;王智慧 等;《西南政法大学学报》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112100668A (en) | 2020-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107870959B (en) | Providing relevant video scenes in response to a video search query | |
CN111131902B (en) | Method for determining target object information and video playing equipment | |
US20170032188A1 (en) | Photo sharing method and device | |
CA2428545A1 (en) | Method of managing resources | |
US20060271549A1 (en) | Method and apparatus for central master indexing | |
WO2023273149A1 (en) | Method and apparatus for managing electronic fence, method and apparatus for configuring electronic fence, and device, medium and product | |
KR20190107791A (en) | System and method for integrated monitoring situation of car based on block chain | |
CN106547823A (en) | Without drive crime scene investigation device data acquisition unit and method | |
CN111435435B (en) | Companion identification method, device, server and system | |
US20090136208A1 (en) | Virtual Video Clipping and Ranking Based on Spatio-Temporal Metadata | |
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 | |
US9749690B2 (en) | System for collecting metadata of a video data in a video data providing system and method thereof | |
CN111754655A (en) | Regional access management method, system and computer readable storage medium | |
CN111954013A (en) | Live broadcast interaction method and device, terminal equipment, server and storage medium | |
CN110876029B (en) | Video abstract playback method and device, electronic equipment and readable storage medium | |
CN113343010A (en) | Image identification method, electronic equipment and computer readable storage medium | |
CN114627403A (en) | Video index determining method, video playing method and computer equipment | |
CN113449130A (en) | Image retrieval method and device, computer readable storage medium and computing equipment | |
US11605054B2 (en) | System and method for recognizing environment and/or location using object identification techniques | |
CN114998839B (en) | Data management method and system based on hierarchical distribution | |
CN113626384A (en) | Method and system for creating virtual storage unit in mobile terminal of mobile internet | |
CN111782906B (en) | Data object aggregation method and device, electronic equipment and storage 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 |