Image determination method and device and storage medium

By receiving the data information sent by the encryption device, determining the target recombination image and performing cutting and decryption, the problem of low image processing efficiency in the prior art is solved, and an efficient image decryption process is realized.

CN120021241APending Publication Date: 2025-05-20CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311550083.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

In the prior art, in the process of image encryption and decryption, the calculation amount of transmitted data is large, resulting in low image processing efficiency.

Method used

By receiving the data information sent by the encryption device, the target recombination image in the multiple recombination images is determined. The phase matrix of the target recombination image is consistent with the phase matrix of the original image, and the target recombination image is cut and decrypted to determine the multiple decrypted image blocks.

Benefits of technology

Effectively improve the efficiency of decrypted images, reduce the amount of calculation and improve security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120021241A_ABST
    Figure CN120021241A_ABST
Patent Text Reader

Abstract

The invention provides an image determination method and device and a storage medium, relates to the technical field of communication, and can effectively improve the efficiency of image decryption. The method is applied to a decryption device, and comprises the following steps: receiving data information sent by an encryption device; the data information is first data information or second data information, the first data information comprises an encrypted image, the second data information comprises the encrypted image, an amplitude matrix of an original image and a phase matrix of the original image, and the encrypted image is determined through random recombination of a plurality of sub-images; based on the data information, determining a target recombined image in a plurality of recombined images; the plurality of recombined images are determined by traversing and combining the plurality of sub-images; the phase matrix of the target recombined image is consistent with the phase matrix of the original image; and cutting and decrypting the target recombined image, and determining a plurality of decrypted image blocks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to an image determination method, apparatus, and storage medium. Background Art

[0002] With the rapid development of Internet technologies, a large amount of information is shared and transmitted. However, information security incidents such as illegal theft and tampering have emerged in an endless stream. Usually, an encrypted image is decrypted by the low-frequency area ratio of the corresponding spectrogram of the encrypted image, the low-frequency area ratio of the spectrogram corresponding to the image data, and the number of image blocks of the encrypted image to obtain the image data. The drawback of this method is that the amount of calculation of the transmitted data is large, resulting in low efficiency of image processing. Summary of the Invention

[0003] This application provides an image determination method, apparatus, and storage medium, which can effectively improve the efficiency of decrypting images.

[0004] To achieve the above object, this application adopts the following technical solutions:

[0005] In a first aspect, this application provides an image determination method, which is applied to a decryption device. The method includes: receiving data information sent by an encryption device; the data information is first data information or second data information, the first data information includes an encrypted image, the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image, and the encrypted image is determined by randomly recombining a plurality of sub-images; based on the data information, determining a target recombined image among a plurality of recombined images; the plurality of recombined images are determined by traversing and combining the plurality of sub-images; the phase matrix of the target recombined image is consistent with the phase matrix of the original image; performing cutting decryption on the target recombined image to determine a plurality of decrypted image blocks.

[0006] In combination with the first aspect, in a possible implementation manner, when the data information is the first data information, the determining a target recombined image among a plurality of recombined images based on the data information includes: determining the phase matrix of the original image; traversing and combining the plurality of sub-images to determine a plurality of recombined images; for each recombined image, determining the phase matrix of the spectrogram corresponding to the recombined image to obtain the phase matrix of each recombined image among the plurality of recombined images; determining the target recombined image among the plurality of recombined images that is consistent with the phase matrix of the original image.

[0007] In combination with the first aspect, in a possible implementation, the determining the phase matrix of the original image includes: determining the spectrogram of the encrypted image and the amplitude matrix corresponding to the spectrogram; one amplitude matrix of the encrypted image corresponds to one amplitude matrix of the original image; based on a preset correspondence, determining the phase matrix corresponding to the matrix range where the amplitude matrix of the encrypted image is located, and using the phase matrix corresponding to the matrix range as the phase matrix of the original image.

[0008] In combination with the first aspect, in a possible implementation, when the data information is the second data information, the determining the target reconstructed image among the multiple reconstructed images based on the data information includes: traversing and combining the multiple sub-images to determine multiple reconstructed images; for each reconstructed image, determining the phase matrix of the spectrogram corresponding to the reconstructed image to obtain the phase matrix of each reconstructed image among the multiple reconstructed images; determining the target reconstructed image among the multiple reconstructed images that is consistent with the phase matrix of the original image.

