CN114202520A - Chromatogram processing method, chromatogram processing device, computer device, and storage medium - Google Patents

Chromatogram processing method, chromatogram processing device, computer device, and storage medium Download PDF

Info

Publication number
CN114202520A
CN114202520A CN202111474534.4A CN202111474534A CN114202520A CN 114202520 A CN114202520 A CN 114202520A CN 202111474534 A CN202111474534 A CN 202111474534A CN 114202520 A CN114202520 A CN 114202520A
Authority
CN
China
Prior art keywords
chromatogram
boundary
information
module
data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111474534.4A
Other languages
Chinese (zh)
Inventor
张鑫枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Chuangteng Software Co ltd
Original Assignee
Suzhou Chuangteng Software Co ltd
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 Suzhou Chuangteng Software Co ltd filed Critical Suzhou Chuangteng Software Co ltd
Priority to CN202111474534.4A priority Critical patent/CN114202520A/en
Publication of CN114202520A publication Critical patent/CN114202520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Abstract

The present disclosure relates to a chromatogram processing method, apparatus, computer device, and storage medium. The method comprises the following steps: under the condition of obtaining the chromatogram, carrying out boundary identification on the obtained chromatogram, and determining the boundary of the chromatogram; determining chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram in the boundary of the chromatogram, wherein the chromatographic information comprises: the coordinate system is established based on the boundary of the chromatogram; and performing data processing on the chromatographic information, and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing. By adopting the method, the substances in the chromatogram and the data corresponding to the substances can be counted, and the recording is convenient.

Description

