Video anti-counterfeiting judgment method and device, equipment and storage medium
By evaluating and screening high-quality frame groups of face video data in the video buffer pool for anti-counterfeiting judgment, the problem of high risk of misjudgment of single-frame images is solved and more accurate anti-counterfeiting detection is achieved.
Patent Information
- Application Number
- CN202410879877.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-13
AI Technical Summary
In the existing technology, face anti-counterfeiting detection relies on single-frame images. Low-quality images lead to a high risk of misjudgment, and context images cannot be used for correlation judgment, resulting in a high risk of misjudgment.
By storing face video data in the video buffer pool, the image quality is evaluated frame by frame, high-quality frame groups are selected for anti-counterfeiting judgment, and the judgment results of each frame are integrated to determine the final result, including quality assessment, sorting, weighted summation and voting. Wait for steps.
It reduces the risk of misjudgment caused by low-quality images, improves the accuracy of anti-counterfeiting detection through correlation judgment of multiple frames of images, and reduces the risk of misjudgment of single-frame images.
Smart Images

Figure CN118644898A
Abstract
Description
Technical Field
[0001] The present application relates to the field of biometric identification technology, and in particular to a video anti-counterfeiting judgment method, device, equipment and storage medium. Background Art
[0002] At present, biometric technology is widely used in the security field and is one of the main means of authenticating user identities. Among them, face is a commonly used biological feature in biometric technology.
[0003] Anti-counterfeiting detection is mainly carried out by identifying physiological information on living bodies. It uses physiological information as a life feature to distinguish biological features forged with non-living materials such as photos, silicone, and plasticine. At present, the anti-counterfeiting modules used by most companies use frame-by-frame anti-counterfeiting output for judgment, and decide whether to enter the identification stage based on the anti-counterfeiting results. Frame-by-frame anti-counterfeiting detection has the following problems:
[0004] (1) Anti-counterfeiting relies only on the current single-frame image. If the current frame is a low-quality image, it will affect the output of the anti-counterfeiting algorithm and the probability of misjudgment is high.
[0005] (2) Even if each frame is a high-quality image, the continuous single-frame anti-counterfeiting output cannot be associated with the context image to make a more accurate anti-counterfeiting judgment, and the risk of misjudgment is high. Summary of the invention
[0006] The present application provides a video anti-counterfeiting judgment method, device, equipment and storage medium, which are used to improve the existing technology that only relies on the current single frame image for anti-counterfeiting detection, and has a high risk of misjudgment because the image frame may be a low-quality image and cannot be associated with the context image for anti-counterfeiting judgment.
[0007] In view of this, the first aspect of the present application provides a video anti-counterfeiting judgment method, comprising:
[0008] The face video data is stored in the video buffer pool in queue order;
[0009] Performing face quality assessment on the image frames in the video buffer pool frame by frame to obtain a quality score for each image frame;
[0010] sorting the quality scores of the image frames in the video buffer pool in descending order, and selecting the first target number of image frames as the anti-counterfeiting judgment image group;
[0011] Anti-counterfeiting judgment is performed on each image frame in the anti-counterfeiting judgment image group, and the anti-counterfeiting judgment results of each image frame are integrated to determine a final anti-counterfeiting judgment result.
[0012] Optionally, performing face quality assessment on each image frame in the video buffer pool to obtain a quality score of each image frame includes:
[0013] Performing face quality evaluation on each image frame in the video buffer pool based on a preset quality dimension to obtain a quality score for each image frame;
[0014] The preset quality dimensions include image brightness, image contrast, image blur, effective face area, face angle and / or whether there is occlusion.
[0015] Optionally, performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group, and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result, includes:
[0016] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0017] Performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0018] The final anti-counterfeiting category is determined according to the anti-counterfeiting score of the anti-counterfeiting judgment image group.
[0019] Optionally, the performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result further includes:
[0020] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0021] Determining the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group;
[0022] Voting is performed on the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group, and the anti-counterfeiting category with the largest number of votes is selected as the final anti-counterfeiting category.
[0023] Optionally, the performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result further includes:
[0024] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0025] Performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group, and determining a first anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0026] Determine the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group, vote on the anti-counterfeiting category of each image frame, and select the anti-counterfeiting category with the largest number of votes as the second anti-counterfeiting category;
[0027] The final anti-counterfeiting category is determined by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group.
[0028] Optionally, determining the final anti-counterfeiting category by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group includes:
[0029] A logical AND operation is performed on the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group to obtain a final anti-counterfeiting category.
[0030] The second aspect of the present application provides a video anti-counterfeiting judgment device, comprising:
[0031] A cache unit, used to store face video data into a video cache pool in a queue order;
[0032] A quality assessment unit, used to perform face quality assessment on each image frame in the video buffer pool to obtain a quality score of each image frame;
[0033] A selection unit, configured to sort the quality scores of the image frames in the video buffer pool in descending order, and select the first target number of image frames as an anti-counterfeiting judgment image group;
[0034] The anti-counterfeiting judgment unit is used to perform anti-counterfeiting judgment on the image frames in the anti-counterfeiting judgment image group respectively, and fuse the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result.
[0035] Optionally, the quality assessment unit is specifically used to perform face quality assessment on each image frame in the video buffer pool based on a preset quality dimension to obtain a quality score of each image frame;
[0036] The preset quality dimensions include image brightness, image contrast, image blur, effective face area, face angle and / or whether there is occlusion.
[0037] A third aspect of the present application provides an electronic device, the device comprising a processor and a memory;
[0038] The memory is used to store program code and transmit the program code to the processor;
[0039] The processor is used to execute any one of the video anti-counterfeiting judgment methods described in the first aspect according to the instructions in the program code.
[0040] A fourth aspect of the present application provides a computer-readable storage medium, which is used to store program code. When the program code is executed by a processor, it implements any one of the video anti-counterfeiting judgment methods described in the first aspect.
[0041] It can be seen from the above technical solutions that this application has the following advantages:
[0042] The present application, by injecting facial video data into a video cache pool for image quality assessment and selecting higher-quality image frames for anti-counterfeiting judgment, helps reduce the risk of misjudgment caused by low-quality images; by fusing anti-counterfeiting judgment on high-quality image groups, it is possible to implement fusion judgment on associated context images, which helps to improve the high risk of misjudgment in anti-counterfeiting judgment on single-frame images, thereby improving the technical problem that the prior art only relies on the current single-frame image for anti-counterfeiting detection, which has a high risk of misjudgment because the image frame may be a low-quality image and cannot be associated with the context image for anti-counterfeiting judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic diagram of a flow chart of a video anti-counterfeiting judgment method provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of a video buffer pool provided in an embodiment of the present application;
[0046] Figure 3 A structural schematic diagram of a video anti-counterfeiting judgment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The present application provides a video anti-counterfeiting judgment method, device, equipment and storage medium, which are used to improve the existing technology that only relies on the current single frame image for anti-counterfeiting detection, and has a high risk of misjudgment because the image frame may be a low-quality image and cannot be associated with the context image for anti-counterfeiting judgment.
[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] For easier understanding, please refer to Figure 1 The embodiment of the present application provides a video anti-counterfeiting judgment method, including:
[0050] Step 110: store the face video data into the video buffer pool in queue order.
[0051] Construct a video buffer pool and set the length of the video buffer pool to N. After the acquisition device obtains a segment of face video data, the face video data is stored in the video buffer pool in the first-in-first-out order of the queue. You can refer to Figure 2 .
[0052] Step 120: Perform face quality assessment on each image frame in the video buffer pool to obtain a quality score for each image frame.
[0053] The quality of N consecutive frames of images in the video buffer pool can be evaluated one by one from preset quality dimensions such as image brightness, image contrast, image blur, effective face area, face angle and / or whether there is occlusion, and the quality score of each image frame in the video buffer pool is output, which can be recorded as Sq={S q1 ,S q2 ,...,S qN}, where each item represents the quality score of each frame image in the video buffer pool.
[0054] In one embodiment, the quality features of each image frame in the video cache pool can be extracted from preset quality dimensions such as image brightness, image contrast, image blur, effective face area, face angle, and / or whether there is occlusion, and then the quality score of each quality dimension is calculated based on the quality features of each quality dimension, and finally the quality scores of all quality dimensions are integrated to obtain the quality score of each image frame in the video cache pool. For example, the brightness feature, contrast feature, blur feature, effective face area feature, and face angle feature of each image frame can be extracted, and the quality score of each feature can be determined based on the feature value of each feature. Taking the blur feature as an example, it is known that the blurrier the image, the lower the quality score. The second-order derivative of the image frame can be calculated, and then the variance of the image frame can be calculated through the second-order derivative of the image frame. The smaller the variance of the image frame, the blurrier the image frame, and the lower the quality score.
[0055] In another embodiment, the quality of each image frame in the video cache pool can be evaluated one by one from multiple quality dimensions such as image brightness, contrast, blurriness, effective face area, face angle, and / or whether there is occlusion through an image quality evaluation model, and the quality score of each image frame is output. Among them, the image quality evaluation model can have multiple branch networks, and each branch network can be used to evaluate the quality score of an image frame in one quality dimension. For example, the image quality evaluation model can include 6 branch networks and a prediction layer. Each branch network is used to evaluate the quality of an image frame for one of the 6 quality dimensions of image brightness, contrast, blurriness, effective face area, face angle, and whether there is occlusion, and finally obtain the quality scores of these 6 quality dimensions. Finally, the prediction layer determines the final quality score based on the quality scores of these 6 quality dimensions and outputs it.
[0056] Step 130: Sort the quality scores of the image frames in the video cache pool in descending order, and select the first target number of image frames as the anti-counterfeiting judgment image group.
[0057] After obtaining the quality scores of each image frame in the video cache pool, sort the quality scores of the image frames in the video cache pool in descending order, and then select the image frames with the top K (0 < K < N and K is an odd number) quality scores as the anti-counterfeiting judgment image group input to the anti-counterfeiting module. By screening high-quality images through this step, it can be ensured that the images input to the anti-counterfeiting module each time are of relatively high quality. Even if there are some low-quality images in the collected video data, it will not affect the final anti-counterfeiting effect, or accidental misjudgments that occur in the anti-counterfeiting model itself. By injecting the collected video into the video cache pool and selecting the top K frames with higher quality for anti-counterfeiting judgment, the misjudgment situation that occurs in actual applications can be effectively avoided.
[0058] Step 140: Perform anti-counterfeiting judgments on the image frames in the anti-counterfeiting judgment image group respectively, and fuse the anti-counterfeiting judgment results of each image frame to determine the final anti-counterfeiting judgment result.
[0059] After screening out the image frames with relatively high quality, perform anti-counterfeiting judgments on these image frames respectively, and fuse the anti-counterfeiting judgment results of each image frame to finally determine whether the face in the face video data is a real face or a prosthetic face.
[0060] In one embodiment, performing anti-counterfeiting judgments on the image frames in the anti-counterfeiting judgment image group respectively, and fusing the anti-counterfeiting judgment results of each image frame to determine the final anti-counterfeiting judgment result includes:
[0061] S10: Perform anti-counterfeiting judgments on the image frames in the anti-counterfeiting judgment image group respectively, and obtain the anti-counterfeiting scores of each image frame;
[0062] The anti-counterfeiting model can be used to perform anti-counterfeiting judgment on the K frames in the anti-counterfeiting judgment image group, and output the anti-counterfeiting score F = {f 1 ,f 2 ,...,f K}.
[0063] S11, performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0064] Perform weighted summation on the anti-counterfeiting scores of each image frame in the anti-counterfeiting judgment image group in the video buffer pool , where a 1 +a 2 +...+a K =1, and obtain the anti-counterfeiting score S of the anti-counterfeiting judgment image group in the video buffer pool. s .
[0065] S12, determining a final anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0066] The anti-counterfeiting score S of the anti-counterfeiting judgment image group can be s Compare with the preset security score threshold to determine the final security category P of the security judgment image group A The anti-counterfeiting score S of the anti-counterfeiting judgment image group can also be s Input the predicted anti-counterfeiting category in the anti-counterfeiting score judgment model (i.e., predict whether the face in the anti-counterfeiting judgment image group is live or fake), and obtain the anti-counterfeiting category P of the anti-counterfeiting judgment image group A .
[0067] In the embodiment of the present application, after obtaining the anti-counterfeiting score of each image frame, weighted fusion is performed to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group, and then the anti-counterfeiting category is predicted. The anti-counterfeiting judgment process realizes multi-frame image fusion anti-counterfeiting judgment, and combines the image context anti-counterfeiting prediction result to evaluate the anti-counterfeiting result of the current video buffer pool, thereby reducing the risk of anti-counterfeiting misjudgment.
[0068] In another embodiment, performing anti-counterfeiting judgment on the image frames in the anti-counterfeiting judgment image group respectively, and fusing the anti-counterfeiting judgment results of each image frame to determine the final anti-counterfeiting judgment result, including:
[0069] S20, performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group, and obtaining an anti-counterfeiting score for each image frame;
[0070] The anti-counterfeiting model can be used to perform anti-counterfeiting judgment on the K frames in the anti-counterfeiting judgment image group, and output the anti-counterfeiting score F = {f 1 ,f 2 ,...,f K}.
[0071] S21, determining the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group;
[0072] The anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group can be compared with a preset anti-counterfeiting score threshold to determine the anti-counterfeiting category of each image frame. The anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group can also be input into the anti-counterfeiting score judgment model to predict the anti-counterfeiting category and obtain the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group.
[0073] S22, voting on the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group, and selecting the anti-counterfeiting category with the largest number of votes as the final anti-counterfeiting category.
[0074] Voting is performed on the anti-counterfeiting categories of the K frames in the anti-counterfeiting judgment image group, and the anti-counterfeiting category with the largest number of votes is selected as the final anti-counterfeiting category P of the anti-counterfeiting judgment image group. B .
[0075] In an embodiment of the present application, after the anti-counterfeiting category of each image frame is obtained, the anti-counterfeiting category of each image frame is voted on to determine the final anti-counterfeiting category. The anti-counterfeiting judgment process takes into account the voting results of each single frame image, and finally obtains an accurate anti-counterfeiting prediction output by fusing the anti-counterfeiting judgment results of multiple frames, thereby reducing the risk of anti-counterfeiting misjudgment.
[0076] In another embodiment, anti-counterfeiting judgment is performed on each image frame in the anti-counterfeiting judgment image group, and the anti-counterfeiting judgment results of each image frame are integrated to determine the final anti-counterfeiting judgment result, including:
[0077] S30, performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group, and obtaining an anti-counterfeiting score for each image frame;
[0078] The anti-counterfeiting model can be used to perform anti-counterfeiting judgment on the K frames in the anti-counterfeiting judgment image group, and output the anti-counterfeiting score F = {f 1 ,f 2 ,...,f K}.
[0079] S31, performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group, and determining a first anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0080] Perform weighted summation on the anti-counterfeiting scores of each image frame in the anti-counterfeiting judgment image group in the video buffer pool , where a 1 +a 2 +...+a K=1, and obtain the anti-counterfeiting score S of the anti-counterfeiting judgment image group in the video buffer pool. s The anti-counterfeiting score S of the anti-counterfeiting judgment image group can be s Compare with the preset security score threshold to determine the final security category P of the security judgment image group A The anti-counterfeiting score S of the anti-counterfeiting judgment image group can also be s Input the predicted anti-counterfeiting category in the anti-counterfeiting score judgment model to obtain the first anti-counterfeiting category P of the anti-counterfeiting judgment image group A .
[0081] S32, determining the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group, voting on the anti-counterfeiting category of each image frame, and selecting the anti-counterfeiting category with the largest number of votes as the second anti-counterfeiting category;
[0082] The anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group can be compared with a preset anti-counterfeiting score threshold to determine the anti-counterfeiting category of each image frame. The anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group can also be input into the anti-counterfeiting score judgment model to predict the anti-counterfeiting category to obtain the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group. The anti-counterfeiting categories of the K frames in the anti-counterfeiting judgment image group are voted, and the anti-counterfeiting category with the most votes is selected as the final anti-counterfeiting category P of the anti-counterfeiting judgment image group. B .
[0083] S33, determining a final anti-counterfeiting category by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group;
[0084] The first anti-counterfeiting category P of the anti-counterfeiting judgment image group A and the second security category P B Perform a logical AND operation to obtain the final anti-counterfeiting category. That is, when the anti-counterfeiting categories predicted by the two anti-counterfeiting judgment methods are both living, the final output is that the face in the current face video data is alive, otherwise the output is that the face in the current face video data is a fake. The embodiment of the present application uses multi-frame fusion anti-counterfeiting judgment, which not only combines the image context prediction results to evaluate the prediction situation in the current video cache pool, but also considers the voting results of each single frame image, and finally obtains accurate anti-counterfeiting prediction output, which greatly reduces the risk of anti-counterfeiting misjudgment.
[0085] The embodiments of the present application, by injecting facial video data into a video cache pool for image quality assessment and selecting higher-quality image frames for anti-counterfeiting judgment, help reduce the risk of misjudgment caused by low-quality images; by fusing anti-counterfeiting judgment on high-quality image groups, it is possible to implement fusion judgment on associated context images, which helps to improve the high risk of misjudgment in anti-counterfeiting judgment on single-frame images, thereby improving the technical problem of the prior art that only relies on the current single-frame image for anti-counterfeiting detection, and has a high risk of misjudgment because the image frame may be a low-quality image and cannot be associated with the context image for anti-counterfeiting judgment.
[0086] Please refer to Figure 3 , a video anti-counterfeiting judgment device provided in an embodiment of the present application includes:
[0087] A cache unit, used to store face video data into a video cache pool in a queue order;
[0088] A quality assessment unit, used to perform face quality assessment on each image frame in the video buffer pool to obtain a quality score for each image frame;
[0089] A selection unit, used to sort the quality scores of the image frames in the video buffer pool in descending order, and select the first target number of image frames as an anti-counterfeiting judgment image group;
[0090] The anti-counterfeiting judgment unit is used to perform anti-counterfeiting judgment on the image frames in the anti-counterfeiting judgment image group respectively, and fuse the anti-counterfeiting judgment results of each image frame to determine the final anti-counterfeiting judgment result.
[0091] As a further improvement, the quality assessment unit is specifically used to perform face quality assessment on each image frame in the video buffer pool from a preset quality dimension to obtain a quality score of each image frame;
[0092] The preset quality dimensions include image brightness, image contrast, image blur, face effective area, face angle, and / or whether there is occlusion.
[0093] As a further improvement, the anti-counterfeiting judgment unit is specifically used to:
[0094] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0095] Performing weighted summation on the anti-counterfeiting scores of each image frame in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0096] Determine the final anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0097] or,
[0098] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0099] Determining the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group;
[0100] Voting on the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group, and selecting the anti-counterfeiting category with the most votes as the final anti-counterfeiting category;
[0101] or,
[0102] Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame;
[0103] Performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group, and determining a first anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group;
[0104] Determine the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group, vote on the anti-counterfeiting category of each image frame, and select the anti-counterfeiting category with the largest number of votes as the second anti-counterfeiting category;
[0105] The final anti-counterfeiting category is determined by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group.
[0106] The present application, by injecting facial video data into a video cache pool for image quality assessment and selecting higher-quality image frames for anti-counterfeiting judgment, helps reduce the risk of misjudgment caused by low-quality images; by fusing anti-counterfeiting judgment on high-quality image groups, it is possible to implement fusion judgment on associated context images, which helps to improve the high risk of misjudgment in anti-counterfeiting judgment on single-frame images, thereby improving the technical problem that the prior art only relies on the current single-frame image for anti-counterfeiting detection, which has a high risk of misjudgment because the image frame may be a low-quality image and cannot be associated with the context image for anti-counterfeiting judgment.
[0107] The embodiment of the present application also provides an electronic device, the device comprising a processor and a memory;
[0108] The memory is used to store the program code and transmit the program code to the processor;
[0109] The processor is used to execute the video anti-counterfeiting judgment method in the above method embodiment according to the instructions in the program code.
[0110] An embodiment of the present application also provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the video anti-counterfeiting judgment method in the aforementioned method embodiment is implemented.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity 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.
[0112] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0113] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is 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. Another point is that the mutual coupling or direct coupling or communication connection 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.
[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0118] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A video anti-counterfeiting judgment method, characterized in that: include: The face video data is stored in the video buffer pool in queue order; Performing face quality assessment on the image frames in the video buffer pool frame by frame to obtain a quality score for each image frame; sorting the quality scores of the image frames in the video buffer pool in descending order, and selecting the first target number of image frames as the anti-counterfeiting judgment image group; Anti-counterfeiting judgment is performed on each image frame in the anti-counterfeiting judgment image group, and the anti-counterfeiting judgment results of each image frame are integrated to determine a final anti-counterfeiting judgment result.
2. The video anti-counterfeiting judgment method according to claim 1, characterized in that: The performing face quality assessment on the image frames in the video buffer pool frame by frame to obtain the quality score of each image frame includes: Performing face quality evaluation on each image frame in the video buffer pool based on a preset quality dimension to obtain a quality score for each image frame; The preset quality dimensions include image brightness, image contrast, image blur, effective face area, face angle and / or whether there is occlusion.
3. The video anti-counterfeiting judgment method according to claim 1, characterized in that: The step of performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result includes: Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame; Performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group; The final anti-counterfeiting category is determined according to the anti-counterfeiting score of the anti-counterfeiting judgment image group.
4. The video anti-counterfeiting judgment method according to claim 1, characterized in that: The step of performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result further includes: Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame; Determining the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group; Voting is performed on the anti-counterfeiting category of each image frame in the anti-counterfeiting judgment image group, and the anti-counterfeiting category with the largest number of votes is selected as the final anti-counterfeiting category.
5. The video anti-counterfeiting judgment method according to claim 1, characterized in that: The step of performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group and fusing the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result further includes: Performing anti-counterfeiting judgment on each image frame in the anti-counterfeiting judgment image group to obtain an anti-counterfeiting score for each image frame; Performing weighted summation on the anti-counterfeiting scores of the image frames in the anti-counterfeiting judgment image group to obtain the anti-counterfeiting score of the anti-counterfeiting judgment image group, and determining a first anti-counterfeiting category according to the anti-counterfeiting score of the anti-counterfeiting judgment image group; Determine the anti-counterfeiting category of each image frame according to the anti-counterfeiting score of each image frame in the anti-counterfeiting judgment image group, vote on the anti-counterfeiting category of each image frame, and select the anti-counterfeiting category with the largest number of votes as the second anti-counterfeiting category; The final anti-counterfeiting category is determined by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group.
6. The video anti-counterfeiting judgment method according to claim 5, characterized in that: The step of determining the final anti-counterfeiting category by fusing the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group includes: A logical AND operation is performed on the first anti-counterfeiting category and the second anti-counterfeiting category of the anti-counterfeiting judgment image group to obtain a final anti-counterfeiting category.
7. A video anti-counterfeiting judgment device, characterized in that: include: A cache unit, used to store face video data into a video cache pool in a queue order; A quality assessment unit, used to perform face quality assessment on each image frame in the video buffer pool to obtain a quality score of each image frame; A selection unit, used to sort the quality scores of the image frames in the video buffer pool in descending order, and select the first target number of image frames as an anti-counterfeiting judgment image group; The anti-counterfeiting judgment unit is used to perform anti-counterfeiting judgment on the image frames in the anti-counterfeiting judgment image group respectively, and fuse the anti-counterfeiting judgment results of each image frame to determine a final anti-counterfeiting judgment result.
8. The video anti-counterfeiting judgment device according to claim 7, characterized in that: The quality assessment unit is specifically used to perform face quality assessment on each image frame in the video buffer pool based on a preset quality dimension to obtain a quality score of each image frame; The preset quality dimensions include image brightness, image contrast, image blur, effective face area, face angle and / or whether there is occlusion.
9. An electronic device, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the video anti-counterfeiting judgment method according to any one of claims 1-6 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and when the program codes are executed by a processor, the video anti-counterfeiting judgment method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Face video image quality optimization method, system and device
CN109784230A
Method and device for detecting face image
CN110276277A
Image filtering method based on image quality and related device
CN111369521A
Video detection method, device and equipment and computer readable storage medium
CN112329730A
Data authentic identification method and device, electronic equipment and storage medium
CN114359811A