[0009] In a second aspect, the present application provides an image determination method, which is applied to an encryption device. The method includes: determining the spectrogram of the original image; the original image is determined by multiple image blocks in a preset order; based on the spectrogram, determining the amplitude matrix and phase matrix of the original image; sending data information to a decryption device; the data information is the first data information or the second data information, the first data information includes the encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly reconstructing multiple sub-images.

[0010] In combination with the second aspect, in a possible implementation, before sending the encrypted image to the decryption device, it further includes: cutting the original image to determine multiple sub-images; the multiple sub-images have the same size; based on the multiple sub-images, determining the encrypted image.

[0011] Third aspect, an image determination device provided by an embodiment of the present application is applied to a decryption device. The device includes: a processing unit and a communication unit; the communication unit is configured to receive data information sent by an encryption device; the data information is first data information or second data information, the first data information includes an encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly recombining a plurality of sub-images; the processing unit is configured to determine a target recombined image among a plurality of recombined images based on the data information; the plurality of recombined images are determined by traversing and combining the plurality of sub-images; the phase matrix of the target recombined image is consistent with the phase matrix of the original image; the processing unit is further configured to perform cutting and decryption on the target recombined image to determine a plurality of decrypted image blocks.

[0012] In combination with the third aspect, in a possible implementation manner, when the data information is the first data information, the processing unit is specifically configured to: determine the phase matrix of the original image; perform traversing and combination on the plurality of sub-images to determine a plurality of recombined images; for each recombined image, determine the phase matrix of the spectrogram corresponding to the recombined image, so as to obtain the phase matrix of each recombined image among the plurality of recombined images; determine the target recombined image among the plurality of recombined images whose phase matrix is consistent with the phase matrix of the original image.

[0013] In combination with the third aspect, in a possible implementation manner, the processing unit is further configured to: determine the spectrogram of the encrypted image and the amplitude matrix corresponding to the spectrogram; one amplitude matrix of the encrypted image corresponds to one amplitude matrix of the original image; based on a preset correspondence, determine the phase matrix corresponding to the matrix range where the amplitude matrix of the encrypted image is located, and use the phase matrix corresponding to the matrix range as the phase matrix of the original image.

[0014] In combination with the third aspect, in a possible implementation manner, when the data information is the second data information, the processing unit is specifically configured to perform traversing and combination on the plurality of sub-images to determine a plurality of recombined images; for each recombined image, determine the phase matrix of the spectrogram corresponding to the recombined image, so as to obtain the phase matrix of each recombined image among the plurality of recombined images; determine the target recombined image among the plurality of recombined images whose phase matrix is consistent with the phase matrix of the original image.

[0015] Fourth aspect, an image determination device provided by an embodiment of the present application is applied to an encryption device. The device includes: a processing unit and a communication unit; the processing unit is configured to determine a spectrogram of an original image; the original image is determined by a plurality of image blocks in a preset order; the processing unit is further configured to determine an amplitude matrix and a phase matrix of the original image based on the spectrogram; the communication unit is further configured to send data information to a decryption device; the data information is first data information or second data information, the first data information includes an encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly reorganizing a plurality of sub-images.

[0016] In combination with the fourth aspect, in a possible implementation manner, the processing unit is further configured to: cut the original image to determine a plurality of sub-images; the plurality of sub-images have the same size; and determine the encrypted image based on the plurality of sub-images.

[0017] Fifth aspect, the present application provides an image determination device applied to a decryption device. The device includes: a processor and a communication interface; the communication interface is coupled to the processor, and the processor is configured to run a computer program or instruction to implement the image determination method described in the first aspect and any possible implementation manner of the first aspect.

[0018] Sixth aspect, the present application provides a computer-readable storage medium applied to a decryption device. Instructions are stored in the computer-readable storage medium. When the instructions are run on a terminal, the terminal is caused to execute the image determination method described in the first aspect and any possible implementation manner of the first aspect.

[0019] Seventh aspect, the present application provides an image determination device applied to an encryption device. The device includes: a processor and a communication interface; the communication interface is coupled to the processor, and the processor is configured to run a computer program or instruction to implement the image determination method described in the first aspect and any possible implementation manner of the first aspect.

[0020] Eighth aspect, the present application provides a computer-readable storage medium applied to an encryption device. Instructions are stored in the computer-readable storage medium. When the instructions are run on a terminal, the terminal is caused to execute the image determination method described in the first aspect and any possible implementation manner of the first aspect.

[0021] In the present application, the names of the above-mentioned image determination devices do not constitute a limitation on the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of the present application and fall within the scope of the claims of the present application and their equivalent technologies.

