Eye fundus image encryption method and device, decryption method, storage medium and electronic equipment

By embedding effective information in the fundus image and adjusting the location of the image area, an encrypted image carrying effective information is solved, and an efficient encryption and decryption process is realized.

CN119996582APending Publication Date: 2025-05-13JIANGXI YIWEI ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411919319.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Existing fundus image encryption methods may lead to loss of effective information, affecting the accuracy of diagnosis and research.

Method used

By acquiring the fundus image and its corresponding valid information, adjusting the target area position in the image using the encryption key, generating an out-of-order image, and embedding the valid information therein to form an encrypted image carrying the valid information.

Benefits of technology

While ensuring encryption effects, avoid effective information loss, ensure traceability and consistency of images, and support subsequent analysis and diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996582A_ABST
    Figure CN119996582A_ABST
Patent Text Reader

Abstract

The invention provides an eye fundus image encryption method and device, a decryption method, a storage medium and electronic equipment, and relates to the technical field of image processing. The encryption method comprises the following steps: acquiring an eye fundus image and effective information corresponding to the eye fundus image, wherein the effective information comprises at least one of patient information, owner information and analysis result information corresponding to the eye fundus image; based on the encryption key, adjusting the position of at least part of the region in the first image to obtain an out-of-order image corresponding to the first image, the first image including an image located in the target region in the fundus image, and the encryption key including a transformation relationship between the image located in the target region and the out-of-order image; based on the effective information and the out-of-order image, the encrypted image carrying the effective information and corresponding to the eye fundus image is determined, the problem of effective information loss is avoided while the encryption effect is ensured, and subsequent analysis for the eye fundus image is not affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a fundus image encryption method and device, a decryption method, a storage medium, and an electronic device. Background Art

[0002] Fundus images are usually collected by fundus cameras, including fundus structures such as the optic disc, blood vessels, retinal tissue, and choroid. Fundus images can be used to understand the morphology of fundus structures and changes in fundus characteristics, and have become an important auxiliary tool for clinical disease diagnosis and treatment. With the development of the big data era, more and more studies on eye diseases and treatment effects are being conducted using a large number of fundus images.

[0003] Since fundus images are usually collected from patients seeking medical treatment, which involves the privacy of the collected objects, it is necessary to encrypt the fundus images. The current encryption method may cause the loss of effective information of the fundus images. Therefore, an encryption method for fundus images is urgently needed. Summary of the invention

[0004] In view of this, the present disclosure provides a fundus image encryption method and device, a storage medium and an electronic device.

[0005] In a first aspect, a fundus image encryption method is provided, comprising: obtaining a fundus image and valid information corresponding to the fundus image, the valid information comprising at least one of patient information, owner information, and analysis result information corresponding to the fundus image; based on an encryption key, adjusting the position of at least a portion of an area in a first image to obtain a scrambled image corresponding to the first image, the first image comprising an image located in a target area of ​​the fundus image, the encryption key comprising a transformation relationship between the image located in the target area and the scrambled image; based on the valid information and the scrambled image, determining an encrypted image carrying valid information corresponding to the fundus image.

[0006] In some embodiments, based on valid information and a disordered image, an encrypted image carrying valid information corresponding to the fundus image is determined, including: using a steganographic method to write valid information into the disordered image to obtain a disordered image carrying valid information; based on a transformation relationship between an image located in a target area and the disordered image, restoring the position of at least a partial area in the disordered image carrying valid information to obtain an encrypted image carrying valid information.

[0007] In some embodiments, a steganographic method is used to write valid information into a scrambled image to obtain a scrambled image carrying valid information, including: format conversion of at least part of the valid information to obtain graphic code information corresponding to at least part of the valid information; and a steganographic method is used to write the graphic code information into the scrambled image to obtain a scrambled image carrying valid information.

[0008] In some embodiments, based on an encryption key, the position of at least a portion of an area in a first image is adjusted to obtain a scrambled image corresponding to the first image, including: dividing the first image into multiple target sub-areas; based on the encryption key, adjusting the relative positions between the multiple target sub-areas to obtain a scrambled image.

[0009] In some embodiments, adjacent target sub-regions partially overlap. Based on the encryption key, adjusting the relative positions between the multiple target sub-regions to obtain a scrambled image includes: re-dividing the target sub-region to obtain non-overlapping regions included in the target sub-region; based on the encryption key, adjusting the relative positions between the non-overlapping regions included in the multiple target sub-regions to obtain a scrambled image.

