Video processing method and apparatus, device and storage medium

By determining the target frame rate in video processing and applying discarding or blurring strategies, the problem of low accuracy in processing sensitive information in videos is solved, and the security and integrity of autonomous driving algorithm training data are improved.

WO2024212453A1PCT designated stage expired Publication Date: 2024-10-17HUIZHOU DESAY SV AUTOMOTIVE

Patent Information

Application Number
PCT/CN2023/122565
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2023-09-28
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In the existing technology, the processing accuracy of setting sensitive information in videos is low, and it is difficult to effectively remove personal information, political information, military information and other information that is not suitable for display.

Method used

By obtaining the video to be processed, the target frame rate is determined, and the sensitive information in the video is processed and corrected based on the frame rate. The strategy of discarding the entire frame or blurring the sensitive information area is used to improve the accuracy of video processing.

Benefits of technology

Significantly improves the accuracy of processing sensitive information in videos, ensuring the security and integrity of video data in autonomous driving algorithm training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023122565_17102024_PF_FP_ABST
    Figure CN2023122565_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a video processing method and apparatus, a device and a storage medium. The method comprises: obtaining a video to be processed, wherein the video to be processed comprises set sensitive information; determining a target frame rate of the video to be processed; on the basis of the target frame rate, processing the set sensitive information in the video to be processed, so as to obtain a first processed video; and correcting the first processed video to obtain a target video. According to the embodiments of the present application, the set sensitive information in the video to be processed is processed on the basis of the target frame rate, and the first processed video is corrected, so that the accuracy of processing the set sensitive information in the video can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Video processing method, device, equipment and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 13, 2023, with application number 202310390857.8, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of autonomous driving technology, and in particular to a video processing method, apparatus, device, and storage medium. Background Art

[0003] Autonomous driving is an inevitable path for the development of the automotive industry. As autonomous driving technology continues to improve and mature, a key method is to train autonomous driving algorithms using road videos collected by vehicles. Before autonomous driving algorithms can use the collected video data, they must perform desensitization processing. Because videos contain personal information such as faces and license plates, as well as other sensitive information such as political and military information, and possibly other information that should not be displayed, desensitization is necessary. However, existing technologies for processing sensitive information in videos still suffer from low accuracy.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a video processing method, apparatus, device, and storage medium, which can improve the accuracy of processing sensitive information set in a video.

[0006] In a first aspect, an embodiment of the present application provides a video processing method, comprising: obtaining a video to be processed; wherein the video to be processed includes set sensitive information; determining a target frame rate of the video to be processed; processing the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video; and correcting the first processed video to obtain a target video.

[0007] In the second aspect, an embodiment of the present application also provides a video processing device, including: a video acquisition module for acquiring a video to be processed; wherein the video to be processed includes set sensitive information; a target frame rate determination module for determining the target frame rate of the video to be processed; a video processing module for processing the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video; and a video correction module for correcting the first processed video to obtain a target video.

[0008] In a third aspect, an embodiment of the present application further provides an electronic device, comprising:

[0009] one or more processors;

[0010] a storage device for storing one or more programs,

[0011] When the one or more programs are executed by the one or more processors, the one or more processors implement the video processing method as described in the embodiments of the present application.

[0012] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the video processing method as described in the embodiment of the present application.

[0013] The technical solution disclosed in this embodiment obtains a video to be processed, determines a target frame rate for the video to be processed, processes the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video, and corrects the first processed video to obtain a target video. In this embodiment of the application, by processing the set sensitive information in the video to be processed based on the target frame rate and correcting the first processed video, the accuracy of processing the set sensitive information in the video can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] FIG1 is a flow chart of a video processing method provided by an embodiment of the present application;

[0015] FIG2 is a flow chart of another video processing method provided in an embodiment of the present application;

[0016] FIG3 is a schematic diagram of the structure of a video processing device provided in an embodiment of the present application;

[0017] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] It should be understood that the various steps described in the method embodiments of the present application can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0019] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0020] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "multiple" mentioned in this application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0022] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0023] FIG1 is a flow chart of a video processing method provided in an embodiment of the present application. This embodiment is applicable to desensitizing sensitive information in a video. The method can be performed by a video processing device and specifically includes the following steps:

[0024] S110: Obtain the video to be processed.

[0025] The video to be processed may include sensitive information. Sensitive information includes personal information, political information, military information, and information that should not be displayed. The video to be processed may be a video of a traffic road captured by a vehicle for use in training autonomous driving algorithms.