[0022] These aspects or other aspects of the present application will be more clearly understood in the following description.

[0023] Based on the above technical solution, the decryption device in the image determination method provided by the embodiments of the present application can determine a target recombined image that is consistent with the phase matrix of the original image among multiple recombined images according to the data information sent by the encryption device. Since the target recombined image is generated from multiple sub-images, the decryption device directly performs cutting and decryption on the target recombined image, which can effectively improve the efficiency of decrypting the image and has higher security at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic structural diagram of a communication system provided by the present application;

[0025] Figure 2 It is a schematic structural diagram of an image determination device provided by the present application;

[0026] Figure 3 It is a flowchart of an image determination method provided by the present application;

[0027] Figure 4 It is a schematic diagram of an original image provided by the present application;

[0028] Figure 5 It is a schematic diagram of a spectrogram provided by the present application;

[0029] Figure 6 It is a schematic diagram of an encrypted image provided by the present application;

[0030] Figure 7 It is a flowchart of another image determination method provided by the present application;

[0031] Figure 8 It is a schematic structural diagram of another image determination device provided by the present application;

[0032] Figure 9 It is a schematic structural diagram of another image determination device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] Next, the technical solutions in some embodiments of the present disclosure will be clearly and completely described in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present disclosure.

[0034] Unless the context otherwise requires, throughout the specification and claims, the term "comprise" and its other forms, such as the third-person singular form "comprises" and the present participle form "comprising", are to be construed in an open, inclusive sense, i.e., "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example", or "some examples", etc., are intended to indicate that a particular feature or characteristic associated with the embodiment or example is included in at least one embodiment or example of the present disclosure. The schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, the particular feature or characteristic may be included in any one or more embodiments or examples in any suitable manner.

[0035] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0036] When describing some embodiments, the expressions "coupled" and "connected" and their derivatives may be used. For example, when describing some embodiments, the term "connected" may be used to indicate that two or more components have direct physical contact or electrical contact with each other. Another example is that when describing some embodiments, the term "coupled" may be used to indicate that two or more components have direct physical contact or electrical contact. However, the term "coupled" or "communicatively coupled" may also mean that two or more components have no direct contact with each other but still cooperate or interact with each other. The embodiments disclosed herein are not necessarily limited to the content herein.

[0037] "At least one of A, B, and C" has the same meaning as "at least one of A, B, or C", and both include the following combinations of A, B, and C: only A, only B, only C, the combination of A and B, the combination of A and C, the combination of B and C, and the combination of A, B, and C.

[0038] "A and / or B" includes the following three combinations: only A, only B, and the combination of A and B.

[0039] As used herein, depending on context, the term "if" is optionally interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting". Similarly, depending on context, the phrase "if it is determined that..." or "if [stated condition or event] is detected" is optionally interpreted to mean "when it is determined that..." or "in response to determining..." or "when [stated condition or event] is detected" or "in response to detecting [stated condition or event]".

[0040] The use of "configured to" or "adapted to" in this document means open and inclusive language that does not exclude devices that are configured to or adapted to perform additional tasks or steps.

[0041] In addition, the use of "based on" is open and inclusive because a process, step, calculation, or other action "based on" one or more conditions or values can in practice be based on additional conditions or values beyond those stated. Currently, the Internet of Things is a network that connects and interacts various physical devices and sensors via the Internet. The core idea of the Internet of Things is to enable various devices to achieve intelligence, automation, and remote control via the Internet. Among them, the development of Internet of Things devices refers to the process of developing, designing, and implementing Internet of Things devices, including work in aspects such as hardware design, communication technology, and software development. The development of Internet of Things devices enables interconnection and interoperability between devices. Through Internet of Things technology, traditional devices and instruments can be made intelligent and remotely controllable, achieving more efficient, convenient, and intelligent applications.

[0042] With the rapid development of Internet technology, a large amount of information is shared and transmitted. However, information security incidents such as illegal theft and tampering have emerged in an endless stream. Usually, the image encryption device in the image encryption transmission method can perform threshold segmentation on the spectrogram corresponding to the image data to obtain a binary image corresponding to the spectrogram, then calculate the connected components of the binary image, use the discrete points outside the connected components as feature points, calculate the angles of each feature point, and obtain the average angle of the spectrogram; furthermore, the image encryption device calculates the area of the connected components in the binary image to obtain the proportion of the low-frequency area of the corresponding spectrogram, randomly divides the image data into several image blocks of size m×n, randomly recombines the image blocks to obtain the encrypted image corresponding to the image data, and finally the image encryption device uses the encrypted image, the number of image blocks, the proportion of the low-frequency area, and the average angle as transmission data for data transmission.