[0010] In some embodiments, the shape of the target sub-region includes at least one of a rectangle, a circle, and a triangle.

[0011] In a second aspect, a fundus image decryption method is provided, comprising: obtaining an encrypted image carrying valid information corresponding to the fundus image, and a decryption key corresponding to the encrypted image carrying valid information, the decryption key comprising a transformation relationship between an image located in a target area in the encrypted image carrying valid information and a scrambled image; based on the decryption key, adjusting a position of at least a portion of an area in a second image to obtain a scrambled image corresponding to the encrypted image carrying valid information, the second image comprising an image located in the target area in the encrypted image carrying valid information; based on the scrambled image, determining valid information corresponding to the fundus image, the valid information comprising at least one of patient information, owner information, and analysis result information corresponding to the fundus image.

[0012] In a third aspect, a fundus image encryption device is provided, including: an acquisition module, configured to acquire a fundus image and valid information corresponding to the fundus image, the valid information including at least one of patient information, owner information, and analysis result information corresponding to the fundus image; an adjustment module, configured to adjust the position of at least a portion of an area in a first image based on an encryption key to obtain a scrambled image corresponding to the first image, the first image including an image located in a target area of ​​the fundus image, the encryption key including a transformation relationship between the image located in the target area and the scrambled image; a determination module, configured to determine an encrypted image carrying valid information corresponding to the fundus image based on the valid information and the scrambled image.

[0013] According to a fourth aspect, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method provided in the first aspect or the second aspect by executing the executable instructions.

[0014] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method provided in the first aspect or the second aspect is implemented.

[0015] The fundus image encryption method provided by the present disclosure first determines the target area in the fundus image, and in the subsequent processing process, embeds the effective information as a whole into the target area, and only encrypts the first image in the target area. In the process of decrypting the encrypted image and in the subsequent research using the fundus image, complete effective information can be obtained through the image in the target area, while ensuring the encryption effect, no effective information loss will be caused. The method disclosed by the present disclosure can ensure image traceability and image consistency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Shown is a schematic diagram of the system architecture of a fundus image encryption method provided by an embodiment of the present disclosure.

[0017] Figure 2 The figure is a flow chart of a fundus image encryption method provided in one embodiment of the present disclosure.

[0018] Figure 3 Shown is a schematic diagram of a fundus image provided by an embodiment of the present disclosure.

[0019] Figure 4 The figure is a flowchart of the steps of determining an encrypted image carrying valid information corresponding to a fundus image based on valid information and a disordered image provided by an embodiment of the present disclosure.

[0020] Figure 5 The figure is a flowchart of the steps of using a steganographic method to write valid information into a disordered image to obtain a disordered image carrying valid information, provided by an embodiment of the present disclosure.

[0021] Figure 6 The figure is a flow chart of the steps of adjusting the position of at least a part of the first image based on the encryption key to obtain a disordered image corresponding to the first image provided by an embodiment of the present disclosure.

[0022] Figure 7 Shown is a schematic diagram of dividing a target sub-area provided by an embodiment of the present disclosure.

[0023] Figure 8 Shown is a schematic diagram of dividing a target sub-area provided by another embodiment of the present disclosure.

[0024] Fig. 9 Shown is a schematic diagram of a disordered image provided by an embodiment of the present disclosure.

[0025] Fig.10The figure is a flowchart of the steps of adjusting the relative positions between multiple target sub-regions based on an encryption key to obtain a disordered image provided by an embodiment of the present disclosure.

[0026] Fig.11 Shown is a schematic diagram of dividing a target sub-area provided by yet another embodiment of the present disclosure.

[0027] Fig.12 The figure is a flow chart of a fundus image decryption method provided in one embodiment of the present disclosure.

[0028] Fig.13 Shown is a schematic diagram of the structure of a fundus image encryption device provided in one embodiment of the present disclosure.

[0029] Fig.14 Shown is a schematic diagram of the structure of a fundus image decryption device provided by an embodiment of the present disclosure.

[0030] Fig.15 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] Fundus images are very important for understanding the morphological changes of fundus features and the diagnosis and treatment of diseases, and have become an important auxiliary tool for clinical disease diagnosis and treatment. With the development of the big data era, more and more research on eye diseases and treatment effects has been conducted through a large number of fundus images.

[0033] Fundus images usually carry corresponding valid information, which includes patient information corresponding to the fundus image, such as the patient's gender, age, disease, etc. Based on this valid information and combined with the fundus feature morphology in the fundus image, it is possible to study the changes in fundus feature morphology corresponding to eye diseases, so as to assist researchers in identifying and monitoring a variety of eye diseases and conducting related research.

