Figure video resource structured management method, system and device
The structured management of video resources through face recognition technology solves the problem of low efficiency of video resource management under traditional methods and achieves fast retrieval and accuracy, especially for emergency processing of sensitive video resources.
Patent Information
- Application Number
- CN202410849239.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Traditional manual methods are difficult to manage and retrieve video resources efficiently and quickly, especially with huge amounts of video data, and the processing of sensitive video resources is inefficient and error-prone.
Face recognition technology is used to divide video resources into pictures according to timestamps, and through face recognition module recognition and comparison, the history table and database are updated to achieve structured management and rapid retrieval of video resources.
Significantly improve the efficiency of video resource management, quickly locate key people in the video, ensure the accuracy and consistency of information, and quickly respond to emergency processing needs of sensitive video resources.
Smart Images

Figure CN118733830A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of artificial intelligence and video content analysis, and to a method, system and device for structured management of character video resources. Background Art
[0002] At present, with the advent of the digital age, video resources, as an important part of media content, have shown explosive growth in quantity. Especially in the context of the booming development of major video platforms and short video platforms, the management and utilization of video resources have become particularly important. However, in the face of huge amounts of video data, traditional manual retrieval and analysis methods can no longer meet the needs of efficient and rapid positioning and extraction of key information. Therefore, how to achieve intelligent and structured management of video resources has become a problem that needs to be solved urgently.
[0003] Among video content analysis technologies, face recognition technology has attracted much attention due to its unique advantages. Face recognition technology can effectively extract the identity information of people by analyzing the facial features in the video, making it possible to structure the management of video content. By identifying, tracking and recording each face that appears in the video, we can organize the video content according to the identity of the person, which is convenient for subsequent retrieval, analysis and utilization.
[0004] In addition, the management and processing of video resources involving sensitive people is particularly important. After discovering these sensitive video resources, it is necessary to quickly locate and extract the video resources of the relevant people and the time period of the video clips in which the relevant people appear, so as to take effective processing measures in time. However, due to the complexity and hugeness of video resources, traditional manual processing methods are not only inefficient but also prone to errors. Therefore, using face recognition technology to realize the automatic retrieval and processing of sensitive video resources has important practical significance and application value.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The disclosed embodiments provide a method, system, and device for structured management of character video resources, which improve the efficiency of retrieval and analysis of video resources to meet the current needs of video resource management and utilization.
[0008] In some embodiments, the method comprises:
[0009] The video resources to be stored are divided into pictures according to the set time interval, and each frame of the picture has a timestamp;
[0010] The segmented images are sequentially input into the face recognition module in the order of timestamps, the faces are recognized and compared with the face data in the history table, the recognition results are stored in the database, and the history table and the database are updated, wherein the history table data structure includes the video ID, the face ID, the start time and the end time, and the database data structure includes the video ID, the face ID and the segment set;
[0011] When it is necessary to use an image for person search, the face ID in the image is identified through the face ID, and the video ID, start time and end time of the corresponding face ID in the history table are retrieved based on the face ID; the database is searched based on the video ID, start time and end time, and the videos in the database where the face ID appears and the time period when the face appears in the video are extracted.
[0012] Preferably, the strategy for updating the history table and the database includes:
[0013] If a face in the current frame does not exist in the history table, a new item is added to the history table, and the start time of the item is set to the timestamp of the current frame;
[0014] If the face in the history table does not exist in the current frame, the end time of the item in the history table is set to the timestamp of the current frame, and the corresponding segment set in the database is updated according to the video ID and face ID, and the item in the history table is deleted at the same time;
[0015] If a face in the current frame is in the history table, no processing will be done on the item in the history table.
[0016] In some embodiments, the system comprises:
[0017] The video processing module is used to divide the video resources to be stored into pictures according to the set intervals and assign a timestamp to each frame of the picture;
[0018] The face recognition module is used to recognize the face in each frame and compare the recognized face with the face in the history table;
[0019] The information structuring module is used to update the history table and database according to the comparison results of the face recognition module;
[0020] Data storage module, used to store history tables and databases;
[0021] The query module is used to receive the search conditions input by the user, identify the face ID in the image through the face ID, and retrieve the video ID, start time and end time corresponding to the face ID in the history table according to the face ID; search the database according to the video ID, start time and end time, and extract the video in the database where the face ID appears and the time period when the face appears in the video.
[0022] Preferably, the system also includes a resource storage subsystem and a video retrieval subsystem, the resource storage subsystem includes a video processing module, a face recognition module, an information structuring module and a data storage module, and the video retrieval subsystem includes a face recognition module, an information structuring module and a data storage module and a query module.
[0023] Preferably, the system also includes an emergency processing module for processing video resources involving sensitive persons, which module retrieves and extracts video resources of sensitive persons and time period information of video clips in which sensitive persons appear from the video resource library.
[0024] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the method for structuring management of character video resources when running the program instructions.
[0025] The present disclosure provides a method, system, and device for structured management of character video resources, which can achieve the following technical effects:
[0026] Through automated video processing and face recognition technology, video resources are structured into a data format that is easy to manage and retrieve, significantly improving the efficiency of video resource management.
[0027] The face recognition module is used to quickly locate key figures in the video, reducing the time for manual retrieval and speeding up video retrieval.
[0028] The structured management method makes video content analysis more in-depth and comprehensive, and helps to extract valuable information from large amounts of video data.
[0029] The accuracy and consistency of video content and person identity information are ensured through precise timestamp and history table update strategies.
[0030] For video resources of sensitive people, the system can respond quickly and realize emergency retrieval and processing to meet the rapid response needs in specific situations.
[0031] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0033] Figure 1 It is a schematic flow chart of the method of the present invention;
[0034] Figure 2 It is a schematic diagram of the resource storage process in the method provided in the embodiment of the present disclosure;
[0035] Figure 3 It is a schematic diagram of a device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0037] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0038] Example 1
[0039] like Figure 1-Figure 2 As shown, a method for structured management of character video resources comprises:
[0040] S1: The video resources to be stored are divided into pictures according to the set time interval, and each frame of the picture has a timestamp.
[0041] S2: Input the segmented images into the face recognition module in the order of timestamps, identify the face and compare the face data in the history table, store the recognition results in the database, and update the history table and database, where the history table data structure includes video ID, face ID, start time and end time, and the database data structure includes video ID, face ID and segment set.
[0042] S3: When it is necessary to use an image for person search, the face ID in the image is identified through the face ID, and the video ID, start time and end time of the corresponding face ID in the history table are retrieved according to the face ID; the database is searched according to the video ID, start time and end time, and the videos in the database where the face ID appears and the time period in which the face appears in the video are extracted.
[0043] As a refinement of the above embodiment, the strategy for updating the history table and the database in step S2 includes:
[0044] (1) If a face in the current frame does not exist in the history table, a new item is added to the history table and the start time of the item is set to the timestamp of the current frame.
[0045] (2) If the face in the history table does not exist in the current frame, the end time of the item in the history table is set to the timestamp of the current frame, and the corresponding segment set in the database is updated according to the video ID and face ID, and the item in the history table is deleted.
[0046] (3) If a face in the current frame is in the history table, no processing is done on the item in the history table.
[0047] Example 2
[0048] This embodiment describes the technical solution of the present invention in detail through a specific implementation process.
[0049] Steps for implementing video resource storage:
[0050] Get the video resources to be stored. Assume there is a 10-second video with a resolution of 1920x1080 and a frame rate of 30fps.
[0051] The video is divided into 300 frames at intervals of 1 / 30 seconds. Each frame is automatically assigned a timestamp. For example, the timestamp of the first frame is 0 seconds.
[0052] Perform face detection and recognition on each frame. For example, three faces are recognized in the first frame, and a unique face ID is assigned to each face.
[0053] Compare the recognition result with the history table. For each face recognized in the first frame, check whether the same face ID exists in the history table. If not, add a new record to the history table, recording the video ID, face ID, and start time as 0 seconds.
[0054] Continue to process the remaining frames. In the second frame, assume that 4 faces are recognized, 2 of which have the same face ID as in the first frame, and the other 2 are new faces. For the new faces, update the history table and assign new face IDs, and the start time is set to the timestamp of the second frame, that is, 1 / 30 seconds.
[0055] When the last frame is processed, the end time of the faces that did not appear in the last frame in the history table is updated according to strategy (2), and their information is imported into the database.
[0056] After processing all frames, the database will contain a complete collection of video clips, each associated with a corresponding face ID and timestamp.
[0057] Video retrieval implementation steps:
[0058] Receive a search request. Suppose you need to retrieve all video clips containing a specific person (whose face ID is known to be ID_123).
[0059] According to the face ID, search the video ID, start time and end time corresponding to the face ID in the history table.
[0060] The database is searched according to the video ID, start time and end time, and the video in which the face ID appears in the database and the time period in which the face appears in the video are extracted.
[0061] The search results return all video clips containing the face ID and their time ranges. For example, the video ID is Video_001 and the time ranges are 0 seconds to 2 seconds and 5 seconds to 7 seconds.
[0062] Users can directly locate specific segments in the video based on the returned time range for further viewing or processing.
[0063] Verification results:
[0064] Through the above embodiments, it is verified that the structured management method and system of character video resources of the present invention can efficiently store and retrieve video resources, realize rapid positioning and extraction of key character information in the video, and meet the needs of efficient management and rapid response.
[0065] Example 3
[0066] A structured management system for character video resources, comprising:
[0067] The video processing module is used to divide the video resources to be stored into pictures according to the set intervals and assign a timestamp to each frame of the picture.
[0068] The face recognition module is used to recognize the face in each frame of the image and compare the recognized face with the face in the history table.
[0069] The information structuring module is used to update the history table and database according to the comparison results of the face recognition module.
[0070] Data storage module, used to store history tables and databases.
[0071] The query module is used to receive the search conditions input by the user, identify the face ID in the image through the face ID, and retrieve the video ID, start time and end time corresponding to the face ID in the history table according to the face ID; search the database according to the video ID, start time and end time, and extract the video in the database where the face ID appears and the time period when the face appears in the video.
[0072] As a refinement of the above embodiment, the system also includes a resource storage subsystem and a video retrieval subsystem. The resource storage subsystem includes a video processing module, a face recognition module, an information structuring module and a data storage module. The video retrieval subsystem includes a face recognition module, an information structuring module, a data storage module and a query module.
[0073] Optionally, the system also includes an emergency processing module for processing video resources involving sensitive persons, which retrieves and extracts video resources of sensitive persons and time period information of video clips in which sensitive persons appear from the video resource library.
[0074] Combination Figure 3 As shown, the embodiment of the present disclosure provides a structured management device 300 for character video resources, including a processor 304 and a memory 301. Optionally, the device may also include a communication interface 302 and a bus 303. The processor 304, the communication interface 302, and the memory 301 may communicate with each other through the bus 303. The communication interface 302 may be used for information transmission. The processor 304 may call the logic instructions in the memory 301 to execute the structured management method for character video resources of the above embodiment.
[0075] In addition, the logic instructions in the memory 301 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0076] The memory 301 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 304 executes the function application and data processing by running the program instructions / modules stored in the memory 301, that is, the structured management method of the character video resource in the above embodiment is implemented.
[0077] The memory 301 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 301 may include a high-speed random access memory and may also include a non-volatile memory.
[0078] The embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned character video resource structured management method.
[0079] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0080] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0081] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0082] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0083] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0084] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A structured management method for character video resources, It is characterized in that include: The video resources to be stored are divided into pictures according to the set time interval, and each frame of the picture has a timestamp; The segmented images are sequentially input into the face recognition module in the order of timestamps, the faces are recognized and compared with the face data in the history table, the recognition results are stored in the database, and the history table and the database are updated, wherein the history table data structure includes the video ID, the face ID, the start time and the end time, and the database data structure includes the video ID, the face ID and the segment set; When it is necessary to use an image for person search, the face ID in the image is identified through the face ID, and the video ID, start time and end time of the corresponding face ID in the history table are retrieved based on the face ID; the database is searched based on the video ID, start time and end time, and the videos in the database where the face ID appears and the time period when the face appears in the video are extracted.
2. The method for structured management of character video resources according to claim 1, It is characterized in that Strategies for updating history tables and databases include: If a face in the current frame does not exist in the history table, a new item is added to the history table, and the start time of the item is set to the timestamp of the current frame; If the face in the history table does not exist in the current frame, the end time of the item in the history table is set to the timestamp of the current frame, and the corresponding segment set in the database is updated according to the video ID and face ID, and the item in the history table is deleted at the same time; If a face in the current frame is in the history table, no processing will be done on the item in the history table.
3. A structured management system for character video resources that implements the method of claim 1 or 2, It is characterized in that include: The video processing module is used to divide the video resources to be stored into pictures according to the set intervals and assign a timestamp to each frame of the picture; The face recognition module is used to recognize the face in each frame and compare the recognized face with the face in the history table; The information structuring module is used to update the history table and database according to the comparison results of the face recognition module; Data storage module, used to store history tables and databases; The query module is used to receive the search conditions input by the user, identify the face ID in the image through the face ID, and retrieve the video ID, start time and end time corresponding to the face ID in the history table according to the face ID; search the database according to the video ID, start time and end time, and extract the video in the database where the face ID appears and the time period when the face appears in the video.
4. The structured management system for character video resources according to claim 3, It is characterized in that The system also includes a resource storage subsystem and a video retrieval subsystem. The resource storage subsystem includes a video processing module, a face recognition module, an information structuring module and a data storage module. The video retrieval subsystem includes a face recognition module, an information structuring module, a data storage module and a query module.
5. The structured management system for character video resources according to claim 3 or 4, It is characterized in that The system also includes an emergency processing module for processing video resources involving sensitive persons, which retrieves and extracts video resources of sensitive persons and time period information of video clips in which sensitive persons appear from a video resource library.
6. A structured management device for character video resources, comprising a processor and a memory storing program instructions, It is characterized in that The processor is configured to execute the character video resource structured management method as claimed in claim 1 or 2 when running the program instructions.
7. A storage medium storing program instructions, It is characterized in that When the program instructions are run, they execute the method for structuring character video resources management as claimed in claim 1 or 2.
Citation Information
Patent Citations
Video clip quick search method and system
CN105898368A
Video searching method and device
CN108197336A
Sound image file searching method, system and device based on face recognition and medium
CN111046235A
Service processing method and device, electronic equipment and computer readable storage medium
CN111666443A
Cooperative control method for historical videos and images of security inspection machine of security and protection integrated platform
CN116484049A