[0043] Correspondingly, the decryption device in the image decryption transmission method can also perform threshold segmentation on the spectrum graph corresponding to the image data, obtain binary images corresponding to multiple spectrum graphs, calculate the average angle and low-frequency area ratio of the spectrum graph, and obtain the corresponding average angle in the transmission data according to the average angle of the spectrum graph corresponding to the encrypted image; further, obtain the low-frequency area ratio corresponding to the average angle in the transmission data and the number of image blocks of the encrypted image, and the decryption device decrypts the encrypted image according to the low-frequency area ratio of the spectrum graph corresponding to the encrypted image, the low-frequency area ratio of the spectrum graph corresponding to the image data, and the number of image blocks of the encrypted image to obtain the image data. However, the defect of the above method is that when multiple images are transmitted, the calculation amount of the transmitted data is large, and the image encryption processing and transmission efficiency are low.

[0044] In order to solve the problems in the prior art, the decryption device in the image determination method provided in the embodiment of the present application can determine the target reconstructed image with the same phase matrix as the original image among multiple reconstructed images according to the data information sent by the encryption device. Since the target reconstructed image is generated by multiple sub-images, the decryption device directly cuts and decrypts the target reconstructed image, which can effectively improve the efficiency of decrypting the image and has higher security.

[0045] If Figure 1 The figure shows a schematic diagram of the structure of a communication system 100 provided in an embodiment of the present application. The communication system 100 includes: an encryption device 101 and a decryption device 102.

[0046] The encryption device 101 may include a reorganization module, a spectrum analysis module, a cutting module, and a transmission module. The reorganization module may be responsible for sorting and splicing the images to be transmitted to form a reorganized image. The spectrum analysis module may extract the spectrum graph of the reorganized image and the encrypted image, and calculate the corresponding amplitude matrix and phase matrix. The cutting module cuts the reorganized image and randomly combines the image blocks to form an encrypted image. The transmission module transmits the encrypted image, the number of image blocks, the amplitude matrix and the phase matrix to the decryption device 102. For example, the encryption device 101 may send a general map (data information) to the decryption device 102.

[0047] The encryption device 101 can be a terminal device, which can be a mobile phone, a tablet computer or a computer with wireless transceiver function, and can also be a virtual reality (VR) device, augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grid, a wireless terminal in smart city, a smart home, a car terminal, etc.

[0048] The decryption device 102 includes a receiving module, a judging module, and an execution module. The decryption device 102 can also be a terminal device, which can be a mobile phone, a tablet computer, or a computer with wireless transceiver function. Among them, the receiving module can receive the data information sent by the encryption device 101, the judging module can judge whether the combination of image blocks is a recombined image. The execution module can perform the restoration of the original image. When the phase matrix of the recombined image is consistent with the phase matrix of the original image, it is allowed to cut the recombined image according to the size of the original image to obtain a plurality of decrypted image blocks.

[0049] The technical solution of the embodiment of the present application can be applied to any communication system that supports communication. The communication system can be a 3GPP high-frequency wireless communication system. For example, the 4th generation (4G) mobile communication system, such as the long term evolution (LTE) system, evolved LTE (eLTE), worldwide interoperability for microwave access (WiMAX) communication system, 5th generation (5G) mobile communication system, such as the new radio (NR) system, new radio access technology (NR), and future communication systems, such as the 6th generation (6G) mobile communication system, etc. It can also be a non-3GPP communication system, without limitation.

[0050] It should be noted that the communication system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. Those of ordinary skill in the art know that with the evolution of communication systems and the emergence of other communication systems, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.

[0051] In one example, Figure 2 It is a schematic structural diagram of an image determination device provided by an embodiment of the present application. The image determination device includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. Among them, the processor 201, the memory 203, and the communication interface 204 can be connected through the communication line 202.

[0052] The processor 201 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. For example, one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).

[0053] The communication line 202 may include a path for transmitting information between the above components.