Chromatogram processing method, chromatogram processing device, computer device, and storage medium
Technical Field
The present disclosure relates to the field of image data processing technologies, and in particular, to a chromatogram processing method, apparatus, computer device, and storage medium.
Background
The chromatogram refers to an image of the distribution of detection signals of separated components over time. Thin-layer chromatography (TLC) is a separation technique in which a mixed sample is separated, identified and quantified using a support coated on a support plate as a stationary phase and a suitable solvent as a mobile phase.
At present, on-line editors of TLC (thin Layer chromatography) chromatograms in the market are few, and the mode of drawing the chromatograms is to draw the chromatograms through chemical structural formula editors such as JSDraw, InDraw and the like, but the steps of drawing the chromatograms through the structural formula editors are complex, the use is inconvenient, the single-machine deployment cannot be realized, the efficiency is low, and a large amount of redundant data is easy to generate.
At present, structured chromatogram data cannot be derived through the structural formula editor, and the chromatogram data derived through the chemical structural formula editor is non-datamation data and structured data, so that the retrieval is inconvenient, and the data can not be directly used for data statistics.
Disclosure of Invention
In view of the above, it is necessary to provide a chromatogram processing method, apparatus, computer device, and storage medium capable of performing data statistics.
In a first aspect, the present disclosure provides a method of chromatogram processing, the method comprising:
under the condition of obtaining the chromatogram, carrying out boundary identification on the obtained chromatogram, and determining the boundary of the chromatogram;
determining chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram in the boundary of the chromatogram, wherein the chromatographic information comprises: the coordinate system is established based on the boundary of the chromatogram;
and performing data processing on the chromatographic information, and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
In one embodiment, the performing boundary identification on the acquired chromatogram and determining the boundary of the chromatogram includes:
converting the chromatogram into a gray chromatogram, and carrying out image enhancement on the gray chromatogram;
performing edge detection on the obtained gray chromatogram after image enhancement to determine at least one boundary contour, wherein the edge detection comprises the following steps: eliminating noise, searching edges and extracting a boundary outline;
and determining the boundary of the chromatogram according to the boundary contour with the largest area in the at least one boundary contour.
In one embodiment, the attribute information includes: the determining of the chromatogram information of the chromatogram according to the coordinate system and the attribute information of the chromatogram in the boundary of the chromatogram comprises the following steps:
obtaining the spots in the chromatogram in the boundary of the chromatogram, and determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system;
determining vertex coordinate information of the blobs according to the coordinates of the farthest and nearest points;
and acquiring a straight line in the chromatogram map parallel to the coordinate axis in the chromatogram map boundary, and determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
In one embodiment, the spots in the chromatogram within the boundaries of the chromatogram are obtained by:
determining suspicious spots within the boundary range of the chromatogram according to pixel values within the boundary of the chromatogram;
and eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
In one embodiment, the performing the data processing on the chromatographic information and outputting a data exchange format file includes:
converting the vertex coordinate information of the spots, the coordinate information of the spot lines and the coordinate information of the solvent front lines into a data exchange format file through field mapping, and outputting the data exchange format.
In one embodiment, the method further comprises:
drawing a chromatographic diagram in a pre-created blank canvas.
In one embodiment, the drawing the chromatogram schematic diagram in the pre-created blank canvas comprises at least one of the following:
drawing a target chromatogram schematic diagram matched with the target chromatogram in the blank canvas;
drawing a data chromatographic schematic diagram corresponding to the chromatographic information in the blank canvas according to the chromatographic information subjected to the data processing and the Bezier curve;
and in the case that the vector graphics file is identified, drawing an information color spectrum schematic diagram corresponding to the vector graphics file in the blank canvas.
In one embodiment, the drawing the chromatogram schematic diagram in the blank canvas created in advance further comprises:
after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram is drawn, converting at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram into a data format and outputting the data format, wherein the data format comprises: picture data format and/or vector graphics file.
A chromatogram processing apparatus, comprising:
the boundary identification module is used for identifying the boundary of the obtained chromatogram and determining the boundary of the chromatogram under the condition of obtaining the chromatogram;
a chromatogram information identification module, configured to determine, within a boundary of the chromatogram, chromatogram information of the chromatogram according to a coordinate system and attribute information of the chromatogram, where the chromatogram information includes: the coordinate system is established based on the boundary of the chromatogram;
and the data processing module is used for carrying out data processing on the chromatographic information and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
In one embodiment of the apparatus, the boundary identifying module comprises: the image conversion enhancement module, the edge detection module and the contour selection module;
the image enhancement module is used for converting the chromatogram into a gray chromatogram and carrying out image enhancement on the gray chromatogram;
the edge detection module is configured to perform edge detection on the obtained gray level chromatogram after image enhancement, and determine at least one boundary contour, where the edge detection includes: eliminating noise, searching edges and extracting a boundary outline;
and the contour selection module is used for determining the boundary of the chromatogram according to the boundary contour with the largest area in at least one boundary contour.
In one embodiment of the apparatus, the chromatographic information identification module comprises: the system comprises a spot acquisition module, a distance coordinate determination module, a vertex coordinate determination module, a straight line acquisition module and a coordinate information determination module;
the spot acquisition module is used for acquiring spots in the chromatogram within the boundary of the chromatogram;
the distance coordinate determination module is used for determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system;
the vertex coordinate determining module is used for determining the vertex coordinate information of the spots according to the coordinates of the farthest and nearest points;
the straight line acquisition module is used for acquiring straight lines in the chromatogram which are parallel to the coordinate axis in the chromatogram boundary;
and the coordinate information determination module is used for determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
In one embodiment of the apparatus, the blob obtaining module comprises: the suspicious spot determining module and the suspicious spot eliminating module are used for determining the suspicious spots;
the suspicious spot determining module is used for determining suspicious spots in the boundary range of the chromatogram according to pixel values in the boundary of the chromatogram;
and the suspicious spot eliminating module is used for eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
In one embodiment of the apparatus, the data processing module is further configured to convert the vertex coordinate information of the blob, the coordinate information of the sampling line, and the coordinate information of the solvent front line into a data exchange format file through field mapping, and output the data exchange format.
In one embodiment of the apparatus, the apparatus further comprises: and the diagram drawing module is used for drawing the chromatographic diagram in a pre-created blank canvas.
In one embodiment of the apparatus, the schematic drawing module includes: the system comprises a first drawing module, a second drawing module and a third drawing module;
the first drawing module is used for drawing a target chromatogram schematic diagram matched with a target chromatogram in the blank canvas;
the second drawing module is used for drawing a data chromatogram schematic diagram corresponding to the chromatogram information in the blank canvas according to the chromatogram information subjected to the data processing and the Bezier curve;
and the third drawing module is used for drawing an information color spectrum schematic diagram corresponding to the vector diagram file in the blank canvas under the condition that the vector diagram file is identified.
In one embodiment of the apparatus, the schematic drawing module further includes: a format conversion module, configured to convert at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram into a data format and output the data format after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram is drawn, where the data format includes: picture data format and/or vector graphics file.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprises a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
In the embodiment provided by the disclosure, the boundary of the chromatogram is determined by boundary identification, and an effective part in the chromatogram can be effectively obtained, so that the processing efficiency is improved, the chromatographic information is determined in the chromatogram boundary according to a coordinate system and attribute information in the chromatogram, the chromatographic information can be digitalized and converted into a format of a data exchange format file through final digitalized processing, and finally, the digitalized chromatographic information can be conveniently retrieved through the data exchange format file, the digitalized chromatographic information data can also be conveniently transmitted between networks, and finally, the substance in the chromatogram and the data corresponding to the substance can be directly counted according to the digitalized chromatographic information, such as the size of a spot, the length of a spot sample line and a solvent front line, and the like, so that the retrieval and the recording are convenient.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of an application environment of a chromatogram processing method;
FIG. 2 is a schematic flow chart of a chromatogram processing method in one embodiment;
FIG. 3 is a flowchart illustrating step S202 according to an embodiment;
FIG. 4 is a flowchart illustrating the step S204 according to an embodiment;
FIG. 5 is a diagram illustrating attribute information in a coordinate system according to one embodiment;
FIG. 6 is a schematic flow chart showing a chromatogram-mapping step in one embodiment;
FIG. 7 is a schematic flow chart of a chromatogram processing method in another embodiment;
FIG. 8 is a block diagram showing the structure of a chromatogram processing apparatus in one embodiment;
FIG. 9 is a diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments herein described are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
In this document, the term "at least one" is only one kind of association relationship describing the associated object, meaning that several relationships may exist. For example, A, B, C may represent: a or B or C exists singly, A, B, C exists, A, B exists, A, C exists, B, C exists.
In this document, the term "and/or" is only one kind of association relationship describing the associated object, meaning that three kinds of relationships may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The chromatogram processing method provided by the embodiment of the disclosure can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 acquires the chromatogram and transmits the chromatogram to the server 104. The mode of acquiring the chromatogram by the terminal 102 may be direct shooting, shooting by other imaging devices, transmitting to the terminal 102, and the like. After receiving the chromatogram transmitted by the terminal 102, the server 104 acquires the transmitted chromatogram, and when the server 104 acquires the chromatogram transmitted by the terminal 102, performs boundary identification on the chromatogram transmitted by the terminal 102 acquired by the server 104, and determines the boundary of the chromatogram. After the server 104 determines the boundaries of the chromatogram, a coordinate system may be created based on the boundaries of the chromatogram. The server 104 determines chromatogram information of the chromatogram according to the coordinate system and attribute information of the chromatogram within the boundary of the chromatogram, and the chromatogram information can be coordinate information in the coordinate system corresponding to the attribute information of the chromatogram. The chromatographic information may include: the vertex coordinate information of the spots, the coordinate information of the spot lines, the coordinate information of the solvent front lines and the like. The server 104 performs data processing on the chromatographic information, and outputs a data exchange format file after the data processing, where the data exchange format file may include the chromatographic information after the data processing. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, photographing devices, and the like. The photographing apparatus may be a camera, a camcorder, an imager, etc. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a chromatogram processing method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
s202, under the condition that the chromatogram is acquired, performing boundary identification on the acquired chromatogram, and determining the boundary of the chromatogram.
Here, the chromatogram may refer to an image in which detection signals of separated components are distributed over time. The boundary identification can be generally a mode of roughly detecting contour points of an object when the edge of the object is detected, then connecting the originally detected contour points through a link rule, and simultaneously detecting and connecting missed boundary points and removing false boundaries. The boundary of the chromatogram can generally be the portion near and beyond the sampling line and the solvent front line.
Specifically, when a chromatogram is acquired, there are many useless parts, such as blank parts, in the chromatogram, so that the boundary of the chromatogram can be determined by performing boundary recognition on the acquired chromatogram through a programming language. After the boundary of the chromatogram is determined, a useful image part in the chromatogram can be acquired, and the processing speed is improved in subsequent processing. The boundaries of the chromatogram may include a stippled line and a solvent front line.
In some embodiments, the programming language may be python or other language capable of performing image processing algorithms. The boundary recognition can be performed by using different edge operators through a programming language, such as a Roberts edge operator, a Sobel edge detector, a Prewitt edge operator, a Laplacan edge operator, a Canny edge detector and the like.
S204, determining chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram in the boundary of the chromatogram, wherein the chromatographic information comprises: the method comprises the following steps of establishing a coordinate system based on the boundary of the chromatogram map, and establishing the coordinate system of the top point of a spot, the coordinate information of a point sample line and the coordinate information of a solvent front line.
The coordinate system may be a rectangular plane coordinate system established according to the boundary in the chromatogram, a line perpendicular to the solvent front line or the point sample line, and a line parallel to the solvent front line or the point sample line. The attribute information of the chromatogram may be a spot line, a solvent front line and a spot in the chromatogram, an RF value, and the like. Rf value is written as Rf value (specific shift value), is mainly used as a word for chromatography on paper, and can be the ratio of the distance of substance shift to the distance of solvent line on a silica gel chromatography plate. The chromatogram information may be information obtained by coordinating attribute information of a chromatogram by a coordinate system. The solvent front line generally refers to the line of the solvent after a certain time, the distance from the sample point to the solvent can travel, and the speed calculated by the distance and the time can be generally regarded as the linear speed of the solvent. It is also possible that this time is the retention time of the component not retained in the sample spot.
Specifically, the boundary based on the resulting chromatogram may be a coordinate system established from a line perpendicular to the line along which the solvent front is drawn and a line parallel to the line along which the solvent front is drawn, or a coordinate system established from a line perpendicular to the spotting line and a line parallel to the spotting line. The value of the pixel point can be determined through an image processing algorithm, and then the attribute information of the chromatogram can be found according to the value of the pixel point, or the attribute information in the chromatogram can be found through computer vision software such as opencv and the like, or the attribute information of the chromatogram can be manually marked by a person skilled in the art. And in the boundary of the chromatogram, determining the specific coordinate position of the attribute information in the chromatogram in the coordinate system according to the coordinate system, and further obtaining the chromatogram information. The opencv is a cross-platform computer vision and machine learning software library issued based on Apache2.0 license (open source), can run on Linux, Windows, Android and Mac OS operating systems, is lightweight and efficient, is composed of a series of C functions and a small number of C + + classes, provides interfaces of languages such as Python, Ruby, MATLAB and the like, and realizes a plurality of general algorithms in the aspects of image processing and computer vision. It should be noted that the embodiment is merely exemplified by opencv, and those skilled in the art may select other visual processing software according to the needs of different scenes.
S206, performing data processing on the chromatographic information, and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
The data processing may be a method of converting the chromatographic information into a corresponding format in a data exchange format file. The data exchange format file may generally be a file that is easy to read and write by humans, and also easy to parse and generate by machines. The data interchange format file can be such that any supported type can be represented by the data interchange format file, such as strings, numbers, objects, arrays, coordinates, and the like.
Specifically, the chromatographic information is subjected to data processing, converted into a format stored in a data exchange format file, and stored in the data exchange format file, and the data exchange format file can be output to a database or other servers. The data exchange format file can include the chromatographic information after data processing, and the format of the chromatographic information after data processing is the same as the format stored in the data exchange format file.
In some embodiments, the data exchange format file may be a JSON (JSON Object Notation) file, which is a lightweight data exchange format that stores and represents the above-mentioned chromatographic information in a text format completely independent of a programming language.
According to the chromatogram processing method, the boundary of the chromatogram is determined through boundary identification, the effective part in the chromatogram can be effectively obtained, the processing efficiency is improved, the chromatogram information is determined in the chromatogram boundary according to a coordinate system and attribute information in the chromatogram, the chromatogram information can be digitalized, the chromatogram information is converted into a format of a data exchange format file through final digitalized processing, the data can be conveniently searched through the data exchange format file, the digitalized chromatogram information data can be conveniently transmitted between networks, and finally the substance in the chromatogram and the data corresponding to the substance can be directly counted according to the information such as the size of a spot, the length of a sample point line and a solvent front line determined by the chromatogram information, so that the searching and the recording are convenient.
In an embodiment, as shown in fig. 3, the performing boundary identification on the acquired chromatogram to determine the boundary of the chromatogram includes:
s302, converting the chromatogram into a gray chromatogram, and performing image enhancement on the gray chromatogram.
Among them, a grayscale chromatogram can be generally a chromatogram represented by a grayscale. Image enhancement can be a way to purposefully emphasize the overall or local characteristics of an image, change an original unclear image into clear or emphasize some interesting features, enlarge the difference between different object features in the image, inhibit the uninteresting features, improve the image quality and the information content, enhance the image interpretation and recognition effects, and meet the needs of some special analyses.
Specifically, the chromatogram is converted into a gray chromatogram through an image gray algorithm, and then the gray chromatogram is subjected to image enhancement through an image enhancement algorithm.
In some embodiments, the image gray scale algorithm may be implemented by opencv. The chromatogram can be converted into a gray chromatogram by performing linear transformation, logarithmic transformation, gamma transformation or the like on opencv. The chromatogram can also be converted into a gray chromatogram by a maximum method, an average method, a weighted average method, gamma correction, and the like by python. The gray chromatogram can be subjected to image enhancement in a gray scale transformation enhancement mode, a histogram mode and an image filtering mode.
S304, performing edge detection on the obtained gray chromatogram after image enhancement to determine at least one boundary contour, wherein the edge detection comprises the following steps: eliminating noise, finding edges and extracting boundary contour.
Wherein edge detection may be a method of determining contours in a chromatogram.
Specifically, the image-enhanced gray chromatogram is first subjected to noise removal, which affects edge detection because noise is usually a place where the gray scale changes greatly and is easily recognized as a false edge. And then searching the gray chromatogram after the noise is eliminated and determining the edge through an edge detection operator, and then determining the boundary profile of the outermost layer of the gray chromatogram after the edge is determined. The outermost boundary profile may be one or more.
The manner of determining the outermost profile may include: the points on the edge are approximated (simplified) if the simplified contour is four points and the area is in the appropriate range (not too small and less than 95% of the entire chromatogram area). If the contour is a quadrilateral (four straight lines), the simplified points may typically be four points of the quadrilateral.
In some embodiments, the edge detection operator may include: roberts edge operators, Sobel edge operators, Prewitt edge operators, Laplacan edge operators, Canny edge operators, and the like. The boundary contour may be extracted by findContours in python.
S306, determining the boundary of the chromatogram according to the boundary contour with the largest area in the at least one boundary contour.
Specifically, after the boundary contour is determined, since the largest contour generally includes all the attribute information in the chromatogram, the boundary contour with the largest area is found, and the boundary of the chromatogram is determined by the boundary contour with the largest area.
In this embodiment, the original data amount of the image can be reduced by performing the gray processing on the chromatogram, which is convenient for the calculation amount to be less during the subsequent processing, and the accuracy of the region of interest can be improved by performing the image enhancement on the gray chromatogram, so that the boundary contour can be accurately determined during the subsequent edge detection, and the calculation amount can be reduced by performing the simplification processing on the contour during the determination of the boundary contour, thereby improving the speed during the determination of the boundary contour.
In one embodiment, the attribute information includes: as shown in fig. 4, the determining, within a boundary of the chromatogram, chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram includes:
s402, obtaining the spots in the chromatogram in the boundary of the chromatogram, and determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system.
Specifically, the value of the pixel point can be determined through an image processing algorithm, so that the spot of the chromatogram can be found according to the value of the pixel point, or the spot in the chromatogram can be found through computer vision software such as opencv, or the spot of the chromatogram can be manually marked by a person skilled in the art, and two points of the spot in the chromatogram closest to and two points of the spot farthest from the coordinate axis of the coordinate system are determined.
In some embodiments, as shown in fig. 5, the two points of the spot that are farthest and closest to the Y-axis are a and b, where a is at a distance x1 from the Y-axis and b is at a distance x1+ x2 from the Y-axis. The closest and farthest points of the spot from the X axis are c and d, where c is a distance y1+ y2 from the X axis and d is a distance y1+ y2+ y3 from the X axis.
S404, determining the vertex coordinate information of the spots according to the coordinates of the farthest and nearest points.
Specifically, a cross is established according to the points with the farthest distance and the closest distance, and then the vertex coordinate information of the spots is determined according to four points of the coordinates of the cross.
In some embodiments, as shown in FIG. 5, a cross is created based on four points farthest and closest to the X-axis and to the Y-axis, with coordinates a1(X1, Y3/2), b1(X1+ X2, Y3/2), c1(X2/2, Y1+ Y2), d1(X2/2, Y1+ Y2+ Y3). The four vertex coordinates of the cross may be determined as the vertex coordinate information of the blob.
S406, obtaining a straight line in the chromatogram map parallel to the coordinate axis in the chromatogram map boundary, and determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
Specifically, the value of the pixel point can be determined through an image processing algorithm, and then the straight line of the chromatogram can be found according to the value of the pixel point, or the straight line in the chromatogram can be found through computer vision software such as opencv, or the straight line of the chromatogram can be manually marked by a person skilled in the art. And then obtaining a straight line parallel to the coordinate axis, determining that the parallel mode of the straight line and the X axis or the Y axis in the coordinate system is different according to different modes of establishing the coordinate system, finding the straight line parallel to the X axis when the coordinate system is established by taking the line parallel to the leading edge line of the solvent as the X axis, and finding the line parallel to the Y axis when the coordinate system is established by taking the line perpendicular to the leading edge line of the solvent as the X axis. After identification, because the sampling line and the solvent front line are long, when the acquired straight line is greater than a preset threshold length, the straight line can be determined as the sampling line or the solvent front line. It should be noted that a person in the art may set and adjust the threshold length according to actual situations to meet the requirements of different scenarios, and the threshold length is not limited in this embodiment. And determining a point sample line or a solvent front line according to the distance between the straight line and the X axis or the Y axis in the coordinate axes. And determining the straight line as a solvent front line or a point sample line according to the distance between the straight line and the X axis or the Y axis, and further determining the coordinates of two end points of the solvent front line or the point sample line.
In some embodiments, as shown in fig. 5, E and F are straight lines parallel to the X axis, and the lengths of E and F may be both greater than a preset threshold length, and in general, a straight line where the sampling line is below the solvent front line and therefore closer to the X axis may be the sampling line, and a straight line farther from the X axis may be the solvent front line. Further, the coordinates of two points of the dot-like line are determined to be (0, y1) and (x1+ x2+ x3, y 1). Two point coordinates along the solvent line can be determined, which can be (0, y1+ y2+ y3+ y4) and (x1+ x2+ x3, y1+ y2+ y3+ y 4).
In this embodiment, the vertex coordinate information of the spot can be determined by the four points farthest from and closest to the X axis and the Y axis, the range covered by the vertex coordinate information is generally larger than the actual spot and can include the range where the actual spot is located, so that the position and size of the spot can be accurately obtained by the vertex coordinate information, the obtained straight line is screened by the threshold length, the interference item is eliminated, and the solvent front line and the spot line can be well distinguished according to the distance between the straight line and the coordinate axis.
In one embodiment, the spots in the chromatogram within the boundaries of the chromatogram are obtained by:
determining suspicious spots within the boundary range of the chromatogram according to pixel values within the boundary of the chromatogram;
and eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
Where the pixel value is the value assigned by the computer when the image is digitized, it represents the average luminance information for a small square in the image. The suspect blob may generally be a blob or information similar to a blob determined from pixel values.
Specifically, suspicious spots of the boundary range of the chromatogram are determined according to the peak height or the saliency of the pixel values in the chromatogram boundary, the suspicious spots are usually much higher (or lower) than the surrounding pixel values, then the suspicious spots are acquired and then the suspicious spots with the pixel values within the preset interference threshold are excluded, and the noise is usually less different from the surrounding, so that the interference of the noise can be excluded by setting the interference threshold. Then, suspicious spots with spots having areas larger than a preset area threshold are excluded, and the area threshold may include a large area threshold and a small area threshold, where the large area threshold may be an area threshold larger than a preset value, and the small area threshold may be an area threshold smaller than a preset value, and the preset value may be set by a person skilled in the art according to actual situations. According to the area of the spots, the corresponding suspicious spots smaller than the small area threshold value can be noise generally, the interference of the noise is further eliminated according to the small area threshold value, the suspicious spots larger than the large area threshold value can be caused by uneven image light and inconsistent brightness, the factors can be eliminated through the large area threshold value, and the spots in the boundary range are finally obtained.
In this embodiment, the interference term can be eliminated through the pixel value and the area, and then the blob can be determined more accurately, so as to obtain the final accurate vertex coordinate information of the blob.
In one embodiment, the performing the data processing on the chromatographic information and outputting a data exchange format file includes:
converting the vertex coordinate information of the spots, the coordinate information of the spot lines and the coordinate information of the solvent front lines into a data exchange format file through field mapping, and outputting the data exchange format.
Wherein the field mapping is capable of maintaining the chromatographic information in a consistent manner with the field names in the data exchange format file.
Specifically, the vertex coordinate information of the blob, the coordinate information of the sampling line and the coordinate information of the solvent front line can be converted into a value of a JSON format file by opencv, and then the converted value is stored into the JSON file by field mapping.
In this embodiment, by means of field mapping, when subsequent coordinate information changes, data in the JSON file does not change.
In one embodiment, the method further comprises:
drawing a chromatographic diagram in a pre-created blank canvas.
Specifically, a blank canvas can be created through a technology of js + html + css, and then a chromatogram schematic diagram is drawn through js, html, css and SVG in the blank canvas.
In this embodiment, the scheme can be used for drawing a chromatogram schematic diagram in a canvas, performing interaction and drawing the chromatogram schematic diagram through js + html + css, and obtaining the chromatogram schematic diagram through SVG rendering, and compared with the mode of drawing the chromatogram schematic diagram in the prior art, the method is simple to operate.
In one embodiment, as shown in fig. 6, the drawing the chromatogram map in the pre-created blank canvas comprises at least one of:
s602, drawing a target chromatogram schematic diagram matched with the target chromatogram in the blank canvas;
s604, drawing a data chromatographic schematic diagram corresponding to the chromatographic information in the blank canvas according to the chromatographic information subjected to the data processing and the Bezier curve;
and S606, under the condition that the vector diagram file is identified, drawing an information color spectrum schematic diagram corresponding to the vector diagram file in the blank canvas.
S608, after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram is drawn, converting at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram into a data format and outputting the data format, where the data format includes: picture data format and/or vector graphics file.
Wherein, the target chromatogram can be a chromatogram to be drawn. Bezier curves are generally mathematical curves applied to two-dimensional graphics applications. The general vector graphic software accurately draws a curve through the curve, the Bezier curve consists of line segments and nodes, the nodes are dragging pivots, and the line segments are like telescopic rubber bands. The Vector Graphics file may be an SVG file, which is an image file format, which is known in English as Scalable Vector Graphics, meaning Scalable Vector Graphics.
Specifically, one way of drawing the chromatogram map may be to draw, in a blank canvas, a chromatogram map corresponding to information such as a front line of a solvent, a spot, a sampling line, and an RF value in the target chromatogram map by js, html, css, and SVG.
And in another mode of drawing the chromatographic diagram, a JSON format file is input, and a spot diagram is drawn in a blank canvas through a Bezier curve and SVG according to the coordinates of four vertexes of the spots in the chromatographic information converted into the JSON format. Drawing the point sample line and the solvent front line in a blank canvas through SVG according to the coordinate information of the point sample line in the chromatographic information and the coordinate information of the solvent front line, and finally obtaining a data chromatographic schematic diagram according to the point sample line, the solvent front line and the speckle pattern.
In another mode of drawing the color spectrum schematic diagram, a vector diagram file is input, and under the condition that the vector diagram file is identified, the color spectrum schematic diagram corresponding to the vector diagram file is drawn in a blank canvas through SVG according to the graph in the vector diagram file.
And after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram is drawn, converting at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram into a picture format and/or a vector map file and outputting the file after the format conversion. The chromatographic schematic after format conversion can be output to a server or a database through TCP/IP.
In this embodiment, the corresponding chromatogram schematic diagram can be drawn according to a plurality of different information, the operation is convenient, and a plurality of modes can be compatible.
In another embodiment, as shown in fig. 7, the present disclosure further provides a chromatogram processing method, which is described by taking the method as an example for being applied to the server 104 in fig. 1, and the method includes:
s702, under the condition that the chromatogram is obtained, carrying out boundary identification on the obtained chromatogram, and determining the boundary of the chromatogram.
S704, determining chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram in the boundary of the chromatogram, wherein the chromatographic information comprises: the method comprises the following steps of establishing a coordinate system based on the boundary of the chromatogram map, and establishing the coordinate system of the top point of a spot, the coordinate information of a point sample line and the coordinate information of a solvent front line.
S706, performing data processing on the chromatographic information, and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
And S708, drawing a target chromatogram schematic diagram matched with the target chromatogram in the blank canvas.
And S710, inputting a vector map file.
And S712, drawing an information color spectrum schematic diagram corresponding to the vector diagram file in the blank canvas under the condition that the vector diagram file is identified.
S714, inputting a JSON format file.
And S716, drawing a data chromatographic diagram corresponding to the chromatographic information in the blank canvas according to the chromatographic information in the JSON format file and the Bezier curve.
S718, converting at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram into a data format, and outputting the data format, where the data format includes: picture data format and/or vector graphics file.
And S720, storing the chromatographic schematic diagram after format conversion.
For specific implementation of this embodiment, reference may be made to the above embodiments, and repeated descriptions are not provided herein.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the disclosed embodiment also provides a chromatogram processing device for realizing the chromatogram processing method. The solution to the problem provided by the apparatus is similar to the solution described in the above method, so the specific limitations in one or more embodiments of the chromatogram processing apparatus provided below can refer to the limitations of the chromatogram processing method in the above, and details are not described here.
In one embodiment, as shown in fig. 8, there is provided a chromatogram processing apparatus 800, comprising:
a boundary identification module 802, configured to perform boundary identification on an acquired chromatogram and determine a boundary of the chromatogram when the chromatogram is acquired;
a chromatogram information identification module 804, configured to determine, within a boundary of the chromatogram, chromatogram information of the chromatogram according to a coordinate system and attribute information of the chromatogram, where the chromatogram information includes: the coordinate system is established based on the boundary of the chromatogram;
a data processing module 806, configured to perform data processing on the chromatography information and output a data exchange format file, where the data exchange format file includes the chromatography information after the data processing.
In one embodiment of the apparatus, the boundary identifying module 802 comprises: the image conversion enhancement module, the edge detection module and the contour selection module;
the image enhancement module is used for converting the chromatogram into a gray chromatogram and carrying out image enhancement on the gray chromatogram;
the edge detection module is configured to perform edge detection on the obtained gray level chromatogram after image enhancement, and determine at least one boundary contour, where the edge detection includes: eliminating noise, searching edges and extracting a boundary outline;
and the contour selection module is used for determining the boundary of the chromatogram according to the boundary contour with the largest area in at least one boundary contour.
In one embodiment of the apparatus, the chromatographic information identifying module 804 comprises: the system comprises a spot acquisition module, a distance coordinate determination module, a vertex coordinate determination module, a straight line acquisition module and a coordinate information determination module;
the spot acquisition module is used for acquiring spots in the chromatogram within the boundary of the chromatogram;
the distance coordinate determination module is used for determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system;
the vertex coordinate determining module is used for determining the vertex coordinate information of the spots according to the coordinates of the farthest and nearest points;
the straight line acquisition module is used for acquiring straight lines in the chromatogram which are parallel to the coordinate axis in the chromatogram boundary;
and the coordinate information determination module is used for determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
In one embodiment of the apparatus, the blob obtaining module comprises: the suspicious spot determining module and the suspicious spot eliminating module are used for determining the suspicious spots;
the suspicious spot determining module is used for determining suspicious spots in the boundary range of the chromatogram according to pixel values in the boundary of the chromatogram;
and the suspicious spot eliminating module is used for eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
In one embodiment of the apparatus, the data processing module 806 is further configured to convert the vertex coordinate information of the blob, the coordinate information of the sampling line, and the coordinate information of the solvent front line into a data exchange format file through field mapping, and output the data exchange format.
In one embodiment of the apparatus, the apparatus further comprises: and the diagram drawing module is used for drawing the chromatographic diagram in a pre-created blank canvas.
In one embodiment of the apparatus, the schematic drawing module includes: the system comprises a first drawing module, a second drawing module and a third drawing module;
the first drawing module is used for drawing a target chromatogram schematic diagram matched with a target chromatogram in the blank canvas;
the second drawing module is used for drawing a data chromatogram schematic diagram corresponding to the chromatogram information in the blank canvas according to the chromatogram information subjected to the data processing and the Bezier curve;
and the third drawing module is used for drawing an information color spectrum schematic diagram corresponding to the vector diagram file in the blank canvas under the condition that the vector diagram file is identified.
In one embodiment of the apparatus, the schematic drawing module further includes: a format conversion module, configured to convert at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram into a data format and output the data format after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram is drawn, where the data format includes: picture data format and/or vector graphics file.
The respective modules in the chromatogram processing apparatus can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a chromatogram processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the disclosed aspects and does not constitute a limitation on the computing device to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided by the present disclosure may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in embodiments provided by the present disclosure may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided in this disclosure may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic, quantum computing based data processing logic, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present disclosure, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present disclosure. It should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the concept of the present disclosure, and these changes and modifications are all within the scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims (17)