[0026] S120: Determine the target frame rate of the video to be processed.

[0027] In this embodiment, the optimal frame rate can be obtained by processing multiple historical videos, and the optimal frame rate can be used as the target frame rate. For processing historical videos, the historical videos can be desensitized to obtain processing results, which include the number of correctly desensitized videos (i.e., the number of video frames containing the set sensitive information). The optimal frame rate corresponding to the historical videos is found through the processing results, and finally the target frame rate is determined based on the optimal frame rates corresponding to the multiple historical videos.

[0028] Optionally, determining a target frame rate of the video to be processed includes: obtaining a plurality of historical videos;

[0029] For each historical video, the set sensitive information in the historical video is processed based on the set frame rate to obtain a first processing result; wherein the first processing result is the number of video frames containing the set sensitive information; the following iterative process is performed on the frame rate corresponding to the first processing result and the historical video: the frame rate corresponding to the first processing result is processed based on the set decrement step size to obtain a first frame rate; the set sensitive information in the historical video is processed based on the first frame rate to obtain a second processing result; if the second processing result is not equal to the first processing result, the second processing result is iteratively processed as a new first processing result; if the second processing result is equal to the first processing result, the iterative process is terminated, and the frame rate corresponding to the first processing result is used as the second frame rate; multiple second frame rates are obtained; and the target frame rate is determined based on the multiple second frame rates.

[0030] It should be noted that since the collected videos to be processed may have different frame rates, if the frame rate is too high, the playback speed will be very fast. Accordingly, the processing of the video to be processed may produce relatively poor results. Therefore, it is necessary to adjust the frame rate of the video to be processed, that is, it is necessary to determine the target frame rate of the video to be processed.

[0031] The set frame rate can be any frame rate, such as the original frame rate of a historical video, a target frame rate, or the like. Specifically, multiple historical videos are obtained. For each historical video, the set sensitive information in the historical video is desensitized based on the set frame rate to obtain a first processing result. The first processing result is the number of video frames containing the set sensitive information. The following iterative process is performed on the frame rate corresponding to the first processing result and the historical videos: the first frame rate is obtained by subtracting the set decrement step from the frame rate corresponding to the first processing result. The set sensitive information in the historical video is processed based on the first frame rate to obtain a second processing result. If the second processing result is not equal to the first processing result, the second processing result is used as the new first processing result for iterative processing. If the second processing result is equal to the first processing result, the iterative process ends, and the frame rate corresponding to the first processing result is used as the second frame rate. Thus, multiple second frame rates can be obtained based on the multiple historical videos. The average, minimum, or maximum frame rate of the multiple second frame rates can be used as the target frame rate. Optionally, the minimum frame rate among the multiple second frame rates can be used as the target frame rate.

[0032] Exemplarily, the process of determining the second frame rate of each historical video is as follows: Step 1: Processing the set sensitive information in the historical video based on the set frame rate to obtain a first processing result.

[0033] The first processing result specifically includes: the number of co-processed video frames is Ti, the number of erroneous video frames (that is, the video frames do not include the set sensitive information) in Ti is Fi, and the number of video frames containing the set sensitive information in the processing result (that is, the validity number) is recorded as Vi=Ti-Fi.

[0034] Step 2: Process the frame rate corresponding to the first processing result based on the set decrement step S to obtain the first frame rate, play the video using the first frame rate (first frame rate = frame rate corresponding to the first processing result - set decrement step S), and process the set sensitive information in the historical video based on the first frame rate to obtain the second processing result.

[0035] The second processing result specifically includes: the number of co-processed video frames is Tj, the number of erroneous video frames (that is, the video frames do not include the set sensitive information) in Tj is Fj, and the number of video frames containing the set sensitive information in the processing result (that is, the validity number) is recorded as Vj=Tj-Fj.

[0036] Step 3: If the second processing result is not equal to the first processing result, the second processing result is used as the new first processing result for iterative processing, that is, the second processing result is used as the first processing result, Vj is used as Vi, and step 2 is repeated; if the second processing result is equal to the first processing result, the iterative process is ended, that is, the iterative process is ended until Vj=Vi, where j=i+1; at this time, the frame rate corresponding to the first processing result can be used as the second frame rate.

[0037] In this embodiment, multiple second frame rates are determined through multiple historical videos, and a target frame rate is determined based on the multiple second frame rates, so that the video to be processed can be processed based on the target frame rate, thereby improving the accuracy of video processing.