[0054] The communication interface 204, which is used to communicate with other devices or communication networks, may use any device such as a transceiver, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0055] The memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to include or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0056] In a possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory external to the processor 201. At this time, the memory 203 can be connected to the processor 201 through the communication line 202, used to store execution instructions or application program codes, and controlled by the processor 201 to execute, so as to implement the network quality determination method provided in the following embodiments of this application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be an internal memory of the processor 201. For example, this memory 203 is a cache, which can be used to temporarily store some data and instruction information, etc.

[0057] As an implementable manner, the processor 201 may include one or more CPUs, such as Figure 2 CPU0 and CPU1 in Figure 2 . As another implementable manner, the image determination device 200 may include multiple processors, such as

[0058] the processor 201 and the processor 207 in

[0059] . As yet another implementable manner, the image determination device 200 may further include an output device 205 and an input device 206. Figure 3 As shown in Figure 1 , it is a flowchart of an image determination method provided by an embodiment of this application. The image determination method provided by the embodiment of this application can be applied to a communication system as shown in

[0060] S301. Determine the spectrogram of the original image.

[0061] Among them, the original image is determined by multiple image blocks in a preset order.

[0062] In a possible implementation manner, the encryption device sorts n image blocks with a size of a×b from left to right and from top to bottom in sequence, and splices them into an original image with a size of M×N. If there are vacancies, 0 pixels are used to supplement. Among them, n is greater than or equal to 1. Subsequently, the encryption device extracts the spectrogram of the original image.

[0063] In an example, the encryption device sorts 12 image blocks with a size of 10×10 in sequence to form the original image as shown in Figure 4 Furthermore, the encryption device can perform a two-dimensional Fourier transform on the original image f(x,y) to obtain the spectrogram as shown in Figure 5 The spectrogram F(u,v) of the original image f(x,y) satisfies the following formula 1:

[0064]

[0065] (u = 1, 2,..., N - 1; v = 1, 2,..., M - 1)

[0066] where x and y represent the spatial coordinates of the image; u represents the spatial frequency component in the x-axis direction, and v represents the spatial frequency component in the y-axis direction.

[0067] S302. Based on the spectrogram, determine the amplitude matrix and phase matrix of the original image.

[0068] Exemplarily, the amplitude matrix g(u,v) of the original image can satisfy the following formula 2:

[0069] g(u,v) = PT[F(u,v)] = |F(u,v)| Formula 2 where PT is the phase excision operation, and F(u,v) is the spectrogram of the original image.

[0070] The phase matrix P(u,v) of the original image can satisfy the following formula 3:

[0071]

[0072] where PR is the phase retention operation, and F(u,v) is the spectrogram of the original image.

[0073] S303. Send data information to the decryption device.

[0074] where the data information is the first data information or the second data information. The first data information includes the encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly reorganizing multiple sub-images.

[0075] As a possible implementation manner, the encryption device sends data information to the decryption device according to its own setting situation. The encryption device can send only the encrypted image to the decryption device, or can send both the encrypted image and the amplitude matrix of the original image, as well as the phase matrix of the original image to the decryption device.

[0076] In a possible implementation manner, as shown in Figure 3As shown above, before sending data information to the decryption device, the encryption device also needs to determine the encrypted image, which can be specifically implemented through the following S401 - S402.

[0077] S401. Cut the original image to determine multiple sub - images.

[0078] Among them, the sizes of the multiple sub - images are the same.

[0079] S402. Determine the encrypted image based on the multiple sub - images.

[0080] As a possible implementation, as Figure 6 shown, cut the original image into several sub - images with a size of m×n, and randomly recombine the multiple sub - images to obtain the encrypted image corresponding to the original image.

[0081] Based on the above technical solution, for the image determination method provided in the embodiments of the present application, the encryption device can arrange multiple image blocks in a preset order to generate the original image, and cut and recombine the original image to determine the encrypted image, so as to ensure the confidentiality of the data sent to the decryption device.

[0082] In addition, the encryption device can determine whether to send the first data information or the second data information to the decryption device according to its own situation.

[0083] As Figure 7 shown, it is a flowchart of an image determination method provided in the embodiments of the present application. The image determination method provided in the embodiments of the present application can be applied to a communication system as Figure 1 shown. This method is applied to the decryption device, and the image determination method provided in the embodiments of the present application can be implemented through the following steps.

[0084] S701. Receive the data information sent by the encryption device.

[0085] Among them, the data information is the first data information or the second data information. The first data information includes the encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly recombining multiple sub - images.

[0086] S702. Determine the target recombined image among the multiple recombined images based on the data information.

[0087] Among them, the phase matrix of the target recombined image is the same as the phase matrix of the original image.

