CN116385567A - Method, device and medium for obtaining color card ROI coordinate information - Google Patents
Method, device and medium for obtaining color card ROI coordinate information Download PDFInfo
- Publication number
- CN116385567A CN116385567A CN202211730488.4A CN202211730488A CN116385567A CN 116385567 A CN116385567 A CN 116385567A CN 202211730488 A CN202211730488 A CN 202211730488A CN 116385567 A CN116385567 A CN 116385567A
- Authority
- CN
- China
- Prior art keywords
- color
- coordinate information
- blocks
- roi coordinate
- image
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000007781 pre-processing Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 16
- 230000009466 transformation Effects 0.000 claims description 15
- 238000003708 edge detection Methods 0.000 claims description 8
- 238000001914 filtration Methods 0.000 claims description 8
- 238000012937 correction Methods 0.000 claims description 3
- 238000003702 image correction Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000009795 derivation Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 101001039716 Escherichia coli Microcin N Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000004456 color vision Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
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
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Color Image Communication Systems (AREA)
- Image Analysis (AREA)
Abstract
The invention provides a method, a device and a medium for acquiring color card ROI coordinate information, wherein the method comprises the following steps: acquiring a color card image and identifying the color card image as N color blocks; preprocessing the color card image; acquiring outlines of M color blocks in the color card image, and calculating ROI coordinate information of the M color blocks according to the outlines of the M color blocks; generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the N color blocks of the color card images; and deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks. The method is used for accurately and automatically acquiring the ROI coordinate information of the color chart.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a medium for acquiring ROI coordinate information of a color chart.
Background
The human eyes recognize the colors, and the color perception is obtained through the brain synthesis based on three different sensing units exist in the human eyes and the light with different wave bands, and the different sensing units have different response curves. The response of the image sensor to the spectrum is often biased in red, green and blue components from the response of the human eye to the spectrum, requiring correction of the image sensor. It is common practice to correct the image. In short, the image correction is to restore the original color of the object, that is, as close as possible to what the human eye sees at the time of photographing. Technically, the purpose of image correction is to adjust the color response of the input-output device to a known state. The so-called "known state" is the standard color chart information that provides the reference color in the image correction, all colors having been calibrated. Obviously, the image to be corrected needs to contain the corresponding standard color card information. However, these images to be corrected are often artificially photographed, so that the influence of the background and photographing environment is unavoidable, the pixel information of the color card cannot be directly located and acquired, particularly, the characteristics of the color card cannot be related to the identification of a single color block, and the images cannot be corrected because the images are difficult to directly apply to the identification of a standard color card.
Disclosure of Invention
The invention aims to provide a method, a device and a medium for acquiring color chart ROI coordinate information, which are used for realizing efficient and accurate automatic acquisition of color chart ROI coordinate information.
In a first aspect, the present invention provides a method for obtaining ROI coordinate information of a color chart, including: acquiring a color card image and identifying the color card image as N color blocks; preprocessing the color card image; acquiring outlines of M color blocks in the color card image, and calculating ROI coordinate information of the M color blocks according to the outlines of the M color blocks; generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the N color blocks of the color card images; and deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks. The method is used for accurately and automatically acquiring the ROI coordinate information of the color chart.
The method for acquiring the ROI coordinate information of the color card has the beneficial effects that: all color block ROI coordinate information of the standard color card can be obtained, a more reliable and effective ROI area is obtained, excessive color block ROI area deviation is avoided, and better reliability is achieved.
In a possible implementation manner, deriving ROI coordinate information of a color block to be expanded except for M color blocks in the N color blocks according to an edge contour of the color card image and ROI coordinate information of the M color blocks includes: searching color blocks of known ROI coordinate information from two directions of the row and the column according to a set searching step length; when the color block with the known ROI coordinate information is searched, the ROI coordinate information of the color block to be expanded is calculated according to the known ROI coordinate information and the set searching step length.
In one possible implementation manner, after obtaining the outlines of M color patches in the color card image, the method further includes: performing coordinate perspective transformation on the color card image to obtain a corrected image; and calculating the ROI coordinate information of the M color blocks according to the outlines of the color blocks and the coordinate system of the corrected image.
In a possible implementation manner, the preprocessing of the color card image includes: generating a gray scale image of the color card image; performing Gaussian filtering on the gray level map; and carrying out edge detection on the gray level image after Gaussian filtering.
In a possible implementation manner, after deriving ROI coordinate information of a color block to be expanded among the N color blocks except the M color blocks, the method further includes: storing ROI coordinate information of N color blocks of the color card image; and carrying out image correction on the color card image according to the ROI coordinate information of the N color blocks.
In a second aspect, the present invention provides an apparatus for obtaining color chart ROI coordinate information, the apparatus comprising a module/unit for performing the method of any one of the possible designs of the first aspect. These modules/units may be implemented by hardware, or may be implemented by hardware executing corresponding software.
In a third aspect, embodiments of the present application provide an electronic device including a processor and a memory. Wherein the memory is for storing one or more computer programs; the one or more computer programs, when executed by the processor, enable the electronic device to implement the method of any one of the possible designs of the first aspect described above.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, which includes a computer program, which when run on an electronic device causes the electronic device to perform the method of any one of the possible designs of the first aspect.
In a fifth aspect, embodiments of the present application also provide a method comprising a computer program product, which when run on an electronic device, causes the electronic device to perform any one of the possible designs of the first aspect described above.
The advantageous effects concerning the above second to fifth aspects can be seen from the description in the above first aspect.
Drawings
FIG. 1 is a flow chart of a method for acquiring ROI coordinate information of a color chart according to the present invention;
FIG. 2 is a flowchart illustrating steps for deriving and expanding the color block ROI coordinate information according to the present invention;
FIG. 3 is a schematic diagram of an apparatus for acquiring ROI coordinate information of a color chart according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention. Unless otherwise defined, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and the like means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof without precluding other elements or items.
As shown in fig. 1, the present invention provides a method for acquiring coordinate information of a region of interest (region of interest, ROI) of a color chart, which may be performed by a host computer having a processing unit, the method comprising:
s101, acquiring a color card image and identifying the color card image as N color blocks.
Illustratively, the tester photographs the standard color chart to obtain a color chart image, then inputs the color chart image into the upper computer, and then the upper computer identifies the color chart image, and identifies the color chart type of the color chart image, for example, the color chart type of the standard color chart is 24 color chart, and then the color chart image is 24 color chart.
S102, preprocessing the color card image.
In a possible implementation manner, the preprocessing of the color card image includes: generating a gray scale image of the color card image; performing Gaussian filtering on the gray level map; and then carrying out edge detection on the gray level image after Gaussian filtering. This approach helps to filter out abnormal edge contours.
S103, obtaining the outlines of M color blocks in the color card image, wherein M is smaller than N.
Illustratively, when the color chart type is 24 color chart, the following constraints are added by using scene and color patch shape features in combination: the color block outline has 4 vertices; the area of the color block is smaller than the area of the color card image input by 1/10, and the number of pixel points in the contour of the color block is at least greater than 100; both the length and height of the quadrilateral of the color patch profile are greater than 1/6 of the image perimeter. Therefore, the false judgment of the color card edge contour as a color block can be avoided, and the abnormal contour can be further filtered.
S104, calculating the ROI coordinate information of the M color blocks according to the outlines of the M color blocks.
Optionally, before executing S104, coordinate perspective transformation may be performed on the color card image to obtain a corrected image; and calculating the ROI coordinate information of each color block according to the contour of the color block and the coordinate system of the corrected image. It should be appreciated that the perspective transformation is used to unify the coordinate system to facilitate subsequent derivation of the ROI coordinate information of the extended color block, and that it is necessary to ensure that the coordinate system is aligned with the color card as much as possible because the derivation process of the ROI coordinate information of the extended color block is derived from the rows and columns. In practice, if the color cards in the image are placed flush, perspective transformation is not needed any more, the problem of image deflection of the color card image due to photographing angles can be solved by the perspective transformation, and coordinate perspective transformation of the color card image is equivalent to coordinate system transformation of the color card image, so that the transformed color card image is centered in the image.
Illustratively, the manner of calculating the ROI coordinate information for each color block may be: and positioning the vertex coordinates and the centroid coordinates of each color block in a coordinate system according to the contour of each color block, thereby obtaining the ROI coordinate information of M color blocks.
S105, generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the N color blocks of the color card images.
Illustratively, when the color chart type is 24 color charts, a minimum circumscribed quadrangle of the color chart image including 24 color charts is generated according to the known ROI coordinate information of the M color charts.
S106, deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks.
It should be appreciated that since the color card image data is not corrected by the image and the image is entirely darkened, resulting in some color lump edges being insufficiently visible, it is sometimes difficult to ensure that all color lump edges are recognized, so that the missing color lump needs to be deduced, and the deducing process is necessary, but when the color card image is clear in edge, the edge detection effect is better, and it is possible that all color lump edges can be recognized, and the deducing process does not need to be executed.
In a possible implementation manner, deriving ROI coordinate information of a color block to be expanded except for M color blocks in the N color blocks according to an edge contour of the color card image and ROI coordinate information of the M color blocks includes: searching color blocks of known ROI coordinate information from two directions of the row and the column according to a set searching step length; when the color block with the known ROI coordinate information is searched, the ROI coordinate information of the color block to be expanded is calculated according to the known ROI coordinate information and the set searching step length.
It should be appreciated that the core of the edge detection algorithm is the analysis of the color gradient. For commonly used standard color cards such as MCC24, SG140, etc., although some relatively dark color patch edges sometimes fail to detect edges. However, thanks to the color distribution of the standard color chart, each row/column has a brighter color patch, which tends to have a larger gradient with the adjacent black demarcation, and edge detection gives better results. From the above analysis, it can be seen that the circumscribed quadrangle of all the color patch outlines after edge detection can always ensure to cover the whole color card. Therefore, the unrecognized missing color patch can be extended and complemented by the known ROI coordinate information of the M color patches and the minimum circumscribed quadrangle. In particular, the deriving and expanding steps of the color block ROI coordinate information may be as shown in fig. 2: firstly, inputting row and column positions of color blocks to be expanded, then initializing a longitudinal searching step length and a horizontal searching step length, starting from the color blocks to be expanded, sequentially searching upwards and downwards according to the longitudinal searching step length, judging whether the color blocks with coordinate information are searched, if yes, obtaining the barycenter ordinate of the color blocks to be expanded, otherwise, adjusting the longitudinal searching step length, namely adding a set step to the longitudinal searching step length, and sequentially searching upwards and downwards until the barycenter ordinate of the color blocks to be expanded is obtained. Then, the embodiment continues to search from the extended color block according to the transverse search step length, and searches left and right sequentially, judges whether the color block with coordinate information is searched, if not, returns to adjust the horizontal search step length, continues to search left and right sequentially until the barycenter abscissa of the extended color block is obtained, finally deduces and obtains the ROI coordinate information of the extended color block, and can sequentially deduce and obtain the ROI coordinate information of each other extended color block according to the method, thereby obtaining the ROI coordinate information of all the color blocks.
It will be appreciated that there are many types of standard color cards available, in addition to the Macbeth24 color card used for image correction and automatic white balance correction, as well as, for example, 36-step wide dynamic range test color cards. As the arrangement mode of the color blocks in the 36-step wide dynamic range test color card is different from that of the Macbeth24 color card, the method for identifying the positioning points of the color blocks and the method for deriving coordinates can be adjusted according to actual needs. The principle of deducing the information of the ROI coordinates is consistent in nature, and the locating points of the Macbeth24 color card are M color blocks; coordinate derivation extension is a way to extend row by column. The positioning points of the 36-order wide dynamic range test color card are four inclined color blocks at the edge of the color card; the coordinate derivation is to derive 36 color block ROI coordinate information from the four oblique color block coordinate information according to the geometric feature.
In a possible implementation manner, after deriving ROI coordinate information of a color block to be expanded among the N color blocks except the M color blocks, the method further includes: performing coordinate inverse perspective transformation on a color card image, and storing ROI coordinate information of N color blocks of the color card image; and carrying out image correction on the color card image according to the ROI coordinate information of the N color blocks. That is, the perspective-transformed color chart image is restored to the original coordinate system and then subjected to image processing.
The method for acquiring the color card ROI coordinate information provided by the embodiment has the advantages that: on the one hand, the color card has the contour detection function and the perspective transformation function, so that the flexibility of shooting a standard color card is improved, and the strict requirement on the position of the color card is reduced. On the other hand, the ROI coordinate information is obtained based on calculation and transformation of each color block, instead of the whole color card, so that a more reliable and effective ROI area can be obtained, and the excessive deviation of the color block ROI area is avoided. Furthermore, through the perspective conversion function of the coordinate information, all color block ROI coordinate information of the standard color card can be obtained, and the reliability is better.
In some embodiments of the present application, an embodiment of the present application discloses a method for obtaining ROI coordinate information of a color chart, as shown in fig. 3, where the method is used to implement the method described in the method embodiment shown in fig. 3, and includes: an acquisition unit 301, a preprocessing unit 302, and a calculation unit 303. An acquiring unit 301 is configured to acquire a color chart image, and identify that a color chart type of the color chart image is N color patches. And the preprocessing unit 302 is used for preprocessing the color card image. The obtaining unit 301 is further configured to obtain outlines of M color patches in the color chart image, where M is smaller than N. A calculating unit 303, configured to calculate ROI coordinate information of each color patch according to the contour of the color patch; generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the color card types; and deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks. All relevant details of the steps involved in the method embodiment shown in fig. 3 above may be referred to the functional description of the corresponding unit modules, which are not repeated herein.
In other embodiments of the present application, embodiments of the present application disclose an electronic device, as shown in fig. 4, which may include: one or more processors 401; a memory 402; a display 403; one or more applications (not shown); and one or more computer programs 404, which may be connected via one or more communication buses 405. Wherein the one or more computer programs 404 are stored in the memory 402 and configured to be executed by the one or more processors 401, the one or more computer programs 404 comprising instructions. The above instructions may be used to perform the various steps in the corresponding embodiments of fig. 1 or 2.
In the embodiments of the present application, the processor may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
In the embodiment of the present application, the memory may be a nonvolatile memory, such as a hard disk (HDD) or a Solid State Drive (SSD), or may be a volatile memory (volatile memory), for example, a random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing a computer program and/or data.
The invention also provides a computer readable medium having stored thereon a computer program which, when executed by a computer, implements the method of the above-described method embodiments.
The invention also provides a computer program product which, when executed by a computer, implements the method of the above-described method embodiments.
The invention also provides a chip or a chip module, which is coupled with the memory and is used for executing the computer program stored in the memory, so that the terminal executes the method in the embodiment of the method.
The method provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the flow or functions according to the embodiments of the present invention are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, a network device, a user device, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any medium that can be accessed by a computer or a data storage device including one or more media integrated servers, data centers, and the like. The medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., SSD), etc.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.
Claims (10)
1. A method for obtaining color chart ROI coordinate information, comprising:
acquiring a color card image and identifying the color card image as N color blocks;
preprocessing the color card image;
obtaining the outlines of M color blocks in the color card image, wherein M is smaller than N, and N and M are positive integers;
calculating ROI coordinate information of the M color blocks according to the outlines of the M color blocks;
generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the N color blocks of the color card images;
and deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks.
2. The method according to claim 1, wherein deriving the ROI coordinate information of the color block to be expanded among the N color blocks except the M color blocks from the edge contour of the color card image and the ROI coordinate information of the M color blocks comprises:
searching color blocks of known ROI coordinate information from two directions of the row and the column according to a set searching step length;
when the color block with the known ROI coordinate information is searched, the ROI coordinate information of the color block to be expanded is calculated according to the known ROI coordinate information and the set searching step length.
3. The method of claim 1, further comprising, after obtaining the outlines of M color patches in the color chip image:
performing coordinate perspective transformation on the color card image to obtain a corrected image;
calculating ROI coordinate information of each color block according to the contour of the color block, including:
and calculating the ROI coordinate information of the M color blocks according to the outlines of the color blocks and the coordinate system of the corrected image.
4. A method according to any one of claims 1 to 3, wherein pre-processing the colour chip image comprises:
generating a gray scale image of the color card image;
performing Gaussian filtering on the gray level map;
and carrying out edge detection on the gray level image after Gaussian filtering.
5. The method according to claim 3, wherein after deriving ROI coordinate information of a color block to be expanded among the N color blocks except the M color blocks, further comprising:
performing coordinate inverse perspective transformation on a color card image, and storing ROI coordinate information of N color blocks of the color card image;
and carrying out color correction on the color card image according to the ROI coordinate information of the N color blocks.
6. An apparatus for obtaining ROI coordinate information of a color chart, comprising:
the color card acquisition unit is used for acquiring color card images and identifying the color card images as N color blocks;
the preprocessing unit is used for preprocessing the color card image;
the acquisition unit is further used for acquiring outlines of M color blocks in the color card image, M is smaller than N, and N and M are positive integers;
a calculating unit, configured to calculate ROI coordinate information of the M color blocks according to the outlines of the color blocks; generating edge contours of the color card images according to the ROI coordinate information of the M color blocks and the N color blocks of the color card images; and deducing the ROI coordinate information of the color blocks to be expanded except the M color blocks in the N color blocks according to the edge contour of the color card image and the ROI coordinate information of the M color blocks.
7. The apparatus according to claim 6, wherein the calculating unit derives the ROI coordinate information of the color block to be expanded among the N color blocks except the M color blocks based on the edge contour of the color card image and the ROI coordinate information of the M color blocks, specifically for:
searching color blocks of known ROI coordinate information from two directions of the row and the column according to a set searching step length;
when the color block with the known ROI coordinate information is searched, the ROI coordinate information of the color block to be expanded is calculated according to the known ROI coordinate information and the set searching step length.
8. The apparatus according to claim 6, wherein the acquisition unit, after acquiring the outlines of M color patches in the color card image, further comprises a perspective transformation unit:
the perspective transformation unit is used for carrying out coordinate perspective transformation on the color card image to obtain a corrected image;
the calculating unit calculates ROI coordinate information of each color block according to the contour of the color block, specifically for: and calculating the ROI coordinate information of the M color blocks according to the outlines of the color blocks and the coordinate system of the corrected image.
9. The device according to any one of claims 6 to 8, wherein the preprocessing unit is configured to preprocess the color chip image, in particular: generating a gray scale image of the color card image; performing Gaussian filtering on the gray level map; and carrying out edge detection on the gray level image after Gaussian filtering.
10. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211730488.4A CN116385567A (en) | 2022-12-30 | 2022-12-30 | Method, device and medium for obtaining color card ROI coordinate information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211730488.4A CN116385567A (en) | 2022-12-30 | 2022-12-30 | Method, device and medium for obtaining color card ROI coordinate information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116385567A true CN116385567A (en) | 2023-07-04 |
Family
ID=86968155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211730488.4A Pending CN116385567A (en) | 2022-12-30 | 2022-12-30 | Method, device and medium for obtaining color card ROI coordinate information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116385567A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117058255A (en) * | 2023-08-17 | 2023-11-14 | 摩尔线程智能科技(北京)有限责任公司 | Color card identification method and device, electronic equipment and storage medium |
-
2022
- 2022-12-30 CN CN202211730488.4A patent/CN116385567A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117058255A (en) * | 2023-08-17 | 2023-11-14 | 摩尔线程智能科技(北京)有限责任公司 | Color card identification method and device, electronic equipment and storage medium |
CN117058255B (en) * | 2023-08-17 | 2024-07-09 | 摩尔线程智能科技(北京)有限责任公司 | Color card identification method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109840477B (en) | Method and device for recognizing shielded face based on feature transformation | |
US9767383B2 (en) | Method and apparatus for detecting incorrect associations between keypoints of a first image and keypoints of a second image | |
CN112348765A (en) | Data enhancement method and device, computer readable storage medium and terminal equipment | |
CN109190617B (en) | Image rectangle detection method and device and storage medium | |
US20110150338A1 (en) | Method and system for generating intrinsic images using single reflectance technique | |
CN114549652A (en) | Camera calibration method, device, equipment and computer readable medium | |
CN111738045A (en) | Image detection method and device, electronic equipment and storage medium | |
CN114494347A (en) | Single-camera multi-mode sight tracking method and device and electronic equipment | |
CN116129195A (en) | Image quality evaluation device, image quality evaluation method, electronic device, and storage medium | |
CN108289176B (en) | Photographing question searching method, question searching device and terminal equipment | |
CN104268550B (en) | Feature extracting method and device | |
CN116385567A (en) | Method, device and medium for obtaining color card ROI coordinate information | |
US9754155B2 (en) | Method and system for generating intrinsic images using a single reflectance technique | |
CN114119695A (en) | Image annotation method and device and electronic equipment | |
CN114463437A (en) | Camera calibration method, device, equipment and computer readable medium | |
CN111062984B (en) | Method, device, equipment and storage medium for measuring area of video image area | |
CN112184723A (en) | Image processing method and device, electronic device and storage medium | |
CN115423804B (en) | Image calibration method and device and image processing method | |
CN111898408A (en) | Rapid face recognition method and device | |
CN108805883B (en) | Image segmentation method, image segmentation device and electronic equipment | |
CN112634377B (en) | Camera calibration method, terminal and computer readable storage medium of sweeping robot | |
CN110310235B (en) | Fundus image processing method, device and equipment and storage medium | |
CN113820012B (en) | Multispectral image processing method and device | |
CN114463440A (en) | Single-camera target positioning method, system, equipment and storage medium | |
CN109286798B (en) | Frame position identification method and system of projection screen 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 |