1. A method of chromatogram processing, characterized in that the method comprises:
under the condition of obtaining the chromatogram, carrying out boundary identification on the obtained chromatogram, and determining the boundary of the chromatogram;
determining chromatographic information of the chromatogram according to a coordinate system and attribute information of the chromatogram in the boundary of the chromatogram, wherein the chromatographic information comprises: the coordinate system is established based on the boundary of the chromatogram;
and performing data processing on the chromatographic information, and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
2. The chromatogram processing method according to claim 1, wherein the performing boundary identification on the acquired chromatogram and determining the boundary of the chromatogram comprises:
converting the chromatogram into a gray chromatogram, and carrying out image enhancement on the gray chromatogram;
performing edge detection on the obtained gray chromatogram after image enhancement to determine at least one boundary contour, wherein the edge detection comprises the following steps: eliminating noise, searching edges and extracting a boundary outline;
and determining the boundary of the chromatogram according to the boundary contour with the largest area in the at least one boundary contour.
3. The chromatogram processing method according to claim 1, wherein the attribute information comprises: the determining of the chromatogram information of the chromatogram according to the coordinate system and the attribute information of the chromatogram in the boundary of the chromatogram comprises the following steps:
obtaining the spots in the chromatogram in the boundary of the chromatogram, and determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system;
determining vertex coordinate information of the blobs according to the coordinates of the farthest and nearest points;
and acquiring a straight line in the chromatogram map parallel to the coordinate axis in the chromatogram map boundary, and determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
4. The chromatogram processing method according to claim 3, wherein a spot in the chromatogram within the boundary of the chromatogram is acquired by:
determining suspicious spots within the boundary range of the chromatogram according to pixel values within the boundary of the chromatogram;
and eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
5. The chromatogram processing method of claim 1, wherein the performing the data processing on the chromatogram information and outputting a data exchange format file comprises:
converting the vertex coordinate information of the spots, the coordinate information of the spot lines and the coordinate information of the solvent front lines into a data exchange format file through field mapping, and outputting the data exchange format.
6. The chromatogram processing method according to claim 1, further comprising:
drawing a chromatographic diagram in a pre-created blank canvas;
drawing a chromatogram schematic diagram in a pre-created blank canvas, wherein the drawing comprises at least one of the following steps:
drawing a target chromatogram schematic diagram matched with the target chromatogram in the blank canvas;
drawing a data chromatographic schematic diagram corresponding to the chromatographic information in the blank canvas according to the chromatographic information subjected to the data processing and the Bezier curve;
and in the case that the vector graphics file is identified, drawing an information color spectrum schematic diagram corresponding to the vector graphics file in the blank canvas.
7. The chromatogram processing method of claim 6, wherein the drawing of the chromatogram map in a pre-created blank canvas further comprises:
after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram is drawn, converting at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram and the information chromatogram schematic diagram into a data format and outputting the data format, wherein the data format comprises: picture data format and/or vector graphics file.
8. A chromatogram processing apparatus, characterized in that the apparatus comprises:
the boundary identification module is used for identifying the boundary of the obtained chromatogram and determining the boundary of the chromatogram under the condition of obtaining the chromatogram;
a chromatogram information identification module, configured to determine, within a boundary of the chromatogram, chromatogram information of the chromatogram according to a coordinate system and attribute information of the chromatogram, where the chromatogram information includes: the coordinate system is established based on the boundary of the chromatogram;
and the data processing module is used for carrying out data processing on the chromatographic information and outputting a data exchange format file, wherein the data exchange format file comprises the chromatographic information after the data processing.
9. The chromatogram processing device of claim 8, the boundary identifying module comprising: the image conversion enhancement module, the edge detection module and the contour selection module;
the image enhancement module is used for converting the chromatogram into a gray chromatogram and carrying out image enhancement on the gray chromatogram;
the edge detection module is configured to perform edge detection on the obtained gray level chromatogram after image enhancement, and determine at least one boundary contour, where the edge detection includes: eliminating noise, searching edges and extracting a boundary outline;
and the contour selection module is used for determining the boundary of the chromatogram according to the boundary contour with the largest area in at least one boundary contour.
10. The chromatogram processing device of claim 9, the chromatography information identifying module comprising: the system comprises a spot acquisition module, a distance coordinate determination module, a vertex coordinate determination module, a straight line acquisition module and a coordinate information determination module;
the spot acquisition module is used for acquiring spots in the chromatogram within the boundary of the chromatogram;
the distance coordinate determination module is used for determining the coordinates of the points of the spots, which are farthest from and closest to the coordinate axis in the coordinate system;
the vertex coordinate determining module is used for determining the vertex coordinate information of the spots according to the coordinates of the farthest and nearest points;
the straight line acquisition module is used for acquiring straight lines in the chromatogram which are parallel to the coordinate axis in the chromatogram boundary;
and the coordinate information determination module is used for determining the coordinate information of the point sample line and the coordinate information of the solvent front line according to the distance between the straight line and the coordinate axis under the condition that the length of the straight line is greater than the preset threshold length.
11. The chromatogram processing device of claim 9, the spot retrieval module comprising: the suspicious spot determining module and the suspicious spot eliminating module are used for determining the suspicious spots;
the suspicious spot determining module is used for determining suspicious spots in the boundary range of the chromatogram according to pixel values in the boundary of the chromatogram;
and the suspicious spot eliminating module is used for eliminating the suspicious spots of which the pixel values are within a preset interference threshold value, and eliminating the suspicious spots of which the areas are larger than a preset area threshold value to obtain the spots within the boundary range of the chromatogram.
12. The chromatogram processing apparatus of claim 8, wherein the data processing module is further configured to convert vertex coordinate information of the spot, coordinate information of a spot line, and coordinate information of a solvent front line into a data exchange format file by field mapping, and output the data exchange format.
13. The chromatogram processing device of claim 8, further comprising: the diagram drawing module is used for drawing a chromatographic diagram in a pre-created blank canvas;
the schematic drawing module includes: the system comprises a first drawing module, a second drawing module and a third drawing module;
the first drawing module is used for drawing a target chromatogram schematic diagram matched with a target chromatogram in the blank canvas;
the second drawing module is used for drawing a data chromatogram schematic diagram corresponding to the chromatogram information in the blank canvas according to the chromatogram information subjected to the data processing and the Bezier curve;
and the third drawing module is used for drawing an information color spectrum schematic diagram corresponding to the vector diagram file in the blank canvas under the condition that the vector diagram file is identified.
14. The chromatogram processing device of claim 13, the schematic drawing module further comprising: a format conversion module, configured to convert at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram into a data format and output the data format after at least one of the target chromatogram schematic diagram, the data chromatogram schematic diagram, and the information chromatogram schematic diagram is drawn, where the data format includes: picture data format and/or vector graphics file.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
17. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
CN202111474534.4A 2021-12-04 2021-12-04 Chromatogram processing method, chromatogram processing device, computer device, and storage medium Pending CN114202520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111474534.4A CN114202520A (en) 2021-12-04 2021-12-04 Chromatogram processing method, chromatogram processing device, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111474534.4A CN114202520A (en) 2021-12-04 2021-12-04 Chromatogram processing method, chromatogram processing device, computer device, and storage medium