[0088] As a possible implementation, when the data information received by the decryption device is the first data information, the decryption device can determine the spectrogram of the encrypted image and the amplitude matrix corresponding to the spectrogram. Then, based on the preset correspondence, the decryption device determines the phase matrix corresponding to the matrix range where the amplitude matrix of the encrypted image is located, and uses the phase matrix corresponding to the matrix range as the phase matrix of the original image.

[0089] Furthermore, the decryption device traverses and combines multiple sub-images to determine multiple reconstructed images. Then, for each reconstructed image, the decryption device determines the phase matrix of the spectrogram corresponding to the reconstructed image to obtain the phase matrix of each reconstructed image among the multiple reconstructed images. Finally, the decryption device can determine the target reconstructed image among the multiple reconstructed images that is consistent with the phase matrix of the original image.

[0090] In one example, the decryption device can determine the spectrogram f′(x, y) of the encrypted image through the following formula 4.

[0091]

[0092] Where x and y represent the spatial coordinates of the image; u represents the spatial frequency component in the x-axis direction, and v represents the spatial frequency component in the y-axis direction.

[0093] Furthermore, the decryption device determines the amplitude matrix g′(u, v) of the encrypted image through formula 5.

[0094] g′(u, v) = PT[F′(u, v)] = |F′(u, v)| Formula 5 where PT is the phase excision operation, and F′(u, v) is the spectrogram of the encrypted image.

[0095] Since the amplitude matrix of an encrypted image corresponds to the amplitude matrix of an original image, the decryption device can determine the amplitude matrix of the original image corresponding to the amplitude matrix of the encrypted image, and then can determine the phase matrix of the original image.

[0096] For example, encrypted image amplitude matrix g′(u, v) → original image amplitude matrix g(u, v) → original image phase matrix P(u, v).

[0097] After the decryption device determines the phase matrix of the original image, the decryption device traverses and combines the sub-images in the received encrypted image to determine multiple different reconstructed images. The decryption device can determine the phase matrix of each reconstructed image through formula 1 and formula 3. Then, the decryption device compares the phase matrices of the multiple reconstructed images with the phase matrix of the original image respectively. When the phase matrices are consistent, the decryption device determines the target reconstructed image among the multiple reconstructed images.

[0098] As another possible implementation, when the data information received by the decryption device is the second data information, the decryption device can directly traverse and combine multiple sub-images to determine multiple recombined images. Furthermore, for each recombined image, the decryption device determines the phase matrix of the spectrogram corresponding to the recombined image, so as to obtain the phase matrix of each recombined image among the multiple recombined images. Finally, the decryption device determines the target recombined image among the multiple recombined images whose phase matrix is the same as that of the original image.

[0099] Another example is that if the decryption device receives the phase matrix of the original image sent by the encryption device, the decryption device traverses and combines the sub-images in the received encrypted image to determine multiple different recombined images. The decryption device can determine the phase matrix of each recombined image through Formula 1 and Formula 3. Furthermore, the decryption device compares the phase matrices of the multiple recombined images with the phase matrix of the original image respectively. When the phase matrices are the same, the decryption device determines the target recombined image among the multiple recombined images.

[0100] S703. Perform cutting decryption on the target recombined image to determine multiple decrypted image blocks.

[0101] In a possible implementation, the decryption device can cut the target recombined image according to the size of a×b to obtain N image blocks.

[0102] It can be understood that the N image blocks are Figure 6 multiple sub-images in the encrypted image determined by the encryption device in

[0103] Based on the above Figure 7 technical solution, the decryption device in the image determination method provided by the embodiments of the present application can determine the target recombined image among the multiple recombined images whose phase matrix is the same as that of the original image according to the data information sent by the encryption device. Since the target recombined image is generated from multiple sub-images, the decryption device directly performs cutting decryption on the target recombined image, which can effectively improve the efficiency of decrypting the image and has higher security at the same time.

[0104] The embodiments of the present application can divide the image determination device into functional modules or functional units according to the above method examples. For example, each functional module or functional unit can be corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware, or in the form of a software functional module or functional unit. Among them, the division of modules or units in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.