[0034] Typically, the fundus image includes a fundus area and a background area surrounding the fundus area. Effective information is usually written directly in the fundus image in the form of text or pictures, covering part of the fundus area and the background area. In the related art, the fundus image is encrypted, usually the entire image. However, when the fundus image is actually used, only the region of interest in the fundus image is extracted (usually, the region of interest is the fundus area in the fundus image). In this process, effective information loss will be caused. In addition, the effective information may also block the image in the fundus area, thereby introducing some errors.

[0035] In view of the above technical problems, the present disclosure provides a fundus image encryption method, including: obtaining a fundus image and valid information corresponding to the fundus image, the valid information including at least one of patient information, owner information, and analysis result information corresponding to the fundus image; based on an encryption key, adjusting the position of at least a portion of an area in a first image to obtain a scrambled image corresponding to the first image, the first image including an image located in a target area in the fundus image, the encryption key including a transformation relationship between the image located in the target area and the scrambled image; based on the valid information and the scrambled image, determining an encrypted image carrying valid information corresponding to the fundus image, while ensuring the encryption effect, avoiding the problem of loss of valid information, and not affecting the subsequent analysis and diagnosis quality of the fundus image.

[0036] Figure 1 FIG. 1 is a schematic diagram of the system architecture of the fundus image encryption method provided by an embodiment of the present disclosure. Figure 1 As shown, the system architecture includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network, such as a wired or wireless network connection.

[0037] In actual application, the user uses the terminal 110 to send the fundus image to be encrypted and the valid information corresponding to the fundus image to the server 120. After receiving, the server 120 can execute the fundus image encryption method mentioned in the embodiment of the present disclosure to encrypt the fundus image to be encrypted, and send the encrypted image carrying the valid information to the terminal 110.

[0038] The terminal 110 may include a mobile phone, a tablet computer, a notebook computer, or a personal computer, etc. A client may also be provided on the terminal 110, and the client may be an application client or a browser client, etc.

[0039] The server 120 may be a single server, or a server cluster or cloud server composed of multiple servers. For example, the server may be an intercommunication server or a background server between multiple heterogeneous systems, or an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server for basic cloud computing services such as big data and artificial intelligence platforms, etc. The server 120 may also be a terminal, which may include a tablet computer, a laptop computer, or a personal computer, etc.

[0040] Those skilled in the art will know that Figure 1 The number of terminals and servers shown in the figure is only for illustration. Any number of terminals and servers may be provided according to actual needs, and the present disclosure does not impose any limitation on this.

[0041] Combine the following Figures 2 to 10 The fundus image encryption method provided by the embodiment of the present disclosure is illustrated by way of example.

[0042] Figure 2 FIG. 2 is a flow chart of a method for encrypting fundus images provided by an embodiment of the present disclosure. Figure 2 As shown, the fundus image encryption method provided in the embodiment of the present disclosure includes the following steps.

[0043] S210, acquiring a fundus image and valid information corresponding to the fundus image.

[0044] The fundus image is a fundus image to be encrypted. For example, the fundus image may be a fundus image of a patient, a fundus image of a volunteer for a disease research, or a fundus image of a normal person. Figure 3 FIG. 1 is a schematic diagram of a fundus image provided by an embodiment of the present disclosure. Figure 3 As shown, the fundus image includes a fundus area 310 and a background area 320 surrounding the fundus area 310. The fundus area 310 is an area in the fundus image where the fundus structure is visible. The fundus area 310 is generally located at the center of the fundus image, and the fundus area 310 is generally a circular area. The background area 320 is the background part of the fundus image except the fundus area 310, and is usually black.

[0045] The valid information corresponding to the fundus image includes at least one of the patient information, owner information, and analysis result information corresponding to the fundus image. Among them, patient information refers to the relevant information of the patient (or, it can also be a volunteer, a normal person, etc.) who provides the fundus image, for example, it may include the patient's name, age, medical history, eye axis, refractive power, etc. Owner information refers to the information of the copyright owner of the fundus image. Analysis result information refers to the analysis result obtained by performing medical analysis on the fundus image. The application of the method disclosed in the present invention can ensure that the fundus image saves multi-dimensional data. If only the single-dimensional data of the image is of limited significance, the combination of the image and the patient information makes the multi-dimensional data more meaningful.

[0046] S220, based on the encryption key, adjust the position of at least a partial area in the first image to obtain a random image corresponding to the first image.

