Image Data Processing Method, Apparatus, Device, and Storage Medium

By identifying the target area in the image and building auxiliary data blocks for security verification, the problem of image data being tampered with during transmission is solved, and the security and integrity of image data are achieved.

CN113989177BActive Publication Date: 2025-07-25ZHEJIANG UNIVIEW TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010662800.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2025-07-25
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

Image data is easily tampered with by illegal elements during transmission, affecting the investigation results of the case or causing social events, and is difficult to detect or restore.

Method used

By identifying the target area in the image, building auxiliary data blocks, and using encryption algorithms to generate image format data, using auxiliary data blocks for security verification, ensuring the integrity of target area information.

Benefits of technology

It realizes timely detection and repair of image data, ensuring the security and accuracy of images, and preventing tampering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113989177B_ABST
    Figure CN113989177B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses an image data processing method, apparatus, device, and storage medium. The method includes: identifying a target area in an image and determining target area information; constructing an auxiliary data block according to the image and the target area information; determining image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform security verification on the image stored in the image format data. The above solution constructs an auxiliary data block according to the target area information, solves the problem that the image data is tampered with, affecting the subsequent image analysis results, realizes timely detection and repair of the tampering of the image data, and improves the security of the image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and in particular, to an image data processing method, apparatus, device, and storage medium. Background Art

[0002] Currently, a superior domain monitoring system can obtain image data through subordinate domain monitoring devices such as a picture storage device, a picture forwarding device, a management platform, or a picture collection device, and then analyze and process the image data.

[0003] When image data is transmitted between the superior domain monitoring system and the subordinate domain monitoring system, there are security risks and it may be tampered with by illegal elements. When some key areas in the image data are tampered with, it may affect the investigation results of some cases based on this, or use the picture as a tool to incite public sentiment and trigger mass incidents. Once the image data is tampered with, it is very difficult to be discovered or restored. Summary of the Invention

[0004] The embodiments of the present invention provide an image data processing method, apparatus, device, and storage medium to be able to detect in time when the image data is tampered with.

[0005] In one embodiment, the embodiments of the present application provide an image data processing method, which includes:

[0006] Identify the target area in the image and determine the target area information;

[0007] Construct an auxiliary data block according to the image and the target area information;

[0008] Determine the image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0009] In another embodiment, the embodiments of the present application further provide an image data processing apparatus, which includes:

[0010] A target area information determination module, configured to identify the target area in the image and determine the target area information;

[0011] An auxiliary data block determination module, configured to construct an auxiliary data block according to the image and the target area information;

[0012] An image format data determination module, configured to determine the image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0013] In yet another embodiment, the embodiment of the present application further provides an image data processing device, including: one or more processors;

[0014] a memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the image data processing method according to any one of the embodiments of the present application.

[0016] In still another embodiment, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the image data processing method according to any one of the embodiments of the present application.

[0017] In the embodiment of the present application, by identifying the target area in the image and determining the target area information, the important area in the image is accurately determined, and the information related to the important area is obtained to save the important information in the image. By constructing an auxiliary data block according to the image and the target area information, the image is securely verified according to the auxiliary data block to determine whether the image of the target area in the image has been tampered with. By determining the image format data according to the image and the auxiliary data block, the auxiliary data block is transmitted and read as the content in the image format data, thereby solving the problem that the target area information cannot be read or is deleted as redundant data. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of an image data processing method provided by an embodiment of the present invention;

[0019] Figure 2 is a schematic diagram of an image provided by an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of target area recognition provided by an embodiment of the present invention;

[0021] Figure 4 is a flowchart of an image data processing method provided by another embodiment of the present invention;

[0022] Figure 5 is a first schematic diagram of a tampered image provided by another embodiment of the present invention;

[0023] Figure 6 is a second schematic diagram of a tampered image provided by another embodiment of the present invention;

[0024] Figure 7 is a third schematic diagram of a tampered image provided by another embodiment of the present invention;

[0025] Figure 8Schematic diagram for identifying the current area of a tampered image provided by another embodiment of the present invention;

[0026] Figure 9 Schematic diagram of the structure of an image data processing device provided by an embodiment of the present invention;

[0027] Figure 10 Schematic diagram of the structure of an image data processing device provided by an embodiment of the present invention. Detailed implementation manners

[0028] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. In addition, it should be noted that, for the sake of convenience of description, only parts related to the present invention rather than all structures are shown in the drawings.