[0105] Such as Figure 8As shown in the figure, it is a schematic structural diagram of an image determination device provided by an embodiment of the present application, which is applied to a decryption device. The device includes: a processing unit 801 and a communication unit 802; the communication unit 802 is configured to receive data information sent by an encryption device; the data information is first data information or second data information, the first data information includes an encrypted image, and the second data information includes an encrypted image, an amplitude matrix of an original image, and a phase matrix of the original image. The encrypted image is determined by randomly recombining a plurality of sub-images; the processing unit 801 is configured to determine a target recombined image among a plurality of recombined images based on the data information; the plurality of recombined images are determined by traversing and combining a plurality of sub-images; the phase matrix of the target recombined image is consistent with the phase matrix of the original image; the processing unit 801 is further configured to perform cutting and decryption on the target recombined image to determine a plurality of decrypted image blocks.

[0106] In combination with the third aspect, in a possible implementation manner, when the data information is the first data information, the processing unit 801 is specifically configured to: determine the phase matrix of the original image; traverse and combine the plurality of sub-images to determine a plurality of recombined images; for each recombined image, determine the phase matrix of the spectrogram corresponding to the recombined image to obtain the phase matrix of each recombined image among the plurality of recombined images; determine the target recombined image among the plurality of recombined images whose phase matrix is consistent with the phase matrix of the original image.

[0107] In combination with the third aspect, in a possible implementation manner, the processing unit 801 is further configured to: determine the spectrogram of the encrypted image and the amplitude matrix corresponding to the spectrogram; the amplitude matrix of one encrypted image corresponds to the amplitude matrix of one original image; based on a preset correspondence relationship, determine the phase matrix corresponding to the matrix range where the amplitude matrix of the encrypted image is located, and use the phase matrix corresponding to the matrix range as the phase matrix of the original image.

[0108] In combination with the third aspect, in a possible implementation manner, when the data information is the second data information, the processing unit 801 is specifically configured to traverse and combine the plurality of sub-images to determine a plurality of recombined images; for each recombined image, determine the phase matrix of the spectrogram corresponding to the recombined image to obtain the phase matrix of each recombined image among the plurality of recombined images; determine the target recombined image among the plurality of recombined images whose phase matrix is consistent with the phase matrix of the original image.

[0109] Such as Figure 9As shown in the figure, it is a schematic structural diagram of an image determination device provided by an embodiment of the present application, which is applied to an encryption device. The device includes: a processing unit 901 and a communication unit 902; the processing unit 901 is used to determine the spectrogram of the original image; the original image is determined by a plurality of image blocks in a preset order; the processing unit 901 is further used to determine the amplitude matrix and phase matrix of the original image based on the spectrogram; the communication unit 902 is further used to send data information to the decryption device; the data information is the first data information or the second data information, the first data information includes the encrypted image, and the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image. The encrypted image is determined by randomly recombining a plurality of sub-images.

[0110] In combination with the fourth aspect, in a possible implementation manner, the processing unit 901 is further used to: cut the original image to determine a plurality of sub-images; the plurality of sub-images have the same size; and determine the encrypted image based on the plurality of sub-images.

[0111] When implemented by hardware, the communication unit 802 or the communication unit 902 in the embodiment of the present application may be integrated on the communication interface, and the processing unit 801 or the processing unit 901 may be integrated on the processor. The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An image determination method, characterized in that: Applied to a decryption device, the method comprises: receiving data information sent by an encryption device; the data information is first data information or second data information, the first data information includes an encrypted image, the second data information includes the encrypted image, an amplitude matrix of an original image, and a phase matrix of the original image, and the encrypted image is determined by randomly recombining multiple sub-images; Based on the data information, determining a target reconstructed image among a plurality of reconstructed images; the plurality of reconstructed images are determined by traversing and combining the plurality of sub-images; the phase matrix of the target reconstructed image is consistent with the phase matrix of the original image; The target reconstructed image is cut and decrypted to determine a plurality of decrypted image blocks.

2. The method according to claim 1, characterized in that In a case where the data information is the first data information, determining a target reconstructed image among a plurality of reconstructed images based on the data information includes: Determining a phase matrix of the original image; Traversing and combining the multiple sub-images to determine multiple recombined images; For each recombined image, determining a phase matrix of a frequency spectrum corresponding to the recombined image to obtain a phase matrix of each recombined image in the plurality of recombined images; A target reconstructed image whose phase matrix is ​​consistent with the original image is determined among the multiple reconstructed images.

3. The method according to claim 2, characterized in that The determining the phase matrix of the original image comprises: Determine a frequency spectrum of the encrypted image and an amplitude matrix corresponding to the frequency spectrum; one amplitude matrix of the encrypted image corresponds to one amplitude matrix of the original image; Based on the preset corresponding relationship, the phase matrix corresponding to the matrix range in which the amplitude matrix of the encrypted image is located is determined, and the phase matrix corresponding to the matrix range is used as the phase matrix of the original image.