[0047] The first image includes an image located in a target area in the fundus image. The target area is a region of interest (ROI) in the fundus image. In this embodiment, the target area includes the fundus area 310, and the first image is a partial image located within the fundus area 310.

[0048] The encryption key includes a transformation relationship between an image located in a target area and a disordered image. The process of encrypting the fundus image based on the encryption key specifically includes transforming a first image located in a target area in the fundus image based on the transformation relationship of the encryption key to obtain a disordered image corresponding to the first image.

[0049] Exemplarily, the transformation relationship between the image located in the target area and the disordered image may include selecting pixels at multiple specific positions from the image located in the target area, and exchanging the positions of the multiple pixels with each other according to a specific order to obtain the disordered image. The multiple specific positions and the specific order may be determined according to the encryption key.

[0050] Exemplarily, the transformation relationship between the image in the target area and the disordered image may also include dividing the image in the target area into blocks, and exchanging the positions of multiple image blocks according to a specific order to obtain the disordered image. The image division method and the specific order may be determined according to the encryption key.

[0051] The encryption key may be generated randomly or by a specific algorithm, and the present disclosure does not impose any specific limitation on this.

[0052] S230, based on the valid information and the disordered image, determining an encrypted image carrying valid information corresponding to the fundus image.

[0053] The effective information is embedded in the disordered image to obtain the disordered image carrying the effective information. Then the position of at least a part of the area in the disordered image is restored to obtain the encrypted image carrying the effective information corresponding to the fundus image.

[0054] In the disclosed embodiment, the target area in the fundus image is first determined, and in the subsequent processing, the effective information is embedded in the target area as a whole, and only the first image in the target area is encrypted. In the process of decrypting the encrypted image and in the subsequent research using the fundus image, complete effective information can be obtained through the image in the target area, while ensuring the encryption effect, no effective information loss occurs, and the traceability and consistency of the image are guaranteed.

[0055] The specific implementation methods of each step in the fundus image encryption method are described below.

[0056] Figure 4 FIG. 1 is a flow chart of the steps of determining an encrypted image carrying valid information corresponding to a fundus image based on valid information and a disordered image according to an embodiment of the present disclosure. Figure 4 As shown, the step of determining an encrypted image carrying valid information corresponding to a fundus image based on valid information and a disordered image provided in an embodiment of the present disclosure includes the following steps.

[0057] S231, using a steganographic method to write valid information into the disordered image, thereby obtaining a disordered image carrying valid information.

[0058] Among them, the steganographic method can add the valid information that needs to be hidden into the disordered image. Unauthorized parties cannot perceive the image changes and cannot read the hidden valid information.

[0059] Exemplarily, the steganographic method may include a discrete wavelet transform (DWT) image steganographic method, an image steganographic method based on a discrete cosine transform (DCT), a least significant bit (LSB) image steganographic method, etc., and the present disclosure does not make any specific limitations on this.

[0060] Based on the steganography method, valid information is written into the disordered image to obtain a disordered image carrying valid information.

[0061] S232, based on the transformation relationship between the image located in the target area and the disordered image, restore the position of at least a part of the area in the disordered image carrying valid information to obtain an encrypted image carrying valid information.

[0062] Then, according to the transformation relationship between the image located in the target area and the disordered image of the above-mentioned encryption key, the position of at least part of the area in the disordered image carrying valid information is restored to the original position of at least part of the area in the fundus image, thereby obtaining an encrypted image carrying valid information.

[0063] In the disclosed embodiment, the effective information is embedded into the disordered image by the steganographic method, and the effective information can be safely hidden without attracting attention. Moreover, the steganographic method can prevent the effective information from destroying the original visual features of the target area in the fundus image, and maintain the integrity and accuracy of the fundus image. Moreover, the steganographic method can avoid direct encryption traces, so as to avoid the encryption traces from exposing the transformation relationship between the image of the target area and the disordered image, and avoid the leakage of the encryption key.

[0064] Figure 5 FIG. 1 is a flow chart of steps for using a steganographic method to write valid information into a disordered image to obtain a disordered image carrying valid information, provided by an embodiment of the present disclosure. Figure 5 As shown, the steps of using a steganographic method to write valid information into a disordered image and obtaining a disordered image carrying valid information provided in an embodiment of the present disclosure include the following steps.

[0065] S2311, convert the format of at least part of the valid information to obtain graphic code information corresponding to at least part of the valid information.