[0038] S130: Process the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video.

[0039] In this embodiment, the video to be processed can be played at a target frame rate. During playback of the video to be processed, each video frame is captured and the set sensitive information in each video frame is processed one by one. Specifically, this can be processed using an automatic desensitization processing system, which can include a machine learning model. The machine learning model can be obtained by iteratively training multiple historical videos containing set sensitive information.

[0040] Optionally, the set sensitive information in the video to be processed is processed based on the target frame rate to obtain a first processed video, including: playing the video to be processed based on the target frame rate; obtaining each video frame during the playback process as the first video frame; wherein the first video frame is the video frame currently played; if the first video frame contains set sensitive information, the first video frame is processed based on the set processing strategy to obtain a first associated frame set; wherein the set processing strategy includes a strategy of discarding the entire frame and a strategy of blurring the set sensitive information area; when the playback of the video to be processed is completed, the video to be processed is processed according to the first associated frame set to obtain the first processed video.

[0041] Specifically, the video to be processed is played at the target frame rate. During the playback of the video to be processed, each video frame is obtained, and the currently played video frame is used as the first video frame. If the machine learning model identifies that there is set sensitive information in the first video frame, the first video frame containing the set sensitive information is processed based on the discard whole frame strategy or the blurring set sensitive information area strategy. After the first video frame is processed, a first associated frame set is obtained. The associated frame set is used to store video frames containing sensitive information and associated information of video frames containing sensitive information. If the set processing strategy is the discard whole frame strategy, the first associated frame set includes video frames containing set sensitive information, timestamps of video frames, etc.; if the set processing strategy is the blurring set sensitive information area strategy, the first associated frame set includes the first video frame containing set sensitive information, timestamps of video frames, and video frames after blurring the first video frame (i.e., blurred video frames). When the playback of the video to be processed is finished, that is, all the video frames containing the set sensitive information in the video to be processed are processed, the final first associated frame set will be obtained at this time. The video to be processed will be processed uniformly according to the final first associated frame set. If the strategy is to discard the entire frame, the video frames containing the set sensitive information will be deleted according to the timestamps of the video frames in the first associated frame set; if the strategy is to blur the sensitive information area, the video frames containing the set sensitive information will be replaced with blurred video frames according to the timestamps of the video frames in the first associated frame set.

[0042] In this embodiment, for video frames containing set sensitive information, the video frames are processed based on the set processing strategy to obtain a first associated frame set. After the video to be processed is played, the video to be processed is processed according to the final first associated frame set, which can effectively realize the processing of the video containing set sensitive information, thereby improving the accuracy of video processing.

[0043] Optionally, the first video frame is processed based on the set processing strategy to obtain a first associated frame set, including: if the set processing strategy is a discard whole frame strategy, the first video frame is used as the target video frame; the timestamp of the target video frame is determined; the timestamp, target video frame and discard whole frame strategy are correspondingly associated, and added to the first associated frame set.

[0044] The timestamp of a video frame can be used to determine the specific position of the video frame in the video. The timestamp can be used to find the video frame corresponding to the timestamp. In this embodiment, if the processing strategy is set to discard the entire frame, the first video frame is used as the target video frame, where the target video frame can be understood as a video frame containing sensitive information. The timestamp of the target video frame is determined, and the timestamp of the target video frame, the target video frame, and the discard the entire frame strategy are associated with each other and added to the first associated frame set.

[0045] Optionally, the video to be processed is processed according to the first associated frame set to obtain a first processed video, including: if the processing strategy is set to discard the entire frame strategy, the target video frame is deleted from the video to be processed according to the timestamp corresponding to the target video frame to obtain the first processed video.

[0046] In this embodiment, if the processing strategy is set to a discard whole frame strategy, the first video frame is used as the target video frame, and the timestamp of the target video frame, the target video frame, and the discard whole frame strategy are correspondingly associated as an association group, and the association group is added to the first association frame set. When the playback of the video to be processed is completed, that is, after all the video frames containing the set sensitive information in the video to be processed are processed, the final first association frame set is obtained, and the final first association frame set may include one or more association groups. After obtaining the final first association frame set, the video to be processed is uniformly desensitized according to the final first association frame set. Specifically, the target video frames are deleted one by one from the video to be processed according to the timestamp of the target video frame in the final first association frame set to obtain the first processed video.

[0047] In this embodiment, by discarding the entire frame strategy to process the set sensitive information in the video to be processed and obtaining the first processed video, the processing of the video containing the set sensitive information can be effectively achieved, thereby improving the accuracy of video processing.