[0029] Figure 1 Flowchart of an image data processing method provided by an embodiment of the present invention. The image data processing method provided by this embodiment is applicable to the situation where an image is processed to obtain image format data including auxiliary data blocks, which is convenient for subsequent security verification of the image based on the target area information in the auxiliary data blocks. This method can be specifically executed by an image data processing device, which can be implemented in software and / or hardware, and this device can be integrated in an image data processing device. Refer to Figure 1 , the method of the embodiment of the present application specifically includes:

[0030] S110. Identify the target area in the image and determine the target area information.

[0031] Among them, the target area can be an important area in the image, including important image information, such as people, vehicles, buildings, etc. in the image. The target area information can be the information of the area image corresponding to the target area in the image, such as at least one of the number of target areas, the coordinates of the target area, the target area image data, and the length of the target area image data. In the embodiment of the present application, a lower-level domain monitoring system, such as a picture storage device, a picture forwarding device, a picture management platform, or a picture capture and collection device, etc., can provide image data to a higher-level domain monitoring system. An intelligent board card can be installed in the higher-level domain monitoring system or the lower-level domain monitoring system to realize intelligent processing of image data, such as identifying the target area in the image and performing intelligent processing on the image.

[0032] During the process of the lower-level domain monitoring system sending image data to the upper-level domain monitoring system, the image data may be intercepted by illegal elements, and the regional image of the target area may be tampered with, thereby affecting the subsequent analysis results of the image and achieving the purpose of confusing right and wrong. In the embodiments of the present application, in order to determine whether the regional image of the target area in the image has been tampered with, the adopted solution is to identify the target area in the image and determine the target area information, so as to facilitate subsequent security verification of the image according to the target area information. After the regional image of the target area in the image is tampered with, the tampered image target area can be locked through the target area information. As Figure 2 and Figure 3 shown, perform target area recognition on the Figure 2 image to obtain target area 1, target area 2, and target area 3.

[0033] S120. Construct an auxiliary data block according to the image and the target area information.

[0034] Specifically, in order to avoid problems such as the image format being incorrect and unable to be successfully read when the image carries the target area information, or the target area information carried by the image being deleted as redundant data, in the embodiments of the present application, an auxiliary data block is constructed according to the image and the target area image. Since the picture data format generally includes a key data block and an auxiliary data block, and the auxiliary data block is a part of the image format data, it avoids the problem of being unable to be read due to format problems, and also avoids the problem of the target area data being deleted as redundant data. Construct an auxiliary data block according to the image and the target area information, so that the auxiliary data block carries the relevant information of the target area, thereby ensuring that the target area information can be successfully read for security verification of the image. In addition, since the target area information in the auxiliary data block is constructed according to the custom data bit order, it is difficult for illegal elements to crack and tamper with it, thus ensuring the security of the auxiliary data block.

[0035] In the embodiments of the present application, constructing an auxiliary data block according to the image and the target area information may include: encrypting the target area information using an encryption algorithm; constructing an auxiliary data block according to the encrypted target area information and the image.

[0036] Exemplarily, in order to further enhance the security of the auxiliary data block, when constructing the auxiliary data block according to the image and the target area information, first encrypt the content of the constructed auxiliary data block, and then construct the auxiliary data block according to the encrypted target area information, so as to avoid the auxiliary data block being illegally intercepted and tampered with during the transmission process.

[0037] S130. Determine image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0038] Exemplarily, the image can be stored in a key data block, and the key data block and the auxiliary data block together form the image format data. Since the key data block and the auxiliary data block are default data blocks in the image format data, they can be successfully read and will not be deleted as redundant data.

[0039] In the embodiments of the present application, by identifying the target area in the image and determining the target area information, the important area in the image is accurately determined, and the information related to the important area is obtained to save the important information in the image. By constructing an auxiliary data block according to the image and the target area information, the image is securely verified according to the auxiliary data block to determine whether the image of the target area in the image has been tampered with. By determining the image format data according to the image and the auxiliary data block, the auxiliary data block is transmitted and read as the content in the image format data, thus solving the problem that the target area information cannot be read or is deleted as redundant data.

[0040] Figure 4 It is a flowchart of an image data processing method provided by another embodiment of the present invention. The embodiments of the present application are optimized based on the above embodiments. For details not described in detail in this embodiment, please refer to the above embodiments. Refer to Figure 4 , the image data processing method provided in this embodiment may include:

[0041] S210. Identify the target area in the image and determine the target area information.

