Screen image recognition and model training method, device and electronic equipment
By decoupling and merging features of screen-captured images and training the recognition model, the problem of low efficiency and accuracy of screen-captured image recognition in the existing technology is solved, efficient recognition of screen-captured images is achieved, and the accuracy of user profile review is improved. sex.
Patent Information
- Application Number
- CN202210406287.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-18
AI Technical Summary
It is difficult for existing technology to effectively identify and distinguish screen-captured images, resulting in low identification efficiency and accuracy during user profile review, and providing criminals with opportunities to deceive the online review system.
By decoupling the features of the original image, extracting frame features, moiré features, reflective features and other screen capture features, and performing feature fusion, the screen capture image recognition model is trained based on the fused features and labels of multiple different original images, and the screen capture image recognition model is Identify whether the image is a screen capture image.
It improves the recognition efficiency and accuracy of screen capture images, and can accurately identify images containing any screen capture characteristics as screen capture images, reducing manual review time and costs.
Smart Images

Figure CN114819142B
Abstract
Description
Technical Field
[0001] This document relates to the field of machine learning technology, and in particular to a method, device and electronic device for screen image recognition and its model training. Background Art
[0002] At present, with the rapid development of computer technology, more and more services can be handled online, usually by users uploading their personal information online for review and processing. While this brings convenience to most users, it also provides opportunities for some lawless elements to steal other people's information to register accounts and handle affairs. Among them, a very common cheating method is to use mobile phones and other terminal devices to take pictures of computer screens, mobile phone screens, or printed paper to obtain screen images, and upload the screen images in an attempt to deceive the online data review system.
[0003] For such screen shot images, since the images contain real information about the user, there is a possibility that they can deceive the online data review system. If such screen shots are manually reviewed, it will take a lot of time and manpower. Therefore, further solutions are still needed to improve the recognition efficiency and accuracy of screen shots in user profile review. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a screen capture image recognition method, device and electronic device for improving the recognition efficiency and accuracy of screen capture images in user profile review.
[0005] To solve the above technical problems, the embodiments of the present application are implemented as follows:
[0006] First, a training method for a screen capture image recognition model is proposed, including:
[0007] Performing feature decoupling on the original image to obtain screen-capturing features of the original image, wherein the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features;
[0008] Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image;
[0009] Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
[0010] In the second aspect, a screen image recognition method is proposed, comprising:
[0011] Obtain an image to be recognized;
[0012] Performing feature decoupling on the image to be identified to obtain screen-captured features of the image to be identified, wherein the screen-captured features at least include frame features, moiré features, reflection features, and other screen-captured features;
[0013] Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0014] The fusion features of the image to be identified are input into the screen-shot image recognition model trained in the first aspect to identify whether the image to be identified is a screen-shot image.
[0015] In the third aspect, a training device for a screen image recognition model is proposed, comprising:
[0016] A feature decoupling module performs feature decoupling on the original image to obtain the screen capture features of the original image, wherein the screen capture features at least include frame features, moiré features, reflection features and other screen capture features;
[0017] The feature fusion module performs feature fusion based on the screen capture features of the original image to obtain the fusion features of the original image;
[0018] The model training module trains the screen-shooting image recognition model based on the fusion features corresponding to multiple different original images and the screen-shooting labels corresponding to the multiple different original images to obtain the screen-shooting image recognition model.
[0019] In a fourth aspect, a screen image recognition device is proposed, comprising:
[0020] An image acquisition module, which acquires an image to be recognized;
[0021] A feature decoupling module performs feature decoupling on the image to be identified to obtain screen features of the image to be identified, wherein the screen features at least include frame features, moiré features, reflection features, and other screen features;
[0022] A feature fusion module, which performs feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0023] The image recognition module inputs the fusion features of the image to be recognized into the screen-capturing image recognition model trained in the first aspect to recognize whether the image to be recognized is a screen-capturing image.
[0024] In a fifth aspect, an electronic device is provided, comprising:
[0025] Processor; and
[0026] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0027] Performing feature decoupling on the original image to obtain screen-capturing features of the original image, wherein the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features;
[0028] Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image;
[0029] Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
[0030] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device performs the following operations:
[0031] Performing feature decoupling on the original image to obtain screen-capturing features of the original image, wherein the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features;
[0032] Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image;
[0033] Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
[0034] In a seventh aspect, an electronic device is provided, comprising:
[0035] Processor; and
[0036] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0037] Obtain an image to be recognized;
[0038] Performing feature decoupling on the image to be identified to obtain screen-captured features of the image to be identified, wherein the screen-captured features at least include frame features, moiré features, reflection features, and other screen-captured features;
[0039] Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0040] The fusion features of the image to be identified are input into the screen-shot image recognition model trained in the first aspect to identify whether the image to be identified is a screen-shot image.
[0041] In an eighth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device performs the following operations:
[0042] Obtain an image to be recognized;
[0043] Performing feature decoupling on the image to be identified to obtain screen-captured features of the image to be identified, wherein the screen-captured features at least include frame features, moiré features, reflection features, and other screen-captured features;
[0044] Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0045] The fusion features of the image to be identified are input into the screen-shot image recognition model trained in the first aspect to identify whether the image to be identified is a screen-shot image.
[0046] It can be seen from the technical solutions provided by the above embodiments of this specification that the embodiments of this specification have at least one of the following technical effects:
[0047] By using the method provided in the embodiments of this specification, it is possible to decouple the screen-shooting features in the original image, that is, to extract the frame features, moiré features, reflective features and other screen-shooting features in the original image respectively, and to fuse the extracted different types of screen-shooting features to obtain fused features, and finally to train the screen-shooting image recognition model based on the fused features corresponding to multiple different original images and the screen-shooting labels corresponding to multiple different original images to obtain the screen-shooting image recognition model. When the screen-shooting image contains any of the frame features, moiré features, reflective features and other screen-shooting features, the screen-shooting image recognition model trained by the method provided in the embodiments of this specification can accurately identify the image as a screen-shooting image. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of this specification 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 recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1 It is a schematic diagram of the implementation flow of a method for training a screen image recognition model provided by an embodiment of this specification.
[0050] Figure 2It is a flowchart of the application of a training method for a screen capture image recognition model provided by an embodiment of this specification in an actual scenario.
[0051] Figure 3 It is a schematic diagram of the implementation process of a screen capture image recognition method provided by an embodiment of this specification.
[0052] Figure 4 It is a flowchart of the application of the screen capture image recognition method provided by an embodiment of this specification in an actual scenario.
[0053] Figure 5 It is a structural diagram of a training device for a screen image recognition model provided by an embodiment of this specification.
[0054] Figure 6 It is a structural diagram of a screen image recognition device provided by an embodiment of this specification.
[0055] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of this specification.
[0056] Figure 8 It is a schematic diagram of the structure of another electronic device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of this document clearer, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this document.
[0058] In order to improve the recognition efficiency and accuracy of screen capture images in the user profile review, one or more embodiments of this specification provide a method for training a screen capture image recognition model, which is used to improve the recognition efficiency and accuracy of screen capture images in the user profile review. Specifically, it is possible to perform feature decoupling on the screen capture features in the original image, that is, extract the border features, moiré features, reflective features and other screen capture features in the original image respectively, and perform feature fusion on the extracted different types of screen capture features to obtain fusion features. Finally, based on the fusion features corresponding to multiple different original images and the screen capture labels corresponding to multiple different original images, the screen capture image recognition model is trained to obtain the screen capture image recognition model. When the screen capture image contains any of the screen capture features such as border features, moiré features, reflective features and other screen capture features, the screen capture image recognition model trained by the method provided in the embodiments of this specification can accurately identify the image as a screen capture image.
[0059] It should be understood that the execution subject of the training method of the screen capture image recognition model provided in the embodiments of this specification can be, but is not limited to, a server, a computer, etc. that can be configured to execute at least one of the user terminals of the method provided in the embodiments of this specification.
[0060] For ease of description, the following takes the execution subject of the method as a server capable of executing the method as an example to introduce the implementation of the method. It can be understood that the execution subject of the method as a server is only an exemplary description and should not be understood as a limitation of the method.
[0061] Figure 1 It is a schematic diagram of the implementation flow of a method for training a screen image recognition model provided by an embodiment of this specification. Figure 1 Methods may include:
[0062] S110, performing feature decoupling on the original image to obtain screen-capturing features of the original image, where the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features.
[0063] The screen shot image can be an image taken by a camera of a mobile phone, iPad or other terminal device facing a computer screen, mobile phone screen, iPad screen, printed paper, etc. During the online data review process, some illegal elements usually use the screen shot image to impersonate the original image to pass the data review.
[0064] Generally speaking, the captured screen image will have several obvious captured screen features, such as border features, moiré features, reflection features and other captured screen features. Among them, the border feature is the screen border contained in the captured screen image, the moiré feature is the moiré similar to corrugation contained in the captured screen image, and the reflection feature is that reflection may appear when the screen is captured, which makes the captured screen image contain reflection features. In addition, in addition to the border feature, moiré feature, and reflection feature, the captured screen features may also include other captured screen features such as the mouse pointer and the user's finger, that is, other captured screen features may at least include features such as the mouse pointer and the user's finger.
[0065] Optionally, in the process of training the screen capture image recognition model, in order to obtain multiple types of screen capture images based on the transformation of the original image, the original image may be processed to obtain screen capture images with different types of screen capture features, and then the processed original image may be feature decoupled to obtain different types of screen capture features. Specifically, feature decoupling of the original image to obtain the screen capture features of the original image includes:
[0066] The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image;
[0067] The original image after wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image;
[0068] The RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image;
[0069] The original image is input into the fourth convolutional neural network to decouple other screen-shot features of the original image.
[0070] Optionally, the first convolutional neural network, the second convolutional neural network and the third convolutional neural network include one of a Gaussian convolutional neural network and a Canny convolutional neural network;
[0071] The fourth convolutional neural network includes a convolutional neural network with an attention mechanism added to SeNet, CBAM, and SKNet.
[0072] For example, since the Laplace operator can effectively obtain boundary information after processing an image, the original image processed by the Laplace operator is input into the first convolutional neural network to decouple the border features of the original image. Specifically, the original image can be processed using the Laplace operator, and it is assumed that the processed original image is represented as I1. The original image I1 processed by the Laplace operator is then input into convolutional neural networks such as Gaussian convolutional neural networks and Canny convolutional neural networks to extract the border features F1 of the processed original image I1.
[0073] Since an image processed by wavelet transform can effectively extract the moiré information of the image, the original image processed by wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image. Specifically, the original image can be processed by wavelet transform, and it is assumed that the processed original image is represented as I2. The original image I2 processed by wavelet transform is then input into convolutional neural networks such as Gaussian convolutional neural network and Canny convolutional neural network to extract the moiré features F2 of the processed original image I2.
[0074] Because in the YCrCb color space, when the brightness is lower than 170, it is diffuse reflection light, and the visual feeling of human beings is relatively soft, which belongs to the range of diffuse reflection. When the brightness is greater than 200 and close to 255, the image shows highlights, which belongs to the range of specular reflection. The embodiment of this specification can obtain the reflective characteristics of the original image based on this transformation feature. Specifically, the original image can be transformed from the RGB feature space to the YCrCb color space, and it is assumed that the processed original image is represented as I3. Then the processed original image I3 is input into convolutional neural networks such as Gaussian convolutional neural networks and Canny convolutional neural networks to extract the reflective feature F3 of the processed original image I3.
[0075] Since the SeNet attention mechanism module enables the model to autonomously focus on areas of interest, such as areas containing mouse pointers, etc., the embodiment of this specification does not make any changes to the original image based on this point, and represents the original image as I4. The original image I4 is then input into a convolutional neural network with an attention mechanism added to SeNet, CBAM, and SKNet to extract other screen capture features F4 of the original image I4.
[0076] The embodiments of this specification can decouple the screen capture features of the original image through the above four methods, and obtain the screen capture features such as the border features, moiré features, reflection features and other screen capture features of the original image.
[0077] Figure 2 This is a flowchart of a method for training a screen image recognition model provided by an embodiment of this specification and applied in an actual scenario. Figure 2In the figure, the original image is processed by Laplace operator to obtain a border image, processed by wavelet transform to obtain a moiré image, transformed from RGB feature space to YCrCb color space to obtain a reflection image, and the original image is not processed. Then, feature decoupling is performed on the border image to obtain border features, feature decoupling is performed on the moiré image to obtain moiré features, feature decoupling is performed on the reflection image to obtain reflection features, and feature decoupling is performed on the original image to obtain other screen features.
[0078] S120, performing feature fusion based on the screen capture features of the original image to obtain fused features of the original image.
[0079] Optionally, in order to achieve feature fusion of different categories of screen capture features, the embodiment of this specification can train a weight allocation model while training the screen capture image recognition model, and the weight allocation model is used to predict the weights of different categories of screen capture features in the original image. Specifically, the feature fusion based on the screen capture features of the original image to obtain the fusion features of the original image includes:
[0080] The weight of the screen-shooting feature in the original image is predicted by a weight allocation model, where the weight allocation model is trained based on the screen-shooting features in multiple original images;
[0081] Feature fusion is performed based on the screen-shooting features in the original image and the weights of the screen-shooting features in the original image to obtain fused features of the original image.
[0082] The embodiments of this specification consider dynamically fusing the combination of different categories of screen capture features, and dynamically adjust the fused features according to different screen capture features in different original images. The specific implementation method of the fused features can be expressed as the following formula:
[0083] F fuse =a*F1+b*F2+c*F3+d*F4
[0084] The four parameters a, b, c, and d represent the importance of the four screen capture features in the classification of the screen capture image recognition model. fuse The four parameters a, b, c and d are the fused features. They can be learned through a separate weight distribution model according to the different input images. That is, the weight distribution model is used to predict which feature is the most important feature in the image to be identified. That is, the size of the four weights a, b, c and d is determined respectively, and the screen feature corresponding to the largest value among the four values of a, b, c and d is used as the most important screen feature in the image to be identified. fuse =a*F1+b*F2+c*F3+d*F4 can realize the adaptive dynamic fusion of the screen features and obtain the final fusion feature F of the original image fuse .
[0085] S130, training a screen-capturing image recognition model based on fusion features corresponding to a plurality of different original images and screen-capturing labels corresponding to the plurality of different original images to obtain a screen-capturing image recognition model.
[0086] Optionally, based on the fusion features corresponding to the multiple different original images and the screen capture labels corresponding to the multiple different original images, the screen capture image recognition model is trained to obtain the screen capture image recognition model, including:
[0087] Inputting the fusion features corresponding to the multiple different original images and the screen capture labels corresponding to the multiple different original images into a fully connected neural network or a classification model, training the screen capture image recognition model, and obtaining the screen capture image recognition model;
[0088] Wherein, the classification model includes at least one of a SVM classifier model and a linear regression classifier model.
[0089] For example, the fusion features corresponding to multiple different original images and the screen-capturing labels corresponding to multiple different original images are input into a fully connected neural network or classification model, and the screen-capturing image recognition model is trained to obtain the screen-capturing image recognition model. Specifically, the fusion features corresponding to multiple different original images and the screen-capturing labels corresponding to multiple different original images are input into a fully connected neural network or classification model, and the model is trained using a cross-entropy loss function. The screen-capturing image recognition model is updated through reverse gradient propagation of the screen-capturing image recognition model, so that the screen-capturing image recognition model can try to identify whether the input image to be recognized is a screen-capturing image.
[0090] By using the method provided in the embodiments of this specification, it is possible to decouple the screen-shooting features in the original image, that is, to extract the frame features, moiré features, reflective features and other screen-shooting features in the original image respectively, and to fuse the extracted different types of screen-shooting features to obtain fused features, and finally to train the screen-shooting image recognition model based on the fused features corresponding to multiple different original images and the screen-shooting labels corresponding to multiple different original images to obtain the screen-shooting image recognition model. When the screen-shooting image contains any of the frame features, moiré features, reflective features and other screen-shooting features, the screen-shooting image recognition model trained by the method provided in the embodiments of this specification can accurately identify the image as a screen-shooting image.
[0091] Figure 3 It is a schematic diagram of the implementation process of a screen capture image recognition method provided by an embodiment of this specification. Figure 3 Methods may include:
[0092] S310, obtaining an image to be recognized.
[0093] S320, feature decoupling is performed on the image to be identified to obtain screen-capturing features of the image to be identified, where the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features.
[0094] S330, performing feature fusion based on the screen capture features of the image to be identified, to obtain fusion features of the image to be identified.
[0095] S340, inputting the fusion features of the image to be identified into the screen-shot image recognition model to identify whether the image to be identified is a screen-shot image.
[0096] Figure 4 It is a flowchart of the application of the screen capture image recognition method provided by an embodiment of this specification in an actual scenario.
[0097] exist Figure 4 In the method, after obtaining the image to be identified, the image to be identified can be feature decoupled to obtain the border features, moiré features, reflective features and other screen features of the image to be identified respectively; then the border features, moiré features, reflective features and other screen features of the image to be identified are feature fused to obtain fused features; finally, the fused features are input into the screen image recognition model to output the recognition result. Among them, the border features, moiré features, reflective features and other screen features of the image to be identified are feature fused to obtain fused features. Specifically, the weights of the border features, moiré features, reflective features and other screen features of the image to be identified can be predicted through a weight allocation model, and then based on the weights of the border features, moiré features, reflective features and other screen features of the image to be identified, as well as the border features, moiré features, reflective features and other screen features of the image to be identified, feature fusion is performed to obtain the fused features of the image to be identified.
[0098] Figure 3 The specific implementation of the relevant steps of the embodiment shown can be referred to Figure 1-2 The specific implementation of the corresponding steps in the illustrated embodiment will not be described in detail in this specification.
[0099] One or more embodiments provided in this specification can perform feature decoupling of the screen-shooting features in the original image, that is, extract the frame features, moiré features, reflective features and other screen-shooting features in the original image respectively, and fuse the extracted different types of screen-shooting features to obtain fused features, and finally train the screen-shooting image recognition model based on the fused features corresponding to multiple different original images and the screen-shooting labels corresponding to multiple different original images to obtain the screen-shooting image recognition model. In this way, regardless of whether the image to be identified contains any of the frame features, moiré features, reflective features and other screen-shooting features, the screen-shooting image recognition model trained by the method provided in the embodiments of this specification can accurately identify the image to be identified as a screen-shooting image.
[0100] Figure 5 is a schematic diagram of a training device 500 for a screen image recognition model provided by an embodiment of this specification. Figure 5 In a software implementation, the training device 500 for the screen capture image recognition model may include:
[0101] A feature decoupling module 501 performs feature decoupling on the original image to obtain the screen capture features of the original image, wherein the screen capture features at least include frame features, moiré features, reflection features, and other screen capture features;
[0102] A feature fusion module 502 performs feature fusion based on the screen capture features of the original image to obtain fusion features of the original image;
[0103] The model training module 503 trains the screen-shooting image recognition model based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images to obtain the screen-shooting image recognition model.
[0104] Optionally, in one implementation, the feature decoupling module 501 is used to:
[0105] The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image;
[0106] The original image after wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image;
[0107] The RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image;
[0108] The original image is input into the fourth convolutional neural network to decouple other screen-shot features of the original image.
[0109] Optionally, in one implementation, the first convolutional neural network, the second convolutional neural network, and the third convolutional neural network include one of a Gaussian convolutional neural network and a Canny convolutional neural network;
[0110] The fourth convolutional neural network includes a convolutional neural network to which an attention mechanism from SeNet, CBAM, and SKNet is added.
[0111] Optionally, in one implementation, the feature fusion module 502 is used to:
[0112] The weight of the screen capture feature in the original image is predicted by a weight allocation model, wherein the weight allocation model is trained based on the screen capture features in multiple original images;
[0113] Feature fusion is performed based on the screen-shooting features in the original image and the weights of the screen-shooting features in the original image to obtain fused features of the original image.
[0114] Optionally, in one implementation, the model training module 503 is used to:
[0115] Inputting the fusion features corresponding to the multiple different original images and the screen capture labels corresponding to the multiple different original images into a fully connected neural network or a classification model, training the screen capture image recognition model, and obtaining the screen capture image recognition model;
[0116] Wherein, the classification model includes at least one of a SVM classifier model and a linear regression classifier model.
[0117] The training device 500 for the screen image recognition model can achieve Figure 1 For details, please refer to Figure 1 The training method of the screen capture image recognition model of the illustrated embodiment will not be described in detail.
[0118] Figure 6 This is a schematic diagram of a screen image recognition device 600 provided in one embodiment of this specification. Figure 6 In a software implementation, the screen image recognition device 600 may include:
[0119] An image acquisition module 601 is used to acquire an image to be recognized;
[0120] A feature decoupling module 602 performs feature decoupling on the image to be identified to obtain screen features of the image to be identified, wherein the screen features at least include frame features, moiré features, reflection features, and other screen features;
[0121] A feature fusion module 603 performs feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0122] The image recognition module 604 inputs the fusion features of the image to be recognized into Figure 1 The trained screen capture image recognition model is used to identify whether the image to be recognized is a screen capture image.
[0123] The screen image recognition device 600 can realize Figure 3 For details, please refer to Figure 1 The screen capture image recognition method of the illustrated embodiment will not be described in detail.
[0124] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Figure 7 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0125] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0126] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0127] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a training device for the screen image recognition model at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0128] Performing feature decoupling on the original image to obtain screen-capturing features of the original image, wherein the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features;
[0129] Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image;
[0130] Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
[0131] The above is as in this manual Figure 1-2 The method performed by the training device of the screen image recognition model disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0132] The electronic device may also perform Figure 1 The method is used to implement the training device of the screen image recognition model. Figure 1 The functions of the illustrated embodiments will not be described in detail in the embodiments of this specification.
[0133] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:
[0134] Performing feature decoupling on the original image to obtain screen-capturing features of the original image, wherein the screen-capturing features at least include frame features, moiré features, reflection features, and other screen-capturing features;
[0135] Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image;
[0136] Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
[0137] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0138] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Figure 8 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0139] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0140] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0141] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a screen image recognition device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0142] Obtain an image to be recognized;
[0143] Performing feature decoupling on the image to be identified to obtain screen-captured features of the image to be identified, wherein the screen-captured features at least include frame features, moiré features, reflection features, and other screen-captured features;
[0144] Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0145] Input the fusion features of the image to be identified into Figure 1 The trained screen capture image recognition model is used to identify whether the image to be recognized is a screen capture image.
[0146] The above is as in this manual Figure 3-4The method performed by the screen image recognition device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0147] The electronic device may also perform Figure 3 The method is implemented by the screen image recognition device. Figure 3 The functions of the illustrated embodiments will not be described in detail in the embodiments of this specification.
[0148] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 3 The method of the embodiment shown is specifically used to perform the following operations:
[0149] Obtain an image to be recognized;
[0150] Performing feature decoupling on the image to be identified to obtain screen-captured features of the image to be identified, wherein the screen-captured features at least include frame features, moiré features, reflection features, and other screen-captured features;
[0151] Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified;
[0152] Input the fusion features of the image to be identified into Figure 1 The trained screen capture image recognition model is used to identify whether the image to be recognized is a screen capture image.
[0153] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0154] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0155] In short, the above description is only a preferred embodiment of this specification and is not intended to limit the protection scope of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.
[0156] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0157] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0158] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0159] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for training a screen image recognition model, comprising: The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; The original image processed by wavelet transform is input into the second convolutional neural network to decouple the moiré feature of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective feature of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image; Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
2. The method according to claim 1, The first convolutional neural network, the second convolutional neural network and the third convolutional neural network include one of a Gaussian convolutional neural network and a Canny convolutional neural network; The fourth convolutional neural network includes a convolutional neural network to which an attention mechanism from SeNet, CBAM, and SKNet is added.
3. The method according to claim 1, wherein the step of performing feature fusion based on the screen capture feature of the original image to obtain the fusion feature of the original image comprises: The weight of the screen capture feature in the original image is predicted by a weight allocation model, wherein the weight allocation model is trained based on the screen capture features in multiple original images; Feature fusion is performed based on the screen-shooting features in the original image and the weights of the screen-shooting features in the original image to obtain fused features of the original image.
4. The method according to claim 1, training a screen capture image recognition model based on fusion features corresponding to a plurality of different original images and screen capture labels corresponding to the plurality of different original images to obtain the screen capture image recognition model, comprising: Inputting the fusion features corresponding to the multiple different original images and the screen capture labels corresponding to the multiple different original images into a fully connected neural network or a classification model, training the screen capture image recognition model, and obtaining the screen capture image recognition model; Wherein, the classification model includes at least one of a SVM classifier model and a linear regression classifier model.
5. A screen image recognition method, comprising: Obtain an image to be recognized; The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; the original image processed by the wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified; The fusion features of the image to be identified are input into the screen-shot image recognition model trained in claims 1 to 4 to identify whether the image to be identified is a screen-shot image.
6. A training device for a screen image recognition model, comprising: The feature decoupling module inputs the original image processed by the Laplacian operator into the first convolutional neural network to decouple the border feature of the original image; inputs the original image processed by the wavelet transform into the second convolutional neural network to decouple the moiré feature of the original image; transforms the RGB feature space of the original image into the YCrCb color space, and inputs the transformed original image into the third convolutional neural network to decouple the reflective feature of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; The feature fusion module performs feature fusion based on the screen capture features of the original image to obtain the fusion features of the original image; The model training module trains the screen-shooting image recognition model based on the fusion features corresponding to multiple different original images and the screen-shooting labels corresponding to the multiple different original images to obtain the screen-shooting image recognition model.
7. A screen image recognition device, comprising: An image acquisition module, which acquires an image to be recognized; The feature decoupling module inputs the original image processed by the Laplacian operator into the first convolutional neural network to decouple the border feature of the original image; inputs the original image processed by the wavelet transform into the second convolutional neural network to decouple the moiré feature of the original image; transforms the RGB feature space of the original image into the YCrCb color space, and inputs the transformed original image into the third convolutional neural network to decouple the reflective feature of the original image; Inputting the original image into a fourth convolutional neural network, decoupling to obtain other screen-captured features of the original image, wherein the other screen-captured features include features such as a mouse pointer and / or a user's finger; A feature fusion module, which performs feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified; The image recognition module inputs the fusion features of the image to be recognized into the screen-shot image recognition model trained in claims 1 to 4 to recognize whether the image to be recognized is a screen-shot image.
8. An electronic device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; the original image processed by the wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image; Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
9. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the following operations: The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; the original image processed by the wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Based on the screen capture features of the original image, feature fusion is performed to obtain the fusion features of the original image; Based on the fusion features corresponding to the multiple different original images and the screen-shooting labels corresponding to the multiple different original images, the screen-shooting image recognition model is trained to obtain the screen-shooting image recognition model.
10. An electronic device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Obtain an image to be recognized; The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; the original image processed by the wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified; The fusion features of the image to be identified are input into the screen-shot image recognition model trained in claims 1 to 4 to identify whether the image to be identified is a screen-shot image.
11. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to perform the following operations: Obtain an image to be recognized; The original image processed by the Laplacian operator is input into the first convolutional neural network to decouple the border features of the original image; the original image processed by the wavelet transform is input into the second convolutional neural network to decouple the moiré features of the original image; the RGB feature space of the original image is transformed into the YCrCb color space, and the transformed original image is input into the third convolutional neural network to decouple the reflective features of the original image; Inputting the original image into a fourth convolutional neural network, and decoupling to obtain other screen-capturing features of the original image, wherein the other screen-capturing features include features of a mouse pointer and / or a user's finger; Performing feature fusion based on the screen capture features of the image to be identified to obtain fusion features of the image to be identified; The fusion features of the image to be identified are input into the screen-shot image recognition model trained in claims 1 to 4 to identify whether the image to be identified is a screen-shot image.
Citation Information
Patent Citations
Multi-feature fusion based image copying detection method
CN104598933A
Certificate identification method and apparatus, electronic device and storage medium
CN108229499A
Photo reshooting detection method, device, equipment and readable storage medium
CN108549836A
A method and apparatus for reproduce image recognition
CN109325933A
Living body detection method and device based on image quality and computer equipment
CN109858471A