Publications (1)

Publication Number Publication Date
CN114202520A true CN114202520A (en) 2022-03-18

Family

ID=80650790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111474534.4A Pending CN114202520A (en) 2021-12-04 2021-12-04 Chromatogram processing method, chromatogram processing device, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN114202520A (en)

Similar Documents

Publication Publication Date Title
CN110689037B (en) Method and system for automatic object annotation using deep networks
US9697416B2 (en) Object detection using cascaded convolutional neural networks
CN108830780B (en) Image processing method and device, electronic device and storage medium
US11321822B2 (en) Determining image defects using image comparisons
CN111091123A (en) Text region detection method and equipment
CN112101386B (en) Text detection method, device, computer equipment and storage medium
CN111415364A (en) Method, system and storage medium for converting image segmentation samples in computer vision
CN108960247B (en) Image significance detection method and device and electronic equipment
US11682186B2 (en) Detection of annotated regions of interest in images
CN115880362B (en) Code region positioning method, device, computer equipment and computer readable storage medium
CN110610178A (en) Image recognition method, device, terminal and computer readable storage medium
CN114202520A (en) Chromatogram processing method, chromatogram processing device, computer device, and storage medium
CN116403200A (en) License plate real-time identification system based on hardware acceleration
CN115063473A (en) Object height detection method and device, computer equipment and storage medium
CN111819567A (en) Method and apparatus for matching images using semantic features
CN112487943B (en) Key frame de-duplication method and device and electronic equipment
CN115115857A (en) Image matching method and device and computer equipment
CN111709377B (en) Feature extraction method, target re-identification method and device and electronic equipment
CN114511862A (en) Form identification method and device and electronic equipment
CN113469087A (en) Method, device, equipment and medium for detecting picture frame in building drawing
CN113760686B (en) User interface testing method, device, terminal and storage medium
CN115455227B (en) Element searching method of graphical interface, electronic equipment and storage medium
CN116612474B (en) Object detection method, device, computer equipment and computer readable storage medium
US20220292681A1 (en) Fast whole slide tissue tiling method
US20240135486A1 (en) Oblique image rectification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination