DICOMDIR file creation method and DICOMDIR file creation system
Patent Information
- Application Number
- JP2022573315
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-05-27
- Filing Date
- 2021-05-14
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-05-14
AI Technical Summary
Existing methods for creating DICOMDIR files do not adequately anonymize patient information and examination information, especially when it is printed on DICOM images, failing to protect patient privacy during academic presentations or research.
A method and system for creating DICOMDIR files that includes binarizing image data, detecting character areas, trimming and anonymizing patient information, and modifying DICOM tags to ensure comprehensive anonymization.
The method effectively anonymizes both printed and tagged patient information, ensuring privacy protection by creating DICOMDIR files that can be used securely in academic settings.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of handling medical DICOM images including at least image data, and particularly relates to a method and system for creating DICOMDIR files according to the DICOM standard.
Background Art
[0002] Currently, in hospitals, medical DICOM (Digital Imaging and Communications in Medicine) images generated by CT, MRI, angiography diagnostic devices, ultrasonic diagnostic devices, etc. can be stored on media such as CDs and DVDs, and this storage medium can be stored by individual patients or hospitals, and film - less is possible in hospitals.
[0003] DICOM images stored on CDs and DVDs are managed as DICOMDIR files, and DICOM images can be viewed with a DICOM image viewer on the CD or DVD. [[ID=I8]]
[0004] Chinese Patent Publication No. CN1567338A discloses a method and system for burning DICOM images onto CDs and DVDs, but does not mention the method for creating DICOMDIR files. International Publication No. WO2015 / 008650A1 discloses a method for creating and compressing and storing DICOMDIR files.
[0005] In the case of academic presentations or specific research, doctors need to anonymize the patient information and examination information in the DICOMDIR files and DICOM image files stored on CDs and DVDs in order to protect the personal information of patients. However, in the case of DICOM's SC images and ultrasonic images, in addition to being present in DICOM Tags, patient information and examination information may also be burned onto the DICOM images. In that case, anonymization only of the patient information and examination information in the DICOMDIR files and DICOM image files is insufficient.
[0006] Furthermore, anonymizing patient and test information embedded in DICOM image data is a problem that needs to be solved. [Overview of the Initiative]
[0007] The present invention aims to provide a method and system for creating a DICOMDIR file in order to anonymize patient information and examination information imprinted on DICOM image data.
[0008] The process for creating a DICOMDIR file includes the following steps: Retrieve all DICOM images in the specified folder for creating the DICOMDIR file. Retrieve the first frame image data from the DICOM image file. The image data of the first frame is binarized to obtain a binary image. The aforementioned binary image has four predefined character detection areas: top left, top right, bottom left, and bottom right. For the binary image of each character detection area, the upper and lower position coordinates of the character rows present in the character detection area are determined by horizontal projection. For the binary image of each character detection area, the left and right position coordinates and the number of characters present in the character detection area are determined by projection in the vertical direction. The actual coordinate range of the character detection area is determined based on the number of characters present in the character detection area and the position coordinates of those characters. The trimming range of the first frame image data of the DICOM image file is determined based on the actual coordinate range of the character detection area. Each frame image of the DICOM image file is trimmed according to the aforementioned trimming range and overwritten in the DICOM image file. The process returns to "obtain the first frame image data from the DICOM image file" and then performs the trimming process on all DICOM image files. Create a DICOMDIR file using all the cropped DICOM images in the specified folder.
[0009] When retrieving DICOM images located in the specified folder, the tag information for each DICOM image is retrieved and modified. Specifically, the following processes are performed. Retrieve DICOM Tag information from all DICOM image files in the specified folder. Modify DICOM tags that require anonymization depending on the settings. The modified DICOM Tag information is overwritten onto the DICOM image file.
[0010] The upper and lower position coordinates of the character rows within the character detection area are determined by horizontal projection onto the aforementioned binary image of the character detection area. Specifically, the process is as follows: The character detection area of the aforementioned binary image is projected horizontally to obtain projection data. Within the projection data, the average brightness of the character area is higher than the average brightness of the image background, allowing for the determination of the position coordinates above and below the character line.
[0011] For the binary image of the character detection area mentioned above, the left and right position coordinates and the number of characters present in the character detection area are determined by projection in the vertical direction. Specifically, the process is as follows: The aforementioned binary image is projected vertically onto the character detection area to obtain projection data. Based on the characteristic that the average brightness of the character area in the projection data is higher than the average brightness of the image background, thresholds for average brightness, width, height, and spacing of individual characters are determined, and the left and right position coordinates of each character in the character detection area and the total number of characters are determined.
[0012] The process involves creating a DICOMDIR file using all the cropped DICOM images in the specified folder, specifically as follows: The total number of bytes for all trimmed DICOM image files in the specified folder is calculated by adding up the number of bytes for each file. Using the total number of bytes in the aforementioned DICOM image, the number of DICOMDIR files that can be created based on the set size (in bytes) of a single DICOMDIR file is determined. Using the aforementioned trimmed DICOM image files, create the number of DICOMDIR files determined above.
[0013] The DICOMDIR file creation system includes the following modules: DICOM image acquisition module; retrieves all DICOM image files for creating ICOMDIR files that exist in the specified folder. Module for acquiring the first frame of a DICOM image; retrieves image data of the first frame from a DICOM image file. Binarization processing module: This module binarizes the image data of the first frame to obtain a binary image. Character detection area setting module; Four character detection areas are pre-set in the binary image of the first frame: top left, top right, bottom left, and bottom right. Module for determining the upper and lower position coordinates of character lines; For the binary image of each character detection area, the upper and lower position coordinates of character lines present in the character detection area are determined by horizontal projection. Module for determining the left and right coordinates of each character; the left and right position coordinates and the number of characters present in each character detection area are determined by projection in the vertical direction onto the binary image of each character detection area. Actual character detection area coordinate range determination module; The actual character detection area coordinate range is determined based on the number of characters present in the character detection area and the position coordinates of the characters. The trimming range determination module determines the trimming range of the first frame image data of the DICOM image file based on the coordinate range of the actual character detection area. The trimming module trims each frame image of the DICOM image file according to the trimming range and overwrites the DICOM image file. Return processing module; Return to "acquire the first frame image data from the DICOM image file" and perform trimming processing on all DICOM image files. DICOMDIR file creation module; Create a DICOMDIR file using all the trimmed DICOM images in the specified folder.
[0014] When acquiring DICOM images existing in the specified folder, obtain and modify the Tag information of each DICOM image. Specifically, it is the following processing modules. DICOM Tag acquisition module; Acquire DICOM Tag information from all DICOM image files in the specified folder. DICOM Tag modification module; Modify DICOM Tags that need to be anonymized according to the settings. DICOM Tag overwrite module; Overwrite the modified DICOM Tag information onto the DICOM image file.
[0015] In the character line upper and lower position coordinate determination module, specifically, project in the horizontal direction of the character detection area of the binary image to obtain projection data, and in the projection data, obtain the upper and lower position coordinates of the character line based on the characteristic that the average luminance of the character area is higher than the background average luminance of the image.
[0016] In the left and right coordinate determination module of each character, specifically, for the binary image of each character detection area, obtain the left and right position coordinates and the number of characters of each character existing in the character detection area by vertical projection.
[0017] The above DICOMDIR file creation module specifically includes the following sub-modules. Total byte number determination sub-module for all DICOM image files; Add up the byte numbers of all trimmed DICOM image files in the specified folder to obtain the total byte number of the DICOM images. DICOMDIR File Number Determination Sub-module; Using the total number of bytes of the DICOM images mentioned above, determine the number of DICOMDIR files that can be created based on the size (number of bytes) of one set DICOMDIR file. DICOMDIR File Creation Sub-module, create DICOMDIR files in the number obtained above using the trimmed DICOM image files mentioned above.
[0018] Compared with the prior art, the beneficial effects of the present invention are as follows.
[0019] Compared with the prior art, the present invention provides a DICOMDIR file creation method and system. When creating a DICOMDIR file, in addition to modifying the DICOM Tags that need to be anonymized, it also realizes the anonymization of characters such as patient information burned on the DICOM image at the same time.
Brief Description of the Drawings
[0020] [Figure 1] It is a flowchart of the DICOMDIR file creation method. [Figure 2] It is a principle diagram of the DICOMDIR file creation method. [Figure 3] It is a schematic diagram of the image trimming rectangular range.
Modes for Carrying Out the Invention
[0021] The present invention aims to create DICOMDIR files that can anonymize patient information and examination information of DICOM images.
[0022] As shown in Figures 1 and 2, the present invention provides a method for creating a DICOMDIR file, and the DICOMDIR file creation method includes the following processing steps 101 to 110. When creating a DICOMDIR file, DICOM Tag information such as patient name, patient ID, and diagnosing physician may be anonymized. In this case, the DICOM Tag information to be anonymized is set in a configuration file in advance and saved. Step 101: Retrieve all DICOM images for creating DICOMDIR into the specified folder. Step 102: Obtain the first frame image data of the DICOM image file. Step 103: The image data of the first frame is binarized to obtain a binary image. Specifically, considering that there is no uniformity in brightness in medical images, the image data of the first frame is binarized using the Niblack local binarization algorithm. Step 104: Four character detection areas are pre-set in the aforementioned binary image: upper left, upper right, lower left, and lower right. Specifically, since patient information and examination information imprinted on the DICOM image are located in the upper left, upper right, lower left, and lower right of the image, the four corner ROI areas of the image are set as character detection areas. Step 105: The position coordinates of the upper and lower parts of the character rows within the character detection area are determined by projecting the binary image of the character detection area horizontally. Specifically, projection data is obtained by projecting the character detection area of the binary image horizontally. The position coordinates of the upper and lower parts of the character rows are determined from the characteristic that the average brightness of the character area is higher than the average brightness of the background of the image. Step 106: The left and right position coordinates and number of characters present in the character detection area are determined by projecting the binary image of the character detection area vertically. Specifically, projection data is obtained by projecting the binary image of the character detection area vertically. Within the projection data, the average brightness of the character area is determined by the average brightness of the background of the image, and thresholds for the average brightness, width, height, and spacing of each character are determined, and the left and right position coordinates and number of characters present in the character detection area are determined. Steps 105 and 106 also include the following processes. Since the area size of characters present in an image is within a certain range, the process involves first removing areas outside the character area range from the binary image of the character detection area, and then projecting horizontally onto the aforementioned binary image of the character detection area to determine the position coordinates above and below the character line; Subsequently, the binary image of the character detection area is projected vertically to determine the left and right position coordinates of each possible character area. Step 107: Determine the coordinate range of the actual area of the characters based on the number of characters present in the character detection area and the position coordinates of the characters. Step 108: Determine the trimming range of the first frame image based on the character position coordinates detected from each character area. Specifically, determine the maximum and minimum X and Y coordinates of each character area based on the results obtained in Steps 106, 106, and 107. Subtract the character areas from the quadrilateral coordinates of the first frame image, and the remaining quadrilateral area will be the trimming range. The trimming quadrilateral range of the image is shown in Figure 3. Alternatively, if no characters exist in any of the character areas, the image trimming range is considered to be nonexistent. Step 109: Trim each frame of the DICOM image using the trimming rectangle and then overwrite and save it; return to Step 102 and repeat until all DICOM images have been trimmed in the specified folder. Specifically, if there are no characters imprinted on the DICOM image, modify the patient ID (0010,0020), patient name (0010,0010), and other set tags (xxxx,xxxx) and overwrite the DICOM image file. If there are characters imprinted on the DICOM image, in addition to modifying the patient ID, patient name, and other set tags (xxxx,xxxx), the width and height of the DICOM image (0010,0020) and the image height are also modified, using the width and height of the trimming rectangle as the width and height of the DICOM image, and then overwrite the DICOM image file. Step 110: Create a DICOMDIR file using all the cropped DICOM images in the specified folder. Step 110 performs the following steps: First, add the number of bytes of all the DICOM image files in the specified folder to obtain the total number of bytes; then, determine the number of DICOMDIR files to be created using the total number of bytes of the DICOM image files, based on the set size (number of bytes) of one DICOMDIR; and finally, use the DICOMDIR file creation function to create the number of DICOMDIR files determined above. Specifically, by specifying in the configuration file whether it is a DICOMDIR file for CDs or a DICOMDIRFIR file for DVDs, the total number of bytes of the DICOM image file mentioned above is used to determine the number of DICOMDIR files that can be created (the number of CDs or DVDs), and the DICOMDIR file can then be created using the DICOMDIR file creation function. If the configuration file does not contain a subfolder for saving DICOM image files managed by the created DICOMDIR, the DICOM image files belonging to DICOMDIR will be created in the same folder as the DIDOOMDIR file. If the configuration file contains a subfolder for saving DICOM image files managed by DICOMDIR, the DICOM image files belonging to DICOMDIR will be created in the aforementioned configured subfolder.
[0023] The present invention provides a DICOMDIR file creation system, which specifically includes the following modules. • DICOM image acquisition module; acquires all DICOM image files for creating ICOMDIR files that exist in the specified folder. • Module for acquiring the first frame of a DICOM image; retrieves image data of the first frame from a DICOM image file. • Binarization processing module: This module binarizes the image data of the first frame to obtain a binary image. Character detection area setting module; Four character detection areas are pre-set in the binary image of the first frame: top left, top right, bottom left, and bottom right. • Module for determining the upper and lower position coordinates of character lines: For the binary image of each character detection area, the upper and lower position coordinates of character lines present in the character detection area are determined by horizontal projection. • Module for determining the left and right coordinates of each character; For the binary image of each character detection area, the left and right position coordinates and the number of characters present in the character detection area are determined by projection in the vertical direction. • Module for determining the actual character detection area coordinate range; The module determines the actual character detection area coordinate range based on the number of characters present in the character detection area and the position coordinates of the characters. • Trimming range determination module: Determines the trimming range of the first frame image data of the DICOM image file based on the coordinate range of the actual character detection area. • Trimming module: Trims each frame image of the DICOM image file according to the trimming range and overwrites the DICOM image file. • Return processing module: Returns to "Obtain the first frame image data from the DICOM image file" and performs the trimming process on all DICOM image files. • DICOMDIR file creation module; Creates a DICOMDIR file using all the trimmed DICOM images in the specified folder. Specifically, it includes the following child modules. - Add the byte counts of all DICOM image files in the specified folder to obtain the total byte count; then, determine the number of DICOMDIR files to be created using the total byte count of the DICOM image files, based on the set size (byte count) of one DICOMDIR; and finally, use the DICOMDIR file creation function to create the calculated number of DICOMDIR files.
[0024] The DICOMDIR file creation system includes a processing module, specifically the following, that retrieves and modifies the tag information of each DICOM image when acquiring DICOM images present in the specified folder. DICOM Tag Acquisition Module: Acquires DICOM Tag information from all DICOM image files in the specified folder. DICOM Tag Modification Module; modifies DICOM tags that require anonymization based on the settings. DICOM Tag Overwrite Module: Overwrites the DICOM image file with the modified DICOM Tag information mentioned above.
[0025] Specifically, the module for determining the position coordinates above and below the character line projects the character detection area of the aforementioned binary image horizontally to obtain projection data, and then determines the position coordinates above and below the character line based on the characteristic that the average brightness of the character area is higher than the average brightness of the background of the image.
[0026] The module for determining the left and right coordinates of each character specifically determines the left and right position coordinates and the number of characters present in each character detection area by projecting them vertically onto the binary image of each character detection area.
[0027] The DICOMDIR file creation module specifically includes the following child modules: • Module for determining the total byte count of all DICOM image files; This module adds up the byte counts of all trimmed DICOM image files in the specified folder to determine the total byte count of the DICOM images. • Module for determining the number of DICOMDIR files that can be created; Using the total number of bytes of the DICOM image mentioned above, this module determines the number of DICOMDIR files that can be created based on the set size (number of bytes) of a single DICOMDIR file. • DICOMDIR file creation submodule; Creates the calculated number of DICOMDIR files using the trimmed DICOM image files.
[0028] To explain the technology of the present invention, one specific embodiment of the present invention is presented. A DICOMDIR file is a small, variable-length database file. It primarily consists of a four-layer tree structure created from groups (0002,xxxx) and (0004,xxxx), comprising Patient, Study, Series, and Image. DICOM image files stored on DICOM CDs and DVDs are managed by DICOMDIR files, and the DICOM images are displayed using the DICOMVIEWER included with the DICOM CD or DVD.
[0029] (1) When creating a DICOMDIR file, information that needs to be anonymized, such as patient information, test information, DICOM image storage folders, and storage media, is set in a single CSV (Comma-Separated Values) file, and the settings are read from this CSV file to create the DICOMDIR file. In this embodiment, anonymization of the patient's name and patient ID is set for the CSV file. In this example, the patient's name is TEST1, the patient ID is 00000000, the storage medium for the DICOMDIR file is CD, and the DICOM file storage subfolder is DCM.
[0030] (2) Specify a folder containing DICOM image files. This folder contains 8 DSA DICOM video files and 10 ultrasound DICOM video files. The DSA images are 16-bit monochrome images with a resolution of 1024x768, and the ultrasound images are 24-bit color images with a resolution of 640x480. All DICOM images in this folder belong to the same patient, the patient's name is Anonymous, and the examination date is 2012.11.07. There is no text imprinted on the DSA images, but there is text imprinted on the ultrasound images. The patient's name and gender are in the upper right corner of the image, and the examination date and time are in the upper left corner. Next, the DICOM images in the aforementioned folder are read, and the first frame image data is obtained. DSA images are converted from 16-bit monochrome images to 8-bit monochrome image data, and ultrasound images are converted from 24-bit color images to 8-bit monochrome image data. In addition, all DICOM tag information, such as the patient's name, is obtained from the DICOM image files.
[0031] (3) Considering the ambiguity and poor uniformity of brightness distribution in medical images, the Niblack local binarization algorithm is selected to binarize the image. The Niblack local binarization algorithm determines the binarization threshold based on the average brightness value and deviation of the area, with the pixels of the image as the center. Pixel (i,j) sets a k×k window area centered on the area, where k is the width of the window. The average brightness m and deviation s of the aforementioned window area are calculated, and the binarization threshold t is determined by the formula t=m+c*s. In this example image, k is 5 and c is -0.2. The binarization algorithm described above is used to obtain the binarized image of the first frame.
[0032] (4) From the aforementioned binary image, objects smaller than the character area size threshold are removed to obtain a binary image in which only characters remain. The character detection areas at the four corners of the image are the same rectangle with a size of 128 x 160 pixels. Projection data is obtained by projecting the binary image of each character detection area horizontally. The horizontal projection value of characters is larger than the background, so the position coordinates of the top and bottom of the character row can be determined. Then, projection data is obtained by projecting the binary image of each character detection area vertically. The vertical projection value of characters is larger than the background, and the left and right coordinate positions of each character can be determined from the width and height of the characters and the spacing between characters. In this image, the width and height of the characters are 20 x 12 pixels, and the spacing between characters is 5 pixels. Based on the number of characters and character position coordinates in each character detection area, it is possible to determine whether characters are present in the upper right and upper left corners of the ultrasound image, or whether characters are not present in the DSA image.
[0033] (5) Based on the detection results in (4) above, no text is present in the DSA image. In addition, the ultrasound image contains the patient's name in the upper right corner, the examination date in the upper left corner, and no text in the lower right and lower left corners. The maximum X coordinate of the actual text area in the upper right corner is 460 and the maximum Y coordinate is 48, and the maximum X coordinate of the actual text area in the upper left corner is 170 and the maximum Y coordinate is 48. The image size is 640 x 480, and the coordinates of the cropping area are: upper left corner X coordinate 170, upper left corner Y coordinate 64, upper right corner X coordinate 460, lower left corner X coordinate 170, lower left corner Y coordinate 480, lower right corner X coordinate 460, lower right corner Y coordinate 480, resulting in a cropping area of 290 x 416 pixels.
[0034] (6) Based on the detection results in (5) above, since no text is present on the DSA image, the patient name (0010,0010) in the DICOM Tag information of the DSA image obtained in (2) is changed to TEST1, and the patient ID (0010,0020) is changed to (0010,0020) before saving to the DICOM image file. Since text is present on the ultrasound image, in addition to changing the patient name (0010,0010) in the DICOM Tag information of the ultrasound image obtained in (2) to TEST1, and the patient ID (0010,0020) to (0010,0020), the image width (0028,0011) in the DICOM Tag information is changed to the width of the cropping range, and the image width (0028,0010) is changed to the height of the cropping range before saving to the DICOM image file.
[0035] (7) The total number of bytes for all DICOM image files in the specified folder is calculated to be 976 megabytes for the 18 DICOM video files. Since the storage medium for the configuration file is a CD, and one CD has 640 megabytes, it is necessary to create two DICOMDIR files (two CDs). Also, in the configuration file, the storage subfolder for DICOM image files managed by the DICOMDIR file is DCM, so when creating the DICOMDIR file, the storage subfolder for DICOM image files should be set to DCM.
[0036] Compared to conventional technologies, the beneficial effects of the present invention are as follows: Compared to conventional technologies, the present invention provides a method and system for creating DICOMDIR files, and when creating DICOMDIR files, in addition to modifying the DICOM Tag necessary for anonymization, it also achieves simultaneous anonymization of patient information and text imprinted on the DICOM image.
Claims
1. A method for creating a DICOMDIR file carried out by a computer, comprising: A process in which a DICOM image for creating a DICOMDIR file is placed in a designated folder, and a first frame image of the DICOM image present in the folder is acquired; A process of performing a binarization process on the first frame image to obtain a binary image; A process of setting character detection areas at the upper left, upper right, lower left, and lower right of the binary image; determining top and bottom position coordinates of a line of characters in each character detection area by projecting the line of characters in each character detection area in a horizontal direction; determining the left and right position coordinates and the number of characters in each character detection area by vertically projecting the character detection area; determining the actual coordinate ranges of the four character detection areas according to the number of detected characters; determining a cropping range of the DICOM image based on the coordinate ranges of the four character detection areas, and cropping each frame of the DICOM image to obtain a cropped DICOM image; obtaining cropped DICOM images from all of the DICOM images in the folder and creating a DICOMDIR file with all of the cropped DICOM image files; A process of acquiring DICOM Tag information from all DICOM files in the specified folder; and a process of modifying the DICOM Tag information according to Tag information that needs to be anonymized and that is specified by a user in a setting file, and acquiring a DICOM file including the modified DICOM Tag information; Before performing a projection process for projecting the character detection area in the horizontal and vertical directions, an area where the character area is smaller than a predetermined range or an area where the character area is larger than the predetermined range is deleted, and only the area within the predetermined range is retained, and then the projection process is performed. How to create a DICOMDIR file.
2. When calculating the upper and lower position coordinates of a character line in the character detection area by projecting the character detection area in the horizontal direction, 2. A method for creating a DICOMDIR file as described in claim 1, further comprising: obtaining projection data by horizontally projecting a character detection area of the binary image; and determining, from the projection data, the position coordinates of the top and bottom of a character line based on a characteristic that an average luminance of the character area is higher than an average luminance of the background of the image.
3. When calculating the left and right position coordinates and the number of characters of each character in the character detection area by projecting the character detection area in a vertical direction, 2. A DICOMDIR file creation method as described in claim 1, further comprising: obtaining projection data by vertically projecting the character detection area of the binary image; determining, in the projection data, a characteristic in which the average brightness of the character area is higher than the average brightness of the background of the image; determining a threshold value for the average brightness; and determining threshold values for the width, height and spacing of one character; and determining the left and right position coordinates of each character in the character detection area and the total number of characters.
4. When creating the DICOMDIR file after creating cropped DICOM images for all DICOM image files in the folder, A process of calculating the total number of bytes of all the cropped DICOM images in the folder; The DICOMDIR file creation method according to claim 1 , further comprising a process of determining the number of DICOMDIR files to be created based on a total number of bytes of the DICOM images.
5. A DICOM image acquisition module that acquires all DICOM images in a specified folder; a DICOM image first frame acquisition module for acquiring a first frame image from the DICOM image; a binarization module that performs a binarization process on the first frame image to obtain a binary image; a character detection area setting module for setting four character detection areas, namely, an upper left, an upper right, a lower left, and a lower right, in advance in the binary image; a character top and bottom position coordinate determining module, for determining the top and bottom position coordinates of the character line through horizontal projection of the character detection area; a character left and right position coordinate determining module for determining the left and right position coordinates of each character and the number of characters through a vertical projection of the character detection area; an actual character range determining module for determining an actual character range according to position coordinates of characters detected in each of the character detection areas; a cropping range determining module for determining a cropping range of the image according to the actual character range; a cropping module for cropping a first frame of the DICOM image according to the determined image cropping range and writing the cropped frame as a DICOM image; A Return processing module that returns to the first frame acquisition module of the DICOM image to complete the cropping process of all the DICOM images in the folder; a DICOMDIR file creation module that creates a DICOMDIR file using all the cropped DICOM image files in the folder; a DICOM Tag information acquisition module that acquires DICOM Tag information from all DICOM files in the specified folder; A DICOM Tag information modification module that modifies the DICOM Tag information according to the Tag information that needs to be anonymized and is specified by the user in the configuration file; and a DICOM Tag information storage module for storing a DICOM file including the modified DICOM Tag information; Equipped with Before performing a projection process for projecting the character detection area in the horizontal and vertical directions, an area where the character area is smaller than a predetermined range or an area where the character area is larger than the predetermined range is deleted, and only the area within the predetermined range is retained, and then the projection process is performed. DICOMDIR file creation system.
6. 6. The DICOMDIR file creation system according to claim 5, wherein the character top and bottom position coordinate determination module obtains projection data by horizontally projecting the character detection area of the binary image, and determines the top and bottom position coordinates of the character line based on the characteristic that the average brightness of the character area is higher than the average brightness of the image background in the projection data.
7. 6. The DICOMDIR file creation system according to claim 5, wherein said character left and right position coordinate determination module determines the left and right position coordinates of each character and the total number of characters in the character detection area of said binary image by vertical projection of the character detection area.
8. The DICOMDIR file creation module has the following child modules: a DICOM image total byte number calculator module for calculating the total byte number by adding up the byte numbers of all DICOM image files in the specified folder; A DICOMDIR file number calculator module for calculating the number of DICOMDIR files that can be created based on the size (number of bytes) of one set DICOMDIR file; 6. The DICOMDIR file creation system of claim 5, further comprising a DICOMDIR file creator module that creates a DICOMDIR file from the cropped DICOM image files in the folder.