[0042] In the embodiments of the present application, identifying the target area in the image and determining the target area information includes: if no target area is identified in the image, determining that the number of target areas is zero, the data length of the target area is zero, the coordinates of the target area are random values, and the target area image is a random image.

[0043] Exemplarily, to ensure the consistency of the data structure of the auxiliary data block, if no target area is identified in the image, the number of target areas is assigned zero, the data length of the target area is set to zero, the coordinates of the target area are random values, and the target area image is a random image.

[0044] S220. Determine the digest value of the image.

[0045] In the embodiments of the present application, at least one of message algorithms such as the MD5 algorithm (Message Digest algorithm 5, a small message digest algorithm version 5), SHA (Secure Hash Algorithm), and MAC (Hash Message Authentication Code) can be used to calculate the digest value of the image for secure verification of the picture, thereby improving the accuracy of the secure verification.

[0046] S230. Combine the parameters included in the target area information, the digest value of the image, and the total data length according to a preset combination order to obtain an auxiliary data block.

[0047] Exemplarily, the parameters included in the target area information may include information such as the number of target areas, the coordinates of the target areas, the image data of the target areas, and the length of the image data of the target areas. The parameters included in the target area information, the digest value of the image, and the total data length can be combined in the manner shown in Table 1 to obtain an auxiliary data block. Among them, the total data length is the total length of the data in the auxiliary data block, the MD5 value is the digest value of the image, and then the number of target areas, the length of the image data of target area 1, the coordinates of target area 1, the image data of target area 1, the length of the image data of target area 2, the coordinates of target area 2, the image data of target area 2... are arranged in sequence. The combination order in Table 1 is only one achievable situation, and the specific preset combination order can be set according to the actual situation and is not specifically limited herein. Since the auxiliary data block in the present application is obtained by combining the parameters included in the target area information, the digest value of the image, and the total data length according to the preset combination order set actually, illegal users cannot crack the correspondence between the data bits and the specific content in the auxiliary data block, so it is difficult to tamper with the information in the auxiliary data block, thereby ensuring the security of the auxiliary data block.

[0048] Table 1

[0049] Total data length MD5 Number of target regions Length of image data for target region 1 Coordinates Image data Length of image data for target region 2 Coordinates Image data ……

[0050] S240. Determine the image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform secure verification on the image stored in the image format data.

[0051] S250. Perform current area recognition on the image stored in the image format data and determine the current area information.

[0052] In the embodiments of the present application, for the security verification of the image stored in the image format data, after the subordinate domain monitoring system sends the image format data to the superior domain monitoring system, the intelligent board in the superior domain monitoring system can execute it, or the intelligent board in the subordinate domain monitoring system can directly execute it. Specifically, for the image format data, the image therein is obtained, the current area of the image is recognized, and the current area information is determined. If an illegal user tampers with the current area in the image, the information of the current area cannot match the target area information in the auxiliary data block. As Figure 5 、 Figure 6 and Figure 7 shown, Figure 5 relative to Figure 3 , the target area 1 is replaced, Figure 6 relative to Figure 3 , the target area 1 is deleted, Figure 7 relative to Figure 3 , a new target area is added.

[0053] S260. Compare the current area information with the target area information in the auxiliary data block to perform security verification on the image stored in the image format data.

[0054] Exemplarily, when comparing the current area information with the target area information in the auxiliary data block, if the comparison is successful, it indicates that the image has not been tampered with; if the comparison fails, it indicates that the image has been tampered with by an illegal user. For example, as Figure 8 shown, perform current area recognition on the image stored in the image format data to obtain the current area 1', current area 2' and current area 3', and compare them with the target area 1, target area 2 and target area 3 in Figure 3 to determine whether the image has been tampered with.

[0055] Specifically, if the number of current areas in the current area information is the same as the number of target areas in the target area information, then compare the target area coordinates and the target area image data. Specifically, compare the coordinates of the current area and the target area, and determine the coverage rate of the current area and the target area according to the coordinates. If the coordinates are the same and the coverage rate meets the preset coverage rate threshold, then determine the similarity between the current area image data and the target area image data. If the similarity is greater than the preset similarity threshold, it is determined that the image has not been tampered with. If the coordinates of the current area and the target area are inconsistent, or the coverage rate of the current area and the target area does not meet the preset coverage rate threshold, or the similarity between the current area image data and the target area image data is less than or equal to the preset similarity threshold, it is determined that the image has been tampered with. As Figure 5As shown, the number of current regions is the same as the number of target regions, both being three. However, the similarity of the image data between the current region 1' and the target region 1 does not meet the similarity requirement. Therefore, it can be known that the target region 1 in the image has been tampered with.