[0048] Optionally, the first video frame is processed based on the set processing strategy to obtain a first associated frame set, including: if the set processing strategy is a blurred sensitive information area strategy, the first video frame is used as the target video frame; the timestamp of the target video frame is determined; the set sensitive area in the target video frame is blurred to obtain a blurred video frame; the timestamp, target video frame, blurred video frame and blurred sensitive information area strategy are correspondingly associated, and added to the first associated frame set.

[0049] Optionally, the video to be processed is processed according to the first associated frame set to obtain a first processed video, including: if the processing strategy is set to blur the sensitive information area strategy, then according to the timestamp corresponding to the target video frame, the target video frame in the video to be processed is replaced with a blurred video frame to obtain the first processed video.

[0050] In this embodiment, if the processing strategy is to blur the sensitive information area, the first video frame is used as the target video frame, and the sensitive area in the target video frame is blurred to obtain a blurred video frame. The sensitive area can be understood as an area containing sensitive information. This embodiment does not limit the specific blurring method; blurring the sensitive area can be achieved, such as by mosaic processing. The timestamp of the target video frame, the target video frame, the blurred video frame, and the blurred sensitive information area strategy are associated to form an association group, which is then added to a first association frame set. When the playback of the video to be processed ends, i.e., after all video frames containing sensitive information in the video to be processed have been processed, a final first association frame set is obtained. The final first association frame set may include one or more association groups. After obtaining the final first association frame set, the video to be processed is uniformly desensitized based on the first association frame set. Specifically, the target video frame in the video to be processed is replaced with the corresponding blurred video frame based on the timestamp of the target video frame in the final first association frame set, to obtain a first processed video.

[0051] In this embodiment, the set sensitive information in the video to be processed is processed by fuzzying the set sensitive information area strategy to obtain the first processed video, which can effectively realize the processing of the video containing the set sensitive information, thereby improving the accuracy of video processing.

[0052] S140: Correct the first processed video to obtain a target video.

[0053] In this embodiment, a target video frame can be obtained from the first associated frame set, verification information of the target video frame from the user is received, and the first processed video is modified based on the verification information. The verification information may include whether the target video frame contains set sensitive information. Specifically, if the verification information indicates that the target video frame does not contain the set sensitive information, the target video frame is restored based on the timestamp of the target video frame (i.e., the target video frame is merged with the first processed video) to obtain the target video.

[0054] The technical solution of this embodiment of the application obtains a video to be processed, determines a target frame rate for the video to be processed, processes the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video, and corrects the first processed video to obtain a target video. This embodiment of the application improves the accuracy of processing set sensitive information in a video by processing the set sensitive information in the video to be processed based on the target frame rate and correcting the first processed video.

[0055] FIG2 is a flow chart of another video processing method provided by an embodiment of the present application. The present application embodiment is a specific embodiment based on the above application embodiment. Referring to FIG2, the method provided by the embodiment of the present application specifically includes the following steps:

[0056] S210: Obtain the video to be processed.

[0057] Wherein, the video to be processed includes set sensitive information;

[0058] S220: Determine a target frame rate of the video to be processed.

[0059] S230: Process the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video.

[0060] S240: If the set processing strategy is a whole-frame discard strategy, obtain a target video frame from the first associated frame set.

[0061] S250: Receive first verification information of the target video frame from the user.

[0062] S260: If the first verification information indicates that the target video frame does not contain the set sensitive information, the target video frame and the first processed video are merged according to a timestamp corresponding to the target video frame to obtain a target video.

[0063] In this embodiment, if the processing strategy is set to discard the entire frame strategy, the target video frame is obtained from the first associated frame set; according to the timestamp of the target video frame, the target video frame is sequentially imported into the comparison window, and the user's first verification information of the target video frame in the comparison window is received. If the first verification information is that the target video frame does not contain the set sensitive information, the target video frame is marked as a revoked state. After all the target video frames in the first associated frame set have been verified (checked), for the target video frame marked as a revoked state, the target video frame and the first processed video are merged according to the timestamp of the target video frame (that is, the target video frame is restored to the first processed video according to the timestamp of the target video frame) to obtain the target video.

[0064] S270: If the set processing strategy is a fuzzy sensitive information area strategy, obtain a target video frame and a blurred video frame from the first associated frame set.

[0065] S280: Receive second verification information of the target video frame and the blurred video frame from the user.

