Method and device for processing medical record information image, medium and program product
Recognizing and removing ripple noise through Fourier transform and edge detection technology solves the problem of noise interference in electronic medical records and improves recognition accuracy and real-time performance.
Patent Information
- Application Number
- CN202411057295.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-08
AI Technical Summary
Existing optical character recognition technology is susceptible to noise interference when processing electronic medical records, especially ripple noise, which leads to a decrease in recognition accuracy and is difficult to meet the needs of real-time detection.
Medical record information images are processed through Fourier transform, spectral image analysis is performed, and edge detection and wavelet transform or image enhancement technology are combined to identify and remove ripple noise to improve image quality and feature extraction accuracy.
Effectively identify and process ripple noise in images, improve the accuracy and practicality of automatic identification of electronic medical records, and meet real-time processing needs.
Smart Images

Figure CN118747897A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of image vision and Internet medical care, and more specifically, to a method, device, medium and program product for processing medical record information images. Background Art
[0002] After capturing the electronic medical record, the optical character recognition technology is needed to identify and detect the user information and drug information in the electronic medical record to realize the automatic recognition of the electronic medical record. However, the collected electronic medical records are always interfered by various noises, such as reflections, ripples, etc., which affect the accuracy of the optical character recognition technology and thus affect the automation of electronic medical record recognition. Therefore, it is necessary to automatically determine whether there is noise in the image, and then apply the corresponding denoising algorithm to it after confirming that there is noise. Summary of the invention
[0003] In view of this, the present disclosure provides a method, apparatus, medium and program product for processing medical record information images.
[0004] One aspect of the present disclosure provides a method for processing a medical record information image, including: processing an acquired medical record information image based on a Fourier transform mechanism to obtain a spectrum image related to the medical record information image; in response to a spectrum attribute value of spectrum pixels in a central area of the spectrum image being greater than a preset abnormality threshold, performing edge detection on the medical record information image to obtain the number of edge pixels, wherein the spectrum pixels in the central area are located in a central point-related area of the spectrum image, and the central point-related area has a preset positional relationship with the central point of the spectrum image; and determining an image noise analysis result of the medical record information image based on a comparative relationship between the number of edge pixels and the number of pixels in the medical record information image.
[0005] According to an embodiment of the present disclosure, the comparison relationship includes the ratio between the number of edge pixels and the number of pixels in the medical record information image; based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image, determining the image noise analysis result of the medical record information image includes: when the ratio between the number of edge pixels and the number of pixels in the medical record information image satisfies a preset ratio range, determining the ripple noise analysis result, the ripple noise analysis result characterizing the presence of ripple noise in the medical record information image; and when the ratio between the number of edge pixels and the number of pixels in the medical record information image does not satisfy the preset ratio range, determining the non-ripple noise analysis result.
[0006] According to an embodiment of the present disclosure, the method for processing a medical record information image also includes: in response to the fact that the spectrum attribute values of the spectrum pixels in the central area of the spectrum image are all less than or equal to a preset abnormality threshold, performing peripheral frequency domain band detection on the spectrum image to obtain first brightness distribution information of the spectrum pixels of the spectrum image in a first direction, and second brightness distribution information of the spectrum pixels of the spectrum image in a second direction, wherein the first direction and the second direction are perpendicular to each other; and performing image noise analysis based on the first brightness distribution information and the second brightness distribution information to obtain a reference image noise analysis result, wherein the reference image noise analysis result indicates whether there is ripple noise in the medical record information image.
[0007] According to an embodiment of the present disclosure, the acquired medical record information image is processed based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image, including: performing image format conversion on the acquired medical record information image based on the Fourier transform mechanism to obtain a test image with a complex format; and processing the real information and imaginary information of the test image based on a logarithmic algorithm to obtain a spectrum image.
[0008] According to an embodiment of the present disclosure, the center point related area includes at least one of the following: a center row area, the center row area includes a region row boundary that matches the row direction of the spectrum image, and the region row boundary and the center point meet a preset distance condition; a center column area, the center column area includes a region column boundary that matches the column direction of the spectrum image, and the region column boundary and the center point meet a preset distance condition.
[0009] According to an embodiment of the present disclosure, the method for processing a medical record information image also includes: in response to an image noise analysis result being a ripple noise analysis result, denoising the medical record information image based on a wavelet transform mechanism; or in response to an image noise analysis result being a non-ripple noise analysis result, denoising the medical record information image based on an image enhancement mechanism.
[0010] A second aspect of the present disclosure provides a device for processing a medical record information image, comprising: a spectrum image acquisition module, used to process the acquired medical record information image based on a Fourier transform mechanism to obtain a spectrum image related to the medical record information image; an edge detection module, used to perform edge detection on the medical record information image in response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, to obtain the number of edge pixels, wherein the spectrum pixels in the central area are located in a central point-related area of the spectrum image, and the central point-related area has a preset positional relationship with the central point of the spectrum image; and an image noise analysis result determination module, used to determine the image noise analysis result of the medical record information image based on a comparative relationship between the number of edge pixels and the number of pixels in the medical record information image.
[0011] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0012] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0013] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0014] According to the embodiments of the present disclosure, the acquired medical record information image is processed based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information. In response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, edge detection is performed on the medical record information image to obtain the number of edge pixels. Based on the comparative relationship between the number of edge pixels and the number of pixels in the medical record information image, the image noise analysis result of the medical record information image is determined. By analyzing the spectrum attribute values of the spectrum pixels in the central area and other steps, abnormal peaks in the image can be effectively identified. At the same time, combined with the edge detection method, ripple noise can be accurately distinguished and processed. It has high practicality and accuracy in the field of image processing, and provides strong support for improving image quality and the accuracy of feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0016] Figure 1 A diagram schematically shows an application scenario of a method for processing a medical record information image according to an embodiment of the present disclosure;
[0017] Figure 2 A flowchart of a method for processing a medical record information image according to an embodiment of the present disclosure is shown;
[0018] Figure 3 A schematic diagram of a center point related area according to an embodiment of the present disclosure is shown;
[0019] Figure 4 A flow chart of a method for processing a medical record information image according to an embodiment of the present disclosure is shown;
[0020] Figure 5 A structural block diagram schematically shows a device for processing medical record information images according to an embodiment of the present disclosure; and
[0021] Figure 6 A block diagram of an electronic device suitable for implementing a method for processing a medical record information image according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0022] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0023] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0024] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0025] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0026] Ripple noise refers to periodic superimposed strip noise in the image, mainly due to poor contact and electromagnetic interference. Visually, it appears as a straight line with mixed colors. For example, when a computer plays a video, if there is interference from mobile phone signals around, it often causes ripples in the middle of the video. After the electronic medical record is captured, it is necessary to use optical character recognition technology (OCR) to identify and detect user information and drug information in the electronic medical record to achieve automatic recognition of the electronic medical record. However, the electronic medical records collected are always interfered by various noises, such as reflections, ripples, etc., which affect the accuracy of OCR recognition and thus affect the automation of electronic medical record recognition. To this end, it is necessary to automatically determine whether there is noise in the image, and then apply the corresponding denoising algorithm to it after determining that there is noise.
[0027] Some methods convert the video frame image into a grayscale image, obtain the spectrum image through Fourier transformation, rearrange the quadrants in the spectrum image so that the origin is located at the center of the image, divide the spectrum image into two blocks: the peripheral area band and the extended frequency modulation band, enhance the spectrum image, highlight the amplitude value of the abnormal bright spot, and binarize it. The number and distribution characteristics of the abnormal bright spots in the spectrum image are counted to determine whether there is ripple noise in the image, and the number of images with continuous ripple noise is determined to determine whether ripple noise appears in the video. This method may perform well in a specific monitoring environment, but its adaptability and accuracy may vary for different lighting conditions, camera quality, installation location and other variables. For example, it is not effective for messy and irregular ripple noise in the image. It may affect the accuracy of ripple noise detection.
[0028] The inventors found that the ripple noise in the image may come from a variety of factors, such as internal interference of the camera equipment, the influence of the external electromagnetic environment, problems with the transmission line, etc. These different noise sources may cause the ripple noise to show large differences in form, frequency and intensity, which is reflected in the image as a large uncertainty in the shape, area, position, etc. of the ripple noise in the image. And the ripple noise detection algorithm requires a faster processing speed in order to complete the detection task without affecting the business process. However, many existing algorithms may require a long calculation time when processing complex noise, and it is difficult to meet the real-time requirements. It is difficult to attempt to detect all ripple situations through a detection algorithm.
[0029] In view of this, the present disclosure provides a method, device, medium and program product for processing medical record information images, the method comprising: processing the acquired medical record information image based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image; in response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, performing edge detection on the medical record information image to obtain the number of edge pixels, wherein the spectrum pixels in the central area are located in a center point related area of the spectrum image, and the center point related area has a preset positional relationship with the center point of the spectrum image; and determining the image noise analysis result of the medical record information image based on the comparative relationship between the number of edge pixels and the number of pixels in the medical record information image.
[0030] It should be noted that the method and device for processing medical record information images provided by the present disclosure can be used in the field of image vision, and can also be used in any field other than the field of image vision, such as Internet medical care and other fields. The application field of the method and device for processing medical record information images provided by the present disclosure is not limited.
[0031] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] Figure 1 The application scenario diagram of the method for processing medical record information images according to an embodiment of the present disclosure is schematically shown.
[0033] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0034] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0035] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0036] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0037] It should be noted that the method for processing medical record information images provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the apparatus for processing medical record information images provided in the embodiment of the present disclosure can generally be set in the server 105. The method for processing medical record information images provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the apparatus for processing medical record information images provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0039] The following will be based on Figure 1 The scene described by Figure 2~Figure 3 The method for processing medical record information images according to the disclosed embodiment is described in detail.
[0040] Figure 2 The flowchart of the method for processing medical record information images according to an embodiment of the present disclosure is schematically shown.
[0041] like Figure 2 As shown, this embodiment includes operations S210 to S230.
[0042] In operation S210, the acquired medical record information image is processed based on a Fourier transform mechanism to obtain a spectrum image related to the medical record information image.
[0043] In operation S220, in response to the spectrum attribute value of the spectrum pixel in the central area of the spectrum image being greater than a preset abnormal threshold, edge detection is performed on the medical record information image to obtain the number of edge pixels.
[0044] In operation S230, an image noise analysis result of the medical record information image is determined based on a comparison relationship between the number of edge pixels and the number of pixels in the medical record information image.
[0045] According to an embodiment of the present disclosure, the acquired medical record information image can be processed based on the Fourier transform mechanism, and the image after Fourier transform can be normalized and Gaussian smoothed to obtain a spectrum image related to the medical record information image.
[0046] According to an embodiment of the present disclosure, in response to the spectrum attribute value of the spectrum pixel in the central area of the spectrum image being greater than a preset abnormal threshold, edge detection can be performed on the medical record information image to obtain the number of edge pixels. The spectrum attribute value can characterize the amplitude value of the spectrum pixel in the central area. The edge detection algorithm can include the Sobel algorithm, the Canny algorithm, etc., but is not limited thereto. The embodiment of the present disclosure does not limit the edge detection algorithm. The number of edge pixels can represent the number of pixel points belonging to the edge in the edge image.
[0047] According to an embodiment of the present disclosure, the center point related region has a preset position relationship with the center point of the spectrum image, and the center area spectrum pixels may be located in the center point related region of the spectrum image.
[0048] According to the embodiments of the present disclosure, the image noise analysis result of the medical record information image can be determined based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image. Noise is visually manifested as a straight line with mixed colors. The number of pixels of the medical record information image obtained after edge detection of the medical record information image with noise is greater than the number of pixels of the medical record information image without noise.
[0049] According to the embodiments of the present disclosure, the acquired medical record information image is processed based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information. In response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, edge detection is performed on the medical record information image to obtain the number of edge pixels. Based on the comparative relationship between the number of edge pixels and the number of pixels in the medical record information image, the image noise analysis result of the medical record information image is determined. By analyzing the spectrum attribute values of the spectrum pixels in the central area and other steps, abnormal peaks in the image can be effectively identified. At the same time, combined with the edge detection method, ripple noise can be accurately distinguished and processed. It has high practicality and accuracy in the field of image processing, and provides strong support for improving image quality and the accuracy of feature extraction.
[0050] According to an embodiment of the present disclosure, the comparison relationship includes the ratio between the number of edge pixels and the number of pixels in the medical record information image; based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image, determining the image noise analysis result of the medical record information image includes: when the ratio between the number of edge pixels and the number of pixels in the medical record information image satisfies a preset ratio range, determining the ripple noise analysis result, the ripple noise analysis result characterizing the presence of ripple noise in the medical record information image; and when the ratio between the number of edge pixels and the number of pixels in the medical record information image does not satisfy the preset ratio range, determining the non-ripple noise analysis result.
[0051] According to an embodiment of the present disclosure, the comparison relationship may include a ratio between the number of edge pixels and the number of pixels in the medical record information image, but is not limited thereto. The embodiment of the present disclosure does not limit the comparison relationship.
[0052] According to an embodiment of the present disclosure, when the comparison relationship is determined as the ratio between the number of edge pixels and the number of pixels in the medical record information image, the size of the ratio and the preset ratio range is determined. When the ratio satisfies the preset ratio range, it can be determined that there is ripple noise in the medical record information image. When the ratio does not satisfy the preset ratio range, it can be determined that there is non-ripple noise in the medical record information image, thereby judging whether it is ripple noise or other noise. For example, the preset ratio range is [0.3, 0.5]. When the ratio between the number of edge pixels and the number of pixels in the medical record information image is in the range of 0.3 to 0.5, it can be considered that there is ripple noise in the medical record information image. Outside the preset ratio range, it can be determined that there is non-ripple noise in the medical record information image.
[0053] According to an embodiment of the present disclosure, the acquired medical record information image is processed based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image, including: performing image format conversion on the acquired medical record information image based on the Fourier transform mechanism to obtain a test image with a complex format; and processing the real information and imaginary information of the test image based on a logarithmic algorithm to obtain a spectrum image.
[0054] According to an embodiment of the present disclosure, the acquired medical record information image may be converted into an image format based on a Fourier transform mechanism, thereby obtaining an image to be tested in a complex format.
[0055] According to the embodiments of the present disclosure, a medical record information image can be read, the medical record information image can be copied to a real input real image, the imaginary input image can be initialized to 0, the real input image and the imaginary input image can be merged to generate an image in a complex format. A new matrix can be created for Fourier transform, and the image to be tested in a complex format can be copied to the newly created matrix. If the width of the matrix is greater than the width of the medical record information image, the remaining part is filled with zeros. Fourier transform can be performed on the matrix to obtain the image to be tested.
[0056] According to an embodiment of the present disclosure, the real part information and imaginary part information of the image to be tested can be processed based on a logarithmic algorithm to obtain a spectrum image. In the spectrum image, ripple noise usually appears as a strong frequency component in the horizontal or vertical direction. If the transformed spectrum image has obvious straight or curved bright bands, it indicates the presence of ripple noise.
[0057] According to an embodiment of the present disclosure, the amplitude of the spectrum may be calculated first, as shown in formula (1). The amplitude value may be logarithmically transformed, as shown in formula (2).
[0058]
[0059] Among them, Re is the real part information, Im is the imaginary part information, Mag is the amplitude value of the spectrum image, and IRe is the value after logarithmic transformation of the amplitude value.
[0060] According to the embodiments of the present disclosure, the quadrants of the Fourier image can be rearranged so that the origin is located at the center of the image to obtain a transformed Fourier image. The maximum and minimum values of the spectrum attribute value can be found in the transformed Fourier image, and the transformed Fourier image can be normalized to obtain a normalized image. As shown in formula (3).
[0061]
[0062] in, Represents the transformed Fourier image The pixel value of the i-th horizontal row and the j-th vertical column, D[i, j] represents the pixel value of the i-th horizontal row and the j-th vertical column of the transformed Fourier image D, Max is the maximum value of the spectrum attribute value, and Min is the minimum value of the spectrum attribute value.
[0063] According to an embodiment of the present disclosure, the normalized image may be Gaussian smoothed to obtain a spectrum image.
[0064] According to an embodiment of the present disclosure, the method for processing a medical record information image also includes: in response to the fact that the spectrum attribute values of the spectrum pixels in the central area of the spectrum image are all less than or equal to a preset abnormality threshold, performing peripheral frequency domain band detection on the spectrum image to obtain first brightness distribution information of the spectrum pixels of the spectrum image in a first direction, and second brightness distribution information of the spectrum pixels of the spectrum image in a second direction, wherein the first direction and the second direction are perpendicular to each other; and performing image noise analysis based on the first brightness distribution information and the second brightness distribution information to obtain a reference image noise analysis result, wherein the reference image noise analysis result indicates whether there is ripple noise in the medical record information image.
[0065] According to an embodiment of the present disclosure, in response to the fact that the spectrum attribute values of the spectrum pixels in the central area of the spectrum image are all less than or equal to a preset abnormality threshold, the spectrum image can be subjected to peripheral frequency domain band detection to obtain first brightness distribution information of the spectrum pixels in the first direction of the spectrum image and second brightness distribution information of the spectrum pixels in the second direction of the spectrum image.
[0066] According to the embodiments of the present disclosure, the spectrum image can be enhanced to obtain an enhanced image. , as shown in formula (4).
[0067]
[0068] Where D[i, j] represents the pixel value of the horizontal i-th row and vertical j-th column of the transformed Fourier image D. Represents the enhanced image.
[0069] According to an embodiment of the present disclosure, a peripheral area frequency band is taken to calculate whether the pixel value in the peripheral area frequency band is greater than a set threshold value A. If it is greater than, it indicates that an abnormal brightness value exists.
[0070] The method for obtaining the frequency band of the peripheral area is to remove the area within the range d above, below, left and right of the central area. The calculation formula of d is shown in formula (5).
[0071]
[0072] Wherein, W represents the image width, H represents the image height, d represents the bandwidth threshold used for calculation, and weight represents the bandwidth weight. In the embodiment of the present disclosure, weight can be set to 0.06 and A can be set to 175. However, this is not limited to this, and the embodiment of the present disclosure does not limit this.
[0073] According to an embodiment of the present disclosure, the first direction and the second direction are perpendicular to each other. The first direction may be the X-axis, and the second direction may be the Y-axis. The enhanced image is projected in the X-axis and Y-axis directions respectively, and the number of pixel points whose pixel values are greater than the threshold value B is counted. The first brightness distribution information may represent the mean value m of the brightness point distribution in the X-direction. x , brightness point distribution variance The second brightness distribution information may represent the brightness point distribution mean m in the Y direction. y , brightness point distribution variance .
[0074] According to an embodiment of the present disclosure, image noise analysis can be performed based on the first brightness distribution information and the second brightness distribution information to obtain a reference image noise analysis result, which indicates whether the medical record information image has ripple noise. Noise analysis can be performed on the image based on the brightness point distribution variance in the X direction and the brightness point distribution variance in the Y direction, as shown in formula (6).
[0075]
[0076] Among them, r represents the discriminant factor. is the brightness point distribution variance in the Y direction, is the variance of the brightness point distribution in the X direction. The reference image noise analysis result can be judged according to the discriminant factor and the preset threshold C. If r is greater than the threshold C, it is considered that there is ripple noise, and if r is less than the threshold C, it is considered that there is no ripple noise. The embodiment of the present disclosure sets the preset threshold C to 5, but is not limited to this, and the embodiment of the present disclosure does not make specific limitations on this.
[0077] According to an embodiment of the present disclosure, the center point related area includes at least one of the following: a center row area, the center row area includes a region row boundary that matches the row direction of the spectrum image, and the region row boundary and the center point meet a preset distance condition; a center column area, the center column area includes a region column boundary that matches the column direction of the spectrum image, and the region column boundary and the center point meet a preset distance condition.
[0078] According to an embodiment of the present disclosure, the center point related area may include a center row area, and the center row area may include a region row boundary that matches the row direction of the spectrum image. The region row boundary and the center point satisfy a preset distance condition. The center point of the spectrum image is determined. For example, in the row direction of the spectrum image, 5 rows above and below the center point can be used as region row boundaries.
[0079] According to an embodiment of the present disclosure, the center point related area may include a center column area, and the center column area may include a region column boundary that matches the column direction of the spectrum image. The region column boundary and the center point satisfy a preset distance condition. The center point of the spectrum image is determined. For example, in the column direction of the spectrum image, 5 columns to the left and right of the center point can be used as region column boundaries.
[0080] According to an embodiment of the present disclosure, the center point related area may further include a center row area and a middle column area, so that the center point area may form a cross center area.
[0081] According to an embodiment of the present disclosure, in the case where the center point related area may include the center row area, the pixel data in the selected area row boundary is taken out, and the maximum and minimum values are calculated. It is judged whether the pixel value is greater than the preset threshold value D. When the pixel value is greater than the preset threshold value D, it indicates that there is an abnormal peak. Similarly, in the case where the center point related area may include the center column area, the pixel data in the selected area column boundary is taken out, and the maximum and minimum values are calculated. It is judged whether the pixel value is greater than the preset threshold value E. When it is greater, it indicates that there is an abnormal peak. The case where the center point related area includes the center row area and the middle column area to calculate the abnormal peak is similar to the above two methods, which will not be repeated here.
[0082] According to the embodiments of the present disclosure, by dividing the center point related area and combining it with the edge detection method, abnormal peaks, namely ripple noise, can be effectively detected and processed.
[0083] Figure 3 A schematic diagram of a center point related area according to an embodiment of the present disclosure is shown.
[0084] like Figure 3 As shown, the central row area 320 includes the spectrum image (ie Figure 3 The row boundary of the region that matches the row direction of the spectrum image (i.e., the range circled in red at 320), and the preset distance condition is satisfied between the row boundary of the region and the center point. The center column region 310 includes the column boundary of the region that matches the column direction of the spectrum image (i.e., the range circled in red at 310), and the preset distance condition is satisfied between the column boundary of the region and the center point. The center point related region may also include the center row region and the middle column region, thereby forming a cross center region (i.e., the cross range circled in red at 310 and 320).
[0085] According to an embodiment of the present disclosure, the method for processing a medical record information image also includes: in response to an image noise analysis result being a ripple noise analysis result, denoising the medical record information image based on a wavelet transform mechanism; or in response to an image noise analysis result being a non-ripple noise analysis result, denoising the medical record information image based on an image enhancement mechanism.
[0086] According to an embodiment of the present disclosure, in response to the image noise analysis result being a ripple noise analysis result, the medical record information image can be denoised based on a wavelet transform mechanism, wherein the wavelet transform mechanism specifically performs a wavelet transform on the image to remove the high-frequency portion corresponding to the ripple noise, and then performs an inverse wavelet transform to obtain a denoised image.
[0087] According to an embodiment of the present disclosure, in response to the image noise analysis result being a non-ripple noise analysis result, the medical record information image may be denoised based on an image enhancement mechanism, wherein the image enhancement mechanism may specifically be further image enhancement processing of the image after the ripple noise is removed, such as contrast enhancement, sharpening, etc. In the case where the image noise analysis result is a non-ripple noise analysis result, the noise may be directly removed by contrast enhancement and sharpening.
[0088] Figure 4 A flowchart of a method for processing a medical record information image according to an embodiment of the present disclosure is shown.
[0089] like Figure 4 As shown, first, a color medical record information image can be obtained, the color image can be converted into a grayscale image S401, the grayscale image can be converted into a complex form S402, and then Fourier transform S403 can be performed to obtain real information and imaginary information, the amplitude of the spectrum can be calculated based on the real information and imaginary information S404, the amplitude can be logarithmically transformed S405, the quadrants of the Fourier image can be rearranged so that the origin is located at the center of the image S406, the maximum and minimum amplitude values in the image after the quadrant transformation can be found and normalized S407, thereby obtaining a normalized image. Gaussian smoothing can be performed on the normalized image S408 to obtain the corresponding image.
[0090] The image after Gaussian smoothing is segmented by row center S409, and it is determined whether the pixel value in the region row boundary is greater than a preset threshold S410. If so, edge detection is performed on the image S414, and the number of edge pixels is detected to be greater than a set threshold S415. If so, it can be determined that the medical record information image includes ripple noise S416. If the number of edge pixels is less than the set threshold S415, it can be determined that the medical record information image does not include ripple noise S417.
[0091] Determine whether the pixel value in the region row boundary is greater than a preset threshold value S410. If it is less than, perform column center segmentation on the Gaussian smoothed image S411, determine whether the pixel value in the region column boundary is greater than a preset threshold value S412. If it is greater than, perform edge detection S414. If it is less than, the surrounding area band can be detected S413 to obtain the first brightness distribution information of the spectrum pixels of the spectrum image in the first direction, and the second brightness distribution information of the spectrum pixels of the spectrum image in the second direction. Perform image noise analysis based on the first brightness distribution information and the second brightness distribution information to obtain a discriminant factor. If the discriminant factor is greater than the preset discriminant factor threshold value S418, it can be determined that the medical record information image includes ripple noise S416, otherwise, determine that the medical record information image does not include ripple noise S417.
[0092] Figure 5 The structure block diagram of the device for processing medical record information images according to an embodiment of the present disclosure is schematically shown.
[0093] like Figure 5 As shown, the apparatus 500 for processing medical record information images of this embodiment includes a spectrum image obtaining module 510 , an edge detection module 520 , and an image noise analysis result determining module 530 .
[0094] The spectrum image obtaining module 510 is used to process the acquired medical record information image based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image.
[0095] The edge detection module 520 is used to perform edge detection on the medical record information image in response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, and obtain the number of edge pixels, wherein the spectrum pixels in the central area are located in the center point related area of the spectrum image, and the center point related area has a preset positional relationship with the center point of the spectrum image.
[0096] The image noise analysis result determination module 530 is used to determine the image noise analysis result of the medical record information image based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image.
[0097] According to the embodiments of the present disclosure, the acquired medical record information image is processed based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information. In response to the spectrum attribute value of the spectrum pixels in the central area of the spectrum image being greater than a preset abnormal threshold, edge detection is performed on the medical record information image to obtain the number of edge pixels. Based on the comparative relationship between the number of edge pixels and the number of pixels in the medical record information image, the image noise analysis result of the medical record information image is determined. By analyzing the spectrum attribute values of the spectrum pixels in the central area and other steps, abnormal peaks in the image can be effectively identified. At the same time, combined with the edge detection method, ripple noise can be accurately distinguished and processed. It has high practicality and accuracy in the field of image processing, and provides strong support for improving image quality and the accuracy of feature extraction.
[0098] According to an embodiment of the present disclosure, the comparison relationship includes a ratio between the number of edge pixels and the number of pixels in the medical record information image.
[0099] According to an embodiment of the present disclosure, the image noise analysis result determination module includes: a ripple noise analysis result determination unit and a non-ripple noise analysis result determination unit.
[0100] The ripple noise analysis result determination unit is used to determine the ripple noise analysis result when the ratio between the number of edge pixels and the number of pixels in the medical record information image meets a preset ratio range, and the ripple noise analysis result indicates that ripple noise exists in the medical record information image.
[0101] The non-ripple noise analysis result determination unit is used to determine the non-ripple noise analysis result when the ratio between the number of edge pixels and the number of pixels in the medical record information image does not meet a preset ratio range.
[0102] According to an embodiment of the present disclosure, the apparatus 400 for processing a medical record information image of this embodiment further includes: a brightness distribution information obtaining module and a brightness distribution information obtaining module.
[0103] The brightness distribution information obtaining module is used to perform peripheral frequency domain band detection on the spectrum image in response to the spectrum attribute values of the spectrum pixels in the central area of the spectrum image being less than or equal to a preset abnormal threshold, so as to obtain first brightness distribution information of the spectrum pixels of the spectrum image in a first direction and second brightness distribution information of the spectrum pixels of the spectrum image in a second direction, wherein the first direction and the second direction are perpendicular to each other.
[0104] The reference image noise analysis result obtaining module is used to perform image noise analysis based on the first brightness distribution information and the second brightness distribution information to obtain a reference image noise analysis result, and the reference image noise analysis result indicates whether there is ripple noise in the medical record information image.
[0105] According to an embodiment of the present disclosure, the spectrum image obtaining module includes: a to-be-tested image obtaining unit and a spectrum image obtaining unit.
[0106] The image to be tested obtaining unit is used to convert the image format of the acquired medical record information image based on the Fourier transform mechanism to obtain the image to be tested in a complex format.
[0107] The spectrum image obtaining unit is used to process the real part information and the imaginary part information of the image to be measured based on a logarithmic algorithm to obtain a spectrum image.
[0108] According to an embodiment of the present disclosure, the center point related area includes at least one of the following: a center row area, the center row area includes a region row boundary that matches the row direction of the spectrum image, and the region row boundary and the center point meet a preset distance condition; a center column area, the center column area includes a region column boundary that matches the column direction of the spectrum image, and the region column boundary and the center point meet a preset distance condition.
[0109] According to an embodiment of the present disclosure, the apparatus 400 for processing medical record information images of this embodiment further includes: a wavelet transform denoising module and an image enhancement denoising module.
[0110] The wavelet transform denoising module is used to denoise the medical record information image based on the wavelet transform mechanism in response to the image noise analysis result being a ripple noise analysis result.
[0111] The image enhancement and denoising module is used to denoise the medical record information image based on the image enhancement mechanism in response to the image noise analysis result being a non-ripple noise analysis result.
[0112] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0113] For example, any multiple of the spectrum image acquisition module 510, the edge detection module 520, and the image noise analysis result determination module 530 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the spectrum image acquisition module 510, the edge detection module 520, and the image noise analysis result determination module 530 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the spectrum image obtaining module 510, the edge detection module 520, and the image noise analysis result determination module 530 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0114] Figure 6 A block diagram of an electronic device suitable for implementing a method for processing a medical record information image according to an embodiment of the present disclosure is schematically shown.
[0115] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0116] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0117] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0118] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0119] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0120] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method for processing medical record information images provided by the embodiment of the present disclosure.
[0121] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0122] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0123] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0124] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0125] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0126] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0127] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for processing medical record information images, It is characterized in that The method comprises: Processing the acquired medical record information image based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image; In response to a spectrum attribute value of a spectrum pixel in a central area of the spectrum image being greater than a preset abnormal threshold, edge detection is performed on the medical record information image to obtain the number of edge pixels, wherein the spectrum pixel in the central area is located in a center point related area of the spectrum image, and the center point related area has a preset positional relationship with the center point of the spectrum image; and Based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image, an image noise analysis result of the medical record information image is determined.
2. The method according to claim 1, It is characterized in that The comparison relationship includes the ratio between the number of edge pixels and the number of pixels in the medical record information image; Determining the image noise analysis result of the medical record information image based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image includes: In the case where the ratio between the number of edge pixels and the number of pixels in the medical record information image satisfies a preset ratio range, determining a ripple noise analysis result, wherein the ripple noise analysis result indicates that ripple noise exists in the medical record information image; as well as When the ratio between the number of edge pixels and the number of pixels in the medical record information image does not satisfy a preset ratio range, a non-ripple noise analysis result is determined.
3. The method according to claim 1, It is characterized in that The method further comprises: In response to the fact that the spectrum attribute values of the spectrum pixels in the central area of the spectrum image are all less than or equal to the preset abnormal threshold, performing peripheral frequency domain band detection on the spectrum image to obtain first brightness distribution information of the spectrum pixels of the spectrum image in a first direction and second brightness distribution information of the spectrum pixels of the spectrum image in a second direction, wherein the first direction and the second direction are perpendicular to each other; and Image noise analysis is performed based on the first brightness distribution information and the second brightness distribution information to obtain a reference image noise analysis result, wherein the reference image noise analysis result indicates whether there is ripple noise in the medical record information image.
4. The method according to claim 1, It is characterized in that Processing the acquired medical record information image based on the Fourier transform mechanism to obtain a spectrum image related to the medical record information image includes: Based on the Fourier transform mechanism, the image format of the acquired medical record information image is converted to obtain a test image with a complex format; The real part information and the imaginary part information of the image to be measured are processed based on a logarithmic algorithm to obtain the spectrum image.
5. The method according to claim 1, It is characterized in that The center point related area includes at least one of the following: A central row region, wherein the central row region includes a region row boundary matching a row direction of the spectrum image, and a preset distance condition is satisfied between the region row boundary and the central point; A central column region, wherein the central column region includes a region column boundary matching the column direction of the spectrum image, and a preset distance condition is satisfied between the region column boundary and the central point.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: In response to the image noise analysis result being a ripple noise analysis result, denoising the medical record information image based on a wavelet transform mechanism; or In response to the image noise analysis result being a non-ripple noise analysis result, the medical record information image is denoised based on an image enhancement mechanism.
7. A device for processing medical record information images, include: A spectrum image obtaining module, used for processing the acquired medical record information image based on a Fourier transform mechanism to obtain a spectrum image related to the medical record information image; an edge detection module, configured to perform edge detection on the medical record information image to obtain the number of edge pixels in response to a spectrum attribute value of a spectrum pixel in a central area of the spectrum image being greater than a preset abnormal threshold, wherein the spectrum pixel in the central area is located in a center point related area of the spectrum image, and the center point related area has a preset positional relationship with the center point of the spectrum image; as well as The image noise analysis result determination module is used to determine the image noise analysis result of the medical record information image based on the comparison relationship between the number of edge pixels and the number of pixels in the medical record information image.
8. An electronic device, include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
