WO2021017272A1 - Pathology image annotation method and device, computer apparatus, and storage medium - Google Patents

Pathology image annotation method and device, computer apparatus, and storage medium Download PDF

Info

Publication number
WO2021017272A1
WO2021017272A1 PCT/CN2019/116925 CN2019116925W WO2021017272A1 WO 2021017272 A1 WO2021017272 A1 WO 2021017272A1 CN 2019116925 W CN2019116925 W CN 2019116925W WO 2021017272 A1 WO2021017272 A1 WO 2021017272A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
format
interest
region
preset
Prior art date
Application number
PCT/CN2019/116925
Other languages
French (fr)
Chinese (zh)
Inventor
杨光
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021017272A1 publication Critical patent/WO2021017272A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/40ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H70/00ICT specially adapted for the handling or processing of medical references
    • G16H70/60ICT specially adapted for the handling or processing of medical references relating to pathologies

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a pathological image labeling method, device, computer equipment and storage medium.
  • the labeling tools on the market such as LabelMe, etc.
  • pathological images such as ndpi, tif, oct and other image formats
  • the inventor realized that because The data processed by many AI models is pathological data, which cannot be supported by traditional labeling tools and cannot adapt to diversified labeling requirements. As a result, users cannot label pathological images normally, which affects the work efficiency of users.
  • the embodiments of the present application provide a pathological image labeling method, device, computer equipment, and storage medium to solve the problem that pathological images cannot be accurately labelled, which affects the work efficiency of users.
  • a method for marking pathological images includes:
  • the image format is the conventional format, determining the pathological image corresponding to the conventional format as the region of interest image;
  • the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
  • the application type is matched with the description information in the preset annotation library, and the annotation strategy corresponding to the description information that is successfully matched is selected to annotate the region of interest image, wherein the preset annotation library contains the description Information and the labeling strategy corresponding to the description information.
  • a pathological image marking device including:
  • the first acquisition module is used to acquire the pathological image to be labeled from the preset image library
  • the recognition module is used to recognize the image format of the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
  • the conventional format module is configured to determine the pathological image corresponding to the conventional format as the region of interest image if the image format is the conventional format;
  • the target format module is configured to, if the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
  • the second obtaining module is configured to receive the labeling request of the operating user, and obtain the application type corresponding to the labeling request from the preset type library;
  • An annotation module configured to match the application type with the description information in a preset annotation library, and select an annotation strategy corresponding to the description information that is successfully matched to annotate the region of interest image, wherein the preset annotation library Contains the description information and the labeling strategy corresponding to the description information.
  • a computer device comprising a memory, a processor, and computer readable instructions stored in the memory and capable of running on the processor, and the processor implements the above pathological image labeling method when the processor executes the computer readable instructions A step of.
  • a non-volatile computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the above pathological image labeling method is implemented step.
  • FIG. 1 is a flowchart of a pathological image labeling method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of step S2 in FIG. 1;
  • FIG. 3 is a flowchart of step S4 in FIG. 1;
  • FIG. 4 is a flowchart of step S42 in Figure 3;
  • FIG. 5 is a flowchart of step S422 in FIG. 4;
  • FIG. 6 is a flowchart of graying a pathological image in a pathological image labeling method provided by an embodiment of the present application
  • FIG. 7 is a flowchart of storing the annotation information of the pathological image in the pathological image annotation method provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram of a pathological image labeling device provided by an embodiment of the present application.
  • Fig. 9 is a basic structural block diagram of a computer device provided by an embodiment of the present application.
  • the pathological image labeling method provided in this application is applied to the server, and the server can be implemented by an independent server or a server cluster composed of multiple servers.
  • a method for marking pathological images is provided, which includes the following steps:
  • the preset image library refers to a database dedicated to storing pathological images.
  • S2 Perform image format recognition on the pathological image, and determine whether it is the pathological image in the target format or the pathological image in the conventional format.
  • the file extension corresponding to the pathological image is obtained, and the image format is identified by matching the file extension with the preset extension, and then it is determined whether the image format of the pathological image is the target format or the regular format.
  • the file extension is also called the file extension, which is a mechanism used by the operating system to mark the file type.
  • the default extension refers to the file extension set according to the user's needs, which can be the file extension of ndpi.
  • the pathological image corresponding to the conventional format is determined as the region of interest image.
  • the image format of the pathological image is recognized according to step S2, and when the image format is recognized as the conventional format, the pathological image corresponding to the conventional format is determined as the region of interest image.
  • the conventional format can specifically refer to the image format of oct and tif, and can also be set according to the actual needs of the user, and there is no limitation here.
  • the image format of the pathological image is recognized according to step S2.
  • the image format is recognized as the target format
  • the pathological image corresponding to the target format is down-sampled, and the down-sampling processed
  • the pathological image is determined as the region of interest image.
  • the target format mainly refers to an image format of ndpi.
  • S5 Receive the labeling request from the operating user, and obtain the application type corresponding to the labeling request from the preset type library.
  • the annotation request corresponding to the user is obtained, and the application type corresponding to the annotation request is obtained from the preset type library, where the preset type
  • the library refers to a database specially used to store a labeling request and the application type corresponding to the labeling request.
  • the application types corresponding to the labeling request are mainly divided into three types, namely, classification application, detection application, and segmentation application.
  • the corresponding labeling requests are "category”, “detection”, and “segmentation”.
  • Classification refers to the classification of the input image category in a certain sense.
  • Detection refers to drawing a rectangular frame, circular frame, etc. on a certain area of an input image.
  • Segmentation refers to drawing a free pen closed curve to a certain area of an input image.
  • S6 Match the application type with the description information in the preset annotation library, and select the annotation strategy corresponding to the successfully matched description information to annotate the image of the region of interest.
  • the preset annotation library contains the description information and the corresponding description information. Labeling strategy.
  • the labeling request corresponding to the application type obtained in step S5 is matched with the description information in the preset labeling library.
  • the labeling request is the same as the description information, it indicates that the matching is successful, and the labeling strategy pair corresponding to the description information is selected Annotate the image of the region of interest.
  • the labeling strategy corresponding to the description information of "category” is to label the image of the region of interest based on the image format. If the image format is a regular format, the entire region of interest image is directly labeled with preset label information; if the image format is the target Format, it is detected that the user clicks on the relevant area on the image of the area of interest, and the area selected by the user is marked with preset label information.
  • the preset label information can be a noun or a symbol, and its specific settings can be set according to the actual needs of the user.
  • the region of interest image can be labeled with multiple same preset label information, or the region of interest image can be labeled with multiple different preset label information .
  • the labeling strategy corresponding to the description information of "detection” is to obtain a preselection box, and mark the preselection box for the area selected by the user based on the detection that the user clicks on the relevant area on the image of the region of interest on the client.
  • the preselection box may be a rectangular box or a circular box, and there is no limitation here.
  • the labeling strategy corresponding to "segmentation" in the description information is to obtain the preset free pen tool.
  • the preset free pen tool mainly refers to a tool used to mark an image with a closed curve.
  • the scale, setWorldMatrix, and translate functions in the interface of the object QPainter in the Qt framework can also be used to implement the translation function, rotation function, and zoom function of the image, respectively.
  • step S2 the image format identification of the pathological image, and determining whether it is the pathological image in the target format or the pathological image in the conventional format includes the following steps:
  • the file extension corresponding to the pathological image is directly obtained from the preset type table.
  • the preset type table refers to a data table specially used for storing file extensions corresponding to pathological images.
  • the file extension acquired in step S21 is compared with the preset extension.
  • the image format corresponding to the pathological image is determined to be the conventional format.
  • the image format of the pathological image corresponding to the file extension is determined to be the conventional format.
  • the file extension corresponding to pathology image A is oct. If the default extension is ndpi, compare the file extension oct with the preset extension ndpi. Since oct and ndpi are different, the image format of pathology image A is determined It is a regular format.
  • the image format of the pathological image corresponding to the file extension is determined as the target format.
  • the file extension corresponding to pathology image B is ndpi. If the preset extension name is ndpi, compare the file extension ndpi with the preset extension ndpi. Since both are ndpi, the image format of pathology image B is determined as Target format.
  • the image format of the conventional format or the target format is determined. In this way, accurate recognition of the image format is realized, and the accuracy of subsequent determination of the region of interest image for the image format is improved.
  • step S4 that is, if the image format is the target format, the pathological image corresponding to the target format is down-sampled, and the down-sampled pathological image is used as the region of interest image including The following steps:
  • the pathological image corresponding to the target format is imported into the preset down-sampling library, and the pathological image is down-sampled according to the preset down-sampling coefficient to obtain the processing After the thumbnail image.
  • the preset down-sampling library refers to a database specially used for down-sampling processing of pathological images.
  • the preset downsampling factor is a constant set according to the actual needs of the user, and the value range of the constant is 0-9.
  • Down-sampling processing refers to an N*M image, setting the down-sampling coefficient k, and taking one pixel every k pixels in each row and every column of the N*M image to form a new image.
  • the down-sampling coefficient is set to 0-9. When the down-sampling coefficient is 0, it means that the pathological image will not be down-sampled. When the down-sampling coefficient is 9, it means that The pathological image undergoes maximum down-sampling processing.
  • the down-sampling coefficient is set to 1, when the pathological image is down-sampled, for each row and each column of the pathological image, one pixel is taken out as the target pixel at every interval of 1 pixel, and finally according to Each target pixel constitutes a thumbnail image corresponding to the original pathological image.
  • S42 Extract the region of interest from the thumbnail image to obtain an image of the region of interest.
  • the thumbnail image is imported into the preset processing library to extract the region of interest, and the region of interest image after the region of interest extraction is obtained.
  • the preset processing library refers to a processing library specifically used to extract regions of interest from thumbnail images.
  • the thumbnail image is obtained by down-sampling the pathological image in the target format, and the area of interest is extracted from the thumbnail image to obtain the area of interest image.
  • the area of interest image is obtained by down-sampling the pathological image in the target format, and the area of interest is extracted from the thumbnail image to obtain the area of interest image.
  • step S42 the extraction of the region of interest on the thumbnail image to obtain the region of interest image includes the following steps:
  • the preset region of interest parameter refers to the parameter corresponding to the partial region image selected by the user from the thumbnail image.
  • the parameter database refers to a database specially used for storing preset parameters of the region of interest.
  • the preset region of interest parameters include the coordinate points of the region of interest and the corresponding length and width of the region of interest.
  • S422 Generate an image mask according to preset parameters of the region of interest.
  • the image mask refers to the area where the selected image, figure or object, or the image to be processed is shielded to control the image processing. Import the preset region of interest parameters into the preset processing library for image mask generation processing, and obtain the image mask corresponding to the preset region of interest parameters.
  • the preset processing library refers to a database specifically used for image mask generation processing.
  • S423 Perform an AND operation on the image mask and the thumbnail image to obtain an image of the region of interest.
  • the image mask obtained in the root step S422 is multiplied by the pixel value of each pixel in the image mask by the pixel value of the pixel corresponding to the same position in the thumbnail image, and each pixel is obtained according to the multiplication result.
  • the pixel value of each pixel is obtained, and the new image is taken as the image of the region of interest.
  • the corresponding pixels are A(0,0), A1(0,1), A2(0,2), B(1,0), B1 (1,1), B2(1,2), C(2,0), C1(2,1) and C2(2,2)
  • the corresponding pixel values are 90, 0, 23, 90, 50, 22, 23, 255 and 89, where the pixels of the region of interest are A, A1, B, and B1 respectively
  • there are 9 pixels in the same position as the thumbnail image in the image mask, and the coordinates of the corresponding pixels are respectively
  • Q(0,0), Q1(0,1), Q2(0,2), W(1,0), W1(1,1), W2(1,2), E(2,0), E1(2,1) and E2(2,2) since the pixels of the region of interest in the thumbnail image are A, A1, B, and B1 respectively, the corresponding pixels in the same position in the image mask are respectively Q , Q1, W, and W1, so the pixel
  • the pixel value is multiplied by the pixel value of the corresponding pixel at the same position in the thumbnail image to obtain the coordinates (0, 0), (0, 1), (0, 2), (1, 0), (1, 1) ), (1, 2), (2, 0), (2, 1) and (2, 2) correspond to pixel values of 90, 0, 0, 90, 50, 0, 0, 0 and 0, respectively.
  • the image of the pixel value corresponding to this pixel is the region of interest image.
  • the image mask is generated according to preset parameters of the region of interest, and the image mask and the thumbnail image are used for calculation to obtain the region of interest image. In this way, accurate acquisition of the image of the region of interest is realized, and the accuracy of subsequent labeling of the image of the region of interest is ensured.
  • step S422 generating an image mask according to preset region of interest parameters includes the following steps:
  • S4221 Determine the coordinate parameters of the pixel points of the region of interest and the region of non-interest in the thumbnail image according to the preset region of interest parameters, where the thumbnail image includes the region of interest and the region of non-interest.
  • the thumbnail image is composed of pixels, and each pixel point corresponds to a coordinate point. Since the preset region of interest parameters include the coordinate points of the region of interest, the thumbnail image is compared with the preset interest
  • the area composed of coordinate points with the same area parameters is determined as the area of interest of the thumbnail image, and the coordinate points in the area of interest of the thumbnail image are determined, that is, the coordinate parameters of the pixels in the area of interest are determined;
  • the area composed of coordinate points different from the preset area of interest parameters is determined as the non-interest area of the thumbnail image, and the coordinate points in the non-interest area in the thumbnail image are determined, that is, the pixel points of the non-interest area are determined
  • the coordinate parameters is determined.
  • a thumbnail image is composed of 6 pixels A, B, C, D, E, and F, and the coordinate points corresponding to each pixel are (0, 0), (0, 1), (0, 2). ), (1, 0), (1, 1), (1, 2), the coordinate points of the region of interest included in the preset region of interest parameter are (0, 0), (0, 1), (0 , 2), the area composed of the same coordinate points as the preset area of interest parameters in the thumbnail image is determined as the area of interest of the thumbnail image, that is, the area of interest in the thumbnail image is composed of pixel points A, B, C
  • the corresponding coordinate parameters are (0, 0), (0, 1), (0, 2); the area composed of coordinate points different from the preset area of interest parameters in the thumbnail image is determined as the thumbnail image
  • the non-interest area that is, the area of interest in the thumbnail image is composed of pixels D, E, and F, and the corresponding coordinate parameters are (1, 0), (1, 1), (1,2).
  • an image template with the same coordinate parameters is generated through a preset port, and the image template is Pixels with the same coordinate parameters as the region of interest are determined as target pixels, and pixels in the image template with the same coordinate parameters as the non-interest region are determined as ordinary pixels.
  • the preset port refers to a processing port dedicated to generating an image template.
  • S4223 Set the pixel values of the target pixel and the ordinary pixel in the image template to the preset target value and the preset ordinary value, respectively, and use the set image template as the image mask.
  • step S4222 the target pixel and the ordinary pixel in the image template are obtained, the pixel value of the target pixel is set to the preset target value, the pixel value of the ordinary pixel is set to the preset ordinary value, and the image After the pixel values of all target pixels and common pixels in the template are set, the image template is determined as an image mask.
  • the preset target value refers to a value set according to user requirements for highlighting the color of the target pixel with respect to the color of the common pixel, for example, it may be specifically 0.
  • the preset common value refers to a numerical value that is set to highlight the color of the common pixel relative to the color of the target pixel according to user requirements, and may be specifically 255.
  • the pixels in the image mask correspond to the pixels in the thumbnail image.
  • the pixel value of the pixel in the image mask is mainly the preset target value or the preset normal value
  • the pixel value of the pixel in the image mask is mainly used. The value is multiplied by the pixel value of the pixel in the thumbnail image.
  • the corresponding image template is generated according to the coordinate parameters of the thumbnail, and the pixel values of the pixels in the image template are set to obtain the image mask. In this way, accurate acquisition of the image mask is realized, the accuracy of subsequent operations using the image mask is ensured, and the accuracy of the pathological image standard is further guaranteed.
  • the pathological image labeling method further includes the following steps:
  • S71 traverse the pixels in the pathological image, and obtain the RGB component value of each pixel.
  • the pixel points in the pathological image are traversed according to a preset traversal mode to obtain the RGB component value of each pixel point, where R, G, and B represent the colors of the three channels of red, green, and blue, respectively.
  • the preset traversal method can be based on the pixel point of the upper left corner of the pathological image as the starting point, and traverse line by line from top to bottom from left to right, or traverse from the midline position of the pathological image to both sides at the same time. It can also be other traversal methods, and there is no restriction here.
  • x and y are the abscissa and ordinate of each pixel in the pathological image
  • g (x, y) is the gray value of the pixel (x, y) after graying
  • R (x, y) Is the color component of the R channel of the pixel (x, y)
  • the pathological image in order to achieve accurate extraction of the information content in the pathological image, the pathological image needs to be grayed out first.
  • the parameter values of k 1 , k 2 and k 3 can be performed according to actual application needs. Setting is not limited here. By adjusting the value range of k 1 , k 2 , and k 3 , the proportions of R channel, G channel and B channel can be adjusted respectively.
  • the RGB model is a commonly used way of expressing color information. It uses the brightness of the three primary colors of red, green and blue to quantitatively represent colors.
  • This model is also called the additive color mixing model, which is a method in which RGB three-color light is superimposed on each other to achieve color mixing, so it is suitable for display of luminous bodies such as displays.
  • the pathological image is weighted to calculate the gray value by formula (1).
  • the component method, the maximum value method, or the average value method may also be used to gray the pathological image. There are no restrictions here.
  • the pathological image is grayed out using formula (1), In this way, the pixel value range of the pixels in the pathological image is set between 0-255, which further reduces the amount of original data of the pathological image and improves the calculation efficiency in the subsequent processing and calculation.
  • the pathological image labeling method further includes the following steps:
  • the user types are mainly registered users and anonymous users. Before an operating user can annotate pathological images in the client, he or she needs to log in as a registered user or as an anonymous user. Obtain the user type of the operating user directly from the preset user library.
  • the preset user database refers to a database dedicated to storing user types of operating users.
  • S82 Perform permission judgment on the data saving request of the user type, and obtain the target user who has the data saving request permission.
  • a registered user has a special user database for storing data for labeling pathological images, and the pathological image data can be saved in the client.
  • the data annotated by anonymous users in the client is only temporarily saved, and pathological image data cannot be saved in the client.
  • step S81 the user type corresponding to the operating user is obtained. If the user type is a registered user, it means that the user type has the permission to save the data; if the user type is anonymous, it means that the user type does not have the data save request. , And determine the registered user as the target user.
  • registered users include their corresponding id.
  • S83 Receive the data saving request sent by the target user, and save the marking information of the pathological image of the target user in the user database.
  • the id contained in the registered user is used to match the id with the library id in the preset storage library, and the successfully matched storage library is determined as the user database , And save the target user's annotation information of the pathological image in the client to the user database.
  • the preset storage library refers to the storage library and the library id corresponding to the storage library.
  • the permission of the data saving request is judged according to the user type, the operating user who has the permission of the data saving request is determined as the target user, and the marking information of the pathological image of the target user is saved in the user database.
  • the storage and processing of the target user data is realized, the security of the target user's storage of the pathological image annotation data is ensured, and the target user is convenient for the target user to call the pathological image annotation data, thereby improving the work efficiency of the target user.
  • a pathological image labeling device is provided, and the pathological image labeling device corresponds to the pathological image labeling method in the above-mentioned embodiment one to one.
  • the pathological image labeling device includes a first acquisition module 81, a recognition module 82, a conventional format module 83, a target format module 84, a second acquisition module 85 and a labeling module 86.
  • the detailed description of each functional module is as follows:
  • the first acquiring module 81 is configured to acquire pathological images to be labeled from a preset image library
  • the recognition module 82 is used to recognize the image format of the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
  • the conventional format module 83 is used to determine the pathological image corresponding to the conventional format as the region of interest image if the image format is a conventional format;
  • the target format module 84 is configured to, if the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampling processed pathological image as the region of interest image;
  • the second obtaining module 85 is configured to receive the labeling request of the operating user, and obtain the application type corresponding to the labeling request from the preset type library;
  • the annotation module 86 is used to match the application type with the description information in the preset annotation library, and select the annotation strategy corresponding to the successfully matched description information to annotate the image of the region of interest.
  • the preset annotation library contains the description information and The labeling strategy corresponding to the description information.
  • the identification module 82 includes:
  • the third acquisition sub-module is used to acquire the file extension corresponding to the pathological image from the preset type table
  • the comparison sub-module is used to compare the file extension with the preset extension
  • target format module 84 includes:
  • the down-sampling sub-module is used to perform down-sampling processing on the pathological image corresponding to the target format if the image format is the target format to obtain a thumbnail image;
  • the extraction sub-module is used to extract the region of interest from the thumbnail image to obtain the region of interest image.
  • the extraction sub-module includes:
  • the fourth acquiring unit is used to acquire preset parameters of the region of interest
  • An image mask generating unit configured to generate an image mask according to preset parameters of the region of interest
  • the arithmetic unit is used to perform an AND operation between the image mask and the thumbnail image to obtain an image of the region of interest.
  • the generating unit includes:
  • the coordinate determination subunit is used to determine the coordinate parameters of the pixel points of the region of interest and the non-interest region in the thumbnail image according to the preset region of interest parameters, where the thumbnail image includes the region of interest and the non-interest region;
  • the image template generating subunit is used to generate an image template with the same coordinate parameters through a preset port, where the image template contains target pixels of the region of interest and ordinary pixels of the non-interest region;
  • the image mask determining subunit is used to set the pixel values of the target pixel and the ordinary pixel in the image template to the preset target value and the preset ordinary value, respectively, and use the set image template as the image mask.
  • the pathological image labeling device further includes:
  • the traversal module is used to traverse the pixels in the pathological image and obtain the RGB component value of each pixel;
  • the gray-scale calculation module is used to perform gray-scale processing on the pathological image according to the RGB component value of the pixel according to the following formula:
  • x and y are the abscissa and ordinate of each pixel in the pathological image
  • g (x, y) is the gray value of the pixel (x, y) after graying
  • R (x, y) Is the color component of the R channel of the pixel (x,y)
  • G(x,y) is the color component of the G channel of the pixel (x,y)
  • B(x,y) is the pixel (x,y)
  • the color components of the B channel, k 1 , k 2 and k 3 are all constants.
  • the pathological image labeling device further includes:
  • the fifth obtaining module is used to obtain the user type of the operating user from the preset user library
  • the authorization judgment module is used to judge the authorization of the data saving request of the user type, and obtain the target user who has the authorization of the data saving request;
  • the saving module is used to receive the data saving request sent by the target user, and save the marking information of the pathological image of the target user in the user database.
  • FIG. 9 is a block diagram of the basic structure of the computer device 90 in an embodiment of this application.
  • the computer device 90 includes a memory 91, a processor 92, and a network interface 93 that are communicatively connected to each other through a system bus. It should be pointed out that FIG. 9 only shows a computer device 90 with components 91-93, but it should be understood that it is not required to implement all the shown components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions.
  • Its hardware includes but is not limited to microprocessors, dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded devices, etc.
  • ASIC Application Specific Integrated Circuit
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • DSP Digital Processor
  • the computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
  • the memory 91 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static memory Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 91 may be an internal storage unit of the computer device 90, such as a hard disk or memory of the computer device 90.
  • the memory 91 may also be an external storage device of the computer device 90, such as a plug-in hard disk equipped on the computer device 90, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, Flash Card, etc.
  • the memory 91 may also include both the internal storage unit of the computer device 90 and its external storage device.
  • the memory 91 is generally used to store an operating system and various application software installed in the computer device 90, such as computer readable instructions of the pathological image labeling method.
  • the memory 91 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 92 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 92 is generally used to control the overall operation of the computer device 90.
  • the processor 92 is configured to run computer-readable instructions or processed data stored in the memory 91, for example, computer-readable instructions for running the pathological image labeling method.
  • the network interface 93 may include a wireless network interface or a wired network interface, and the network interface 93 is generally used to establish a communication connection between the computer device 90 and other electronic devices.
  • This application also provides another implementation manner, that is, a non-volatile computer-readable storage medium storing pathological image data information entry process, and the pathological
  • the image data information entry process can be executed by at least one processor, so that the at least one processor executes the steps of any one of the pathological image labeling methods described above.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a computer device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
  • a computer device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

A pathology image annotation method and device, a computer apparatus, and a storage medium, relating to the technical field of artificial intelligence. The pathology image annotation method comprises: identifying an image format of an acquired pathology image, and determining whether the pathology image is in a target format or in a conventional format (S2); if the image format is the conventional format, determining that the pathology image corresponding to the conventional format is a region-of-interest image (S3); if the image format is the target format, performing downsampling processing on the pathology image corresponding to the target format, and acquiring a region-of-interest image (S4); receiving an annotation request of an operating user, and acquiring, from a preconfigured type library, an application type corresponding to the annotation request (S5); and matching the application type with description information in a preconfigured annotation library, and selecting an annotation policy corresponding to the successfully matched description information so as to annotate the region-of-interest image (S6). A pathology image is annotated accurately, thereby improving the efficiency of a user when annotating a pathology image.

Description

病理图像标注方法、装置、计算机设备及存储介质Pathological image labeling method, device, computer equipment and storage medium
本申请以2019年8月1日提交的申请号为201910708215.1,名称为“病理图像标注方法、装置、计算机设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on the Chinese invention patent application filed on August 1, 2019 with the application number 201910708215.1 and titled "Pathological Image Marking Method, Device, Computer Equipment and Storage Medium", and claims its priority.
技术领域Technical field
本申请涉及人工智能技术领域,尤其涉及一种病理图像标注方法、装置、计算机设备及存储介质。This application relates to the field of artificial intelligence technology, and in particular to a pathological image labeling method, device, computer equipment and storage medium.
背景技术Background technique
目前市面上的标注工具,例如LabelMe等,都只是对常见格式的图像进行读取和标注,不能支持病理图像的解析和读取,比如ndpi、tif、oct等图像格式;发明人意识到,由于很多AI模型处理的数据都是病理数据,传统的标注工具无法支持,且无法适应多样化的标注需求,导致用户无法正常对病理图像进行标注,进而影响用户的工作效率。At present, the labeling tools on the market, such as LabelMe, etc., only read and label images in common formats, and cannot support the analysis and reading of pathological images, such as ndpi, tif, oct and other image formats; the inventor realized that because The data processed by many AI models is pathological data, which cannot be supported by traditional labeling tools and cannot adapt to diversified labeling requirements. As a result, users cannot label pathological images normally, which affects the work efficiency of users.
发明内容Summary of the invention
本申请实施例提供一种病理图像标注方法、装置、计算机设备及存储介质,以解决无法对病理图像进行准确标注,影响用户工作效率的问题。The embodiments of the present application provide a pathological image labeling method, device, computer equipment, and storage medium to solve the problem that pathological images cannot be accurately labelled, which affects the work efficiency of users.
一种病理图像标注方法,包括:A method for marking pathological images includes:
从预设图像库中获取待标注的病理图像;Obtain the pathological image to be labeled from the preset image library;
对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;Perform image format recognition on the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;If the image format is the conventional format, determining the pathological image corresponding to the conventional format as the region of interest image;
若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;Receiving a labeling request from an operating user, and obtaining the application type corresponding to the labeling request from a preset type library;
将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。The application type is matched with the description information in the preset annotation library, and the annotation strategy corresponding to the description information that is successfully matched is selected to annotate the region of interest image, wherein the preset annotation library contains the description Information and the labeling strategy corresponding to the description information.
一种病理图像标注装置,包括:A pathological image marking device, including:
第一获取模块,用于从预设图像库中获取待标注的病理图像;The first acquisition module is used to acquire the pathological image to be labeled from the preset image library;
识别模块,用于对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;The recognition module is used to recognize the image format of the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
常规格式模块,用于若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;The conventional format module is configured to determine the pathological image corresponding to the conventional format as the region of interest image if the image format is the conventional format;
目标格式模块,用于若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;The target format module is configured to, if the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
第二获取模块,用于接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;The second obtaining module is configured to receive the labeling request of the operating user, and obtain the application type corresponding to the labeling request from the preset type library;
标注模块,用于将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。An annotation module, configured to match the application type with the description information in a preset annotation library, and select an annotation strategy corresponding to the description information that is successfully matched to annotate the region of interest image, wherein the preset annotation library Contains the description information and the labeling strategy corresponding to the description information.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现上述病理图像标注方法的步骤。A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and capable of running on the processor, and the processor implements the above pathological image labeling method when the processor executes the computer readable instructions A step of.
一种非易失性的计算机可读存储介质,所述非易失性的计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述病理图像标注方法的步骤。A non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the above pathological image labeling method is implemented step.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are presented in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请实施例提供的病理图像标注方法的流程图;FIG. 1 is a flowchart of a pathological image labeling method provided by an embodiment of the present application;
图2是图1中步骤S2的流程图;FIG. 2 is a flowchart of step S2 in FIG. 1;
图3是图1中步骤S4的流程图;FIG. 3 is a flowchart of step S4 in FIG. 1;
图4是图3中步骤S42的流程图;Figure 4 is a flowchart of step S42 in Figure 3;
图5是图4中步骤S422的流程图;FIG. 5 is a flowchart of step S422 in FIG. 4;
图6是本申请实施例提供的病理图像标注方法中对病理图像进行灰度化处理的流程图;FIG. 6 is a flowchart of graying a pathological image in a pathological image labeling method provided by an embodiment of the present application;
图7是本申请实施例提供的病理图像标注方法中对病理图像的标注信息进行保存的流程图;FIG. 7 is a flowchart of storing the annotation information of the pathological image in the pathological image annotation method provided by the embodiment of the present application;
图8是本申请实施例提供的病理图像标注装置的示意图;Fig. 8 is a schematic diagram of a pathological image labeling device provided by an embodiment of the present application;
图9是本申请实施例提供的计算机设备的基本机构框图。Fig. 9 is a basic structural block diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请提供的病理图像标注方法应用于服务端,服务端具体可以用独立的服务器或者多个服务器组成的服务器集群实现。在一实施例中,如图1所示,提供一种病理图像标注方法,包括如下步骤:The pathological image labeling method provided in this application is applied to the server, and the server can be implemented by an independent server or a server cluster composed of multiple servers. In an embodiment, as shown in FIG. 1, a method for marking pathological images is provided, which includes the following steps:
S1:从预设图像库中获取待标注的病理图像。S1: Obtain the pathological image to be labeled from the preset image library.
在本申请实施例中,通过对预设图像库进行检测,当检测到预设图像库中存在病理图像时,则直接对病理图像进行获取。其中,预设图像库是指专门用于存储病理图像的数据库。In the embodiment of the present application, by detecting the preset image library, when it is detected that there is a pathological image in the preset image library, the pathological image is directly acquired. Among them, the preset image library refers to a database dedicated to storing pathological images.
S2:对病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像。S2: Perform image format recognition on the pathological image, and determine whether it is the pathological image in the target format or the pathological image in the conventional format.
具体地,通过获取病理图像对应的文件拓展名,并利用文件拓展名与预设拓展名进行匹配的方式对图像格式进行识别,进而判断病理图像的图像格式为目标格式或是常规格式。Specifically, the file extension corresponding to the pathological image is obtained, and the image format is identified by matching the file extension with the preset extension, and then it is determined whether the image format of the pathological image is the target format or the regular format.
文件拓展名也称为文件的后缀名,是操作系统用来标志文件类型的一种机制。The file extension is also called the file extension, which is a mechanism used by the operating system to mark the file type.
预设拓展名是指根据用户需求设定的文件拓展名,其具体可以是ndpi的文件拓展名。The default extension refers to the file extension set according to the user's needs, which can be the file extension of ndpi.
S3:若图像格式为常规格式,则将常规格式对应的病理图像确定为感兴趣区域图像。S3: If the image format is a conventional format, the pathological image corresponding to the conventional format is determined as the region of interest image.
在本申请实施例中,根据步骤S2对病理图像的图像格式进行识别,当识别到图像格式为常规格式时,则将该常规格式对应的病理图像确定为感兴趣区域图像。In the embodiment of the present application, the image format of the pathological image is recognized according to step S2, and when the image format is recognized as the conventional format, the pathological image corresponding to the conventional format is determined as the region of interest image.
需要说明的是,常规格式具体可以是指oct、tif的图像格式,也可以根据用户的实际需求进行设置,此处不做限制。It should be noted that the conventional format can specifically refer to the image format of oct and tif, and can also be set according to the actual needs of the user, and there is no limitation here.
S4:若图像格式为目标格式,则将目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为感兴趣区域图像。S4: If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampling processed pathological image as the region of interest image.
在本申请实施例中,根据步骤S2对病理图像的图像格式进行识别,当识别到图像格式为目标格式时,则对该目标格式对应的病理图像进行降采样处理,并将降采样处理后的病理图像确定为感兴趣区域图像。In the embodiment of the present application, the image format of the pathological image is recognized according to step S2. When the image format is recognized as the target format, the pathological image corresponding to the target format is down-sampled, and the down-sampling processed The pathological image is determined as the region of interest image.
优选地,在本实施例中,目标格式主要是指ndpi的图像格式。Preferably, in this embodiment, the target format mainly refers to an image format of ndpi.
S5:接收操作用户的标注请求,并从预设类型库中获取标注请求对应的应用类型。S5: Receive the labeling request from the operating user, and obtain the application type corresponding to the labeling request from the preset type library.
具体地,当检测到用户从客户端中点击病理图像标注对应的标注请求时,获取该用户对应的标注请求,并从预设类型库中获取该标注请求对应的应用类型,其中,预设类型库是指专门用于存储标注请求及其标注请求对应的应用类型的数据库。Specifically, when it is detected that the user clicks on the annotation request corresponding to the pathological image annotation from the client, the annotation request corresponding to the user is obtained, and the application type corresponding to the annotation request is obtained from the preset type library, where the preset type The library refers to a database specially used to store a labeling request and the application type corresponding to the labeling request.
需要说明的是,标注请求对应的应用类型主要分为3种,分别为分类应用、检测应用和分割应用,其对应的标注请求分别为“分类”、“检测”和“分割”。It should be noted that the application types corresponding to the labeling request are mainly divided into three types, namely, classification application, detection application, and segmentation application. The corresponding labeling requests are "category", "detection", and "segmentation".
分类:是指对输入的某张图像的类别进行某种意义上分类。Classification: refers to the classification of the input image category in a certain sense.
检测:是指对输入的某张图像的某个区域画一个矩形框、圆形框等。Detection: refers to drawing a rectangular frame, circular frame, etc. on a certain area of an input image.
分割:是指对输入的某张图像的某个区域画一个自由笔封闭曲线。Segmentation: refers to drawing a free pen closed curve to a certain area of an input image.
S6:将应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的描述信息对应的标注策略对感兴趣区域图像进行标注,其中,预设标注库中包含描述信息及描述信息对应的标注策略。S6: Match the application type with the description information in the preset annotation library, and select the annotation strategy corresponding to the successfully matched description information to annotate the image of the region of interest. The preset annotation library contains the description information and the corresponding description information. Labeling strategy.
具体地,将步骤S5获取到的应用类型对应的标注请求与预设标注库中的描述信息进行匹配,当标注请求与描述信息相同时,表示匹配成功,并选取该描述信息对应的标注策略对感兴趣区域图像进行标注。Specifically, the labeling request corresponding to the application type obtained in step S5 is matched with the description information in the preset labeling library. When the labeling request is the same as the description information, it indicates that the matching is successful, and the labeling strategy pair corresponding to the description information is selected Annotate the image of the region of interest.
需要说明的是,预设标注库中包含的描述信息分别为“分类”、“检测”和“分割”。It should be noted that the description information contained in the preset annotation library is "classification", "detection" and "segmentation" respectively.
其中,描述信息为“分类”对应的标注策略为基于图像格式对感兴趣区域图像进行标注,若图像格式为常规格式,则直接对整个感兴趣区域图像标注预设标签信息;若图像格式为目标格式,则检测用户点击感兴趣区域图像上的相关区域,对用户所选区域进行标注预设标签信息。Among them, the labeling strategy corresponding to the description information of "category" is to label the image of the region of interest based on the image format. If the image format is a regular format, the entire region of interest image is directly labeled with preset label information; if the image format is the target Format, it is detected that the user clicks on the relevant area on the image of the area of interest, and the area selected by the user is marked with preset label information.
预设标签信息具体可以是名词,也可以是符号,其具体的设置可以根据用户的实际需求进行设置。The preset label information can be a noun or a symbol, and its specific settings can be set according to the actual needs of the user.
需要说明的是,针对分类应用类型的感兴趣区域图像进行标注时,可以对感兴趣区域图像标注多个相同的预设标签信息,也可以对感兴趣区域图像标注多个不同的预设标签信息。It should be noted that when labeling the region of interest image of the classification application type, the region of interest image can be labeled with multiple same preset label information, or the region of interest image can be labeled with multiple different preset label information .
描述信息为“检测”对应的标注策略为获取预选框,根据检测用户在客户端上点击感兴趣区域图像上的相关区域,对用户所选区域进行标注预选框。其中,预选框具体可以是矩形框,也可以是圆形框,此处不做限制。The labeling strategy corresponding to the description information of "detection" is to obtain a preselection box, and mark the preselection box for the area selected by the user based on the detection that the user clicks on the relevant area on the image of the region of interest on the client. Among them, the preselection box may be a rectangular box or a circular box, and there is no limitation here.
描述信息为“分割”对应的标注策略为获取预设自由笔工具,根据检测用户在客户端上点击感兴趣区域图像上的相关区域,通过预设自由笔工具对用户点击的区域坐标进行标注自由曲线。其中,预设自由笔工具主要是指用于对图像进行标注封闭曲线的工具。The labeling strategy corresponding to "segmentation" in the description information is to obtain the preset free pen tool. According to the detection that the user clicks on the relevant area on the image of the region of interest on the client, the coordinates of the area clicked by the user are marked freely curve. Among them, the preset free pen tool mainly refers to a tool used to mark an image with a closed curve.
进一步地,在对图像标注的过程中,还可以使用Qt框架中的对象QPainter的接口中的scale、setWorldMatrix、translate函数分别实现对图像的平移功能、旋转功能和缩放功能。Further, in the process of labeling the image, the scale, setWorldMatrix, and translate functions in the interface of the object QPainter in the Qt framework can also be used to implement the translation function, rotation function, and zoom function of the image, respectively.
本实施例中,通过对病理图像进行图像格式识别,根据图像格式确定感兴趣区域图像,接收操作用户的标注请求,并获取标注请求对应的应用类型,从预设标注库中选取与应用类型对应的标注策略对感兴趣区域图像进行标注。从而实现对病理图像的准确标注,通过识别图像格式可以有效针对不同格式的病理图像做降采样处理,避免后续无法直接对部分图像格式的病理图像进行准确标注,提高对病理图像进行标注的适用性,根据应用类型选取对应的标注策略可以保证对病理图像进行标注的准确性,进而提高操作用户对病理图像进行标注的工作效率。In this embodiment, by recognizing the image format of the pathological image, determining the image of the region of interest according to the image format, receiving the labeling request of the operating user, and obtaining the application type corresponding to the labeling request, and selecting the corresponding application type from the preset labeling library Annotation strategy of the image of the region of interest is annotated. In this way, accurate labeling of pathological images can be realized. By recognizing the image format, it can effectively perform down-sampling processing for pathological images of different formats, avoiding the subsequent inability to directly accurately label pathological images in some image formats, and improving the applicability of labeling pathological images , Selecting the corresponding labeling strategy according to the application type can ensure the accuracy of labeling pathological images, thereby improving the working efficiency of operating users in labeling pathological images.
在一实施例中,如图2所示,步骤S2中,即对病理图像进行图像格式识 别,判断是目标格式的病理图像还是常规格式的病理图像包括如下步骤:In one embodiment, as shown in Fig. 2, in step S2, the image format identification of the pathological image, and determining whether it is the pathological image in the target format or the pathological image in the conventional format includes the following steps:
S21:从预设类型表中获取病理图像对应的文件拓展名。S21: Obtain the file extension corresponding to the pathological image from the preset type table.
在本申请实施例中,通过直接从预设类型表中获取病理图像对应的文件拓展名。其中,预设类型表是指专门用于存储病理图像对应的文件拓展名的数据表。In the embodiment of the present application, the file extension corresponding to the pathological image is directly obtained from the preset type table. Among them, the preset type table refers to a data table specially used for storing file extensions corresponding to pathological images.
S22:将文件拓展名与预设拓展名进行比较。S22: Compare the file extension with the preset extension.
具体地,将步骤S21获取到的文件拓展名与预设拓展名进行比较。Specifically, the file extension acquired in step S21 is compared with the preset extension.
S23:若文件拓展名与预设拓展名不同,则将病理图像对应的图像格式确定为常规格式。S23: If the file extension is different from the preset extension, the image format corresponding to the pathological image is determined to be the conventional format.
具体地,根据步骤S22将文件拓展名与预设拓展名进行比较的方式,若比较结果为文件拓展名与预设拓展名不同,则将该文件拓展名对应的病理图像的图像格式确定为常规格式。Specifically, according to the method of comparing the file extension with the preset extension according to step S22, if the comparison result is that the file extension is different from the preset extension, the image format of the pathological image corresponding to the file extension is determined to be the conventional format.
例如,病理图像A对应的文件拓展名为oct,若预设拓展名为ndpi,将文件拓展名oct与预设拓展名ndpi进行比较,由于oct与ndpi不同,故将病理图像A的图像格式确定为常规格式。For example, the file extension corresponding to pathology image A is oct. If the default extension is ndpi, compare the file extension oct with the preset extension ndpi. Since oct and ndpi are different, the image format of pathology image A is determined It is a regular format.
S24:若文件拓展名与预设拓展名相同,则将病理图像对应的图像格式确定为目标格式。S24: If the file extension is the same as the preset extension, the image format corresponding to the pathological image is determined as the target format.
具体地,根据步骤S22将文件拓展名与预设拓展名进行比较的方式,若比较结果为文件拓展名与预设拓展名相同,则将该文件拓展名对应的病理图像的图像格式确定为目标格式。Specifically, according to the method of comparing the file extension with the preset extension in step S22, if the comparison result is that the file extension is the same as the preset extension, the image format of the pathological image corresponding to the file extension is determined as the target format.
例如,病理图像B对应的文件拓展名为ndpi,若预设拓展名为ndpi,将文件拓展名ndpi与预设拓展名ndpi进行比较,由于都为ndpi,故将病理图像B的图像格式确定为目标格式。For example, the file extension corresponding to pathology image B is ndpi. If the preset extension name is ndpi, compare the file extension ndpi with the preset extension ndpi. Since both are ndpi, the image format of pathology image B is determined as Target format.
本实施例中,通过获取病理图像对应的文件拓展名,并利用文件拓展名与预设拓展名进行比较的方式,确定常规格式或者目标格式的图像格式。从而实现对图像格式的准确识别,提高后续针对图像格式确定感兴趣区域图像的准确性。In this embodiment, by acquiring the file extension corresponding to the pathological image, and comparing the file extension with the preset extension, the image format of the conventional format or the target format is determined. In this way, accurate recognition of the image format is realized, and the accuracy of subsequent determination of the region of interest image for the image format is improved.
在一实施例中,如图3所示,步骤S4中,即若图像格式为目标格式,则将目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为感兴趣区域图像包括如下步骤:In one embodiment, as shown in FIG. 3, in step S4, that is, if the image format is the target format, the pathological image corresponding to the target format is down-sampled, and the down-sampled pathological image is used as the region of interest image including The following steps:
S41:若图像格式为目标格式,则对目标格式对应的病理图像进行降采样处理,得到缩略图像。S41: If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format to obtain a thumbnail image.
在本申请实施例中,若图像格式为目标格式,则将该目标格式对应的病理图像导入到预设降采样库中,并根据预设降采样系数,对病理图像进行降采样处理,得到处理后的缩略图像。其中,预设降采样库是指专门用于对病理图像进行降采样处理的数据库。预设降采样系数是按照用户实际需求进行设置的常数,该常数的取值范围为0~9。In the embodiment of this application, if the image format is the target format, the pathological image corresponding to the target format is imported into the preset down-sampling library, and the pathological image is down-sampled according to the preset down-sampling coefficient to obtain the processing After the thumbnail image. Among them, the preset down-sampling library refers to a database specially used for down-sampling processing of pathological images. The preset downsampling factor is a constant set according to the actual needs of the user, and the value range of the constant is 0-9.
需要说明的是,由于目标格式的病理图像存储空间比较大,一般都是几个G,不能一次性加载整张病理图像,故需要对目标格式的病理图像进行降 采样处理,以便后续能够正常对病理图像中感兴趣区域的提取。It should be noted that since the storage space of the pathological image in the target format is relatively large, usually a few G, the entire pathological image cannot be loaded at one time, so it is necessary to down-sample the pathological image in the target format so that the subsequent normal Extraction of regions of interest in pathological images.
降采样处理是指针对一副N*M的图像,设定降采样系数k,从N*M的图像中每行每列每隔k个像素点取一个像素点组成一幅新的图像。Down-sampling processing refers to an N*M image, setting the down-sampling coefficient k, and taking one pixel every k pixels in each row and every column of the N*M image to form a new image.
若针对病理图像预先设置10个降采样级别,即设置降采样系数0~9,其中,当降采样系数为0时,表示不对病理图像进行降采样处理,当降采样系数为9时,表示对病理图像进行最大程度的降采样处理。If 10 down-sampling levels are preset for pathological images, the down-sampling coefficient is set to 0-9. When the down-sampling coefficient is 0, it means that the pathological image will not be down-sampled. When the down-sampling coefficient is 9, it means that The pathological image undergoes maximum down-sampling processing.
需要说明的是,降采样系数k越大,对应的降采样率就越大,图像的尺寸大小就越小。It should be noted that the larger the down-sampling coefficient k, the larger the corresponding down-sampling rate, and the smaller the size of the image.
例如,若设置降采样系数为1,对病理图像进行降采样处理时,针对该病理图像中每行和每列的像素点,每间隔1个像素点取出一个像素点作为目标像素点,最终根据每个目标像素点组成一幅原病理图像对应的缩略图像。For example, if the down-sampling coefficient is set to 1, when the pathological image is down-sampled, for each row and each column of the pathological image, one pixel is taken out as the target pixel at every interval of 1 pixel, and finally according to Each target pixel constitutes a thumbnail image corresponding to the original pathological image.
S42:对缩略图像进行感兴趣区域提取,得到感兴趣区域图像。S42: Extract the region of interest from the thumbnail image to obtain an image of the region of interest.
具体地,将缩略图像导入到预设处理库中进行感兴趣区域提取,得到感兴趣区域提取后的感兴趣区域图像。其中,预设处理库是指专门用于对缩略图像进行感兴趣区域提取的处理库。Specifically, the thumbnail image is imported into the preset processing library to extract the region of interest, and the region of interest image after the region of interest extraction is obtained. Among them, the preset processing library refers to a processing library specifically used to extract regions of interest from thumbnail images.
本实施例中,通过对目标格式的病理图像进行降采样处理得到缩略图像,并对缩略图像进行感兴趣区域提取得到感兴趣区域图像。从而实现对目标格式对应的感兴趣区域图像的准确获取,保证后续对感兴趣区域图像进行标注的准确性。In this embodiment, the thumbnail image is obtained by down-sampling the pathological image in the target format, and the area of interest is extracted from the thumbnail image to obtain the area of interest image. In this way, accurate acquisition of the region of interest image corresponding to the target format is realized, and the accuracy of subsequent labeling of the region of interest image is ensured.
在一实施例中,如图4所示,步骤S42中,即对缩略图像进行感兴趣区域提取,得到感兴趣区域图像包括如下步骤:In one embodiment, as shown in FIG. 4, in step S42, the extraction of the region of interest on the thumbnail image to obtain the region of interest image includes the following steps:
S421:获取预设感兴趣区域参数。S421: Obtain preset parameters of the region of interest.
在本申请实施例中,预设感兴趣区域参数是指根据用户从缩略图像中选定的部分区域图像对应的参数。通过从参数数据库中直接对预设感兴趣区域参数进行获取。其中,参数数据库是指专门用于存储预设感兴趣区域参数的数据库。In the embodiment of the present application, the preset region of interest parameter refers to the parameter corresponding to the partial region image selected by the user from the thumbnail image. By directly acquiring the preset region of interest parameters from the parameter database. Among them, the parameter database refers to a database specially used for storing preset parameters of the region of interest.
预设感兴趣区域参数包括感兴趣区域的坐标点以及感兴趣区域对应的长度和宽度。The preset region of interest parameters include the coordinate points of the region of interest and the corresponding length and width of the region of interest.
例如,可以通过调用OpenSlide库中的读取接口对用户选定的部分区域图像进行读取,指定缩略图像中起始点的X、Y坐标和宽高,以获取感兴趣区域参数。For example, you can read a partial area image selected by the user by calling the reading interface in the OpenSlide library, and specify the X, Y coordinates and width and height of the starting point in the thumbnail image to obtain the area of interest parameters.
S422:根据预设感兴趣区域参数生成图像掩膜。S422: Generate an image mask according to preset parameters of the region of interest.
在本申请实施例中,图像掩膜是指用选定的图像、图形或物体、对待处理的图像进行遮挡来控制图像处理的区域。将预设感兴趣区域参数导入到预设处理库中进行图像掩模生成处理,得到预设感兴趣区域参数对应的图像掩模。In the embodiments of the present application, the image mask refers to the area where the selected image, figure or object, or the image to be processed is shielded to control the image processing. Import the preset region of interest parameters into the preset processing library for image mask generation processing, and obtain the image mask corresponding to the preset region of interest parameters.
其中,预设处理库是指专门用于图像掩模生成处理的数据库。Among them, the preset processing library refers to a database specifically used for image mask generation processing.
S423:将图像掩膜与缩略图像进行与运算,得到感兴趣区域图像。S423: Perform an AND operation on the image mask and the thumbnail image to obtain an image of the region of interest.
具体地,根部步骤S422得到的图像掩膜,将该图像掩膜中每个像素点的 像素值与缩略图像中对应相同位置的像素点的像素值进行相乘,并根据相乘结果得到每个像素点的像素值,得到新的图像,将该新的图像作为感兴趣区域图像。Specifically, the image mask obtained in the root step S422 is multiplied by the pixel value of each pixel in the image mask by the pixel value of the pixel corresponding to the same position in the thumbnail image, and each pixel is obtained according to the multiplication result. The pixel value of each pixel is obtained, and the new image is taken as the image of the region of interest.
例如,缩略图像中存在9个像素点,其对应的像素点的坐标分别为A(0,0)、A1(0,1)、A2(0,2)、B(1,0)、B1(1,1)、B2(1,2)、C(2,0)、C1(2,1)和C2(2,2),对应的像素值分别为90、0、23、90、50、22、23、255和89,其中感兴趣区域的像素点分别为A、A1、B和B1;图像掩膜中存在与缩略图像相同位置的9个像素点,其对应的像素点的坐标分别为Q(0,0)、Q1(0,1)、Q2(0,2)、W(1,0)、W1(1,1)、W2(1,2)、E(2,0)、E1(2,1)和E2(2,2),由于缩略图像中感兴趣区域的像素点分别为A、A1、B和B1,图像掩膜中与其对应的相同位置的像素点分别为Q、Q1、W和W1,故Q、Q1、W和W1对应的像素值都为1,Q2、W2、E、E1和E2对应的像素值都为0,将图像掩膜中每个像素点的像素值与缩略图像中对应相同位置的像素点的像素值进行相乘,得到坐标(0,0)、(0,1)、(0,2)、(1,0)、(1,1)、(1,2)、(2,0)、(2,1)和(2,2)对应的像素值分别为,90、0、0、90、50、0、0、0和0,该像素点对应的像素值的图像即为感兴趣区域图像。For example, there are 9 pixels in a thumbnail image, and the coordinates of the corresponding pixels are A(0,0), A1(0,1), A2(0,2), B(1,0), B1 (1,1), B2(1,2), C(2,0), C1(2,1) and C2(2,2), the corresponding pixel values are 90, 0, 23, 90, 50, 22, 23, 255 and 89, where the pixels of the region of interest are A, A1, B, and B1 respectively; there are 9 pixels in the same position as the thumbnail image in the image mask, and the coordinates of the corresponding pixels are respectively For Q(0,0), Q1(0,1), Q2(0,2), W(1,0), W1(1,1), W2(1,2), E(2,0), E1(2,1) and E2(2,2), since the pixels of the region of interest in the thumbnail image are A, A1, B, and B1 respectively, the corresponding pixels in the same position in the image mask are respectively Q , Q1, W, and W1, so the pixel values corresponding to Q, Q1, W, and W1 are all 1, and the pixel values corresponding to Q2, W2, E, E1, and E2 are all 0. Change the value of each pixel in the image mask The pixel value is multiplied by the pixel value of the corresponding pixel at the same position in the thumbnail image to obtain the coordinates (0, 0), (0, 1), (0, 2), (1, 0), (1, 1) ), (1, 2), (2, 0), (2, 1) and (2, 2) correspond to pixel values of 90, 0, 0, 90, 50, 0, 0, 0 and 0, respectively. The image of the pixel value corresponding to this pixel is the region of interest image.
本实施例中,根据预设感兴趣区域参数生成图像掩膜,并利用图像掩模与缩略图像进行计算得到感兴趣区域图像。从而实现对感兴趣区域图像的准确获取,保证后续对感兴趣区域图像进行标注的准确性。In this embodiment, the image mask is generated according to preset parameters of the region of interest, and the image mask and the thumbnail image are used for calculation to obtain the region of interest image. In this way, accurate acquisition of the image of the region of interest is realized, and the accuracy of subsequent labeling of the image of the region of interest is ensured.
在一实施例中,如图5所示,步骤S422中,即根据预设感兴趣区域参数生成图像掩膜包括如下步骤:In an embodiment, as shown in FIG. 5, in step S422, generating an image mask according to preset region of interest parameters includes the following steps:
S4221:根据预设感兴趣区域参数确定缩略图像中感兴趣区域和非感兴趣区域的像素点的坐标参数,其中,缩略图像包含感兴趣区域和非感兴趣区域。S4221: Determine the coordinate parameters of the pixel points of the region of interest and the region of non-interest in the thumbnail image according to the preset region of interest parameters, where the thumbnail image includes the region of interest and the region of non-interest.
在本申请实施例中,缩略图像由像素点构成,且每个像素点对应一个坐标点,由于预设感兴趣区域参数包括感兴趣区域的坐标点,将缩略图像中与预设感兴趣区域参数相同的坐标点组成的区域确定为缩略图像的感兴趣区域,并确定缩略图像的感兴趣区域中的坐标点,即确定感兴趣区域的像素点的坐标参数;将缩略图像中与预设感兴趣区域参数不同的坐标点组成的区域确定为缩略图像的非感兴趣区域,并确定缩略图像中的非感兴趣区域中的坐标点,即确定非感兴趣区域的像素点的坐标参数。In the embodiment of the present application, the thumbnail image is composed of pixels, and each pixel point corresponds to a coordinate point. Since the preset region of interest parameters include the coordinate points of the region of interest, the thumbnail image is compared with the preset interest The area composed of coordinate points with the same area parameters is determined as the area of interest of the thumbnail image, and the coordinate points in the area of interest of the thumbnail image are determined, that is, the coordinate parameters of the pixels in the area of interest are determined; The area composed of coordinate points different from the preset area of interest parameters is determined as the non-interest area of the thumbnail image, and the coordinate points in the non-interest area in the thumbnail image are determined, that is, the pixel points of the non-interest area are determined The coordinate parameters.
例如,缩略图像由6个像素点A、B、C、D、E、F构成,且每个像素点对应的坐标点分别为(0,0)、(0,1)、(0,2)、(1,0)、(1,1)、(1,2),预设感兴趣区域参数包含的感兴趣区域的坐标点分别为(0,0)、(0,1)、(0,2),将缩略图像中与预设感兴趣区域参数相同的坐标点组成的区域确定为缩略图像的感兴趣区域,即缩略图像中的感兴趣区域由像素点A、B、C构成,对应的坐标参数为(0,0)、(0,1)、(0,2);将缩略图像中与预设感兴趣区域参数不同的坐标点组成的区域确定为缩略图像的非感兴趣区域,即缩略图像中的感兴趣区域由像素点D、E、F构成,对应的坐标参数为(1,0)、(1, 1)、(1,2)。For example, a thumbnail image is composed of 6 pixels A, B, C, D, E, and F, and the coordinate points corresponding to each pixel are (0, 0), (0, 1), (0, 2). ), (1, 0), (1, 1), (1, 2), the coordinate points of the region of interest included in the preset region of interest parameter are (0, 0), (0, 1), (0 , 2), the area composed of the same coordinate points as the preset area of interest parameters in the thumbnail image is determined as the area of interest of the thumbnail image, that is, the area of interest in the thumbnail image is composed of pixel points A, B, C The corresponding coordinate parameters are (0, 0), (0, 1), (0, 2); the area composed of coordinate points different from the preset area of interest parameters in the thumbnail image is determined as the thumbnail image The non-interest area, that is, the area of interest in the thumbnail image is composed of pixels D, E, and F, and the corresponding coordinate parameters are (1, 0), (1, 1), (1,2).
S4222:通过预设端口生成与坐标参数相同的图像模板,其中,图像模板包含感兴趣区域的目标像素点和非感兴趣区域的普通像素点。S4222: Generate an image template with the same coordinate parameters through a preset port, where the image template includes target pixels in the region of interest and ordinary pixels in the non-interest region.
在本申请实施例中,基于步骤S4221中缩略图像的感兴趣区域和非感兴趣区域的像素点的坐标参数,通过预设端口生成与该坐标参数相同的图像模板,并且将该图像模板中与感兴趣区域的坐标参数相同的像素点确定为目标像素点,将该图像模板中与非感兴趣区域的坐标参数相同的像素点确定为普通像素点。In the embodiment of the present application, based on the coordinate parameters of the pixel points of the region of interest and the non-interest region of the thumbnail image in step S4221, an image template with the same coordinate parameters is generated through a preset port, and the image template is Pixels with the same coordinate parameters as the region of interest are determined as target pixels, and pixels in the image template with the same coordinate parameters as the non-interest region are determined as ordinary pixels.
其中,预设端口是指专门用于生成图像模板的处理端口。Among them, the preset port refers to a processing port dedicated to generating an image template.
S4223:将图像模板中的目标像素点和普通像素点的像素值分别设置为预设目标值和预设普通值,以设置后的图像模板作为图像掩模。S4223: Set the pixel values of the target pixel and the ordinary pixel in the image template to the preset target value and the preset ordinary value, respectively, and use the set image template as the image mask.
具体地,根据步骤S4222得到图像模板中的目标像素点和普通像素点,将目标像素点的像素值设置为预设目标值,将普通像素点的像素值设置为预设普通值,并在图像模板中的所有目标像素点和普通像素点的像素值设置完成后,将该图像模板确定为图像掩模。Specifically, according to step S4222, the target pixel and the ordinary pixel in the image template are obtained, the pixel value of the target pixel is set to the preset target value, the pixel value of the ordinary pixel is set to the preset ordinary value, and the image After the pixel values of all target pixels and common pixels in the template are set, the image template is determined as an image mask.
其中,预设目标值是指根据用户需求设置用于相对普通像素点的颜色凸显目标像素点的颜色的数值,例如具体可以为0。Among them, the preset target value refers to a value set according to user requirements for highlighting the color of the target pixel with respect to the color of the common pixel, for example, it may be specifically 0.
预设普通值是指根据用户需求设置用于相对目标像素点的颜色凸显普通像素点的颜色的数值,例如具体可以为255。The preset common value refers to a numerical value that is set to highlight the color of the common pixel relative to the color of the target pixel according to user requirements, and may be specifically 255.
需要说明的是,由于图像掩膜是基于缩略图像的坐标参数生成,故图像掩膜中的像素点与缩略图像中的像素点相互对应。It should be noted that since the image mask is generated based on the coordinate parameters of the thumbnail image, the pixels in the image mask correspond to the pixels in the thumbnail image.
进一步地,由于图像掩模中的像素点的像素值主要为预设目标值或预设普通值,后续利用图像掩膜与缩略图像进行与运算时,主要利用图像掩膜中像素点的像素值与缩略图像中像素点的像素值进行相乘。Further, since the pixel value of the pixel in the image mask is mainly the preset target value or the preset normal value, when the subsequent AND operation is performed using the image mask and the thumbnail image, the pixel value of the pixel in the image mask is mainly used. The value is multiplied by the pixel value of the pixel in the thumbnail image.
本实施例中,根据缩略图的坐标参数生成对应的图像模板,并对图像模板中的像素点的像素值进行设置得到图像掩模。从而实现对图像掩模的准确获取,保证后续利用图像掩模进行运算的准确性,进一步保证对病理图像标准的准确性。In this embodiment, the corresponding image template is generated according to the coordinate parameters of the thumbnail, and the pixel values of the pixels in the image template are set to obtain the image mask. In this way, accurate acquisition of the image mask is realized, the accuracy of subsequent operations using the image mask is ensured, and the accuracy of the pathological image standard is further guaranteed.
在一实施例中,如图6所示,步骤S4之后,步骤S5之前,该病理图像标注方法还包括如下步骤:In an embodiment, as shown in FIG. 6, after step S4 and before step S5, the pathological image labeling method further includes the following steps:
S71:对病理图像中的像素点进行遍历,获取每个像素点的RGB分量值。S71: traverse the pixels in the pathological image, and obtain the RGB component value of each pixel.
具体地,按照预设的遍历方式对病理图像中的像素点进行遍历,获取每个像素点的RGB分量值,其中,R、G、B分别代表红、绿、蓝三个通道的颜色。Specifically, the pixel points in the pathological image are traversed according to a preset traversal mode to obtain the RGB component value of each pixel point, where R, G, and B represent the colors of the three channels of red, green, and blue, respectively.
其中,预设的遍历方式具体可以是以病理图像的左上角像素点为起点,从上往下从左往右的顺序进行逐行遍历,也可以是从病理图像的中线位置同时向两边遍历,还可以是其他遍历方式,此处不做限制。Among them, the preset traversal method can be based on the pixel point of the upper left corner of the pathological image as the starting point, and traverse line by line from top to bottom from left to right, or traverse from the midline position of the pathological image to both sides at the same time. It can also be other traversal methods, and there is no restriction here.
S72:根据像素点的RGB分量值,按照如下公式对病理图像作灰度化处理:S72: According to the RGB component value of the pixel, the pathological image is grayed out according to the following formula:
g(x,y)=k 1*R(x,y)+k 2*G(x,y)+k 3*B(x,y)   公式(1) g(x,y)=k 1 *R(x,y)+k 2 *G(x,y)+k 3 *B(x,y) Formula (1)
其中,x和y为病理图像中每个像素点的横坐标和纵坐标,g(x,y)为像素点(x,y)灰度化处理后的灰度值,R(x,y)为像素点(x,y)的R通道的颜色分量,Among them, x and y are the abscissa and ordinate of each pixel in the pathological image, g (x, y) is the gray value of the pixel (x, y) after graying, R (x, y) Is the color component of the R channel of the pixel (x, y),
G(x,y)为像素点(x,y)的G通道的颜色分量,B(x,y)为像素点(x,y)的B通道的颜色分量,k 1、k 2和k 3都为常数。 G(x,y) is the color component of the G channel of the pixel (x,y), B(x,y) is the color component of the B channel of the pixel (x,y), k 1 , k 2 and k 3 Both are constants.
在本申请实施例中,为了实现对病理图像中信息内容的准确提取,首先需要对病理图像进行灰度化处理,其中,k 1,k 2和k 3的参数值可以根据实际应用的需要进行设置,此处不做限制,通过调节k 1,k 2,k 3的取值范围可以分别对R通道,G通道和B通道的占比进行调整。 In the embodiment of this application, in order to achieve accurate extraction of the information content in the pathological image, the pathological image needs to be grayed out first. Among them, the parameter values of k 1 , k 2 and k 3 can be performed according to actual application needs. Setting is not limited here. By adjusting the value range of k 1 , k 2 , and k 3 , the proportions of R channel, G channel and B channel can be adjusted respectively.
RGB模型是目前常用的一种彩色信息表达方式,它使用红、绿、蓝三原色的亮度来定量表示颜色。该模型也称为加色混色模型,是以RGB三色光互相叠加来实现混色的方法,因而适合于显示器等发光体的显示。The RGB model is a commonly used way of expressing color information. It uses the brightness of the three primary colors of red, green and blue to quantitatively represent colors. This model is also called the additive color mixing model, which is a method in which RGB three-color light is superimposed on each other to achieve color mixing, so it is suitable for display of luminous bodies such as displays.
灰度化是指在RGB模型中,如果R=G=B时,则色彩表示只有一种灰度颜色,其中R=G=B的值叫灰度值,因此,灰度化图像每个像素只需一个字节存放灰度值,灰度范围为0-255。Gray-scale means that in the RGB model, if R=G=B, the color represents only one gray-scale color. The value of R=G=B is called the gray-scale value. Therefore, each pixel of the gray-scale image Only one byte is needed to store the gray value, and the gray range is 0-255.
需要说明的是,在本申请实施例中,通过公式(1)对病理图像进行加权计算灰度值,在其他实施例中还可以采用分量法、最大值法或者平均值法对病理图像进行灰度化处理,此处不做限制。It should be noted that in the embodiments of the present application, the pathological image is weighted to calculate the gray value by formula (1). In other embodiments, the component method, the maximum value method, or the average value method may also be used to gray the pathological image. There are no restrictions here.
本实施例中,通过遍历病理图像中的像素点并获取对应像素点的RGB分量值,根据获取到的每个像素点的RGB分量值,利用公式(1)对病理图像进行灰度化处理,从而实现将病理图像中像素点的像素值范围设定在0-255之间,进一步减少病理图像的原始数据量,提高在后续处理计算中的计算效率。In this embodiment, by traversing the pixels in the pathological image and obtaining the RGB component value of the corresponding pixel, according to the obtained RGB component value of each pixel, the pathological image is grayed out using formula (1), In this way, the pixel value range of the pixels in the pathological image is set between 0-255, which further reduces the amount of original data of the pathological image and improves the calculation efficiency in the subsequent processing and calculation.
在一实施例中,如图7所示,步骤S6之后,该病理图像标注方法还包括如下步骤:In an embodiment, as shown in FIG. 7, after step S6, the pathological image labeling method further includes the following steps:
S81:从预设用户库中获取操作用户的用户类型。S81: Obtain the user type of the operating user from the preset user library.
在本申请实施例中,用户类型主要为注册用户和匿名用户,操作用户在客户端中对病理图像进行标注前,需要以注册用户的身份或者以匿名用户的身份进行登陆。通过直接从预设用户库获取操作用户的用户类型。其中,预设用户库是指专门用于存储操作用户的用户类型的数据库。In the embodiment of the present application, the user types are mainly registered users and anonymous users. Before an operating user can annotate pathological images in the client, he or she needs to log in as a registered user or as an anonymous user. Obtain the user type of the operating user directly from the preset user library. Among them, the preset user database refers to a database dedicated to storing user types of operating users.
S82:对用户类型的数据保存请求进行权限判断,获取拥有数据保存请求权限的目标用户。S82: Perform permission judgment on the data saving request of the user type, and obtain the target user who has the data saving request permission.
在本申请实施例中,注册用户有专门的用户数据库为其保存对病理图像进行标注的数据,可以在客户端中进行病理图像数据的保存。匿名用户在客户端中进行标注的数据只做临时保存,无法在客户端中进行病理图像数据的保存。In the embodiment of the present application, a registered user has a special user database for storing data for labeling pathological images, and the pathological image data can be saved in the client. The data annotated by anonymous users in the client is only temporarily saved, and pathological image data cannot be saved in the client.
具体地,根据步骤S81获取操作用户对应的用户类型,若用户类型为注册用户,则表示该用户类型拥有数据保存请求的权限,若用户类型为匿名用户,则表示该用户类型未拥有数据保存请求的权限,并将注册用户确定为目 标用户。Specifically, according to step S81, the user type corresponding to the operating user is obtained. If the user type is a registered user, it means that the user type has the permission to save the data; if the user type is anonymous, it means that the user type does not have the data save request. , And determine the registered user as the target user.
需要说明的是,注册用户包含其对应的id。It should be noted that registered users include their corresponding id.
S83:接收目标用户发送的数据保存请求,并将目标用户对病理图像的标注信息保存到用户数据库。S83: Receive the data saving request sent by the target user, and save the marking information of the pathological image of the target user in the user database.
具体地,当检测到目标用户在客户端发送的数据保存请求时,根据注册用户包含的id,利用该id与预设存储库中的库id进行匹配,将匹配成功的存储库确定为用户数据库,并将目标用户在客户端中对病理图像的标注信息保存到用户数据库。Specifically, when the data saving request sent by the target user on the client is detected, the id contained in the registered user is used to match the id with the library id in the preset storage library, and the successfully matched storage library is determined as the user database , And save the target user's annotation information of the pathological image in the client to the user database.
其中,预设存储库是指专门用于保存存储库及存储库对应的库id。Among them, the preset storage library refers to the storage library and the library id corresponding to the storage library.
本实施例中,根据用户类型对数据保存请求进行权限判断,将拥有数据保存请求权限的操作用户确定为目标用户,并将目标用户对病理图像的标注信息保存到用户数据库。从而实现对目标用户数据的存储处理,保证目标用户对病理图像标注数据进行存储的安全性,便于目标用户调用病理图像的标注数据,进而提高目标用户的工作效率。In this embodiment, the permission of the data saving request is judged according to the user type, the operating user who has the permission of the data saving request is determined as the target user, and the marking information of the pathological image of the target user is saved in the user database. In this way, the storage and processing of the target user data is realized, the security of the target user's storage of the pathological image annotation data is ensured, and the target user is convenient for the target user to call the pathological image annotation data, thereby improving the work efficiency of the target user.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
在一实施例中,提供一种病理图像标注装置,该病理图像标注装置与上述实施例中病理图像标注方法一一对应。如图8所示,该病理图像标注装置包括第一获取模块81、识别模块82、常规格式模块83、目标格式模块84、第二获取模块85和标注模块86。各功能模块详细说明如下:In one embodiment, a pathological image labeling device is provided, and the pathological image labeling device corresponds to the pathological image labeling method in the above-mentioned embodiment one to one. As shown in FIG. 8, the pathological image labeling device includes a first acquisition module 81, a recognition module 82, a conventional format module 83, a target format module 84, a second acquisition module 85 and a labeling module 86. The detailed description of each functional module is as follows:
第一获取模块81,用于从预设图像库中获取待标注的病理图像;The first acquiring module 81 is configured to acquire pathological images to be labeled from a preset image library;
识别模块82,用于对病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;The recognition module 82 is used to recognize the image format of the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
常规格式模块83,用于若图像格式为常规格式,则将常规格式对应的病理图像确定为感兴趣区域图像;The conventional format module 83 is used to determine the pathological image corresponding to the conventional format as the region of interest image if the image format is a conventional format;
目标格式模块84,用于若图像格式为目标格式,则将目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为感兴趣区域图像;The target format module 84 is configured to, if the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampling processed pathological image as the region of interest image;
第二获取模块85,用于接收操作用户的标注请求,并从预设类型库中获取标注请求对应的应用类型;The second obtaining module 85 is configured to receive the labeling request of the operating user, and obtain the application type corresponding to the labeling request from the preset type library;
标注模块86,用于将应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的描述信息对应的标注策略对感兴趣区域图像进行标注,其中,预设标注库中包含描述信息及描述信息对应的标注策略。The annotation module 86 is used to match the application type with the description information in the preset annotation library, and select the annotation strategy corresponding to the successfully matched description information to annotate the image of the region of interest. The preset annotation library contains the description information and The labeling strategy corresponding to the description information.
进一步地,识别模块82包括:Further, the identification module 82 includes:
第三获取子模块,用于从预设类型表中获取病理图像对应的文件拓展名;The third acquisition sub-module is used to acquire the file extension corresponding to the pathological image from the preset type table;
比较子模块,用于将文件拓展名与预设拓展名进行比较;The comparison sub-module is used to compare the file extension with the preset extension;
比较不同子模块,用于若文件拓展名与预设拓展名不同,则将病理图像对应的图像格式确定为常规格式;Compare different sub-modules, used to determine the image format corresponding to the pathological image as the conventional format if the file extension is different from the preset extension;
比较相同子模块,用于若文件拓展名与预设拓展名相同,则将病理图像 对应的图像格式确定为目标格式。Compare the same sub-module, used to determine the image format corresponding to the pathological image as the target format if the file extension is the same as the preset extension.
进一步地,目标格式模块84包括:Further, the target format module 84 includes:
降采样子模块,用于若图像格式为目标格式,则对目标格式对应的病理图像进行降采样处理,得到缩略图像;The down-sampling sub-module is used to perform down-sampling processing on the pathological image corresponding to the target format if the image format is the target format to obtain a thumbnail image;
提取子模块,用于对缩略图像进行感兴趣区域提取,得到感兴趣区域图像。The extraction sub-module is used to extract the region of interest from the thumbnail image to obtain the region of interest image.
进一步地,提取子模块包括:Further, the extraction sub-module includes:
第四获取单元,用于获取预设感兴趣区域参数;The fourth acquiring unit is used to acquire preset parameters of the region of interest;
图像掩模生成单元,用于根据预设感兴趣区域参数生成图像掩膜;An image mask generating unit, configured to generate an image mask according to preset parameters of the region of interest;
运算单元,用于将图像掩膜与缩略图像进行与运算,得到感兴趣区域图像。The arithmetic unit is used to perform an AND operation between the image mask and the thumbnail image to obtain an image of the region of interest.
进一步地,生成单元包括:Further, the generating unit includes:
坐标确定子单元,用于根据预设感兴趣区域参数确定缩略图像中感兴趣区域和非感兴趣区域的像素点的坐标参数,其中,缩略图像包含感兴趣区域和非感兴趣区域;The coordinate determination subunit is used to determine the coordinate parameters of the pixel points of the region of interest and the non-interest region in the thumbnail image according to the preset region of interest parameters, where the thumbnail image includes the region of interest and the non-interest region;
图像模板生成子单元,用于通过预设端口生成与坐标参数相同的图像模板,其中,图像模板包含感兴趣区域的目标像素点和非感兴趣区域的普通像素点;The image template generating subunit is used to generate an image template with the same coordinate parameters through a preset port, where the image template contains target pixels of the region of interest and ordinary pixels of the non-interest region;
图像掩模确定子单元,用于将图像模板中的目标像素点和普通像素点的像素值分别设置为预设目标值和预设普通值,以设置后的图像模板作为图像掩模。The image mask determining subunit is used to set the pixel values of the target pixel and the ordinary pixel in the image template to the preset target value and the preset ordinary value, respectively, and use the set image template as the image mask.
进一步地,病理图像标注装置还包括:Further, the pathological image labeling device further includes:
遍历模块,用于对病理图像中的像素点进行遍历,获取每个像素点的RGB分量值;The traversal module is used to traverse the pixels in the pathological image and obtain the RGB component value of each pixel;
灰度化计算模块,用于根据像素点的RGB分量值,按照如下公式对病理图像作灰度化处理:The gray-scale calculation module is used to perform gray-scale processing on the pathological image according to the RGB component value of the pixel according to the following formula:
g(x,y)=k 1*R(x,y)+k 2*G(x,y)+k 3*B(x,y)   公式(1) g(x,y)=k 1 *R(x,y)+k 2 *G(x,y)+k 3 *B(x,y) Formula (1)
其中,x和y为病理图像中每个像素点的横坐标和纵坐标,g(x,y)为像素点(x,y)灰度化处理后的灰度值,R(x,y)为像素点(x,y)的R通道的颜色分量,G(x,y)为像素点(x,y)的G通道的颜色分量,B(x,y)为像素点(x,y)的B通道的颜色分量,k 1、k 2和k 3都为常数。 Among them, x and y are the abscissa and ordinate of each pixel in the pathological image, g (x, y) is the gray value of the pixel (x, y) after graying, R (x, y) Is the color component of the R channel of the pixel (x,y), G(x,y) is the color component of the G channel of the pixel (x,y), and B(x,y) is the pixel (x,y) The color components of the B channel, k 1 , k 2 and k 3 are all constants.
进一步地,病理图像标注装置还包括:Further, the pathological image labeling device further includes:
第五获取模块,用于从预设用户库中获取操作用户的用户类型;The fifth obtaining module is used to obtain the user type of the operating user from the preset user library;
权限判断模块,用于对用户类型的数据保存请求进行权限判断,获取拥有数据保存请求权限的目标用户;The authorization judgment module is used to judge the authorization of the data saving request of the user type, and obtain the target user who has the authorization of the data saving request;
保存模块,用于接收目标用户发送的数据保存请求,并将目标用户对病理图像的标注信息保存到用户数据库。The saving module is used to receive the data saving request sent by the target user, and save the marking information of the pathological image of the target user in the user database.
本申请的一些实施例公开了计算机设备。具体请参阅图9,为本申请的一 实施例中计算机设备90基本结构框图。Some embodiments of the application disclose computer equipment. For details, please refer to Fig. 9, which is a block diagram of the basic structure of the computer device 90 in an embodiment of this application.
如图9中所示意的,所述计算机设备90包括通过系统总线相互通信连接存储器91、处理器92、网络接口93。需要指出的是,图9中仅示出了具有组件91-93的计算机设备90,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。其中,本技术领域技术人员可以理解,这里的计算机设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。As shown in FIG. 9, the computer device 90 includes a memory 91, a processor 92, and a network interface 93 that are communicatively connected to each other through a system bus. It should be pointed out that FIG. 9 only shows a computer device 90 with components 91-93, but it should be understood that it is not required to implement all the shown components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions. Its hardware includes but is not limited to microprocessors, dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded devices, etc.
所述计算机设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述计算机设备可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。The computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
所述存储器91至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器91可以是所述计算机设备90的内部存储单元,例如该计算机设备90的硬盘或内存。在另一些实施例中,所述存储器91也可以是所述计算机设备90的外部存储设备,例如该计算机设备90上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器91还可以既包括所述计算机设备90的内部存储单元也包括其外部存储设备。本实施例中,所述存储器91通常用于存储安装于所述计算机设备90的操作系统和各类应用软件,例如所述病理图像标注方法的计算机可读指令等。此外,所述存储器91还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 91 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static memory Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 91 may be an internal storage unit of the computer device 90, such as a hard disk or memory of the computer device 90. In other embodiments, the memory 91 may also be an external storage device of the computer device 90, such as a plug-in hard disk equipped on the computer device 90, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, Flash Card, etc. Of course, the memory 91 may also include both the internal storage unit of the computer device 90 and its external storage device. In this embodiment, the memory 91 is generally used to store an operating system and various application software installed in the computer device 90, such as computer readable instructions of the pathological image labeling method. In addition, the memory 91 can also be used to temporarily store various types of data that have been output or will be output.
所述处理器92在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器92通常用于控制所述计算机设备90的总体操作。本实施例中,所述处理器92用于运行所述存储器91中存储的计算机可读指令或者处理数据,例如运行所述病理图像标注方法的计算机可读指令。The processor 92 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 92 is generally used to control the overall operation of the computer device 90. In this embodiment, the processor 92 is configured to run computer-readable instructions or processed data stored in the memory 91, for example, computer-readable instructions for running the pathological image labeling method.
所述网络接口93可包括无线网络接口或有线网络接口,该网络接口93通常用于在所述计算机设备90与其他电子设备之间建立通信连接。The network interface 93 may include a wireless network interface or a wired network interface, and the network interface 93 is generally used to establish a communication connection between the computer device 90 and other electronic devices.
本申请还提供了另一种实施方式,即提供一种非易失性的计算机可读存储介质,所述非易失性的计算机可读存储介质存储有病理图像数据信息录入流程,所述病理图像数据信息录入流程可被至少一个处理器执行,以使所述至少一个处理器执行上述任意一种病理图像标注方法的步骤。This application also provides another implementation manner, that is, a non-volatile computer-readable storage medium storing pathological image data information entry process, and the pathological The image data information entry process can be executed by at least one processor, so that the at least one processor executes the steps of any one of the pathological image labeling methods described above.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台计算机设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a computer device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
最后应说明的是,显然以上所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例,但并不限制本申请的专利范围。本申请可以以许多不同的形式来实现,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。Finally, it should be noted that, obviously, the embodiments described above are only a part of the embodiments of this application, not all of them. The drawings show the preferred embodiments of this application, but do not limit the patents of this application. range. This application can be implemented in many different forms. On the contrary, the purpose of providing these examples is to make the understanding of the disclosure of this application more thorough and comprehensive. Although this application has been described in detail with reference to the foregoing embodiments, for those skilled in the art, it is still possible for those skilled in the art to modify the technical solutions described in each of the foregoing specific implementations, or equivalently replace some of the technical features. . All equivalent structures made using the contents of the description and drawings of this application, directly or indirectly used in other related technical fields, are similarly within the scope of patent protection of this application.

Claims (20)

  1. 一种病理图像标注方法,其特征在于,所述病理图像标注方法包括:A method for labeling pathological images, characterized in that the method for labeling pathological images includes:
    从预设图像库中获取待标注的病理图像;Obtain the pathological image to be labeled from the preset image library;
    对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;Perform image format recognition on the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
    若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;If the image format is the conventional format, determining the pathological image corresponding to the conventional format as the region of interest image;
    若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
    接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;Receiving a labeling request from an operating user, and obtaining the application type corresponding to the labeling request from a preset type library;
    将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。The application type is matched with the description information in the preset annotation library, and the annotation strategy corresponding to the description information that is successfully matched is selected to annotate the region of interest image, wherein the preset annotation library contains the description Information and the labeling strategy corresponding to the description information.
  2. 如权利要求1所述的病理图像标注方法,其特征在于,所述对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像的步骤包括:The pathological image labeling method according to claim 1, wherein the step of recognizing the image format of the pathological image and determining whether it is a pathological image in a target format or a pathological image in a conventional format comprises:
    从预设类型表中获取所述病理图像对应的文件拓展名;Acquiring the file extension corresponding to the pathological image from the preset type table;
    将所述文件拓展名与预设拓展名进行比较;Comparing the file extension with the preset extension;
    若所述文件拓展名与所述预设拓展名不同,则将所述病理图像对应的所述图像格式确定为常规格式;If the file extension is different from the preset extension, determining the image format corresponding to the pathological image as a regular format;
    若所述文件拓展名与所述预设拓展名相同,则将所述病理图像对应的所述图像格式确定为目标格式。If the file extension is the same as the preset extension, the image format corresponding to the pathological image is determined as the target format.
  3. 如权利要求1所述的病理图像标注方法,其特征在于,所述若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像的步骤包括:The pathological image labeling method according to claim 1, wherein if the image format is the target format, the pathological image corresponding to the target format is down-sampling processing to down-sample the processed pathological image The step of using an image as the image of the region of interest includes:
    若所述图像格式为所述目标格式,则对所述目标格式对应的病理图像进行降采样处理,得到缩略图像;If the image format is the target format, performing down-sampling processing on the pathological image corresponding to the target format to obtain a thumbnail image;
    对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像。Extracting the region of interest on the thumbnail image to obtain the region of interest image.
  4. 如权利要求3所述的病理图像标注方法,其特征在于,所述对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像的步骤包括:The pathological image labeling method according to claim 3, wherein the step of extracting the region of interest from the thumbnail image to obtain the image of the region of interest comprises:
    获取预设感兴趣区域参数;Obtain preset parameters of the region of interest;
    根据所述预设感兴趣区域参数生成图像掩膜;Generating an image mask according to the preset region of interest parameters;
    将所述图像掩膜与所述缩略图像进行与运算,得到所述感兴趣区域图像。Performing an AND operation on the image mask and the thumbnail image to obtain the region of interest image.
  5. 如权利要求4所述的病理图像标注方法,其特征在于,所述根据所述预设感兴趣区域参数生成图像掩膜的步骤包括:The pathological image labeling method according to claim 4, wherein the step of generating an image mask according to the preset region of interest parameters comprises:
    根据所述预设感兴趣区域参数确定所述缩略图像中感兴趣区域和非感兴趣区域的像素点的坐标参数,其中,所述缩略图像包含所述感兴趣区域和所述非感兴趣区域;The coordinate parameters of the pixel points of the region of interest and the non-interest region in the thumbnail image are determined according to the preset region of interest parameters, wherein the thumbnail image includes the region of interest and the non-interest region area;
    通过预设端口生成与所述坐标参数相同的图像模板,其中,所述图像模板包含所述感兴趣区域的目标像素点和所述非感兴趣区域的普通像素点;Generating an image template identical to the coordinate parameters through a preset port, wherein the image template includes target pixels of the region of interest and ordinary pixels of the non-interest region;
    将所述图像模板中的所述目标像素点和所述普通像素点的像素值分别设置为预设目标值和预设普通值,以设置后的图像模板作为所述图像掩模。The pixel values of the target pixel point and the ordinary pixel point in the image template are respectively set as a preset target value and a preset ordinary value, and the set image template is used as the image mask.
  6. 如权利要求1-5任意一项所述的病理图像标注方法,其特征在于,所述若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像的步骤之后,所述接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型的步骤之前,所述病理图像标注方法还包括:The pathological image labeling method according to any one of claims 1 to 5, wherein if the image format is the target format, the pathological image corresponding to the target format is down-sampled to reduce After the step of sampling the processed pathological image as the image of the region of interest, before the step of receiving the labeling request from the operating user and obtaining the application type corresponding to the labeling request from the preset type library, the pathological image Labeling methods also include:
    对所述病理图像中的像素点进行遍历,获取每个所述像素点的RGB分量值;Traverse the pixels in the pathological image to obtain the RGB component value of each pixel;
    根据所述像素点的RGB分量值,按照如下公式对所述病理图像作灰度化处理:According to the RGB component values of the pixels, the pathological image is grayed out according to the following formula:
    g(x,y)=k 1*R(x,y)+k 2*G(x,y)+k 3*B(x,y) g(x,y)=k 1 *R(x,y)+k 2 *G(x,y)+k 3 *B(x,y)
    其中,x和y为所述病理图像中每个所述像素点的横坐标和纵坐标,g(x,y)为所述像素点(x,y)灰度化处理后的灰度值,R(x,y)为所述像素点(x,y)的R通道的颜色分量,G(x,y)为所述像素点(x,y)的G通道的颜色分量,B(x,y)为所述像素点(x,y)的B通道的颜色分量,k 1、k 2和k 3都为常数。 Wherein, x and y are the abscissa and ordinate of each pixel in the pathological image, g(x,y) is the gray value of the pixel (x,y) after grayscale processing, R(x,y) is the color component of the R channel of the pixel (x,y), G(x,y) is the color component of the G channel of the pixel (x,y), B(x, y) is the color component of the B channel of the pixel (x, y), and k 1 , k 2 and k 3 are all constants.
  7. 如权利要求1-5任意一项所述的病理图像标注方法,其特征在于,所述将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注的步骤之后,所述病理图像标注方法还包括:The pathological image labeling method according to any one of claims 1 to 5, wherein the application type is matched with the description information in a preset labeling library, and the description information corresponding to the successfully matched description information is selected After the step of labeling the region of interest image by the labeling strategy, the pathological image labeling method further includes:
    从预设用户库中获取所述操作用户的用户类型;Obtaining the user type of the operating user from a preset user library;
    对所述用户类型的数据保存请求进行权限判断,获取拥有数据保存请求权限的目标用户;Perform permission judgment on the data saving request of the user type, and obtain the target user who has the data saving request permission;
    接收所述目标用户发送的数据保存请求,并将所述目标用户对所述病理图像的标注信息保存到用户数据库。Receiving the data saving request sent by the target user, and saving the annotation information of the pathological image of the target user in the user database.
  8. 一种病理图像标注装置,其特征在于,所述病理图像标注装置包括:A pathological image labeling device, characterized in that the pathological image labeling device comprises:
    第一获取模块,用于从预设图像库中获取待标注的病理图像;The first acquisition module is used to acquire the pathological image to be labeled from the preset image library;
    识别模块,用于对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;The recognition module is used to recognize the image format of the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
    常规格式模块,用于若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;The conventional format module is configured to determine the pathological image corresponding to the conventional format as the region of interest image if the image format is the conventional format;
    目标格式模块,用于若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;The target format module is configured to, if the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
    第二获取模块,用于接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;The second obtaining module is configured to receive the labeling request of the operating user, and obtain the application type corresponding to the labeling request from the preset type library;
    标注模块,用于将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。An annotation module, configured to match the application type with the description information in a preset annotation library, and select an annotation strategy corresponding to the description information that is successfully matched to annotate the region of interest image, wherein the preset annotation library Contains the description information and the labeling strategy corresponding to the description information.
  9. 如权利要求8所述的病理图像标注装置,其特征在于,所述识别模块包括:The pathological image labeling device according to claim 8, wherein the identification module comprises:
    第三获取子模块,用于从预设类型表中获取所述病理图像对应的文件拓展名;The third acquiring submodule is used to acquire the file extension corresponding to the pathological image from the preset type table;
    比较子模块,用于将所述文件拓展名与预设拓展名进行比较;The comparison sub-module is used to compare the file extension with the preset extension;
    比较不同子模块,用于若所述文件拓展名与所述预设拓展名不同,则将所述病理图像对应的所述图像格式确定为常规格式;Comparing different sub-modules, configured to determine the image format corresponding to the pathological image as a regular format if the file extension is different from the preset extension;
    比较相同子模块,用于若所述文件拓展名与所述预设拓展名相同,则将所述病理图像对应的所述图像格式确定为目标格式。The compare same sub-module is configured to determine the image format corresponding to the pathological image as the target format if the file extension is the same as the preset extension.
  10. 如权利要求8所述的病理图像标注装置,其特征在于,所述目标格式模块包括:The pathological image labeling device according to claim 8, wherein the target format module comprises:
    降采样子模块,用于若所述图像格式为所述目标格式,则对所述目标格式对应的病理图像进行降采样处理,得到缩略图像;The down-sampling sub-module is configured to perform down-sampling processing on the pathological image corresponding to the target format if the image format is the target format to obtain a thumbnail image;
    提取子模块,用于对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像。The extraction submodule is used to extract the region of interest from the thumbnail image to obtain the region of interest image.
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and capable of running on the processor, wherein the processor executes the computer-readable instructions as follows step:
    从预设图像库中获取待标注的病理图像;Obtain the pathological image to be labeled from the preset image library;
    对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;Perform image format recognition on the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
    若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;If the image format is the conventional format, determining the pathological image corresponding to the conventional format as the region of interest image;
    若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
    接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;Receiving a labeling request from an operating user, and obtaining the application type corresponding to the labeling request from a preset type library;
    将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。The application type is matched with the description information in the preset annotation library, and the annotation strategy corresponding to the description information that is successfully matched is selected to annotate the region of interest image, wherein the preset annotation library contains the description Information and the labeling strategy corresponding to the description information.
  12. 如权利要求11所述的计算机设备,其特征在于,所述对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像的步骤包括:The computer device according to claim 11, wherein the step of recognizing the image format of the pathological image and determining whether it is a pathological image in a target format or a pathological image in a conventional format comprises:
    从预设类型表中获取所述病理图像对应的文件拓展名;Acquiring the file extension corresponding to the pathological image from the preset type table;
    将所述文件拓展名与预设拓展名进行比较;Comparing the file extension with the preset extension;
    若所述文件拓展名与所述预设拓展名不同,则将所述病理图像对应的所述图像格式确定为常规格式;If the file extension is different from the preset extension, determining the image format corresponding to the pathological image as a regular format;
    若所述文件拓展名与所述预设拓展名相同,则将所述病理图像对应的所述图像格式确定为目标格式。If the file extension is the same as the preset extension, the image format corresponding to the pathological image is determined as the target format.
  13. 如权利要求11所述的计算机设备,其特征在于,所述若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像的步骤包括:The computer device according to claim 11, wherein if the image format is the target format, the pathological image corresponding to the target format is down-sampled, and the down-sampled pathological image is used as The steps of the region of interest image include:
    若所述图像格式为所述目标格式,则对所述目标格式对应的病理图像进行降采样处理,得到缩略图像;If the image format is the target format, performing down-sampling processing on the pathological image corresponding to the target format to obtain a thumbnail image;
    对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像。Extracting the region of interest on the thumbnail image to obtain the region of interest image.
  14. 如权利要求13所述的计算机设备,其特征在于,所述对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像的步骤包括:The computer device according to claim 13, wherein the step of extracting the region of interest from the thumbnail image to obtain the image of the region of interest comprises:
    获取预设感兴趣区域参数;Obtain preset parameters of the region of interest;
    根据所述预设感兴趣区域参数生成图像掩膜;Generating an image mask according to the preset region of interest parameters;
    将所述图像掩膜与所述缩略图像进行与运算,得到所述感兴趣区域图像。Performing an AND operation on the image mask and the thumbnail image to obtain the region of interest image.
  15. 如权利要求14所述的计算机设备,其特征在于,所述根据所述预设感兴趣区域参数生成图像掩膜的步骤包括:15. The computer device of claim 14, wherein the step of generating an image mask according to the preset region of interest parameters comprises:
    根据所述预设感兴趣区域参数确定所述缩略图像中感兴趣区域和非感兴趣区域的像素点的坐标参数,其中,所述缩略图像包含所述感兴趣区域和所述非感兴趣区域;The coordinate parameters of the pixel points of the region of interest and the non-interest region in the thumbnail image are determined according to the preset region of interest parameters, wherein the thumbnail image includes the region of interest and the non-interest region area;
    通过预设端口生成与所述坐标参数相同的图像模板,其中,所述图像模板包含所述感兴趣区域的目标像素点和所述非感兴趣区域的普通像素点;Generating an image template identical to the coordinate parameters through a preset port, wherein the image template includes target pixels of the region of interest and ordinary pixels of the non-interest region;
    将所述图像模板中的所述目标像素点和所述普通像素点的像素值分别设置为预设目标值和预设普通值,以设置后的图像模板作为所述图像掩模。The pixel values of the target pixel point and the ordinary pixel point in the image template are respectively set to a preset target value and a preset ordinary value, and the set image template is used as the image mask.
  16. 一种非易失性的计算机可读存储介质,所述非易失性的计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被一种处理器执行时,使得所述一种处理器执行如下步骤:A non-volatile computer-readable storage medium storing computer-readable instructions, wherein the computer-readable instruction is executed by a processor, Make the processor execute the following steps:
    从预设图像库中获取待标注的病理图像;Obtain the pathological image to be labeled from the preset image library;
    对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像;Perform image format recognition on the pathological image, and determine whether it is a pathological image in a target format or a pathological image in a conventional format;
    若所述图像格式为所述常规格式,则将所述常规格式对应的病理图像确定为感兴趣区域图像;If the image format is the conventional format, determining the pathological image corresponding to the conventional format as the region of interest image;
    若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像;If the image format is the target format, perform down-sampling processing on the pathological image corresponding to the target format, and use the down-sampled pathological image as the region of interest image;
    接收操作用户的标注请求,并从预设类型库中获取所述标注请求对应的应用类型;Receiving a labeling request from an operating user, and obtaining the application type corresponding to the labeling request from a preset type library;
    将所述应用类型与预设标注库中的描述信息进行匹配,选取匹配成功的所述描述信息对应的标注策略对所述感兴趣区域图像进行标注,其中,预设标注库中包含所述描述信息及所述描述信息对应的所述标注策略。The application type is matched with the description information in the preset annotation library, and the annotation strategy corresponding to the description information that is successfully matched is selected to annotate the region of interest image, wherein the preset annotation library contains the description Information and the labeling strategy corresponding to the description information.
  17. 如权利要求16所述的非易失性的计算机可读存储介质,其特征在于,所述对所述病理图像进行图像格式识别,判断是目标格式的病理图像还是常规格式的病理图像的步骤包括:The non-volatile computer-readable storage medium of claim 16, wherein the step of recognizing the image format of the pathological image and determining whether it is a pathological image in a target format or a pathological image in a conventional format comprises :
    从预设类型表中获取所述病理图像对应的文件拓展名;Acquiring the file extension corresponding to the pathological image from the preset type table;
    将所述文件拓展名与预设拓展名进行比较;Comparing the file extension with the preset extension;
    若所述文件拓展名与所述预设拓展名不同,则将所述病理图像对应的所述图像格式确定为常规格式;If the file extension is different from the preset extension, determining the image format corresponding to the pathological image as a regular format;
    若所述文件拓展名与所述预设拓展名相同,则将所述病理图像对应的所述图像格式确定为目标格式。If the file extension is the same as the preset extension, the image format corresponding to the pathological image is determined as the target format.
  18. 如权利要求16所述的非易失性的计算机可读存储介质,其特征在于,所述若所述图像格式为所述目标格式,则将所述目标格式对应的病理图像进行降采样处理,以降采样处理后的病理图像作为所述感兴趣区域图像的步骤包括:16. The non-volatile computer-readable storage medium of claim 16, wherein if the image format is the target format, down-sampling the pathological image corresponding to the target format is performed, The step of using the down-sampled pathological image as the image of the region of interest includes:
    若所述图像格式为所述目标格式,则对所述目标格式对应的病理图像进行降采样处理,得到缩略图像;If the image format is the target format, performing down-sampling processing on the pathological image corresponding to the target format to obtain a thumbnail image;
  19. 如权利要求18所述的非易失性的计算机可读存储介质,其特征在于,所述对所述缩略图像进行感兴趣区域提取,得到所述感兴趣区域图像的步骤包括:The non-volatile computer-readable storage medium according to claim 18, wherein the step of extracting the region of interest from the thumbnail image to obtain the image of the region of interest comprises:
    获取预设感兴趣区域参数;Obtain preset parameters of the region of interest;
    根据所述预设感兴趣区域参数生成图像掩膜;Generating an image mask according to the preset region of interest parameters;
    将所述图像掩膜与所述缩略图像进行与运算,得到所述感兴趣区域图像。Performing an AND operation on the image mask and the thumbnail image to obtain the region of interest image.
  20. 如权利要求19所述的非易失性的计算机可读存储介质,其特征在于,所述根据所述预设感兴趣区域参数生成图像掩膜的步骤包括:The non-volatile computer-readable storage medium of claim 19, wherein the step of generating an image mask according to the preset region of interest parameters comprises:
    根据所述预设感兴趣区域参数确定所述缩略图像中感兴趣区域和非感兴趣区域的像素点的坐标参数,其中,所述缩略图像包含所述感兴趣区域和所述非感兴趣区域;The coordinate parameters of the pixel points of the region of interest and the non-interest region in the thumbnail image are determined according to the preset region of interest parameters, wherein the thumbnail image includes the region of interest and the non-interest region area;
    通过预设端口生成与所述坐标参数相同的图像模板,其中,所述图像模板包含所述感兴趣区域的目标像素点和所述非感兴趣区域的普通像素点;Generating an image template identical to the coordinate parameters through a preset port, wherein the image template includes target pixels of the region of interest and ordinary pixels of the non-interest region;
    将所述图像模板中的所述目标像素点和所述普通像素点的像素值分别设置为预设目标值和预设普通值,以设置后的图像模板作为所述图像掩模。The pixel values of the target pixel point and the ordinary pixel point in the image template are respectively set as a preset target value and a preset ordinary value, and the set image template is used as the image mask.
PCT/CN2019/116925 2019-08-01 2019-11-10 Pathology image annotation method and device, computer apparatus, and storage medium WO2021017272A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910708215.1 2019-08-01
CN201910708215.1A CN110675940A (en) 2019-08-01 2019-08-01 Pathological image labeling method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021017272A1 true WO2021017272A1 (en) 2021-02-04

Family

ID=69068837

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/116925 WO2021017272A1 (en) 2019-08-01 2019-11-10 Pathology image annotation method and device, computer apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN110675940A (en)
WO (1) WO2021017272A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034578A (en) * 2021-02-25 2021-06-25 上海联影智能医疗科技有限公司 Information processing method and system of region of interest, electronic device and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324761B (en) * 2020-02-25 2023-10-13 平安科技(深圳)有限公司 Image annotation management method, device, computer system and readable storage medium
CN111507381B (en) * 2020-03-31 2024-04-02 上海商汤智能科技有限公司 Image recognition method, related device and equipment
CN111709436A (en) * 2020-05-21 2020-09-25 浙江康源医疗器械有限公司 Marking method and system, and classification method and system for medical image contour
CN111753661B (en) * 2020-05-25 2022-07-12 山东浪潮科学研究院有限公司 Target identification method, device and medium based on neural network
CN113012134A (en) * 2021-03-22 2021-06-22 中山大学中山眼科中心 Multifunctional medical image data labeling system
CN113343999B (en) * 2021-06-15 2022-04-08 萱闱(北京)生物科技有限公司 Target boundary recording method and device based on target detection and computing equipment
CN113435447B (en) * 2021-07-26 2023-08-04 杭州海康威视数字技术股份有限公司 Image labeling method, device and image labeling system
CN113705569A (en) * 2021-08-31 2021-11-26 北京理工大学重庆创新中心 Image annotation method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101331518A (en) * 2005-12-19 2008-12-24 卡尔斯特里姆保健公司 Medical image processing method and apparatus
CN106778536A (en) * 2016-11-28 2017-05-31 北京化工大学 A kind of real-time EO-1 hyperion microimage cells sorting technique based on FPGA
CN107563123A (en) * 2017-09-27 2018-01-09 百度在线网络技术(北京)有限公司 Method and apparatus for marking medical image
CN109872803A (en) * 2019-01-28 2019-06-11 透彻影像(北京)科技有限公司 A kind of artificial intelligence pathology labeling system
US20190188222A1 (en) * 2016-08-15 2019-06-20 Huawei Technologies Co., Ltd. Thumbnail-Based Image Sharing Method and Terminal
CN109949299A (en) * 2019-03-25 2019-06-28 东南大学 A kind of cardiologic medical image automatic segmentation method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651772B (en) * 2009-09-11 2011-03-16 宁波大学 Method for extracting video interested region based on visual attention
CN106898005B (en) * 2017-01-04 2020-07-17 努比亚技术有限公司 Method, device and terminal for realizing interactive image segmentation
CN109215017B (en) * 2018-08-16 2020-06-02 腾讯科技(深圳)有限公司 Picture processing method and device, user terminal, server and storage medium
CN109272495A (en) * 2018-09-04 2019-01-25 北京慧影明图科技有限公司 Image analysis method and device, electronic equipment, storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101331518A (en) * 2005-12-19 2008-12-24 卡尔斯特里姆保健公司 Medical image processing method and apparatus
US20190188222A1 (en) * 2016-08-15 2019-06-20 Huawei Technologies Co., Ltd. Thumbnail-Based Image Sharing Method and Terminal
CN106778536A (en) * 2016-11-28 2017-05-31 北京化工大学 A kind of real-time EO-1 hyperion microimage cells sorting technique based on FPGA
CN107563123A (en) * 2017-09-27 2018-01-09 百度在线网络技术(北京)有限公司 Method and apparatus for marking medical image
CN109872803A (en) * 2019-01-28 2019-06-11 透彻影像(北京)科技有限公司 A kind of artificial intelligence pathology labeling system
CN109949299A (en) * 2019-03-25 2019-06-28 东南大学 A kind of cardiologic medical image automatic segmentation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034578A (en) * 2021-02-25 2021-06-25 上海联影智能医疗科技有限公司 Information processing method and system of region of interest, electronic device and storage medium

Also Published As

Publication number Publication date
CN110675940A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
WO2021017272A1 (en) Pathology image annotation method and device, computer apparatus, and storage medium
US11631050B2 (en) Syncing physical and electronic document
CN111476227B (en) Target field identification method and device based on OCR and storage medium
WO2021072879A1 (en) Method and apparatus for extracting target text in certificate, device, and readable storage medium
WO2018233055A1 (en) Method and apparatus for entering policy information, computer device and storage medium
CN107798299A (en) Billing information recognition methods, electronic installation and readable storage medium storing program for executing
CN103699532B (en) Image color retrieval method and system
WO2021012382A1 (en) Method and apparatus for configuring chat robot, computer device and storage medium
CN108764352B (en) Method and device for detecting repeated page content
US20210174135A1 (en) Method of matching image and apparatus thereof, device, medium and program product
CN109255300B (en) Bill information extraction method, bill information extraction device, computer equipment and storage medium
WO2015074521A1 (en) Devices and methods for positioning based on image detection
CN108563559A (en) A kind of test method of identifying code, device, terminal device and storage medium
WO2021147219A1 (en) Image-based text recognition method and apparatus, electronic device, and storage medium
WO2022105569A1 (en) Page direction recognition method and apparatus, and device and computer-readable storage medium
WO2021189853A1 (en) Flash light spot position recognition method and apparatus, and electronic device and storage medium
US11341319B2 (en) Visual data mapping
WO2021147221A1 (en) Text recognition method and apparatus, and electronic device and storage medium
CN110263616A (en) A kind of character recognition method, device, electronic equipment and storage medium
WO2020232866A1 (en) Scanned text segmentation method and apparatus, computer device and storage medium
CN110717060B (en) Image mask filtering method, device and storage medium
CN112084103B (en) Interface test method, device, equipment and medium
WO2021051603A1 (en) Coordinate transformation-based lip cutting method and apparatus, device, and storage medium
CN111241974B (en) Bill information acquisition method, device, computer equipment and storage medium
KR101846342B1 (en) Computer readable medium for recording program performing method of managing electronic documents and system for managing electronic documents

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19939606

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19939606

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19939606

Country of ref document: EP

Kind code of ref document: A1