[0056] If the number of current regions in the current region information is inconsistent with the number of target regions in the target region information, it indicates that the image has been tampered with. Then, the current regions are compared with the target regions in the same way as above to determine which target region has been tampered with. As Figure 6 shown, the number of current regions is 2, while Figure 3 the number of target regions in Figure 7 is 3. Two current regions match the target regions, and no current region matches the target region 1. Therefore, it can be known that the target region 1 has been tampered with. As

[0057] It should be noted that there is no specific limitation on the order of comparing the number of target regions, the coordinates of target regions, the coverage rate of target regions, and the similarity of target region image data, which can be set according to the actual situation.

[0058] In the embodiment of the present application, before identifying the current regions of the image stored in the image format data and determining the current region information, the method further includes: determining the current digest value of the image in the image format data; if the current digest value is inconsistent with the digest value in the auxiliary data block, it is determined that the security verification of the image stored in the image format data fails.

[0059] Exemplarily, before comparing the current region with the target region, calculate the digest value of the image in the image format data. If it is inconsistent with the digest value in the auxiliary data block, it indicates that the image has been tampered with. Specifically, the digest value is a unique fixed-length value corresponding to the image, which is generated by operating on the image with a one-way hash encryption function. The digest value generated by operating on the same image with the same algorithm is unique. If the image changes, the digest value generated by operating with this algorithm will also change. The digest value in the auxiliary data block is the digest value generated according to the original image before transmitting the image format data. If the image in the image format data is tampered with during transmission, after the recipient of the image format data receives the image format data, the current digest value calculated by operating on the tampered image with the same algorithm should be different from the digest value in the auxiliary data block. Therefore, if after receiving the image format data, the current digest value calculated by operating on the image with the same algorithm is different from the digest value in the auxiliary data block, it can be determined that the image stored in the image format data has been tampered with and the security verification fails.

[0060] In the embodiment of the present application, after comparing the current region information with the target region information in the auxiliary data block, the method further includes: if the current region information is inconsistent with the target region information in the auxiliary data block, correct the image of the current region according to the target region information in the auxiliary data block, where the target region information includes target region coordinates and target region image data.

[0061] Exemplarily, Figure 5 the current image 1' in is replaced, so the image of target region 1 covers the corresponding region of current region 1' according to the coordinates, realizing the correction of the image. Figure 6 if the part corresponding to target region 1 in is deleted, then the image of target region 1 is pasted at the corresponding position according to the coordinates, realizing the correction of the image, Figure 7 if a fourth current region is added in, then delete this current region, realizing the correction of the image.

[0062] The technical solution of the embodiment of the present application is obtained by combining the parameters included in the target region information, the digest value of the image, and the total data length according to the actually set preset combination order. Therefore, illegal users cannot crack the correspondence between the data bits and the specific content in the auxiliary data block, so it is difficult to tamper with the information in the auxiliary data block, thereby ensuring the security of the auxiliary data block. By comparing the current region information with the target region information in the auxiliary data block, perform a security verification on the image stored in the image format data, so as to timely and accurately determine whether the image has been tampered with and make corrections to ensure the accuracy of the image.

[0063] Figure 9 The following is a schematic structural diagram of an image data processing device provided by an embodiment of the present invention. This device can be applicable to the situation of image acquisition for a scene. Typically, the embodiments of the present application can be applicable to the situation of processing an image to obtain image format data including auxiliary data blocks, which is convenient for subsequent security verification of the image based on target area information. This device can be implemented in software and / or hardware, and can be integrated in an image data processing device. Refer to Figure 9 , the device specifically includes:

[0064] A target area information determination module 310, configured to identify a target area in the image and determine target area information;

[0065] An auxiliary data block determination module 320, configured to construct an auxiliary data block according to the image and the target area information;

[0066] An image format data determination module 330, configured to determine image format data according to the image and the auxiliary data block, where the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0067] In the embodiments of the present application, the target area information includes at least one of the number of target areas, target area coordinates, target area image data, and the length of target area image data.

[0068] In the embodiments of the present application, the auxiliary data block determination module 320 includes:

[0069] An image information determination unit, configured to determine a digest value of the image;

