CN109685860B - Floccule color determination method and device - Google Patents
Floccule color determination method and device Download PDFInfo
- Publication number
- CN109685860B CN109685860B CN201910025185.4A CN201910025185A CN109685860B CN 109685860 B CN109685860 B CN 109685860B CN 201910025185 A CN201910025185 A CN 201910025185A CN 109685860 B CN109685860 B CN 109685860B
- Authority
- CN
- China
- Prior art keywords
- image
- pixel
- reagent
- determining
- area
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the application provides a method and a device for determining floccule color, and relates to the technical field of image processing. The method comprises the following steps: obtaining a flocculent agent image; determining a floc area image where the floc is located from the floc reagent image; determining the area color characteristic value of the floe area image; and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule. The area color characteristic value of the floccule area image in the floccule reagent image is determined, and the target standard color characteristic value matched with the area color characteristic value is determined through matching.
Description
Technical Field
The application relates to the technical field of image processing, in particular to a method and a device for determining floccule color.
Background
After various chemical substances are subjected to chemical reaction, floccules are often generated, and the colors of the generated floccules are different from each other for different chemical reactions.
To analyze the reaction, a worker is required to determine the color of the flocs produced. However, the colors of the floccules are various and the colors of some floccules are very different, so that it is difficult for the worker to accurately determine the color of each floccule.
Disclosure of Invention
The present application provides a method and an apparatus for determining a color of a floccule to effectively solve the above technical problem.
In order to achieve the above object, embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a method for determining a flocculent color, the method including: obtaining a flocculent agent image; determining a floc area image where the flocs are located from the floc reagent image; determining the area color characteristic value of the floe area image; and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
With reference to the first aspect, in some possible implementations, the determining a region color feature value of the floe region image includes: determining the pixel color characteristic value of each area pixel point in the floccule area image; obtaining the pixel color characteristic average value of all area pixel points in the floccule area image according to the pixel color characteristic value; and determining the pixel color characteristic average value as a region color characteristic value of the floe region image.
With reference to the first aspect, in some possible implementation manners, the determining a pixel color feature value of each area pixel point in the floe area image includes: converting the RGB color parameters of each regional pixel point in the flocculent region image into pixel color characteristic values according to a preset Lab model, and obtaining the pixel color characteristic values of each regional pixel point.
With reference to the first aspect, in some possible implementations, the determining, from the floe reagent image, a floe area image in which the floe is located includes: converting the floccule reagent image into a floccule reagent gray image, and performing binarization processing on the floccule reagent gray image to obtain a floccule reagent binarized image; determining a flocculent reagent binarization area image from the flocculent reagent binarization image, wherein the flocculent reagent binarization area image shows an area between the liquid level of the reagent in the container and the bottom of the container; determining a floe area gray level image where the floes are located from an area corresponding to the floe reagent binarization area image in the floe reagent gray level image according to the floe reagent gray level image; and determining an image area corresponding to the floe area gray level image in the floe reagent image as a floe area image where the floes are located.
With reference to the first aspect, in some possible implementations, a black line is disposed on a tube wall of the container, the agent covers the black line to indicate that the floccule exists in the agent, and the determining, according to the floccule agent grayscale image, a floccule area grayscale image where the floccule exists from an area corresponding to the floccule agent binarization area image in the floccule agent grayscale image includes: determining a pixel difference value of each row of pixel points from a region corresponding to the flocculent reagent binarization region image in the flocculent reagent gray-scale image, wherein the pixel difference value is a difference value between a pixel value of a first pixel point with a maximum pixel value and a pixel value of a second pixel point with a minimum pixel value in each row of the pixel points; determining each row of pixel points with the pixel difference value smaller than a preset threshold value according to the pixel difference value, and determining a plurality of rows of pixel points in total, wherein the pixel difference value smaller than the preset threshold value indicates that the first pixel point is not a pixel point corresponding to the black line; and determining images corresponding to the pixel points in a plurality of rows as the gray level images of the floccules.
In a second aspect, an embodiment of the present application provides a flocculent color determination apparatus, comprising: an obtaining module for obtaining a floe agent image. The first determining module is used for determining a floccule area image where the floccule is located from the floccule agent image. And the second determination module is used for determining the area color characteristic value of the floe area image. And the third determining module is used for determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
With reference to the second aspect, in some possible implementation manners, the second determining module is further configured to determine a pixel color feature value of each area pixel point in the floe area image. And obtaining the pixel color characteristic average value of all area pixel points in the floccule area image according to the pixel color characteristic value. And determining the pixel color characteristic average value as a region color characteristic value of the floe region image.
With reference to the second aspect, in some possible implementation manners, the second determining module is further configured to convert, according to a preset Lab model, RGB color parameters of each regional pixel point in the floe region image into a pixel color characteristic value, and obtain the pixel color characteristic value of each regional pixel point.
With reference to the second aspect, in some possible implementations, the first determining module is further configured to convert the flocculent reagent image into a flocculent reagent grayscale image, and perform binarization processing on the flocculent reagent grayscale image to obtain a flocculent reagent binarized image; determining a flocculent reagent binarization area image from the flocculent reagent binarization image, wherein the flocculent reagent binarization area image shows an area between the liquid level of the reagent in the container and the bottom of the container; determining a floe area gray level image where the floes are located from an area corresponding to the floe reagent binarization area image in the floe reagent gray level image according to the floe reagent gray level image; and determining an image area corresponding to the floe area gray level image in the floe reagent image as a floe area image where the floes are located.
With reference to the second aspect, in some possible implementations, a black line is disposed on a tube wall of the container, the reagent covers the black line to indicate that the floccule exists in the reagent, and the first determining module is further configured to determine a pixel difference value of each row of pixel points from an area, corresponding to the floccule reagent binarization area image, in the floccule reagent grayscale image, where the pixel difference value is a difference value between a pixel value of a first pixel point having a maximum pixel value and a pixel value of a second pixel point having a minimum pixel value in the pixel points in each row; determining each row of pixel points with the pixel difference value smaller than a preset threshold value according to the pixel difference value, and determining a plurality of rows of pixel points in total, wherein the pixel difference value smaller than the preset threshold value indicates that the first pixel point is not a pixel point corresponding to the black line; and determining images corresponding to the pixel points in a plurality of rows as the gray level images of the floccules.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a processor, a memory, a bus and a communication interface; the processor, the communication interface and the memory are connected by the bus. The memory is used for storing programs. The processor is configured to execute the method for determining a flocculent color according to the first aspect and any implementation manner of the first aspect by calling a program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having computer-executable non-volatile program code, where the program code causes the computer to execute the method for determining a floc color according to the first aspect and any implementation manner of the first aspect.
The beneficial effects of the embodiment of the application are that:
the area color characteristic value of the floccule area image in the floccule reagent image is determined, and the target standard color characteristic value matched with the area color characteristic value is determined through matching.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a block diagram of an electronic device according to a first embodiment of the present application;
fig. 2 is a flow chart illustrating a method for determining a flocculent color according to a second embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a floc color determination apparatus according to a third embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without inventive step, are within the scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
First embodiment
Referring to fig. 1, an embodiment of the present application provides an electronic device 10, where the electronic device 10 may be a terminal, such as a Personal Computer (PC), a tablet computer, a smart phone, a Personal Digital Assistant (PDA), and the like; alternatively, the electronic device 10 may be a server, such as a web server, a database server, a cloud server, or a server assembly including a plurality of sub servers. Of course, the above-mentioned devices are for easy understanding of the present embodiment, and should not be taken as limiting the present embodiment.
The electronic device 10 may include: memory 11, communication interface 12, bus 13, and processor 14. The processor 14, the communication interface 12, and the memory 11 are connected by a bus 13.
The processor 24 is for executing executable modules, such as computer programs, stored in the memory 21. The components and configurations of electronic device 10 shown in FIG. 1 are for example, and not for limitation, and electronic device 10 may have other components and configurations as desired.
The Memory 11 may include a Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least two disk memories. In the present embodiment, the memory 11 stores a program necessary for executing the flocc color determination method.
The bus 13 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 1, but this does not indicate only one bus or one type of bus.
The method performed by the flow process or the defined device disclosed in any of the embodiments of the present application may be applied to the processor 14, or may be implemented by the processor 14. After the processor 14 receives the execution instruction and calls the program stored in the memory 11 through the bus 13, the processor 14 controls the communication interface 12 through the bus 13 so that the flow of the method for determining the floc color can be realized.
Second embodiment
The present embodiment provides a method for floc color determination, it being noted that the steps shown in the flow chart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is shown in the flow chart, in some cases the steps shown or described may be performed in an order different than here. The present embodiment will be described in detail below.
Referring to fig. 2, in the method for determining a flocculent color according to the present embodiment, the method for determining a flocculent color may be executed by an electronic device, and the method for determining a flocculent color includes: step S110, step S120, step S130, and step S140.
Step S110: a flocc agent image is obtained.
Step S120: and determining a floe area image in which the floe is located from the floe reagent image.
Step S130: and determining the area color characteristic value of the floe area image.
Step S140: and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
The process flow of the present application will be described in detail below.
Step S110: a flocc agent image is obtained.
The electronics can obtain a floe agent image. The content of the image of the flocculent reagent can be a container, and the container contains the reagent generating flocculent.
In this embodiment, the electronic device may obtain the flocculent reagent image by: when the electronic equipment is connected with an external storage medium in which the flocculent reagent image is stored, responding to the storage operation of a user to obtain the flocculent reagent image from the storage medium; or the electronic device may obtain the flocculent agent image by: the floe agent image is obtained from a server or database storing floe agent images in response to a user download operation.
After the electronics obtain the image of the flocc agent, the electronics can perform step S120.
Step S120: and determining a floe area image in which the floe is located from the floe reagent image.
The electronic equipment can convert the floccule reagent image into a floccule reagent gray image, and then the self-adaptive threshold segmentation is adopted to carry out binarization processing on the floccule reagent gray image to obtain a floccule reagent binarization preliminary image, wherein a formula of the binarization processing can be as shown in the following formula 1:
Gray=R*0.299+G*0.587+B*0.114 (1)
in the formula (1), the Gray value is a binary value, R is the intensity value of red pixel, G is the intensity value of green pixel, and B is the intensity value of blue pixel.
Then, the Gray value of each pixel point in the flocculent reagent image can be calculated by adopting the formula (1), so that the flocculent reagent image can be subjected to binarization processing, and a flocculent reagent binarization preliminary image is obtained.
It can be understood that, because the flocculent reagent image may carry noise interference signals during shooting and transmission, there are many edge discontinuities or burr points in the obtained flocculent reagent binarized preliminary image due to the interference signals. Therefore, the electronic equipment can carry out filtering processing on the floccule reagent binaryzation preliminary image by adopting continuous opening operation and closing operation of morphological filtering, so that the floccule reagent binaryzation image with burr points removed from the image and better continuity of the actual edge of the image is obtained.
In this embodiment, the content of the floe reagent grayscale image may include some background images in addition to the image of the container. In order to reduce the amount of computation, reduce the computation load of the electronic device, and improve the computation accuracy, some background images except for the container image in the flocculent reagent gray-scale image may be removed.
Optionally, the electronic device sequentially determines whether the number of pixels with a pixel value of 0 in each row of pixels is greater than a preset number, starting from the first row of pixels at the top of the flocculent reagent binarized image and heading towards the direction of the last row of pixels at the bottom of the flocculent reagent binarized image. It can be understood that the region of the flocculent reagent binarized image starting from the top of the image and reaching the liquid level of the reagent in the container is few in black pixel points, i.e., the number of pixel points with a pixel value of 0 in the region is generally not more than the preset number. Thus, when the electronic device determines each row of pixel points from the top of the image to the liquid level in sequence, the electronic device determines that the number of the pixel points with the pixel value of 0 is larger than the preset number and stops determining continuously, so that the electronic device can determine that the area from the top of the image to the liquid level of the reagent in the container can be a redundant area, and the area is deleted.
Meanwhile, the electronic device may also sequentially determine whether the number of pixels with a pixel value of 0 in each line of pixels is greater than a preset number from the last line of pixels at the bottom of the flocculent reagent binarized image and toward the first line of pixels at the top of the flocculent reagent binarized image. It can be understood that the region of the flocculent reagent binarized image starting from the bottom of the image and at the bottom of the container is few pixels that appear black, i.e., the number of pixels having a pixel value of 0 in the region is generally not greater than the preset number. In this way, when the electronic device determines that the number of the pixel points with the pixel value of 0 is greater than the preset number and stops determining continuously when determining each row of the pixel points at the bottom of the container in sequence from the bottom of the image, the electronic device can determine that the area from the bottom of the image to the bottom of the container can be a redundant area, and therefore the area can be deleted.
After the redundant areas are deleted by the electronics, the electronics can obtain a floe reagent binarization area image, which can then be an area representing the reagent between the liquid level in the container to the bottom of the container.
In this embodiment, a black line is drawn on the wall of the container, and the black line can penetrate from the top end of the container to the bottom end of the container. Then, when there is a floc of the reagent contained in the container, the black line is covered by the reagent, which means that the floc existing in the reagent covers the black line. And because the black line is darker corresponding to the pixel point in the flocculent reagent gray-scale image, that is, the pixel value of the black line corresponding to the pixel point in the flocculent reagent gray-scale image is very low. If a row of pixel points in the floccule reagent gray-scale image exist in pixel points with large pixel value difference of other pixel points, the fact that a black line exists in the image corresponding to the row of pixel points is indicated, and the image corresponding to the row of pixel points is not the image of the area where the floccule is located; on the contrary, if a row of pixel points in the floccule reagent gray-scale image does not have pixel points with large pixel value difference from other pixel points, the image corresponding to the row of pixel points is the image of the area where the floccule is located.
Based on the principle, the electronic equipment can determine the pixel difference value of each row of pixel points from the area corresponding to the image of the flocculent reagent binarization area in the flocculent reagent grayscale image according to the flocculent reagent grayscale image. The pixel difference value of each row of pixel points can be a difference value between the pixel value of the first pixel point with the maximum pixel value and the pixel value of the second pixel point with the minimum pixel value in each row of pixel points. The electronic equipment can determine each row of pixel points with the pixel difference value smaller than the preset threshold value according to the pixel difference value, and determine a plurality of rows of pixel points. The pixel difference value of each row of pixel points is smaller than the preset threshold value, and the second pixel point in each row of pixel points is not the pixel point corresponding to the black line, namely the image corresponding to each pixel point is the image in which the floccules exist. Thus, the electronic device can determine that the image corresponding to the plurality of rows of pixel points in the floc reagent gray-scale image is the image of the floc reagent gray-scale area where the floc is located.
In this embodiment, the electronic device may determine a region corresponding to the image of the grayscale region of the flocculent agent from the image of the flocculent agent, and since the image of the grayscale region of the flocculent agent is obtained by processing the image of the flocculent agent, the region from the image of the grayscale region of the flocculent agent in the image of the grayscale region of the flocculent agent to the image of the flocculent agent is the image of the flocculent region where the flocculent is located.
After the electronic device determines the floe area image, the electronic device may proceed to step S300.
Step S300: and determining the area color characteristic value of the floe area image.
The electronic device is preset with a Lab model, which may be represented by the following formula (2):
in the Lab model, the a-channel value can be used to better distinguish colors, so the electronic device can convert RGB color parameters of each regional pixel point in the floe region image into a pixel color characteristic value, and the pixel color characteristic value of each regional pixel point is the a-channel value in the formula (2), so the electronic device can obtain the pixel color characteristic value of each regional pixel point.
Optionally, the electronic device may further calculate and obtain a pixel color feature average value of all the area pixel points in the floe area image according to the pixel color feature value of each area pixel point, so that the pixel color feature average value may be determined as the area color feature value of the floe area image.
After the electronic device obtains the region color feature value, the electronic device may perform step S400.
Step S400: and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
In this embodiment, a plurality of standard color characteristic values are also preset in the electronic device, and each standard color characteristic value corresponds to one standard color. Therefore, the electronic device may determine a target standard color feature value matching the area color feature value from a plurality of preset standard color feature values, where the target standard color feature value may be a feature value matching or closest to the area color feature value in the plurality of standard color feature values. Based on this, the electronic device determines the target color corresponding to the target standard color feature value as the color of the floccule, so that the color of the floccule is accurately determined.
It should be noted that, the more the plurality of standard color feature values are set, the more accurate the determination of the color of the flocs can be.
Third embodiment
Referring to fig. 3, an embodiment of the present application provides a flocculent color determination apparatus 100, where the flocculent color determination apparatus 100 may be applied to an electronic device, and the flocculent color determination apparatus 100 includes:
an obtaining module 110 is used for obtaining a floe agent image.
A first determining module 120, configured to determine a floe area image where the floe is located from the floe reagent image.
A second determining module 130, configured to determine a region color feature value of the floe region image.
A third determining module 140, configured to determine a target standard color feature value matching the area color feature value from a plurality of preset standard color feature values, and determine a target color corresponding to the target standard color feature value as the color of the floccule.
Optionally, the second determining module 130 is further configured to determine a pixel color characteristic value of each area pixel point in the floe area image; obtaining the pixel color characteristic average value of all area pixel points in the floccule area image according to the pixel color characteristic value; and determining the pixel color characteristic average value as a region color characteristic value of the floe region image.
Optionally, the first determining module 120 is further configured to perform binarization processing on the flocculent reagent image to obtain a flocculent reagent binarized image; determining a floccule area binary image where the floccules are located from the floccule reagent binary image; and determining a region corresponding to the floe region binary image from the floe reagent image, wherein the corresponding region is represented as a floe region image in which the floes are located in the floe reagent image.
Optionally, the first determining module 120 is further configured to determine a floe reagent binarized image from the floe reagent binarized image, wherein the floe reagent binarized image represents a region between a liquid level of the reagent in the container and a bottom of the container; and determining a floe area binary image where the floes are located from the floe reagent binary image.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In summary, the present application provides a method and an apparatus for determining a floccule color. The method comprises the following steps: obtaining a flocculent agent image; determining a floc area image where the floc is located from the floc reagent image; determining the area color characteristic value of the floe area image; and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
The area color characteristic value of the floccule area image in the floccule reagent image is determined, and the target standard color characteristic value matched with the area color characteristic value is determined through matching.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (6)
1. A method of floc color determination, the method comprising:
acquiring a floccule reagent image, wherein a black line is arranged on the pipe wall of the container, and the reagent covers the black line to show that the floccule exists in the reagent;
determining a floe area image in which the floes are located from the floe reagent image includes: converting the floccule reagent image into a floccule reagent gray image, and performing binarization processing on the floccule reagent gray image to obtain a floccule reagent binarized image;
determining a flocculent reagent binarization area image from the flocculent reagent binarization image, wherein the flocculent reagent binarization area image shows an area between the liquid level of the reagent in the container and the bottom of the container;
determining a pixel difference value of each row of pixel points from a region corresponding to the flocculent reagent binarization region image in the flocculent reagent gray-scale image, wherein the pixel difference value is a difference value between a pixel value of a first pixel point with a maximum pixel value and a pixel value of a second pixel point with a minimum pixel value in each row of the pixel points;
determining each row of pixel points with the pixel difference value smaller than a preset threshold value according to the pixel difference value, and determining a plurality of rows of pixel points in total, wherein the pixel difference value smaller than the preset threshold value indicates that the first pixel point is not a pixel point corresponding to the black line;
determining images corresponding to the pixel points in multiple rows as floccule area gray level images where the floccules are located;
determining an image area corresponding to the floe area gray level image in the floe reagent image as a floe area image where the floe is located; determining the area color characteristic value of the floe area image;
and determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values, and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
2. The method for determining a floc color according to claim 1, wherein the determining a region color feature value of the floc region image comprises:
determining the pixel color characteristic value of each area pixel point in the floccule area image;
obtaining the pixel color characteristic average value of all area pixel points in the floccule area image according to the pixel color characteristic value;
and determining the pixel color characteristic average value as a region color characteristic value of the floe region image.
3. The method for determining floccule color according to claim 2, wherein said determining a pixel color feature value of each region pixel point in the floccule region image comprises:
converting the RGB color parameters of each regional pixel point in the flocculent region image into pixel color characteristic values according to a preset Lab model, and obtaining the pixel color characteristic values of each regional pixel point.
4. A floe color determination apparatus, said apparatus comprising:
an obtaining module for obtaining a flocculent agent image;
a first determination module, configured to determine whether the reagent covers a black line on a tube wall of a container, where the reagent covers the black line to indicate that the floccule exists in the reagent; converting the floccule reagent image into a floccule reagent gray image, and performing binarization processing on the floccule reagent gray image to obtain a floccule reagent binarized image; determining a flocculent reagent binarization area image from the flocculent reagent binarization image, wherein the flocculent reagent binarization area image shows an area between the liquid level of the reagent in the container and the bottom of the container; determining a pixel difference value of each row of pixel points from a region corresponding to the flocculent reagent binarization region image in the flocculent reagent gray-scale image, wherein the pixel difference value is a difference value between a pixel value of a first pixel point with a maximum pixel value and a pixel value of a second pixel point with a minimum pixel value in each row of the pixel points; determining each row of pixel points with the pixel difference value smaller than a preset threshold value according to the pixel difference value, and determining a plurality of rows of pixel points in total, wherein the pixel difference value smaller than the preset threshold value indicates that the first pixel point is not a pixel point corresponding to the black line; determining images corresponding to the pixel points in multiple rows as floccule area gray level images where the floccules are located; determining an image area corresponding to the floe area gray level image in the floe reagent image as a floe area image where the floe is located;
the second determination module is used for determining the area color characteristic value of the floe area image;
and the third determining module is used for determining a target standard color characteristic value matched with the area color characteristic value from a plurality of preset standard color characteristic values and determining a target color corresponding to the target standard color characteristic value as the color of the floccule.
5. The floc color determination apparatus of claim 4,
the second determining module is further configured to determine a pixel color feature value of each area pixel point in the floe area image; obtaining the pixel color characteristic average value of all area pixel points in the floccule area image according to the pixel color characteristic value; and determining the pixel color characteristic average value as a region color characteristic value of the floe region image.
6. The floc color determination apparatus of claim 5,
the second determining module is further configured to convert RGB color parameters of each regional pixel point in the floe region image into a pixel color characteristic value according to a preset Lab model, and obtain the pixel color characteristic value of each regional pixel point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910025185.4A CN109685860B (en) | 2019-01-10 | 2019-01-10 | Floccule color determination method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910025185.4A CN109685860B (en) | 2019-01-10 | 2019-01-10 | Floccule color determination method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109685860A CN109685860A (en) | 2019-04-26 |
CN109685860B true CN109685860B (en) | 2020-12-01 |
Family
ID=66193020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910025185.4A Expired - Fee Related CN109685860B (en) | 2019-01-10 | 2019-01-10 | Floccule color determination method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109685860B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509106A (en) * | 2011-10-12 | 2012-06-20 | 重庆大学 | Method for testing plasma flocs |
CN108593645A (en) * | 2018-04-24 | 2018-09-28 | 沈阳普泽众康医药科技有限公司 | A kind of testing result of Urine test paper determines method and determining device |
CN108961345A (en) * | 2018-06-01 | 2018-12-07 | 沈阳普泽众康医药科技有限公司 | A kind of effective determination method and determining device of color in Urine test paper |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118217B (en) * | 2007-09-10 | 2010-05-19 | 西安近代化学研究所 | Vieri experiment indicator paper colors identification device |
EP2651112B1 (en) * | 2010-12-07 | 2022-03-23 | Prosper Creative Co., Ltd. | Color processing method, color processing device, and color processing system |
US10008011B1 (en) * | 2014-11-26 | 2018-06-26 | John Balestrieri | Methods for creating a simulated watercolor-painted image from a source image |
-
2019
- 2019-01-10 CN CN201910025185.4A patent/CN109685860B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509106A (en) * | 2011-10-12 | 2012-06-20 | 重庆大学 | Method for testing plasma flocs |
CN108593645A (en) * | 2018-04-24 | 2018-09-28 | 沈阳普泽众康医药科技有限公司 | A kind of testing result of Urine test paper determines method and determining device |
CN108961345A (en) * | 2018-06-01 | 2018-12-07 | 沈阳普泽众康医药科技有限公司 | A kind of effective determination method and determining device of color in Urine test paper |
Also Published As
Publication number | Publication date |
---|---|
CN109685860A (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017121018A1 (en) | Method and apparatus for processing two-dimensional code image, and terminal and storage medium | |
CN111583223B (en) | Defect detection method, defect detection device, computer equipment and computer readable storage medium | |
CN108961345B (en) | Method and device for determining effective color in urine test paper | |
CN109214334B (en) | Lane line processing method and device | |
CN110399842B (en) | Video processing method and device, electronic equipment and computer readable storage medium | |
CN108961260B (en) | Image binarization method and device and computer storage medium | |
CN111047615A (en) | Image-based line detection method and device and electronic equipment | |
CN107203982A (en) | A kind of image processing method and device | |
CN109214996B (en) | Image processing method and device | |
CN112215856A (en) | Image segmentation threshold determination method and device, terminal and storage medium | |
US10769478B2 (en) | Convolutional neutral network identification efficiency increasing method and related convolutional neutral network identification efficiency increasing device | |
CN109934262A (en) | Picture otherness judgment method, device, computer equipment and storage medium | |
CN111031359B (en) | Video playing method and device, electronic equipment and computer readable storage medium | |
CN107563986B (en) | Image area judgment method and system | |
CN111489344A (en) | Method, system and related device for determining image definition | |
CN110751156A (en) | Method, system, device and medium for table line bulk interference removal | |
CN109685860B (en) | Floccule color determination method and device | |
CN112530079B (en) | Method, device, terminal equipment and storage medium for detecting bill factors | |
CN112837384A (en) | Vehicle marking method and device and electronic equipment | |
CN110147765B (en) | Image processing method and device | |
CN116863458A (en) | License plate recognition method, device, system and storage medium | |
CN113628192B (en) | Image blur detection method, apparatus, device, storage medium, and program product | |
CN111563464B (en) | Image processing method, device, computing equipment and medium | |
CN114677649A (en) | Image recognition method, apparatus, device and medium | |
CN111160363B (en) | Method and device for generating feature descriptors, readable storage medium and terminal equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201201 Termination date: 20220110 |
|
CF01 | Termination of patent right due to non-payment of annual fee |