[0066] As described above, the valid information may include patient information, owner information, analysis result information, etc. corresponding to the fundus image. The above valid information may include multiple formats. For example, patient information is usually in text format; owner information may be the name of the copyright owner, or the logo of the copyright owner, etc., so the owner information may be in text format or image format; analysis result information may be in text format or in the form of a graphic code such as a QR code. By scanning the graphic code, the analysis result information corresponding to the fundus image can be obtained.

[0067] The at least part of the valid information is converted into a format to obtain the graphic code information corresponding to the at least part of the valid information. The graphic code information may include a barcode such as a QR code, and the at least part of the valid information can be obtained by scanning the barcode in the graphic code information.

[0068] S2312, using a steganographic method to write the graphic code information into the random image, to obtain a random image carrying valid information.

[0069] As a possible implementation method, valid information in text format can be converted into graphic code information; and the graphic code information and valid information in non-text format can be written into the random image using a steganographic method to obtain a random image carrying valid information.

[0070] Alternatively, as a possible implementation method, all valid information may be converted into graphic code information; and the graphic code information may be written into the disordered image using a steganographic method to obtain a disordered image carrying valid information.

[0071] In the disclosed embodiment, at least part of the valid information is converted into a graphic code format through format conversion. The graphic code can store a large amount of information in a relatively small area, so that more information can be written in a limited target area, thereby increasing the information capacity of the target area. At the same time, the graphic code information has better confidentiality than the valid information in the original format; and the graphic code has a certain degree of error correction function, so that when the encrypted image encounters interference during the information transmission process or the decryption process, the valid information it carries can be protected to a certain extent.

[0072] It is understandable that in some embodiments, the original valid information may be directly written into the disordered image by a steganographic method.

[0073] The above describes a specific implementation method for generating an encrypted image based on valid information and a random image. The following describes a specific implementation method for generating a random image.

[0074] Figure 6 FIG. 1 is a flow chart of the steps of adjusting the position of at least a portion of a first image based on an encryption key to obtain a random image corresponding to the first image according to an embodiment of the present disclosure. Figure 6 As shown, the step of adjusting the position of at least a portion of the first image based on the encryption key to obtain a random image corresponding to the first image provided in the embodiment of the present disclosure includes the following steps.

[0075] S221, dividing the first image into a plurality of target sub-regions.

[0076] Based on the encryption key, a division rule of the first image is determined. Exemplarily, the division rule may be to divide the first image into a plurality of image blocks according to a preset shape, and a corresponding area of ​​each image block is a target sub-area.

[0077] Optionally, the shape of the target sub-region includes at least one of a rectangle, a circle, and a triangle. That is, the shapes of the multiple target sub-regions may be the same or may not be exactly the same. Exemplarily, the shapes of the multiple target sub-regions of the first image may include rectangles, circles, and triangles at the same time; or, the shapes of the multiple target sub-regions of the first image include only one type of graphic, but the sizes of the multiple target sub-regions are inconsistent; or, only part of the area in the first image may be divided, so that the multiple target sub-regions obtained are concentrated in a specific area of ​​the first image, rather than the entire area of ​​the first image. The size, number, and position of the target sub-regions can be set according to actual conditions, and the present disclosure does not impose specific restrictions on this.

[0078] Figure 7 FIG. 1 is a schematic diagram showing the division of target sub-areas provided by an embodiment of the present disclosure. Figure 7As shown, in this embodiment, the first image is divided into grids, and each grid is a target sub-region. In this case, the edge of the first image cannot form a complete rectangle, and the incomplete rectangular region can be regarded as the target sub-region; or, only the complete rectangle in the middle of the first image can be regarded as the target sub-region, and in the subsequent position transformation process, only the position between the complete rectangles is adjusted.

[0079] Figure 8 FIG. 2 is a schematic diagram showing the division of target sub-areas provided by another embodiment of the present disclosure. Figure 8 As shown, in this embodiment, the first image is divided into a plurality of circles, and each circle is a target sub-region.

[0080] Understandably, Figure 7 , Figure 8 The division method of the target sub-regions shown in the figure is only illustrative and should not be construed as a limitation to the present disclosure.

[0081] S222, based on the encryption key, adjusting the relative positions between the multiple target sub-regions to obtain a random image.

[0082] The encryption key includes the transformation relationship between the image in the target area and the scrambled image. In this embodiment, the encryption key records the position of the target sub-area in the first image, and the position of the image in the target sub-area in the scrambled image after the position adjustment is completed, and establishes the corresponding relationship between the specific position in the first image and the specific position in the scrambled image.