4. The method according to claim 1, characterized in that In a case where the data information is the second data information, determining a target reconstructed image among a plurality of reconstructed images based on the data information includes: Traversing and combining the multiple sub-images to determine multiple recombined images; For each recombined image, determining a phase matrix of a frequency spectrum corresponding to the recombined image to obtain a phase matrix of each recombined image in the plurality of recombined images; A target reconstructed image whose phase matrix is ​​consistent with the original image is determined among the multiple reconstructed images.

5. An image determination method, characterized in that: Applied to an encryption device, the method comprises: Determine a frequency spectrum of an original image; the original image is determined by a plurality of image blocks in a preset order; Based on the spectrum diagram, determining an amplitude matrix and a phase matrix of the original image; Sending data information to a decryption device; the data information is first data information or second data information, the first data information includes an encrypted image, the second data information includes the encrypted image, an amplitude matrix of an original image, and a phase matrix of the original image, and the encrypted image is determined by randomly recombining multiple sub-images.

6. The method according to claim 5, characterized in that Before sending the encrypted image to the decryption device, the method further comprises: Cutting the original image to determine a plurality of sub-images; the plurality of sub-images have the same size; Based on the plurality of sub-images, the encrypted image is determined.

7. An image determination device, characterized in that: Applied to a decryption device, the device comprises: a processing unit and a communication unit; The communication unit is used to receive data information sent by the encryption device; the data information is first data information or second data information, the first data information includes an encrypted image, the second data information includes the encrypted image, an amplitude matrix of an original image, and a phase matrix of the original image, and the encrypted image is determined by randomly recombining multiple sub-images; The processing unit is used to determine a target reconstructed image among a plurality of reconstructed images based on the data information; the plurality of reconstructed images are determined by traversing and combining the plurality of sub-images; the phase matrix of the target reconstructed image is consistent with the phase matrix of the original image; The processing unit is further used to cut and decrypt the target reconstructed image to determine a plurality of decrypted image blocks.

8. The device according to claim 7, characterized in that When the data information is the first data information, the processing unit is specifically configured to: Determining a phase matrix of the original image; Traversing and combining the multiple sub-images to determine multiple recombined images; For each recombined image, determining a phase matrix of a frequency spectrum corresponding to the recombined image to obtain a phase matrix of each recombined image in the plurality of recombined images; A target reconstructed image whose phase matrix is ​​consistent with the original image is determined among the multiple reconstructed images.

9. The device according to claim 8, characterized in that The processing unit is further used for: Determine a frequency spectrum of the encrypted image and an amplitude matrix corresponding to the frequency spectrum; one amplitude matrix of the encrypted image corresponds to one amplitude matrix of the original image; Based on the preset corresponding relationship, the phase matrix corresponding to the matrix range in which the amplitude matrix of the encrypted image is located is determined, and the phase matrix corresponding to the matrix range is used as the phase matrix of the original image.

10. The device according to claim 7, characterized in that In the case where the data information is the second data information, the processing unit is specifically configured to Traversing and combining the multiple sub-images to determine multiple recombined images; For each recombined image, determining a phase matrix of a frequency spectrum corresponding to the recombined image to obtain a phase matrix of each recombined image in the plurality of recombined images; A target reconstructed image whose phase matrix is ​​consistent with the original image is determined among the multiple reconstructed images.

11. An image determination device, characterized in that: Applied to an encryption device, the device comprises: a processing unit and a communication unit; The processing unit is used to determine a frequency spectrum of an original image; the original image is determined by a plurality of image blocks in a preset order; The processing unit is further used to determine the amplitude matrix and the phase matrix of the original image based on the spectrum diagram; The communication unit is also used to send data information to the decryption device; the data information is the first data information or the second data information, the first data information includes the encrypted image, the second data information includes the encrypted image, the amplitude matrix of the original image, and the phase matrix of the original image, and the encrypted image is determined by randomly recombining multiple sub-images.

12. The device according to claim 11, characterized in that The processing unit is further used for: Cutting the original image to determine a plurality of sub-images; the plurality of sub-images have the same size; Based on the plurality of sub-images, the encrypted image is determined.

13. An image determination device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the image determination method as described in any one of claims 1-6.

14. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer executes the image determination method described in any one of claims 1 to 6.