[0066] S290. If the second verification information indicates that the target video frame does not contain the set sensitive information or that there is an erroneous blurred area in the blurred video frame, the corresponding blurred video frame in the first processed video is replaced with the target video frame according to the timestamp corresponding to the target video frame to obtain the target video.

[0067] In this embodiment, if the processing strategy is to blur sensitive information areas, a target video frame and a blurred video frame are obtained from the first associated frame set. The target video frames are sequentially imported into a comparison window based on their timestamps. The comparison window may have the target video frame on the left and the blurred video frame corresponding to the target video frame on the right. Second verification information regarding the target video frame and the blurred video frame in the comparison window is received from the user. If the second verification information indicates that the target video frame does not contain the set sensitive information or that the blurred video frame contains an erroneous blurred area, the target video frame is marked as revoked or the target video frame corresponding to the blurred video frame is marked as revoked. The presence of an erroneous blurred area in the blurred video frame can be understood as indicating that blurring was not performed on the set sensitive area during the blurring process, but rather on an area that does not contain the set sensitive information. After verification (inspection) of the target video frame and the blurred video frame in the first associated frame set is completed, the corresponding blurred video frame in the first processed video is replaced with the target video frame based on its timestamp, thereby obtaining the target video. The timestamp of the target video frame and the timestamp of the blurred video frame associated with the target video frame may be the same.

[0068] In this embodiment, by performing error checking on the target video frame or the blurred video frame in the first associated frame set, if the target video frame does not have the set sensitive information or there is an erroneous blurred area in the blurred video frame, the target video frame can be restored to the first processed video according to the timestamp of the target video frame to obtain the target video. This method can correct the processing errors of the automatic desensitization processing system, thereby further improving the accuracy of processing the set sensitive information in the video.

[0069] Optionally, after correcting the first processed video to obtain a target video, the method further includes:

[0070] Play the target video based on the target frame rate; obtain each video frame in the process of playing the target video as the second video frame; receive the user's third verification information on the second video frame; if the third verification information is that the second video frame contains set sensitive information, pause the target video; process the second video frame based on the set processing strategy to obtain a second associated frame set; continue to process the unplayed target video based on the target frame rate until the target video is finished playing, and obtain a new second associated frame set; process the target video according to the new second associated frame set to obtain a new target video.

[0071] It should be noted that if there are erroneous blurred areas in the blurred video frame, the corresponding blurred video frame in the first processed video is replaced with the target video frame based on the timestamp of the target video frame to obtain the target video. In this case, the target video frame corresponding to the blurred video frame may include set sensitive information. Alternatively, if the automatic desensitization processing system (machine learning model) has omissions in the process of processing the video to be processed, the target video can be processed again.

[0072] In this embodiment, the target video can be played again based on the target frame rate, and each video frame in the process of playing the target video is obtained as the second video frame. The user's third verification information for the second video frame is received. If the third verification information indicates that the second video frame contains set sensitive information, the target video is paused; the second video frame is processed again based on the set processing strategy to obtain a second associated frame set; the unplayed target video is continued to be played based on the target frame rate, and the user's third verification information for the second video frame is continued to be received. If the third verification information indicates that the second video frame contains set sensitive information, the target video is paused again; the second video frame is processed again based on the set processing strategy until the target video is played. That is, after all second video frames in the target video are checked and processed based on the set processing strategy, a new second associated frame set is obtained, and the target video is processed according to the new second associated frame set to obtain a new target video.

[0073] Specifically, omission desensitization processing is uniformly performed on the target video according to the latest second associated frame set. If the latest second associated frame set is non-empty, if the processing strategy is set to discard the entire frame strategy, the second video frame is used as the target video frame, and the target video frames are deleted one by one from the target video according to the timestamp of the target video frame in the latest second associated frame set to obtain a new target video. If the processing strategy is set to blur the sensitive information area strategy, the second video frame is used as the target video frame, and the target video frame in the target video is replaced with the corresponding blurred video frame according to the timestamp of the target video frame in the latest second associated frame set to obtain a new target video.

[0074] In this embodiment, by playing the target video based on the target frame rate and processing the target video again during the playback of the target video, it is possible to make up for the omissions of the automatic desensitization processing system, thereby further improving the accuracy of processing sensitive information set in the video.

[0075] Optionally, the second video frame is processed based on the set processing strategy to obtain a second set of associated frames, including: adding the second video frame and multiple video frames before the second video frame to a sliding window; determining a target video frame from the sliding window; and processing the target video frame based on the set processing strategy to obtain a second set of associated frames.