[0083] After obtaining multiple target sub-regions, the relative positions between the multiple target sub-regions can be adjusted according to the corresponding relationship in the encryption key, so that the relative positions between the adjusted multiple target sub-regions conform to the corresponding relationship between the positions recorded in the encryption key, thereby obtaining a disordered image.

[0084] Continue to refer Figure 7 , the six target sub-areas in the first image are recorded as area A, area B, area C, area D, area E, and area F. The transformation relationships in the encryption key corresponding to the first image include: A→C, C→B, B→D, D→A, E→E, and F→F. That is, the image in area A is moved to the position of area C, the image in area C is moved to the position of area B, the image in area B is moved to the position of area D, and the image in area D is moved to the position of area A. The positions of the images in areas E and F remain unchanged, and the following is obtained: Fig. 9 The out-of-order images are shown.

[0085] It can be understood that the above-mentioned transformation relationship of the encryption key is only exemplary. In practical applications, the transformation relationship of the encryption key can be expressed in other forms, such as mathematical functions, sequences, codes, flow charts, etc., and the present disclosure does not make specific limitations on this.

[0086] In the disclosed embodiment, an implementation method of generating a disordered image is introduced. By writing valid information into the disordered image and restoring the disordered image to obtain an encrypted image, it is difficult to restore the encrypted image to the disordered image without a decryption key, so the valid information written into the disordered image can be further protected. The security of the encrypted image is improved. In addition, the size, number, and position of the target sub-area can be flexibly set, which improves the flexibility of the encryption method to adapt to different security needs and performance requirements.

[0087] Keep watching Figure 8 It can be observed that if the circular target sub-region wants to completely cover the first image, there will be areas where the target sub-regions partially overlap with each other, that is, for adjacent target sub-regions, the images of the two regions partially overlap. In the disordered images generated based on such target sub-regions, there will be a problem of overlapping of different images, resulting in information loss or confusion. To avoid this problem, multiple circular target sub-regions can be arranged tangent to each other. Alternatively, the target sub-regions can also be processed by the methods in the following embodiments.

[0088] Fig.10 FIG. 1 is a flow chart of the steps of adjusting the relative positions between multiple target sub-regions based on an encryption key to obtain a disordered image according to an embodiment of the present disclosure. Fig.10 As shown, the step of adjusting the relative positions between multiple target sub-regions based on the encryption key to obtain a disordered image provided in the embodiment of the present disclosure includes the following steps.

[0089] S2221, re-divide the target sub-region to obtain non-overlapping regions included in the target sub-region.

[0090] Specifically, adjacent target sub-regions partially overlap each other. The target sub-region including the overlapping region is subdivided again to obtain a non-overlapping region in the target sub-region. In the target sub-region, the overlapping region and the non-overlapping region do not overlap, but the boundaries of the two regions may be tangent.

[0091] Fig.11 FIG. 2 is a schematic diagram showing the division of target sub-areas provided by another embodiment of the present disclosure. Fig.11 As shown, the multiple target sub-regions include adjacent G region and H region, and the overlapping region of G region and H region is marked as I (indicated by shading).

[0092] The G region is subdivided to obtain a non-overlapping region (indicated by a dotted line) included in the G region, which is denoted as J. The J region does not overlap with the I region. The H region is subdivided based on the same method to obtain a non-overlapping region (indicated by a dotted line) included in the H region, which is denoted as K.

[0093] It can be seen that the J region and the K region obtained based on the redivision do not overlap.

[0094] S2222: Based on the encryption key, adjust the relative positions of non-overlapping areas included in the multiple target sub-areas to obtain a random image.

[0095] After obtaining the non-overlapping area included in each target sub-region, the relative positions between the non-overlapping areas included in the multiple target sub-regions are adjusted based on the encryption key to obtain a scrambled image. This step is similar to the step of adjusting the relative positions between the multiple target sub-regions described in the above embodiment. For details, please refer to the above embodiment and will not be repeated here.

[0096] In the disclosed embodiment, a disordered image is obtained by redividing the target sub-region including the overlapping region and adjusting the relative positions between multiple non-overlapping regions. The problem of information loss caused by the overlap of the target sub-regions is avoided. Moreover, compared with the above-mentioned method of avoiding the generation of overlapping regions by adjusting the overall layout of the target sub-regions, the method described in this embodiment is applicable to target sub-regions of different shapes and is more universal.

