BACKGROUND

Technical Field

The present specification relates to the field of image processing, and in particular, to an image privacy protection method, apparatus and device.

Description of the Related Art

In recent years, biometric technologies have been well developed and implemented, but the accompanying privacy and security issues are becoming increasingly prominent. Because biometric systems need to collect, process, transmit, and store users' biometric images, attackers may attack the systems and steal the users' information in these processes, threatening the users' privacy security.

Conventional image encryption algorithms are independent on image compression algorithms, and usually implement encryption by simply rotating or obscuring images. The conventional image encryption algorithms have low complexity and less diversified modes. Therefore, attackers can easily decrypt images by brute force or simply guessing.

Feature storage-based privacy protection methods do not store original images locally but only save biometric features of users (some array vectors, with which the original images usually cannot be obtained in reverse). Therefore, attackers cannot obtain the original images even if they crack the systems. However, such methods cannot solve problems such as site restoration and public opinion screening, because solving these problems relies on assistance of the original images. For example, when a user complains about misrecognition occurring in a biometric system, an engineer cannot locate the problem or respond to the user as the engineer cannot obtain an original image of an involving transaction.

BRIEF SUMMARY

The present specification provides an image privacy protection method, apparatus, and device, to solve problems in the existing technologies that privacy-protected images are vulnerable to brute force cracking and their original images are difficult to restore.

The implementations of the present specification includes the following technical solutions:

According to a first aspect, an implementation of the present specification provides an image privacy protection method, including: performing privacy content recognition on an original image; in response to a privacy content being recognized, determining a local region including the privacy content from the original image; performing privacy protection processing on image data for the determined local region to generate data of a privacy-protected original image, the privacy protection processing including at least one of image scrambling processing or image obfuscation processing; and performing image compression processing on the data of the privacy-protected original image to generate data of a compressed image, and using the compressed image as image data to be transmitted or stored.

According to a second aspect, an implementation of the present specification provides an image privacy protection apparatus, including: a content recognition module, configured to perform privacy content recognition on an original image; a region determining module, configured to, if privacy content is recognized, determine a local region including the privacy content from the original image; an image processing module, configured to perform privacy protection processing on image data for the determined local region, the privacy protection processing including at least one of image scrambling processing or image obfuscation processing; and an image compression module, configured to perform image compression processing on the data of the privacy-protected original image to generate data of a compressed image, and use the compressed image as image data to be transmitted or stored.

According to a third aspect, an implementation of the present specification provides an image privacy protection device, including: a processor; and a memory, configured to store computer-executable instructions that, when executed, cause the processor to: perform privacy content recognition on an original image; if privacy content is recognized, determine a local region including the privacy content from the original image; perform privacy protection processing on image data for the determined local region, the privacy protection processing including at least one of image scrambling processing or image obfuscation processing; and perform image compression processing on the data of the privacy-protected original image to generate data of a compressed image, and use the compressed image as image data to be transmitted or stored.

According to a fourth aspect, an implementation of the present specification provides a storage medium. The storage medium is configured to store computer-executable instructions. When executed, the computer-executable instructions implement the following process: performing privacy content recognition on an original image; in response to a privacy content being recognized, determining a local region including the privacy content from the original image; performing privacy protection processing on image data for the determined local region to generate data of a privacy-protected original image, the privacy protection processing including at least one of image scrambling processing or image obfuscation processing; and performing image compression processing on the data of the privacy-protected original image to generate data of a compressed image, and using the compressed image as image data to be transmitted or stored.

According to the image privacy protection method, apparatus, and device, privacy content recognition is performed on an original image; if privacy content is recognized, a local region including the privacy content is determined from the original image; privacy protection processing is performed on image data for the determined local region, the privacy protection processing including at least one of image scrambling processing or image obfuscation processing; and image compression processing is performed on the privacy-protected original image, and the compressed image is used as an image to be transmitted or stored. Based on this, with privacy content flexibly specified, it is feasible to flexibly select, from an original image, image data in a local region on which privacy protection processing is to be performed, thereby improving the privacy protection strength for the original image, and easily realizing restoration of the original image.