[0076] In this embodiment, the target video is replayed based on the target frame rate, and each video frame during the playback of the target video is obtained as a second video frame. Third verification information regarding the second video frame is received from the user. If the third verification information indicates that the second video frame contains set sensitive information, the target video is paused. While the target video is paused, the second video frame and multiple video frames preceding it are added to a sliding window for interactive serialized presentation. The sliding window size is N, which can be determined based on the processing performance of the machine. The sliding window size can be understood as the number of video frames. The sliding window can be understood as a list. Specifically, the second video frame and N video frames preceding it (the frames preceding the second video frame can be obtained based on the timestamp) can be added to the sliding window. A video frame containing the set sensitive information is determined from the sliding window as the target video frame. The target video frame is processed based on the set processing policy to obtain a second set of associated frames. In this embodiment, the method for processing the target video frame based on the set processing policy to obtain the second set of associated frames is similar to the method for processing the first video frame based on the set processing policy to obtain the first set of associated frames in the above-mentioned embodiment, and will not be further described here.

[0077] In this embodiment, the video frames containing set sensitive information are serialized using a sliding window technology, which can increase the speed of video processing.

[0078] FIG3 is a schematic diagram of the structure of a video processing device provided in an embodiment of the present application. As shown in FIG3 , the device includes: a video acquisition module 310, a target frame rate determination module 320, a video processing module 330, and a video correction module 340;

[0079] The video acquisition module 310 is used to acquire a video to be processed; wherein the video to be processed includes set sensitive information;

[0080] A target frame rate determination module 320 is configured to determine a target frame rate of the video to be processed;

[0081] The video processing module 330 is configured to process the set sensitive information in the video to be processed based on a target frame rate to obtain a first processed video;

[0082] The video correction module 340 is used to correct the first processed video to obtain a target video.

[0083] The technical solution of this embodiment of the application obtains a video to be processed through a video acquisition module, determines a target frame rate for the video to be processed through a target frame rate determination module, processes the set sensitive information in the video to be processed based on the target frame rate through a video processing module to obtain a first processed video, and corrects the first processed video through a video correction module to obtain a target video. This embodiment of the application improves the accuracy of processing set sensitive information in a video by processing the set sensitive information in the video to be processed based on the target frame rate and correcting the first processed video.

[0084] Optionally, the target frame rate determination module is specifically used to: obtain multiple historical videos; for each historical video, process the set sensitive information in the historical video based on the set frame rate to obtain a first processing result; wherein the first processing result is the number of video frames containing the set sensitive information; perform the following iterative process on the frame rate corresponding to the first processing result and the historical video: process the frame rate corresponding to the first processing result based on the set decrement step size to obtain a first frame rate; process the set sensitive information in the historical video based on the first frame rate to obtain a second processing result; if the second processing result is not equal to the first processing result, iteratively process the second processing result as the new first processing result; if the second processing result is equal to the first processing result, end the iterative process, and use the frame rate corresponding to the first processing result as the second frame rate; obtain multiple second frame rates; determine the target frame rate based on the multiple second frame rates.

[0085] Optionally, the video processing module is specifically configured to: play the video to be processed based on the target frame rate;

[0086] Obtain each video frame during the playback process as a first video frame; wherein, the first video frame is the video frame currently played; if the first video frame contains set sensitive information, process the first video frame based on a set processing strategy to obtain a first associated frame set; wherein, the set processing strategy includes a strategy of discarding the entire frame and a strategy of blurring the set sensitive information area; when the playback of the video to be processed is completed, process the video to be processed according to the first associated frame set to obtain a first processed video.

[0087] Optionally, the video processing module is also used to: if the processing strategy is set to a discard whole frame strategy, then the first video frame is used as the target video frame; determine the timestamp of the target video frame; associate the timestamp, the target video frame and the discard whole frame strategy, and add them to the first associated frame set.

[0088] Optionally, the video processing module is further configured to: if the processing strategy is set to discard the entire frame strategy, delete the target video frame from the video to be processed according to the timestamp corresponding to the target video frame to obtain a first processed video.

[0089] Optionally, the video processing module is further configured to: if the set processing strategy is a fuzzy sensitive information area strategy, use the first video frame as a target video frame; and determine a timestamp of the target video frame;

[0090] The set sensitive area in the target video frame is blurred to obtain a blurred video frame; the timestamp, the target video frame, the blurred video frame and the blurred set sensitive information area strategy are correspondingly associated and added to the first associated frame set.