[0097] Combination of the above Figures 1 to 11 The embodiment of the fundus image encryption method disclosed in the present invention is described in detail. Accordingly, the embodiment of the present invention provides a fundus image decryption method. Fig.12 As shown, the fundus image decryption method provided in the embodiment of the present disclosure includes the following steps.

[0098] S1210, obtaining an encrypted image carrying valid information corresponding to the fundus image, and a decryption key corresponding to the encrypted image carrying valid information.

[0099] The encrypted image carrying valid information corresponding to the fundus image is obtained by encrypting the fundus image based on the fundus image encryption method provided in any embodiment of the present disclosure.

[0100] The decryption key includes the transformation relationship between the image located in the target area and the disordered image in the encrypted image carrying valid information. The transformation relationship should be consistent with the transformation relationship between the image located in the target area and the disordered image in the encryption key. The above encryption key is the encryption key used in the fundus image encryption process.

[0101] S1220, based on the decryption key, adjust the position of at least a partial area in the second image to obtain a scrambled image corresponding to the encrypted image carrying valid information.

[0102] The second image includes an image located in a target area in the encrypted image carrying valid information. The target area should be consistent with the target area of ​​the fundus image.

[0103] Based on the decryption key, the position of at least part of the second image is adjusted to obtain a scrambled image corresponding to the encrypted image carrying valid information. This step is similar to the step of obtaining a scrambled image corresponding to the first image described in the embodiment of the fundus image encryption method. For details, please refer to the above embodiment and will not be repeated here.

[0104] S1230, determining valid information corresponding to the fundus image based on the disordered image.

[0105] The scrambled image carries valid information of the fundus image. During the encryption process, the valid information in the scrambled image moves synchronously with the displacement of at least part of the area in the scrambled image during the position adjustment process, making the valid information unreadable in the encrypted image. After the encrypted image is restored to the scrambled image based on the decryption key, the scrambled valid information fragments carried in the encrypted image are restored to their original positions in the scrambled image. At this time, the valid information can be extracted by corresponding technical means.

[0106] The effective information includes at least one of the patient information, owner information, and analysis result information corresponding to the fundus image.

[0107] In the embodiment of the present disclosure, a fundus image decryption method is introduced, which corresponds to the above-mentioned fundus image encryption method. During the decryption process, the integrity of the image in the target area can be guaranteed without causing loss of effective information.

[0108] Combination of the above Figures 1 to 12 The method embodiment of the present disclosure is described in detail. Fig.13 , Fig.14 The device embodiment of the present disclosure is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0109] Fig.13 FIG. 1 is a schematic diagram of the structure of a fundus image encryption device provided by an embodiment of the present disclosure. Fig.13 As shown, the fundus image encryption device 1300 of the embodiment of the present disclosure includes: an acquisition module 1310 , an adjustment module 1320 and a determination module 1330 .

[0110] Specifically, the acquisition module 1310 is configured to acquire a fundus image and valid information corresponding to the fundus image, wherein the valid information includes at least one of patient information, owner information, and analysis result information corresponding to the fundus image. The adjustment module 1320 is configured to adjust the position of at least a portion of the first image based on an encryption key to obtain a scrambled image corresponding to the first image, wherein the first image includes an image located in a target area of ​​the fundus image, and the encryption key includes a transformation relationship between the image located in the target area and the scrambled image. The determination module 1330 is configured to determine an encrypted image carrying valid information corresponding to the fundus image based on the valid information and the scrambled image.

[0111] Fig.14 FIG. 1 is a schematic diagram of the structure of a fundus image decryption device provided by an embodiment of the present disclosure. Fig.14 As shown, the fundus image decryption device 1400 of the embodiment of the present disclosure includes: an acquisition module 1410 , an adjustment module 1420 and a determination module 1430 .

[0112] Specifically, the acquisition module 1410 is configured to acquire an encrypted image carrying valid information corresponding to the fundus image, and a decryption key corresponding to the encrypted image carrying valid information, wherein the decryption key includes a transformation relationship between an image located in a target area in the encrypted image carrying valid information and a scrambled image. The adjustment module 1420 is configured to adjust the position of at least a portion of an area in the second image based on the decryption key to obtain a scrambled image corresponding to the encrypted image carrying valid information, wherein the second image includes an image located in a target area in the encrypted image carrying valid information. The determination module 1430 is configured to determine valid information corresponding to the fundus image based on the scrambled image, wherein the valid information includes at least one of patient information, owner information, and analysis result information corresponding to the fundus image.

[0113] Below, reference Fig.15 An electronic device according to an embodiment of the present disclosure is described. Fig.15 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. Fig.15 As shown, electronic device 1500 includes one or more processors 1510 and memory 1520 .