[0070] A combination unit, configured to combine the parameters included in the target area information, the digest value of the image, and the total data length according to a preset combination order to obtain an auxiliary data block.

[0071] In the embodiments of the present application, the target area information determination module 310 is specifically configured to:

[0072] If no target area is recognized in the image, it is determined that the number of target areas is zero, the length of the target area data is zero, the target area coordinates are random values, and the target area image is a random image.

[0073] In the embodiments of the present application, the auxiliary data block determination module 320 includes:

[0074] An encryption unit, configured to encrypt the target area information using an encryption algorithm;

[0075] An auxiliary data block construction unit, configured to construct an auxiliary data block according to the encrypted target area information and the image.

[0076] In an embodiment of the present application, the apparatus further includes:

[0077] A current area information determination module, configured to perform current area recognition on the image stored in the image format data and determine current area information;

[0078] A security verification module, configured to compare the current area information with the target area information in the auxiliary data block and perform security verification on the image stored in the image format data.

[0079] In an embodiment of the present application, the apparatus further includes:

[0080] A current digest value determination module, configured to determine a current digest value of the image in the image format data;

[0081] A judgment module, configured to, if the current digest value is inconsistent with the digest value in the auxiliary data block, perform the step of performing security verification according to the current area information of the image in the image format data and the target area information in the auxiliary data block.

[0082] In an embodiment of the present application, the apparatus further includes:

[0083] A correction module, configured to, if the current area information is inconsistent with the target area information in the auxiliary data block, correct the image of the current area according to the target area information in the auxiliary data block, where the target area information includes target area coordinates and target area image data.

[0084] The image data processing apparatus provided in an embodiment of the present application can execute the image data processing method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method.

[0085] Figure 10 It is a schematic structural diagram of an image data processing device provided in an embodiment of the present invention. Figure 10 The block diagram of an exemplary image data processing device 412 suitable for implementing the embodiments of the present application is shown. Figure 10 The shown image data processing device 412 is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0086] Such as Figure 10As shown, the image data processing device 412 may include: one or more processors 416; a memory 428 for storing one or more programs, which when executed by the one or more processors 416 cause the one or more processors 416 to implement the image data processing method provided in the embodiments of the present application, including:

[0087] Identifying a target area in the image and determining target area information;

[0088] Constructing an auxiliary data block according to the image and the target area information;

[0089] Determining image format data according to the image and the auxiliary data block, wherein the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0090] The components of the image data processing device 412 may include but are not limited to: one or more processors or processor 416, a memory 428, and a bus 418 connecting different device components (including the memory 428 and the processor 416).

[0091] The bus 418 represents one or more of several types of bus architectures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus architectures. By way of example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0092] The image data processing device 412 typically includes a variety of computer device-readable storage media. These storage media can be any available storage media accessible by the image data processing device 412, including volatile and non-volatile storage media, removable and non-removable storage media.

[0093] The memory 428 may include computer device-readable storage media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The image data processing device 412 may further include other removable / non-removable, volatile / non-volatile computer device storage media. By way of example only, a storage system 434 may be used for reading and writing non-removable, non-volatile magnetic storage media ( Figure 10 not shown, commonly referred to as a "hard disk drive"). Although Figure 10Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM, or other optical storage medium) can be provided. In these cases, each drive can be connected to the bus 418 through one or more data storage medium interfaces. The memory 428 can include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0094] A program / utility 440 having a set (at least one) of program modules 442 can be stored, for example, in the memory 428. Such program modules 442 include, but are not limited to, operating devices, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 442 generally perform the functions and / or methods in the embodiments described in the present invention.

[0095] The image data processing device 412 can also communicate with one or more external devices 414 (such as a keyboard, a pointing device, a display 426, etc.), and can also communicate with one or more devices that enable a user to interact with the image data processing device 412, and / or communicate with any device that enables the image data processing device 412 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 422. Moreover, the image data processing device 412 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 420. As Figure 10 shown, the network adapter 420 communicates with other modules of the image data processing device 412 through the bus 418. It should be understood that although Figure 10 not shown in the figure, other hardware and / or software modules can be used in combination with the image data processing device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, etc.

[0096] The processor 416 executes various functional applications and data processing by running at least one of the other programs among the multiple programs stored in the memory 428, for example, implementing an image data processing method provided by the embodiments of the present application.

[0097] An embodiment of the present invention provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute an image data processing method when executed by a computer processor, including:

[0098] Identify the target area in the image and determine the target area information;

[0099] Construct an auxiliary data block according to the image and the target area information;

[0100] Determine the image format data according to the image and the auxiliary data block, wherein the auxiliary data block is used to perform security verification on the image stored in the image format data.

[0101] The computer storage medium of the embodiments of the present application may adopt any combination of one or more computer-readable storage media. The computer-readable storage medium may be a computer-readable signal storage medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or component, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present application, the computer-readable storage medium may be any tangible storage medium that contains or stores a program, and this program can be used by or in combination with an instruction execution device, apparatus, or component.

[0102] The computer-readable signal storage medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal storage medium may also be any computer-readable storage medium other than the computer-readable storage medium, and this computer-readable storage medium can send, propagate, or transmit a program for use by or in combination with an instruction execution device, apparatus, or component.

[0103] The program code contained on the computer-readable storage medium can be transmitted by any suitable storage medium, including - but not limited to - wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0104] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0105] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments may be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An image data processing method, characterized in that, The method includes: Identifying a target area in the image and determining target area information; Constructing an auxiliary data block according to the image and the target area information; Determining image format data according to the image and the auxiliary data block, wherein the auxiliary data block is used to perform security verification on the image stored in the image format data, and the image format data is composed of a key data block and an auxiliary data block; Wherein, constructing the auxiliary data block according to the image and the target area information includes: Determining a digest value of the image; wherein the digest value corresponds to and is unique to the image; Combining the parameters included in the target area information, the digest value of the image, and the total data length according to a preset combination order to obtain an auxiliary data block; Identifying a target area in the image and determining target area information includes: If no target area is identified in the image, determining that the number of target areas is zero, the data length of the target area is zero, the coordinates of the target area are random values, and the target area image is a random image; After determining the image format data, the method further includes: Performing current area recognition on the image stored in the image format data and determining current area information; Comparing the current area information with the target area information in the auxiliary data block to perform security verification on the image stored in the image format data; Before performing current area recognition on the image stored in the image format data and determining current area information, the method further includes: Determining a current digest value of the image in the image format data; If the current digest value is inconsistent with the digest value in the auxiliary data block, determining that the security verification of the image stored in the image format data fails.

2. The method according to claim 1, wherein The parameters included in the target area information include at least one of the number of target areas, the coordinates of the target area, the target area image data, and the length of the target area image data.

3. The method according to claim 1, wherein Constructing an auxiliary data block according to the image and the target area information includes: Encrypting the target area information using an encryption algorithm; Constructing an auxiliary data block according to the encrypted target area information and the image.

4. The method according to claim 1, wherein After comparing the current area information with the target area information in the auxiliary data block, the method further includes: If the current area information is inconsistent with the target area information in the auxiliary data block, correcting the image of the current area according to the target area information in the auxiliary data block, wherein the target area information includes the coordinates of the target area and the target area image data.

5. An image data processing device, characterized in that, The device includes: A target area information determination module, configured to identify a target area in the image and determine target area information; An auxiliary data block determination module, configured to construct an auxiliary data block according to the image and the target area information; An image format data determination module, configured to determine image format data according to the image and the auxiliary data block, wherein the auxiliary data block is used to perform security verification on the image stored in the image format data, and the image format data is composed of a key data block and an auxiliary data block; The auxiliary data block determination module includes: An image information determination unit, configured to determine a digest value of the image; wherein, the digest value corresponds to and is unique to the image; A combination unit, configured to combine the parameters included in the target area information, the digest value of the image, and the total data length according to a preset combination order to obtain an auxiliary data block; The target area information determination module is specifically configured to: if no target area is recognized in the image, determine that the number of target areas is zero, the data length of the target area is zero, the coordinates of the target area are random values, and the target area image is a random image; The device further includes: A current area information determination module, configured to perform current area recognition on the image stored in the image format data and determine current area information; A security verification module, configured to compare the current area information with the target area information in the auxiliary data block to perform security verification on the image stored in the image format data; A current digest value determination module, configured to determine a current digest value of the image in the image format data; A judgment module, configured to determine that the security verification of the image stored in the image format data fails if the current digest value is inconsistent with the digest value in the auxiliary data block.

6. An image data processing device, characterized in that, The device includes: One or more processors; A memory, configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the image data processing method according to any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the image data processing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Image processing method and terminal

    CN110008718A

  • IPTV content tampering type identification method and system based on image regional comparison

    CN110213656A