[0091] Optionally, the video processing module is also used to: if the processing strategy is set to a fuzzy sensitive information area strategy, then according to the timestamp corresponding to the target video frame, replace the target video frame in the video to be processed with the blurred video frame to obtain a first processed video.

[0092] Optionally, the video correction module is specifically used to: if the set processing strategy is a whole-frame discarding strategy, obtain the target video frame from the first associated frame set; receive the user's first verification information on the target video frame; if the first verification information is that the target video frame does not contain the set sensitive information, merge the target video frame and the first processed video according to the timestamp corresponding to the target video frame to obtain the target video.

[0093] Optionally, the video correction module is also used to: if the set processing strategy is a blurred sensitive information area strategy, then obtain the target video frame and the blurred video frame from the first associated frame set; receive the user's second verification information on the target video frame and the blurred video frame; if the second verification information is that the target video frame does not have the set sensitive information or there is an erroneous blurred area in the blurred video frame, then replace the corresponding blurred video frame in the first processed video with the target video frame according to the timestamp corresponding to the target video frame to obtain the target video.

[0094] Optionally, the above-mentioned device also includes a target video processing module, which is specifically used to: play the target video based on the target frame rate; obtain each video frame in the process of playing the target video as a second video frame; receive the user's third verification information for the second video frame; if the third verification information is that the second video frame contains set sensitive information, then pause the target video; process the second video frame based on the set processing strategy to obtain a second associated frame set; continue to process the unplayed target video based on the target frame rate until the target video is played, and obtain a new second associated frame set; process the target video according to the new second associated frame set to obtain a new target video.

[0095] Optionally, the target video processing module is also used to: add the second video frame and multiple video frames before the second video frame to the sliding window; determine the target video frame from the sliding window; process the target video frame based on the set processing strategy to obtain a second associated frame set.

[0096] The video processing device provided in the embodiments of the present application can execute the video processing method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the embodiments of this application.

[0098] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Referring to Figure 4 below, it shows a schematic diagram of the structure of an electronic device (such as the terminal device or server in Figure 4) 400 suitable for implementing an embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in Figure 4 is merely an example and should not impose any restrictions on the functions and scope of use of the embodiments of the present application.

[0099] As shown in FIG4 , the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. Various programs and data required for the operation of the electronic device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An edit / output (I / O) interface 405 is also connected to the bus 404.

[0100] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although FIG4 shows the electronic device 400 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0101] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present application are performed.

[0102] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0103] The electronic device provided in the embodiment of the present application and the video processing method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0104] An embodiment of the present application provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video processing method provided by the above embodiment is implemented.

[0105] It should be noted that the computer-readable medium mentioned above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0106] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0107] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0108] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: obtain a video to be processed; wherein, the video to be processed includes set sensitive information; determine a target frame rate of the video to be processed; process the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video; and correct the first processed video to obtain a target video.

[0109] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0110] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0111] The units involved in the embodiments described in this application may be implemented in software or hardware. The name of a unit does not necessarily limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0112] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0113] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] The above description is merely an optional embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in this application is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also encompass other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this application.

[0115] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be construed as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0116] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A video processing method, comprising: Obtaining a video to be processed; wherein the video to be processed includes set sensitive information; Determining a target frame rate of the video to be processed; Processing the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video; The first processed video is corrected to obtain a target video.

2. The method according to claim 1, wherein: The determining the target frame rate of the video to be processed includes: Get multiple historical videos; For each historical video, based on a set frame rate, the set sensitive information in the historical video is processed to obtain a first processing result; wherein the first processing result is the number of video frames containing the set sensitive information; The following iterative process is performed on the frame rate and historical video corresponding to the first processing result: Processing the frame rate corresponding to the first processing result based on the set decrementing step size to obtain a first frame rate; Processing the set sensitive information in the historical video based on the first frame rate to obtain a second processing result; If the second processing result is not equal to the first processing result, the second processing result is used as a new first processing result for iterative processing; If the second processing result is equal to the first processing result, the iteration process ends, and the frame rate corresponding to the first processing result is used as the second frame rate; obtaining multiple second frame rates; A target frame rate is determined according to the plurality of second frame rates.