[0114] The processor 1510 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1500 to perform desired functions.

[0115] The memory 1520 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 1510 may execute the program instructions to implement the fundus image encryption method, fundus image decryption method, and / or other desired functions of the various embodiments of the present disclosure described above.

[0116] In some embodiments, the electronic device 1500 may further include: an input device 1530 and an output device 1540 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0117] The input device 1530 may include, for example, a touch screen, a microphone, a keyboard, a mouse, etc. The output device 1540 may include, for example, a display, a speaker, a communication network and a remote output device connected thereto.

[0118] Of course, to simplify, Fig.15 Only some of the components related to the present disclosure in the electronic device 1500 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 1500 may also include any other appropriate components.

[0119] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the fundus image encryption method and the fundus image decryption method according to various embodiments of the present disclosure described above in this specification.

[0120] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0121] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the fundus image encryption method and the fundus image decryption method according to various embodiments of the present disclosure described above in this specification.

[0122] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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.

[0123] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0124] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0125] It should also be noted that in the system, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0126] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0127] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A fundus image encryption method, characterized in that: include: Acquire a fundus image and valid information corresponding to the fundus image, wherein the valid information includes at least one of patient information, owner information, and analysis result information corresponding to the fundus image; Based on the encryption key, adjusting the position of at least a part of the area in the first image to obtain a scrambled image corresponding to the first image, wherein the first image includes an image located in a target area in the fundus image, and the encryption key includes a transformation relationship between the image located in the target area and the scrambled image; Based on the valid information and the disordered image, an encrypted image carrying valid information corresponding to the fundus image is determined.

2. The method according to claim 1, characterized in that The step of determining the encrypted image carrying the valid information corresponding to the fundus image based on the valid information and the disordered image includes: Using a steganographic method to write the valid information into the disordered image, thereby obtaining a disordered image carrying the valid information; Based on the transformation relationship between the image located in the target area and the disordered image, the position of at least a part of the area in the disordered image carrying valid information is restored to obtain the encrypted image carrying valid information.

3. The method according to claim 2, characterized in that The method of writing the valid information into the random image using a steganographic method to obtain the random image carrying the valid information includes: Performing format conversion on at least part of the valid information to obtain graphic code information corresponding to the at least part of the valid information; The graphic code information is written into the random image using a steganographic method to obtain the random image carrying valid information.

4. The method according to claim 1, characterized in that: The step of adjusting the position of at least a portion of the first image based on the encryption key to obtain a random image corresponding to the first image includes: Dividing the first image into a plurality of target sub-regions; Based on the encryption key, the relative positions between the plurality of target sub-regions are adjusted to obtain the disordered image.

5. The method according to claim 4, characterized in that Adjacent target sub-regions partially overlap, and adjusting relative positions between the plurality of target sub-regions based on the encryption key to obtain the disordered image includes: Re-dividing the target sub-region to obtain non-overlapping regions included in the target sub-region; Based on the encryption key, the relative positions of the non-overlapping areas included in the plurality of target sub-areas are adjusted to obtain the disordered image.

6. The method according to claim 4, characterized in that The shape of the target sub-region includes at least one of a rectangle, a circle, and a triangle.

7. A fundus image decryption method, characterized in that: include: Acquire an encrypted image carrying valid information corresponding to the fundus image, and a decryption key corresponding to the encrypted image carrying valid information, wherein the decryption key includes a transformation relationship between an image located in a target area in the encrypted image carrying valid information and a disordered image; Based on the decryption key, adjusting the position of at least a portion of the second image to obtain a scrambled image corresponding to the encrypted image carrying valid information, wherein the second image includes an image located in a target area of ​​the encrypted image carrying valid information; Based on the disordered image, valid information corresponding to the fundus image is determined, where the valid information includes at least one of patient information, owner information, and analysis result information corresponding to the fundus image.

8. A fundus image encryption device, characterized in that: include: An acquisition module is configured to acquire a fundus image and valid information corresponding to the fundus image, wherein the valid information includes at least one of patient information, owner information, and analysis result information corresponding to the fundus image; an adjustment module configured to adjust the position of at least a part of the area in the first image based on the encryption key to obtain a scrambled image corresponding to the first image, wherein the first image includes an image located in a target area in the fundus image, and the encryption key includes a transformation relationship between the image located in the target area and the scrambled image; The determination module is configured to determine the encrypted image carrying valid information corresponding to the fundus image based on the valid information and the disordered image.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.