CN-122001989-A - Image processing method, image processing device, storage medium, electronic device, and program product
Abstract
The disclosure relates to an image processing method, an image processing device, a storage medium, an electronic device and a program product, and relates to the technical field of computers, and the method is applied to first equipment and comprises the steps of acquiring a standard image to be sent; the method comprises the steps of identifying a plurality of element groups in a standard image, determining a superposition image element corresponding to each element group, encrypting the standard image according to the element groups and the superposition image element corresponding to each element group to obtain a target image, and sending the target image to second equipment. After the standard image is encrypted, a normal image without functions is formed, corresponding information cannot be obtained from the normal image, confidentiality and safety of the target image can be guaranteed, and the risk of theft of the standard image in the transmission process is reduced.
Inventors
- SUN MINGCONG
- Zhuang Boqing
- SU XIAOXI
- XING ZEGUANG
Assignees
- 成都新紫光半导体科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (15)
- 1. A method of processing an image, applied to a first device, the method comprising: Obtaining a standard image to be transmitted; Identifying a plurality of element groups in the standard image, wherein each element group comprises a plurality of image elements which have the same size, the same arrangement direction and adjacent positions; determining a superposition image element corresponding to each element group; encrypting the standard image according to the element groups and the superposition image elements corresponding to the element groups to obtain a target image; And sending the target image to a second device.
- 2. The method of claim 1, wherein the identifying the plurality of element groups in the standard image comprises: identifying a plurality of image elements in the standard image; A plurality of image elements which have the same size, the same arrangement direction and are adjacent to each other are taken as an element group.
- 3. The method of claim 1, wherein said determining the corresponding superimposed image elements for each of said element groups comprises: Determining, for each element group, a total size and a first arrangement direction corresponding to a plurality of image elements included in the element group; And determining the superposition image elements corresponding to the element groups according to the total size and the first arrangement direction.
- 4. The method of claim 1, wherein the image elements included in the element group have a first element width that is different from a second element width that corresponds to a sub-element included in each of the superimposed image elements.
- 5. The method of claim 1, wherein the superimposed image elements corresponding to each of the element groups are different.
- 6. The method of claim 5, wherein the plurality of element groups includes a first element group and a second element group, the superimposed image elements corresponding to the first element group include a first superimposed image element, the superimposed image elements corresponding to the second element group include a second superimposed image element, the first superimposed image element includes a plurality of first sub-elements arranged based on a first direction and having a same arrangement pitch, the second superimposed image element includes a plurality of second sub-elements arranged based on a second direction and having a same arrangement pitch, and the superimposed image elements corresponding to each of the element groups are different including at least one of: The width of a first sub-element corresponding to the first sub-element is different from the width of a second sub-element corresponding to the second sub-element; a first arrangement pitch between the first sub-elements adjacent to each other at every two positions is different from a second arrangement pitch between the second sub-elements adjacent to each other at every two positions; the first sum of the first subelement width and the first arrangement pitch is different from the second sum of the second subelement width and the second arrangement pitch.
- 7. The method according to any one of claims 1 to 6, wherein the encrypting the standard image according to the plurality of element groups and the superimposed image elements corresponding to each of the element groups, to obtain a target image includes: For each element group, superposing the superposition image element on the element group in the standard image to obtain an encryption element corresponding to the element group; and obtaining the target image according to a plurality of the encryption elements.
- 8. A method of processing an image, applied to a second device, the method comprising: receiving a target image sent by a first device, wherein the target image is obtained by encrypting a standard image according to the image processing method of any one of claims 1 to 7; acquiring element characteristic information stored in advance; identifying a plurality of superimposed image elements from the target image according to the element characteristic information; and according to the plurality of superimposed image elements, performing decryption processing on the target image to obtain the standard image.
- 9. The method of claim 8, wherein decrypting the target image based on the plurality of superimposed image elements to obtain the standard image comprises: subtracting the plurality of superimposed image elements from the target image results in the standard image.
- 10. The method according to claim 8 or 9, wherein the element characteristic information includes one or more of a third element width, a third arrangement pitch between elements adjacent in position, and a second arrangement direction.
- 11. An image processing apparatus, applied to a first device, comprising: The first acquisition module is used for acquiring a standard image to be transmitted; The first identification module is used for identifying a plurality of element groups in the standard image, wherein each element group comprises a plurality of image elements which have the same size, the same arrangement direction and adjacent positions; The determining module is used for determining the superposition image elements corresponding to each element group; the encryption module is used for carrying out encryption processing on the standard image according to the plurality of element groups and the superposition image elements corresponding to each element group to obtain a target image; And the sending module is used for sending the target image to the second equipment.
- 12. An image processing apparatus, characterized by being applied to a second device, comprising: the receiving module is used for receiving a target image sent by the first equipment, wherein the target image is obtained by encrypting a standard image according to the image processing method of any one of claims 1 to 7; The second acquisition module is used for acquiring element characteristic information stored in advance; The second identification module is used for identifying a plurality of overlapped image elements from the target image according to the element characteristic information; and the decryption module is used for decrypting the target image according to the plurality of superimposed image elements to obtain the standard image.
- 13. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 7 or the steps of the method of any one of claims 8 to 10.
- 14. An electronic device, comprising: A memory having a computer program stored thereon; A processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 7 or to carry out the steps of the method of any one of claims 8 to 10.
- 15. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps of the method of any one of claims 1 to 7 or the steps of the method of any one of claims 8 to 10.
Description
Image processing method, image processing device, storage medium, electronic device, and program product Technical Field The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, a storage medium, an electronic device, and a program product for processing an image. Background In the semiconductor material production process, a standard image is designed for process confirmation, product confirmation, or as a detection standard, etc. But these standard images are at risk of being compromised during data transmission. Disclosure of Invention In order to solve the technical problems described above, the present disclosure provides an image processing method, apparatus, storage medium, electronic device, and program product. In a first aspect, the present disclosure provides a method for processing an image, applied to a first device, the method including: Obtaining a standard image to be transmitted; Identifying a plurality of element groups in the standard image, wherein each element group comprises a plurality of image elements which have the same size, the same arrangement direction and adjacent positions; determining a superposition image element corresponding to each element group; encrypting the standard image according to the element groups and the superposition image elements corresponding to the element groups to obtain a target image; And sending the target image to a second device. Optionally, the identifying the plurality of element groups in the standard image includes: identifying a plurality of image elements in the standard image; A plurality of image elements which have the same size, the same arrangement direction and are adjacent to each other are taken as an element group. Optionally, the determining the superimposed image element corresponding to each element group includes: Determining, for each element group, a total size and a first arrangement direction corresponding to a plurality of image elements included in the element group; And determining the superposition image elements corresponding to the element groups according to the total size and the first arrangement direction. Optionally, the width of the first element corresponding to the image element contained in the element group is different from the width of the second element corresponding to the sub-element contained in each superimposed image element. Optionally, the superimposed image elements corresponding to each of the element groups are different. Optionally, the plurality of element groups include a first element group and a second element group, the superimposed image elements corresponding to the first element group include a first superimposed image element, the superimposed image elements corresponding to the second element group include a second superimposed image element, the first superimposed image element includes a plurality of first sub-elements arranged based on a first direction and having the same arrangement pitch, the second superimposed image element includes a plurality of second sub-elements arranged based on a second direction and having the same arrangement pitch, and each of the superimposed image elements corresponding to the element groups includes at least one of: The width of a first sub-element corresponding to the first sub-element is different from the width of a second sub-element corresponding to the second sub-element; a first arrangement pitch between the first sub-elements adjacent to each other at every two positions is different from a second arrangement pitch between the second sub-elements adjacent to each other at every two positions; the first sum of the first subelement width and the first arrangement pitch is different from the second sum of the second subelement width and the second arrangement pitch. Optionally, the encrypting the standard image according to the plurality of element groups and the superimposed image elements corresponding to each element group, to obtain a target image includes: For each element group, superposing the superposition image element on the element group in the standard image to obtain an encryption element corresponding to the element group; and obtaining the target image according to a plurality of the encryption elements. In a second aspect, the present disclosure provides a method for processing an image, applied to a second device, the method including: the method comprises the steps of receiving a target image sent by first equipment, wherein the target image is obtained by encrypting a standard image according to the image processing method in the first aspect of the disclosure; acquiring element characteristic information stored in advance; identifying a plurality of superimposed image elements from the target image according to the element characteristic information; and according to the plurality of superimposed image elements, performing decryption processing on the target image to o