3. The method according to claim 1 or 2, wherein: Processing the set sensitive information in the video to be processed based on the target frame rate to obtain a first processed video includes: Play the video to be processed based on the target frame rate; Acquire each video frame in the playing process as a first video frame; wherein the first video frame is a currently played video frame; If the first video frame contains set sensitive information, the first video frame is processed based on a set processing strategy to obtain a first associated frame set; wherein the set processing strategy includes discarding the entire frame Policy and fuzzification set sensitive information area policy; When the playback of the video to be processed is finished, the video to be processed is processed according to the first associated frame set to obtain a first processed video.

4. The method according to claim 3, wherein: Processing the first video frame based on a set processing strategy to obtain a first associated frame set includes: If the processing strategy is set to discard the entire frame, the first video frame is used as the target video frame; Determining a timestamp of the target video frame; The timestamp, the target video frame and the whole frame discarding strategy are correspondingly associated and added to the first associated frame set.

5. The method according to claim 4, wherein: The step of processing the video to be processed according to the first associated frame set to obtain a first processed video includes: If the processing strategy is set to discard the entire frame strategy, the target video frame is deleted from the video to be processed according to the timestamp corresponding to the target video frame to obtain a first processed video.

6. The method according to claim 3, wherein: Processing the first video frame based on a set processing strategy to obtain a first associated frame set includes: If the processing strategy is set to be a fuzzy sensitive information area strategy, the first video frame is used as a target video frame; Determining a timestamp of the target video frame; Performing blur processing on a set sensitive area in the target video frame to obtain a blurred video frame; The timestamp, the target video frame, the blurred video frame and the blur setting sensitive information area strategy are correspondingly associated and added to the first associated frame set.

7. The method according to claim 6, wherein: The step of processing the video to be processed according to the first associated frame set to obtain a first processed video includes: If the processing strategy is set to blur the sensitive information area strategy, then according to the timestamp corresponding to the target video frame, the target video frame in the video to be processed is replaced with the blurred video frame to obtain a first processed video.

8. The method according to claim 4, wherein: Correcting the first processed video to obtain a target video includes: If the processing strategy is set to discard the entire frame strategy, obtaining the target video frame from the first associated frame set; Receiving first verification information of the target video frame from a user; If the first verification information is that the target video frame does not contain the set sensitive information, the target video frame and the first processed video are merged according to the timestamp corresponding to the target video frame to obtain the target video.

9. The method according to claim 6, wherein: Correcting the first processed video to obtain a target video includes: If the processing strategy is set to be a fuzzy sensitive information area strategy, obtaining a target video frame and a fuzzy video frame from the first associated frame set; Receiving second verification information of the target video frame and the blurred video frame from a user; If the second verification information is that the target video frame does not contain the set sensitive information or there is an erroneous blurred area in the blurred video frame, then the corresponding blurred video frame in the first processed video is replaced with the target video frame according to the timestamp corresponding to the target video frame to obtain the target video.

10. The method according to claim 3, after modifying the first processed video to obtain the target video, further comprises: Play the target video based on a target frame rate; Acquire each video frame in the process of playing the target video as a second video frame; receiving third verification information of the second video frame from a user; If the third verification information indicates that the second video frame contains set sensitive information, pausing the target video; Processing the second video frame based on the set processing strategy to obtain a second associated frame set; Continuing to process the unplayed target video based on the target frame rate until the target video is completely played, thereby obtaining a new second associated frame set; The target video is processed according to the new second associated frame set to obtain a new target video.

11. The method according to claim 10, wherein: Processing the second video frame based on the set processing strategy to obtain a second associated frame set includes: adding the second video frame and a plurality of video frames before the second video frame to the sliding window; Determine a target video frame from the sliding window; The target video frame is processed based on the set processing strategy to obtain a second associated frame set.

12. A video processing device, comprising: A video acquisition module, used to acquire a video to be processed; wherein the video to be processed includes set sensitive information; A target frame rate determination module, used to determine the target frame rate of the video to be processed; A video processing module, used for processing the set sensitive information in the video to be processed based on a target frame rate to obtain a first processed video; The video correction module is used to correct the first processed video to obtain a target video.

13. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video processing method as described in any one of claims 1-11.

14. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the video processing method according to any one of claims 1 to 11 when executed by a computer processor.

Citation Information

Patent Citations

  • Video processing method and related equipment

    CN111985419A

  • Automatic detection method and system for video resources

    CN113542724A

  • Data desensitization processing method and device and electronic equipment

    CN114463168A

  • Video sensitive information removal method and device and computer readable storage medium

    CN115174925A

  • Traffic image desensitization method and device

    CN115830690A

Cited By

  • Image processing method and device

    CN119893170A