The disclosed technique relates to color detection in general, and to matching the color of a sample within the color gamut of a dyeing machine, in particular.
Techniques for remote color detection via mobile devices are known in the art. Typically, a user acquires an image of an object via a mobile device equipped with a camera, and transmits the image to a server for subsequent color detection. Applications for such techniques range from the cosmetics industry and dentistry, to home décor, electronic display, manufacturing, and more. However, due to poor lighting, low resolution, and other distortions, accurate color detection poses a challenge.
Several color spaces exist for defining a color. The human eye is trichromatic and responds to the red, blue, and green spectra. Hence visual displays emit light in these spectra accordingly, and color for such displays are mapped onto the additive RGB (red green blue) color space. However, color printing results in the absorption of color ink by the printed media, and thus colors are mapped onto the subtractive CMYK (cyan, magenta, yellow, black) color space for these applications. Other color spaces that are commonly used include the CIELab and CIEXYZ color spaces, which were designed to span the range colors discernable by the average human eye.
Conversion between these color spaces can be achieved via linear transformation. However, due to the nonlinearity of the respective color spaces, information may be lost during the conversion. Additionally, distortions may be introduced when mapping from a three-dimensional color space, such as RGB to a four-dimensional color space such as CMYK.
U.S. Pat. No. 8,634,640 filed Oct. 21, 2010, issued Jan. 22, 2014, discloses a method for color matching using digital cameras under varying lighting conditions. The proposed method describes acquiring an image of an object with a calibrated reference color chart, correcting the image for lighting discrepancies, such as applying a white balancing algorithm, and matching the sample of the corrected image to a color palette.
US patent publication US 2007/0242877 A1 filed Apr. 10, 2006, published Oct. 18, 2007, discloses a method for automatic color matching of a physical color swatch in a predefined color space. The proposed method describes acquiring an image of a sample with a calibrated reference color chart under controlled lighting conditions, and mapping the color of the sample in the acquired image to a color space.
It is an object of the disclosed technique to provide a novel method and system for detecting color for a dyeing machine.
In accordance with the disclosed technique, there is thus provided a color detection system comprising a card having printed thereon a color chart comprising multiple colored areas, and at least one grayscale area; a camera configured to acquire an image comprising a pixel representation of a sample positioned adjacent to the card; at least one storage device configured to store reference data corresponding to the color chart, and reference coordinates for the at least one grayscale area; and at least one processor configured to: perform a grayscale correction to the pixel representation of the color chart of the card and the pixel representation of the sample using a grayscale correction transformation between the pixel representation of the at least one grayscale area and the reference coordinates for the at least one grayscale area, estimate a set of colorimetric coordinates for the sample by applying to the grayscale corrected pixel representation of the sample, a transformation between the grayscale corrected pixel representation of the color chart and the colorimetric reference data corresponding to the color chart, and convert the estimated set of colorimetric coordinates for the sample to a set of RGB coordinates for said sample.
In some embodiments, the reference coordinates for the at least one grayscale area comprise colorimetric reference data and corresponding reference RGB coordinates for the at least one grayscale area, and wherein the reference data corresponding to the color chart comprise colorimetric reference data and corresponding reference RGB coordinates for the color chart, wherein the grayscale correction is based on the reference RGB coordinates for the at least one grayscale area and the reference RGB coordinates for the color chart.
In some embodiments, the color chart spans a color gamut of a dyeing machine and wherein the at least one processor is further configured to provide the set of RGB coordinates for the sample to the dyeing machine, wherein the dyeing machine is configured to dye a substrate according to the set of RGB coordinates for the sample.
In some embodiments, the at least one grayscale area displays a gradient of different gray shades.
In some embodiments, the at least one grayscale area comprises multiple grayscale stripes framing the color chart.
In some embodiments, the card is provided with a cutout portion disposed flush against the color chart and the at least one grayscale area.
In some embodiments, the cutout portion abuts a first and a second of the at least one grayscale area, wherein the first grayscale area is a different shade of gray than the second grayscale area.
In some embodiments, the at least one processor is further configured to perform the grayscale correction to the pixel representation of the color chart by determining a shape defining each of the colored areas of the pixel representation of the color chart, and for each shape: determining average RGB coordinates for pixels positioned inside the shape, wherein RGB coordinates of pixels situated at a border of the shape and shapes of adjacent color areas are omitted from the average RGB coordinates, and assigning each pixel of the color area of the shape the average RGB coordinates.
In some embodiments, the at least one processor is configured to perform the grayscale correction by applying a first grayscale correction step to the pixel representation of the at least one grayscale area, and applying a second grayscale correction to the pixel representation of the color chart and the pixel representation of the sample.
In some embodiments, the at least one processor is further configured to perform the grayscale correction to the pixel representation of the color chart: for each colored area of the pixel representation of the color chart: select at least one of the at least one pixel representation of the grayscale area that is physically closest to the colored area, and perform a grayscale correction to RGB coordinates of the color area based on the selected at least one pixel representation of the grayscale area that is physically closest to the colored area, thereby independently performing a grayscale correction to each of the colored areas, wherein the at least one processor is further configured to perform the grayscale correction to the pixel representation of the sample by selecting at least one of the at least one pixel representation of the gray area that is physically closest to the pixel representation of the sample, and basing the grayscale correction to the pixel representation of the sample on the selected at least one pixel representation of the gray area that is physically closest to the pixel representation of the sample.
In accordance with the disclosed technique, there is thus provided a method for detecting a color of a sample, comprising: obtaining an image comprising a pixel representation of the sample positioned adjacent to a card having printed thereon a color chart comprising multiple colored areas, and at least one grayscale area; performing a grayscale correction to the pixel representation of the color chart and the pixel representation of the sample using a grayscale correction transformation between the pixel representation of the at least one grayscale area and reference coordinates for the at least one grayscale area; estimating a set of colorimetric coordinates for the sample by applying to the grayscale corrected pixel representation of the sample, a transformation between the grayscale corrected pixel representation of the color chart and colorimetric reference data corresponding to the color chart; and converting the estimated set of colorimetric coordinates for the sample to a set of RGB coordinates for said sample.
In some embodiments, the reference coordinates for the at least one grayscale area comprise colorimetric reference data and corresponding reference RGB coordinates for the at least one grayscale area, and wherein the reference data corresponding to the color chart comprise colorimetric reference data and corresponding reference RGB coordinates for the color chart, and wherein the grayscale correction transformation is based on the reference RGB coordinates for the at least one grayscale area.
In some embodiments, the method further comprises providing the set of RGB coordinates for the sample to a dyeing machine, wherein the color chart spans a color gamut of the dyeing machine, and wherein the dyeing machine is configured to dye a substrate according to the set of RGB coordinates for the sample.
In some embodiments, the method further comprises performing the grayscale correction by applying a first grayscale correction step to the pixel representation of the at least one grayscale area, and applying a second grayscale correction to the pixel representation of the color chart and the sample.
In some embodiments, the at least one grayscale area displays a gradient of different gray shades.
In some embodiments, the method further comprises performing the grayscale correction to the pixel representation of the color chart by determining a shape defining each of the colored areas in the pixel representation of the color chart, and for each shape: determining average RGB coordinates for the pixels positioned inside the shape, wherein RGB coordinates of the pixels situated at a border of the shape and shapes of adjacent color squares are omitted from the average RGB coordinates, and assigning each pixel of the colored area of the shape the average RGB coordinates.
In some embodiments, performing the grayscale correction to the pixel representation of the color chart comprises: for each colored area in the pixel representation of the color chart: selecting at least one of the pixel representation of the at least one grayscale area that is physically closest to the colored area, and performing a grayscale correction to RGB coordinates of the colored area based on the selected pixel representation of the at least one grayscale area that is physically closest to the colored area, thereby independently performing a grayscale correction to each of the colored areas, and wherein performing the grayscale correction to the pixel representation of the sample comprises selecting at least one of the pixel representation of the at least one gray area in the image that is physically closest to the pixel representation of the sample, basing the grayscale correction to the pixel representation of the sample on the selected pixel representation of the at least one gray area that is physically closest to the pixel representation of the sample.
In accordance with the disclosed technique, there is thus provided a card for detecting a color of a sample, comprising: a printed portion; and a cutout portion, wherein the printed portion comprises a color chart comprising multiple color squares, and at least two grayscale areas, wherein the at least two grayscale areas display a gradient of different gray shades, and wherein the at least two grayscale areas are oriented at different orientations.
In some embodiments, the at least one grayscale area comprises four grayscale stripes framing the color chart.
In some embodiments, the cutout portion abuts a first and a second of the at least one grayscale area, wherein the first grayscale area is a different shade of gray than the second grayscale area.
The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee. The disclosed technique will be understood and appreciated more fully from the following detailed description taken in conjunction with the drawings in which:
The disclosed technique overcomes the disadvantages of the prior art by providing a system and method for detecting a color of a sample for a dyeing machine. A card is provided with a color chart printed thereon spanning a color gamut of the dyeing machine. The card may additionally have printed thereon one or more card identifiers, such as fiducials, barcodes and the like. The card is provided with a cutout portion that is designed to display a sample flush against the color chart. A mobile device acquires an image of the card overlaid on the sample, and applies one or more image processing techniques, such as illumination correction, filters and the like, to the acquired image. The mobile device analyzes the acquired image and detects the fiducials. The mobile device uses the fiducials to identify the pixel representation of the color chart, and rectifies the pixel representation of the color chart, accordingly. The mobile device transmits the processed image to a server.
The server analyzes the processed image and identifies the card identifier, i.e. the barcode. The server uses the barcode to query a database and retrieve reference data for the card that includes data relating to the physical characteristics of the card, such as the paper or plastic type, ink type or printing technology, and printing batch, as well as colorimetric data relating to the color chart, measured with a spectrophotometer and saved in device independent color coordinates, such as CIELab coordinates. The server applies the rectified color chart data together with the reference data to estimate the color of the sample in the CIELab color space, and converts the estimated color to a color that is within the gamut of the dyeing machine. The server stores the estimated RGB color in a database and provides the RGB color for display. The RGB color may be subsequently converted to a subtractive color space, such as CMY, CMYK or CMYK+, and provided to the dyeing machine, which dyes a dyeing substrate accordingly, such that the color of the dyed substrate matches the color of the original sample acquired in the image. Alternatively, the estimated color is provided in the CIELab color space to the dyeing machine, which converts the color to a subtractive color space for dyeing, accordingly. In this manner the color of the sample is detected.
Multiple colors may be detected thus, and stored in the database. The server may calculate a dyeing schedule using the multiple detected colors. A single dyeing substrate may be subsequently dyed to the multiple detected colors according to the dyeing schedule, where different sections of the dyeing substrate are each dyed to a different color. Alternatively, multiple dyeing substrates may each be dyed to a different one of the multiple colors. In one embodiment, the dyeing machine is a thread dyeing machine, and the dyeing substrate is a thread.
Reference is now made to
Mobile device 106 is communicatively coupled to server 110 via respective transceivers 128 and 134, and network 136. Network 136 may be any combination of one or more communication networks, allowing for any combination of local and remote communication, such as a combination of one or more local and or private networks and the Internet. Server 110 is in communication with storage device 108, and with dyeing machine 112 via transceiver 134. Optionally, server 110 communicates with dyeing machine 112 via network 136. Mobile device 106 is positioned within visible range of card 102 and sample 104. Sample 104 may be any material, such as paper, fabric, synthetic resin, plastic, natural substances such as stone, wood, leaves or skin, to name a few. Card 102 is made of any suitable printable material such as paper, plastic, and the like. Card 102 is placed in physical proximity to sample 104 such that sample 104 is positioned flush against color chart 114 at a cutout portion 142 (not shown). In one embodiment, sample 104 is positioned flush against at least two different color squares of color chart 114. In another embodiment, cutout portion 142 cuts into three different squares of color chart 114, i.e. C1(4,4), C1(5,4), and C1(4,5), and sample 104 is positioned flush against at the three different color squares of color chart 114, such as squares C1(4,4), C1(5,4), and C1(4,5) indicated in
Referring now to
With reference to
Processor 120 may include any combination of a central processor (CPU), graphical processor (GPU), digital signal processor (DSP), accelerator processor (APU) and the like. Processor 120 is operative to store one or more program code instructions and data, such as raw images and processed images in memory 126. Transceiver 128 may include one or more of: a respective medium range RF transceiver (e.g., WIFI), a respective short range transceiver (e.g., Bluetooth), and a respective cellular communication transceiver (e.g., GSM, LTE, WIMAX). Transceiver 128 is operative to send and receive radio frequency (RF) signals relating to data and executable instructions. For example, transceiver 128 is operative to communicate with server 110 of
Referring now made to
Processor 130 may include any combination of a central processor (CPU), graphical processor (GPU), digital signal processor (DSP), accelerator processor (APU) and the like. Processor 130 is operative to store one or more program code instructions and data, such as raw images and processed images in memory 132. Transceiver 134 may include one or more of: a respective medium range RF transceiver (e.g., WIFI), a respective short range transceiver (e.g., Bluetooth), and a respective cellular communication transceiver (e.g., GSM, LTE, WIMAX). Transceiver 134 is operative to send and receive radio frequency (RF) signals relating to data and executable instructions. For example, transceiver 134 is operative to communicate with mobile device 106, and storage device 108 of
Referring back to
Mobile device 106 crops the pixel representation of color chart 114, (RCC, GCC, BCC), and sample 104, (RS, GS, BS) from the acquired image pixels (RIMG, GIMG, BIMG).
Mobile device 106 rectifies the cropped pixel representation of color chart 114 and sample 104, such as by applying an affine transformation to correct for distortion due to the angle of camera 122 with respect to card 102 and sample 104.
Mobile device 106 locates within the pixel representation of color chart 114, (RCC, GCC, BCC), at least one white square, such as white square C1(3,4), indicated in
For example, to perform the white balancing procedure, mobile device 106 computes a correction factor (RCorr, GCorr, BCorr) between the pixel representation (RWSQ, GWSQ, BWSQ) of white square C1(3,4), and a reference white, stored in memory 126, i.e. pixel values (255, 255, 255), as follows:
(RCorr,GCorr,BCorr)=(255/RWSQ,255/GWSQ,255/BWSQ)
Mobile device 106 applies the corrective factor to the pixel representation of color chart 114, (RCC, GCC, BCC), and to the pixel representation of sample (RS, GS, BS):
(RCCCorr,GCCCorr,BCCCorr)=(RCorr·RCC,GCorr·GCCBCorr·BCC)
(RSCorr,GSCorr,BSCorr)=(RCorr·RS,GCorr·GSBCorr·BS)
In one embodiment, mobile device 106 additionally corrects for a lack of color uniformity of squares C1(i,j), such as by computing for each color square C1(i,j), an average RGB pixel value for a neighborhood of pixels about a pixel positioned at the center of the respective square C1(i,j), and assigning the average RGB pixel value to all the pixels in the respective square C1(i,j). In a similar manner, mobile device 106 corrects for a lack of color uniformity of the pixel representation of sample 104. Mobile device 106 provides the processed image data to server 110 via respective transceivers 128 and 134.
Optionally, to correct for a lack of color uniformity the pixel representation of color chart 114, mobile device 106 determines a shape box defining each pixel representation of each colored area Ci(i,j) of color chart 114, where the size of the shape is a function of the resolution of the acquired image. For example, if the colored areas of color chart 114 are square, then the shape may be a box surrounding each square. Similarly, of the colored areas of color chart 114 are triangular or hexagonal, then the shape may be a triangle or hexagon surrounding each colored triangle, or hexagon, respectively. For each color area C1(i,j), mobile device 106 determines the average RGB value for the pixels within the defined shape, while omitting pixels situated at the border between any two adjacent colored areas C1(i,j). Processor 120 assigns each respective pixel of each colored area C1(i,j) the average RGB value. Similarly, mobile device 106 determines the average pixel value for the pixel representation of sample 104, while omitting pixels situated at the border between sample 104 and color chart 114 from the average value. Mobile device 106 assigns the average value to the pixels of the pixel representation of sample 104. While computing the average RGB value of sample 104, mobile device 106 may assess the distortion due to shadows inherent in the pixel representation of sample 104. If the distortion due to shadows is within a predefined threshold, mobile device 106 displays the rectified, cropped pixel representation of color chart 114 at UI 124 of mobile device 106. Otherwise, if the distortion due to shadows crosses the predefined threshold, mobile device 106 may alert the user of mobile device 106 to acquire another image.
In another implementation, one or more of the aforementioned pre-processing procedures are performed by server 110. For example, on one such implementation, mobile device 106 transmits the raw image acquired by camera 122 to server 110 via respective transceivers 128 and 134, and server 110 applies the respective pre-processing procedures described hereinabove to the raw image.
Storage device 108 stores reference data corresponding to card 102 in association with card identifier 118. The reference data includes card characteristics for card 102 relating to factors that may influence the visual perception of the printed colors of color chart 114, such as data relating to the type of paper or plastic for card 102, the type of ink used to print card 102, the printing batch number for card 102, and the like. The reference data further includes device independent colorimetric data corresponding to a standardized visual perception of the printed colors of color chart 114, acquired in advance under controlled illumination using a spectrophotometer (not shown), and stored in a device independent color-space such as CIELab, CIEXYZ, and like, referred to hereinafter as “ground truth” (GT) data, i.e. (LGT, aGT, bGT). In one embodiment, the ground truth data for color chart 114 of card 102 corresponds to the absolute colorimetric data for each color square of color chart 114 in device independent GT color space coordinates, as acquired by the spectrophotometer. Alternatively, storage device 108 stores relative colorimetric GT colorimetric coordinates for each colored square of color chart 114 for card 102, i.e. (LGTRel, aGTRel, bGTRel) by applying a chromatic adaptation transformation to the absolute GT colorimetric data acquired above, such as described in CIE TC 1-52 (2004): A Review of Chromatic Adaptation Transforms, 160:2004. CIE, ISBN 978-3-901906-30-5. Christine Fernandez-Maloigne (2013). Advanced color image processing and analysis (PDF). New York, N.Y.: Springer. p. 33. ISBN 9781441961891. For example, we might use the Bradford transform or CIECAM02 chromatic adaptation transform.
Server 110 analyzes the image received from mobile device 106 via respective transceivers 134 and 128, and detects the pixel representation of card identifier 118. Server 110 uses the pixel representation of card identifier 118 to determine a search query corresponding to the reference data for card 102, accordingly. Server 110 queries storage device 108 with the search query via transceiver 134, and obtains the reference data corresponding to card 102 from storage device 108, accordingly. Server 110 builds a color transformation to detect the color of sample 104, as follows:
Server 110 converts the processed pixel values for color chart 114 and sample 104 to the same color space as the reference data. For example, Server 110 converts the processed pixel values (RCCCorr, GCCCorr, BCCCorr), and (RSCorr, GSCorr, BSCorr) for color chart 114 and sample 104, respectively, to respective relative colorimetric GT color-space coordinates (LCCCorr, aCCCorr, bCCCorr), and (LSCorr, aSCorr, bSCorr).
Server 110 may apply a least squares method:
min∥Pc(LCCCorr,aCCCorr,bCCCorr)−(LGTRel,aGTRel,bGTRel)∥
to build a three-dimensional model between the corrected color-space coordinates of color chart 114, (LCCCorr, aCCCorr, bCCCorr), and the relative GT ground truth color-space coordinates for color chart 114 retrieved from storage device 108, (LGTRel, aGTRel, bGTRel):
=PL(LCCCorr,aCCCorr,bCCCorr)
=Pa(LCCCorr,aCCCorr,bCCCorr)
=Pb(LCCCorr,aCCCorr,bCCCorr)
where (PL, Pa, Pb) describe the transformation vector {right arrow over (PLab)}, and indicates the resulting approximated value
Server 110 applies the transformation to the pixel values for sample 104 to estimate the color of sample 104 in the relative GT color space:
LabEst={right arrow over (PLab)}(LSCorr,aSCorr,bSCorr)
Server 110 converts the color coordinates for sample 104 from the relative GT color-space to a RGB color-space for display purposes, thereby detecting the RGB color of sample 104. The RGB value is determined such that it is within a color gamut of dyeing machine 112. Optionally, Server 110 performs the detecting in accordance with one or more characteristics of a substrate suitable for dyeing by dyeing machine 112. For example, when the dyeing substrate is a type of thread, server 110 detects the color in accordance with the thread type characteristics. Server 110 stores the detected RGB color for sample 104 at storage device 108, and provides the detected RGB color to mobile device 106 via respective transceivers 128 and 134, and network 136. Mobile device 106 displays the detected RGB color for sample 104 at user interface 124. Optionally, Server 110 converts the detected RGB color for sample 104 to a subtractive color space, such as CMY, CMYK, or CMYK+, or additional inks color spaces for dyeing machine 112. Dyeing machine 112 may subsequently dye a dyeing substrate matching sample 104, accordingly.
Reference is now made to
Color chart 214 is arranged as a 9×9 grid of squares, C2(i,j), i, j ∈{1 . . . 9}, having 77 (=9×9-4) different colored squares, of which at least one is white square C2(1,5). Fiducials 216A, 216B, and 216C, are similarly positioned at the top-left, top-right, and bottom-left corners of color chart 214. Cutout portion 242 is sized and positioned thus to border on three different colored squares of color chart: C2(8,8), C2(9,8) and C2(8,9) to allow for comparison and contrast with three different colors when a sample (not shown) is positioned at cutout portion 242, as described above with respect to
Reference to
Referring to
Reference is now made to
On determining that the colorimetric coordinates of the color of sample 104 lie outside the gamut of dyeing machine 112, and thus beyond the dyeing capability of the dyeing machine 112, mobile device 106 indicates a warning to the user. Optionally, the warning further indicates the color space distance between the detected color of the sample and the color that would result from dyeing a substrate accordingly with dyeing machine 112. The color space distance may be determined with respect to each color channel of the dyeing machine, i.e. each ink color of the ink set configured with the dyeing machine, such as the ink colors cyan, magenta, and yellow, corresponding to the CMY ink set. In addition, a recommendation is optionally provided for the combination of inks from the ink set that would dye a substrate to a color that matches closest to the color of the detected sample.
A method for determining the distance between a detected colorimetric point, and the boundary 250 of a gamut (
Let GBDCMY, GBDCMYK and GBDCMYK+, be the Gamut Boundary descriptors of the CMY, CMYK and CMYK+ ink sets, respectively, each of which may be represented by boundary 900. For each gamut, mobile device 106 calculates whether (LSCorr, aSCorr, bSCorr) is within boundary 250 of the gamut or outside boundary 250 of the gamut by calculating the line from the center (Kcenter), (260) of the gamut to the colorimetric point of sample 104 (Ksample), and determining the intersection between the line passing through Kcenter and Ksample as: P=Kcenter+t*(Ksample−Kcenter) and a point on the edge of gamut 250. If the intersection of the line and the edge point occurs at T>1, then the colorimetric point Ksample is in-gamut, i.e. line 258 passes through in gamut point 256 before reaching edge point 262. Otherwise if the intersection of the line and the edge point occurs at T≤1, the colorimetric point Ksample is out of gamut, i.e. line 266 passes through edge point 268 before reaching out of gamut colorimetric point 264. Techniques such as described in “Color Gamut Mapping”, Jan Morovic John Wiley and Sons Ltd, United States, 2008) may be applied.
Mobile device 106 selects the ink set having the gamut that provides the smallest distance between the converted color ink matching solution of the colorimetric sample point to the ink proportions. For out of gamut points that are not included within any of the possible gamuts, mobile device 106 issues a gamut warning, where the severity of the warning may be based on the distance between the sampled point and its projection.
A description of a method for detecting a color for a dyeing machine now follows. Reference is now made to
In procedure 300, a sample is positioned adjacent to a card, the card having printed thereon a color chart spanning a color gamut of a dyeing machine. The sample may be positioned flush against the color chart. In one embodiment, the card is provided with a cutout portion disposed at a corner of the card, flush against three different colored squares of the color chart. Thus, when the sample is positioned at the cutout portion of the card, the sample is positioned flush against the three different color squares of the color chart. With reference to the system of
In procedure 302, an image of the sample positioned at the cutout portion of the card is acquired. With reference to the system of
In procedure 304, the raw data of the acquired image is processed in a RGB color-space, by cropping a representation of the color chart in the image, rectifying the cropped representation of the color chart in the image, such as by applying an affine transformation, and by performing an illumination correction to the cropped and rectified representation of the color chart, such as by applying a white balancing procedure. In one embodiment, a procedure may be applied to correct for a lack of color uniformity of the pixel representation of the color chart. The color uniformity procedure includes determining a shape defining each colored area of the pixel representation of the color chart (e.g. a box defining each color square), determining for each shape, an average RGB value for pixels inside the shape, where the average RGB value omits RGB values of pixels situated at the border between two adjacent colored areas of the pixel representation of the color chart, and assigning each respective pixel of each colored area the average RGB value. With reference to the system of
In procedure 306, colorimetric (GT) reference data with respect to a device independent color space, and card characteristic data corresponding to the card is retrieved. The card characteristic data may include any of the paper or plastic type of the card, the printing technology of the color chart, and a printing batch number for the card. With reference to the system of
In procedure 308, a set of device independent colorimetric color coordinates for the sample is estimated from the processed pixel representation of the color chart and the sample, and the retrieved device independent color-space reference data and card characteristic data. With reference to the system of
In procedure 310, the device independent colorimetric coordinates for the sample are converted to a RGB color space in accordance with one or more substrate characteristics and the card characteristics, thereby detecting the RGB coordinates for the sample, where the RGB coordinates are within the color gamut of the dyeing machine. With reference to the system of
In procedure 312, the detected RGB coordinates of the sample are stored, and the detected RGB color may be displayed. With reference to the system of
In procedure 314, the detected RGB color is converted to a subtractive color space for dyeing. A substrate is subsequently dyed with respect to the subtractive color space corresponding to the detected RGB color. With reference to the system of
In procedure 314, a substrate is dyed according to the detected color. With reference to the system of
In another embodiment of the disclosed techniques, the color detection of a sample is further enhanced by detecting deviations between the sample and one or more gray features printed on a card. A card, substantially similar to card 102 of
Reference is now made to
Mobile device 406 is communicatively coupled to server 410 via network 436 that may include any combination of a public network such as the Internet, as well as private, local and remote networks. Server 410 is in communication with storage device 408, and with dyeing machine 412 via transceiver 434. Optionally, server 410 communicates with dyeing machine 412 via network 436. Mobile device 406 is positioned within visible range of card 402 and a sample 404. Sample 404 may be any material, such as paper, fabric, synthetic resin, plastic, natural substances such as stone, wood, leaves or skin, to name a few. Card 402 is made of any suitable material, such as paper, plastic, and the like. Card 402 is placed adjacent to sample 404. In one embodiment, sample 404 is positioned at a cutout portion 442 of card 402, flush against color chart 414 and grayscale stripes 440C and 440D. According to one alternative, sample 404 is positioned flush against at least two different color squares, C3(4,5), C3(5,4) of color chart 414 and grayscale stripes 440C and 440D. In another embodiment, sample 404 is positioned flush against three different squares, C3(4,5), C3(5,4), C3(4,4) of color chart 414 and grayscale stripes 440C and 440D. Positioned thus, sample 404 abuts two different shades of gray: a lighter shade of gray on grayscale stripe 440C, and a darker shade of gray on grayscale stripe 440D. However, it is noted that cutout portion 442 may be disposed at other positions of card 402, such as at the center of card 402, abutting, as many as eight different color squares C3(i,j).
Four grayscale stripes 440A, 440B, 440C and 440D frame color chart 414, forming a grayscale box around color chart 414. One or more of grayscale stripes 440A, 440B, 440C and 440D span from white to black, such that subsequent illumination correction procedures using grayscale stripes 440A, 440B, 440C and 440D includes a white-balancing step. At the bottom right corner of color chart 414, is a cutout portion 442, positioned flush against at least two different colored squares, C3(5,4) and C3(4,5), of color chart 114, and additionally bordering grayscale stripes 440C and 440D. In one embodiment, cutout is positioned against three different colored squares, C3(4,4), C3(5,4) and C3(4,5), of color chart 414, and grayscale stripes 440C and 440D. At least one fiducial is provided on card 402, indicated as multiple fiducials 416A, 416B, and 416C, to allow identifying color chart 414 and grayscale stripes 440A, 440B, 440C and 440D. In the implementation of
Referring back to
Mobile device 406 crops the pixel representation of color chart 414, (RCC, GCC, BCC) grayscale stripes 440A, 440B, 440C, and 440D, (RGS, GGS, BGS), and sample 404, (RS, GS, BS) from the acquired image pixels (RIMG, GIMG, BIMG). Mobile device 406 rectifies the cropped pixel representation of color chart 414, grayscale stripes 440A, 440B, 440C, and 440D and sample 404, such as such as by applying an affine transformation to correct for distortion due to the angle of camera 422 with respect to card 402 and sample 404.
In another embodiment, to correct the pixel representation of color chart 414, mobile device 406 determines a shape defining each pixel representation of each colored area C1(i,j) of color chart 414, where the size of the shape is a function of the resolution of the acquired image (e.g. a box defines each colored square C1(i,j) of color chart 414). For each color square C1(i,j), mobile device 406 determines the average RGB value for the pixels within the defined box, while omitting pixels situated at the border between any adjacent color squares C1(i,j). Mobile device 406 assigns each respective pixel of each color square C1(i,j) the average RGB value. Similarly, mobile device 406 determines the average pixel value for the pixel representation of sample 404, while omitting pixels situated at the border between sample 404 and color chart 414 from the average value. Mobile device 406 assigns the average value to the pixels of the pixel representation of sample 404. While computing the average RGB value of sample 404, mobile device 406 may assess the distortion due to shadows inherent in the pixel representation of sample 404. If the distortion due to shadows is within a predefined threshold, mobile device 406 displays the rectified, cropped pixel representation of color chart 414 at UI 420 of mobile device 406. Otherwise, if the distortion due to shadows crosses the predefined threshold, mobile device 106 may alert the user of mobile device 406 to acquire another image. The resulting pre-processed pixel representations of color chart 414, grayscale stripes 440A, 440B, 440C, and 440D, and sample 404 are denoted as (RCCpreProc, GCCpreProc, BCCpreProc), (RGSpreProc, GGSpreProc, BGSpreProc), (RSpreProc, GSpreProc, BSpreProc). respectively. Mobile device 406 provides the pre-processed image data including at least the rectified and correct image pixels of color chart 414 (RCCpreProc, GCCpreProc, BCCpreProc) sample 404 (RSpreProc, GSpreProc, BSpreProc), grayscale stripes 440A, 440B, 440C, and 440D, (RCCpreProc, GCCpreProc, BCCpreProc), (RGSpreProc, GGSpreProc, BGSpreProc), (RSpreProc, GSpreProc, BSpreProc), and card identifier 418 to server 410 via respective transceivers 428 and 434.
In another implementation, one or more of the aforementioned pre-processing procedures are performed by server 410. For example, on one such implementation, mobile device 406 transmits the raw image data acquired by camera 422 to server 410 via respective transceivers 428 and 434, and server 410 applies the respective pre-processing procedures described hereinabove to the raw image data.
Storage device 408 stores ground truth (GT) reference data corresponding to card 402 in association with card identifier 418. The reference data for card 402 relates to factors that may influence the visual perception of the printed colors of color chart 414 and grayscale stripes 440A, 440B, 440C, and 440D, such as data relating to the type of paper or plastic for card 402, the type of ink used to print card 402, the printing batch number for card 402, and the like. The GT reference data further includes colorimetric data acquired in advance under controlled illumination using a spectrophotometer (not shown), and stored in a device independent color-space such as CIELab, CIEXYZ, and the like, referred to hereinafter as colorimetric “ground truth” (GT) data. In one embodiment, the colorimetric ground truth data for color chart 414 and grayscale stripes 440A, 440B, 440C, and 440D of card 402 correspond to the absolute colorimetric color space data for each color square of color chart 114 in the GT color space coordinates, as acquired by the spectrophotometer, i.e. (LGT-CC, aGT-CC, bGT-CC) for the GT data for color chart 414, and (LGT-GS, aGT-GS, bGT-GS) for the GT data for grayscale stripes 440A, 440B, 440C, and 440D. Storage device 408 additionally includes GT RGB reference data for color chart 414, and grayscale stripes 440A, 440B, 440C, and 440D, (RGT-GS, GGT-GS, BGT-GS), The GT RGB reference data for color chart 414, and grayscale stripes 440A, 440B, 440C, and 440D may be determined at the time of manufacturing card 402. In one embodiment, the RGB values of color chart 414, and grayscale stripes 440A, 440B, 440C, and 440D may be printed on card 402, and may be subsequently provided to server 410 in the acquired image.
In another embodiment, storage device 408 stores relative colorimetric GT coordinates for each colored square of color chart 414 and grayscale stripes 440A, 440B, 440C, and 440D for card 402, i.e. (LGT-CCRel, aGT-CCRel, bGT-CCRel), and (LGT-GSRel, aGT-GSRel, bGT-GSRel), respectively, such as may be determined by applying a chromatic adaptation transform such as Bradford transform or CIECAM02 to the absolute colorimetric GT data. The chromatic adaptation transform may be applied in accordance with the method described above with respect to
Server 410 analyzes the pre-processed image data received from mobile device 106 via respective transceivers 434 and 428, and identifies the pixel representation of card identifier 418. Server 410 uses the pixel representation of card identifier 418 to determine a search query corresponding to the reference data for card 402. In one embodiment, server 410 queries storage device 408 with the search query via transceiver 434, and retrieves the relative colorimetric GT reference data for color chart 414 (LGT-CCRel, aGT-CCRel, bGT-CCRel), the relative colorimetric GT reference data for grayscale stripes 440A, 440B, 440C, and 440D (LGT-CCRel, aGT-CCRel, bGT-CCRel), and the GT RGB components of color chart 414, and grayscale stripes 440A, 440B, 440C, and 440D i.e. (RGT-GS, GGT-GS, BGT-GS).
In another embodiment, server 410 queries storage device 408 with the search query via transceiver 434, and retrieves the absolute GT colorimetric reference data for color chart 414 (LGT-CC, aGT-CC, bGT-CC), the absolute GT colorimetric reference data for grayscale stripes 440A, 440B, 440C, and 440D (LGT-GS, aGT-GS, bGT-GS), and the GT RGB components of grayscale stripes 440A, 440B, 440C, and 440D i.e. (RGT-GS, GGT-GS, BGT-GS). Server 410 computes the respective relative GT colorimetric reference data from the retrieved absolute colorimetric reference data, such as by applying a Bradford transformation or CieCam02. Server 410 performs two illumination correction steps based on the grayscale stripes, herein referred to as “grayscale correction” steps. In a first grayscale correction step, server 410 uses the GT RGB components retrieved from storage device 408 to apply a first grayscale correction transformation to the pixel representation of grayscale stripes 440A, 440B, 440C, and 440D received from mobile device 406: server 410 averages the pixel values in the pixel representation of grayscale stripes 440A, 440B, 440C, and 440D received from mobile device 406, i.e. (RGSpreProc, GGSpreProc, BGSpreProc) having a common value to ground truth pixel values (RGT-GS, GGT-GS, BGT-GS) to obtain (RGSCorr, GGSCorr, BGSCorr).
In a second grayscale correction step, server 410 uses the results of the first correction step to correct the pixel representation of color chart 414 and sample 404: server 410 determines a grayscale transformation by fitting a curve (fr, fg, fb) between the GT RGB reference data retrieved from storage device 408 for grayscale stripes 440A, 440B, 440C, and 440D, i.e. (RGT-GS, GGT-GS, BGT-GS), and the processed pixel values for 440A, 440B, 440C, and 440D as determined from the acquired image, i.e. (RGS′, GGS′, BGS′), such as by applying regression analysis, or spline interpolation:
RGS′Corr=Fr(RGT-GS)
GGS′Corr=Fg(RGT-GS)
BGS′Corr=Fb(RGT-GS)
Server 410 computes the second grayscale transformation as the inverse to the fitted curve (fr, fg, fb), i.e. (fr−1, fg−1, fb−1). Server 410 applies the second grayscale transformation to the pre-processed pixel values for color chart 414, and sample 404 obtained from the acquired image:
(RCCRelCorr,GCCRelCorr,BCCRelCorr)=(fr−1(RCCpreProc),fg−1(GCCpreProc)fb−1(BCCpreProc))
(RSRelCorr,GSRelCorr,BSRelCorr)=(fr−1(RSpreProc),fg−1(GSpreProc)fb−1(BSpreProc))
Server 410 uses the obtained relative colorimetric GT reference data for color chart 414 (LGT-CCRel, aGT-CCRel, bGT-CCRel) to build a color transformation as described above with respect to
Server 410 converts the grayscale corrected pixel values for color chart 414 and sample 404 to the same color space as the reference data. For example, server 410 converts the grayscale corrected pixel values (RCCRelCorr, GCCRelCorr, BCCRelCorr) and (RSRelCorr, GSRelCorr, BSRelCorr) for color chart 414 and sample 404, respectively, to respective relative colorimetric GT color-space coordinates (LCCRelCorr, aCCRelCorr, bCCRelCorr), and (LSRelCorr, aSRelCorr, bSRelCorr).
Server 410 may apply a least squares method between the grayscale corrected colorimetric space pixel values for color chart 414 (LCCRelCorr, aCCRelCorr, bCCRelCorr), and the relative colorimetric GT reference pixel values (LGT-CCRel, aGT-CCRel, bGT-CCRel) for color chart 414, as follows:
min∥Pc(LCCRelCorr,aCCRelCorr,bCCRelCorr),−(LGT-CCRel,aGT-CCRel,bGT-CCRel)∥
to build a three-dimensional model between the grayscale corrected color-space coordinates of color chart 414, (LCCRelCorr, aCCRelCorr, bCCRelCorr), and the relative colorimetric GT ground truth color-space coordinates retrieved from storage device 408, (LGT-CCRel, aGT-CCRel, bGT-CCRel):
=PL(LCCRelCorr,aCCRelCorr,bCCRelCorr)
=Pa(LCCRelCorr,aCCRelCorr,bCCRelCorr)
=Pb(LCCRelCorr,aCCRelCorr,bCCRelCorr)
where (PL, Pa, Pb) describe the vector transformation .
Server 410 applies the transformation to the pixel values for sample 404 to estimate the grayscale corrected color of sample 404 in the device
independent GT color space:
LabEst=(LSRelCorr,aSRelCorr,bSRelCorr)
Server 410 converts the color coordinates for sample 404 from the GT color-space to a RGB color-space for display purposes, thereby detecting the RGB color for sample 404. The RGB value is determined such that it is within the color gamut of dyeing machine 412. Optionally, server 410 performs the mapping in accordance with one or more characteristics of a dyeing substrate suitable for dyeing by dyeing machine 412. For example, the dyeing substrate may be a thread, and dyeing machine 412 may be a thread dyeing machine.
Server 410 stores the detected RGB color of sample 404 at storage device 408, and provides the detected RGB color to mobile device 406 via respective transceivers 428 and 434, and network 436. Mobile device 406 displays the detected RGB color of sample 404 at user interface 424. Optionally, server 410 converts the detected RGB color to a subtractive color space, such as CMY, CMYK, or CMYK+ color spaces for dyeing machine 412. Additionally or alternatively, server 410 may apply a deep learning method with any of the methods described herein, to estimate the illumination when camera 422 acquires the image of card 402 with sample 404, such as by building a neural network using training data for card 402 acquired under varying illuminations, orientations, and noise conditions, using a range of different types of cameras and mobile devices.
To determine when a color lies within the gamut of a dyeing machine, the method described above with respect
In yet another embodiment, the illumination correction is performed in RGB space with respect to one or more gray areas provided on card 402. The at least or more one gray areas span the gray axis of the gamut of card 402. The illumination correction for a captured image is based on the gray (e.g. achromatic) RGB values captured by mobile device 406, herein referred to as “grayscale correction”. Since gray shades have equal proportions of R,G,B values in RGB space, deviations from gray are easy to detect. On determining the deviations between the detected color of gray stripes 440A, 440B, 440C, and 440D from true gray, the deviations are used to create a correction transformation matrix for the image. However, rather than performing an image wide correction with a single transformation matrix, each color square of color chart 414 is corrected individually, based on the nearest (e.g. physically closest) gray section of gray stripes 440A, 440B, 440C, and 440D.
Reference is now made to
Similarly, sample 404 is corrected based on the physically nearest sections of gray strips 440C and 440D, e.g. section 440C(4) of gray stripe 440C, and section 440D(4) of gray stripe 440D. Once each color square (i,j) of color chart 414 has been separately grayscale corrected, and sample 404 has been grayscale corrected, the grayscale corrected color chart 414 is used to match the grayscale corrected color of sample 404. Mobile device 406 and/or server 410 retrieve colorimetric GT reference data for color chart 414 (LGT-CCRel, aGT-CCRel, bGT-CCRel), as described above, to build a color transformation between the grayscale corrected color chart 414 and the colorimetric GT reference data for color chart 414. The color transformation is applied to the grayscale corrected sample 404 to detect the color of sample 404, using the techniques described above. The matched color is saved at any of mobile device 406 and/or storage device 408. Subsequently, dyeing machine 412 may dye a substrate (not shown) according to the matched color.
It may be noted that positioning gray stripes 440A, 440B, 440C, and 440D around the perimeter of color chart 414 is but one implementation, and any suitable positioning for gray areas on card 402 may be used in the method above. For example, the one or more gray areas for determining the illumination deviation may be implemented as gray squares within color chart 414, or as one or more background colors of card 402, and the like.
Reference is now made to
Color chart 514 is arranged as a 9×9 grid of 80 different colored squares C4(i,j), i,j ∈{1 . . . 9}. Four grayscale stripes 540A, 540B, 540C and 540D frame color chart 514, forming a grayscale box around color chart 514. At the bottom right corner of color chart 514, is a cutout portion 542, positioned flush against at least two different colored squares of color chart 114, and additionally bordering grayscale stripes 540C and 540D. In one embodiment, cutout is positioned against three different colored squares of color chart 514, and grayscale stripes 540C and 540D. At least one fiducial is provided on card 402, indicated as multiple fiducials 516A, 516B, and 516C, to allow identifying color chart 514 and grayscale stripes 540A, 540B, 540C and 540D. In the implementation of
The colors of squares of chart 514 are selected to span the color gamut of dyeing machine 412 of
A description of another method for detecting a color for a dyeing machine now follows. Reference is now made to
In procedure 600, a sample is positioned adjacent to a card having printed thereon a color chart spanning a color gamut of a dyeing machine and at least one grayscale area. In one embodiment, the at least one grayscale area is positioned at an edge of the card. The sample may be positioned at a cutout portion of the card disposed flush against the color chart and the at least one grayscale area. The at least one grayscale area may comprise four grayscale stripes framing the color chart. In one embodiment, the cutout portion abuts three different squares of the color chart, and two different grayscale stripes. With reference to the system of
In procedure 602, an image comprising a pixel representation of the sample positioned adjacent to the card is acquired. With reference to the system of
In procedure 604, raw data of the acquired image is processed in a RGB color-space by cropping and rectifying pixel representations of the color chart, the sample, and the at least one grayscale stripe in the image. In one embodiment, correcting the pixel representation of the color chart in the image comprises determining a box defining each color square of the pixel representation of the color chart, determining for each box, an average RGB value for pixels inside the box, where the average RGB value omits RGB values of pixels situated at the border between two adjacent color squares of the pixel representation of the color chart, and assigning each respective pixel of each color square the average RGB value. With reference to the system of
In procedure 606, reference data corresponding to the color chart of the card, reference data corresponding to the at least one grayscale area of the card, are retrieved. Optionally, characteristic data corresponding to the card is retrieved as well. The reference data for the color chart of the card may include colorimetric data as well as RGB coordinates for the color chart. Similarly, the reference data for the at least one grayscale area may include colorimetric data as well as RGB coordinates for the at least one grayscale area. With reference to the system of
In procedure 608, a grayscale correction is performed to the pixel representation of the color chart and the pixel representation of the sample using a grayscale correction transformation between the pixel representation of the at least one grayscale area and the reference coordinates for the at least one grayscale area. In one embodiment, the grayscale correction transformation is based on the RGB reference coordinates for the at least one grayscale area. The grayscale correction is performed to RGB coordinates for the pixel representation of the color chart and RGB coordinates for the pixel representation of the sample. In one embodiment, performing the grayscale correction comprises performing a first grayscale correction step applied to the pixel representation of the at least one grayscale area, and performing a second grayscale correction step applied to the pixel representation of the color chart and the sample. In another embodiment, the grayscale corrections are performed in accordance with the method illustrated in
In procedure 610, a set of colorimetric coordinates for the sample is estimated by applying to the grayscale corrected pixel representation of the sample, a transformation between the grayscale corrected pixel representation of the color chart and the colorimetric reference data corresponding to the color chart. With reference to the system of
In procedure 612, the colorimetric coordinates of the sample in the device independent color space are converted to a set of RGB coordinates, thereby detecting the RGB color coordinates for the sample. In one embodiment, the RGB color coordinates are within a color gamut of a dyeing machine. One or more characteristics of a dyeing substrate, such as a thread, may also be applied to any of the converting or estimating steps. With reference to the system of
In procedure 614, the detected RGB color space coordinates of the sample are stored. The detected color in the RGB color space coordinates may be subsequently displayed. Additionally, the detected color in the RGB color space coordinates may be subsequently converted to a subtractive color space, such as CMY, CMYK, or CMYK+ and provided for dyeing a substrate, accordingly. With reference to the system of
In procedure 616, a substrate is dyed according to the detected RGB coordinates. With reference to the system of
In one embodiment of any of the above disclosed techniques, a warning is indicated when a color is outside the gamut of any of the respective dyeing machines 112 and 412, and respective color calibrating cards 102 and 402 of
In one embodiment, the grayscale correction of step 608 (above) is performed independently for each colored area of the color chart. Reference is now made to
In procedure 620, for each colored area of the color chart, at least one of the gray areas that is physically closest to the colored area is selected. With reference to the system of
In procedure 622, a grayscale correction is performed to the pixel representation of the colored area in the RGB color space based on the pixel representation of the physically closest gray area. In this manner, a grayscale correction is performed independently to each colored area of the pixel representation of the color chart in the RGB color-space, thereby performing a grayscale correction for the color chart. The grayscale correction corrects for illumination irregularities and distortions in the acquired image. With reference to the system of
In procedure 624, at least one of the at least one gray area that is physically closest to the sample is selected. With reference to the system of
In procedure 626, based on the pixel representation of the at least one gray area that was selected as physically closest to the sample, a grayscale correction is performed to the pixel representation of the sample in the RGB color space. With reference to the system of
Once the image has been corrected based on the grayscale correction, the remaining steps for detecting the color of sample (e.g. steps 610 through 616) may proceed as described above and with respect to
In accordance with another embodiment of the disclosed techniques, a mobile application is provided that displays an image with one or more candidate colors, such as may be determined in accordance with a dominance factor or frequency factor, and the like. The user is prompted to select one or more of the candidate colors, and the mobile application dynamically builds a respective color swatch corresponding to each selected candidate color. The color swatch is extracted from a color library spanning a color gamut for a thread dyeing machine. Each respective color swatch is displayed alongside the selected candidate color. The user is prompted to choose from each respective color swatch, a color matching each selected candidate color. The matched colors are stored at a storage device. Subsequently, a substrate may be dyed according to the matching color. For example, a thread dyeing machine may dye a thread according to the matching color. If multiple colors are matched, different sections of a single thread may be dyed according to each of the multiple matched colors, such that subsequently embroidering a fabric with the dyed thread yields a graphic depiction of the image.
Reference is now made to
The operation and componentry of mobile device 706 and server 710 may be represented by respective mobile device 106 and server 110, described above in
Mobile device 706 is communicatively coupled to server 710 via network 736 that may include any combination of a public network such as the Internet, as well as private, local and remote networks. Server 710 is in communication with storage device 708, and with dyeing machine 712 via transceiver 734. Optionally, server 710 communicates with dyeing machine 712 via network 736.
Referring to
Mobile device 706 detects a designation of at least one of the displayed candidate colors 752. For example, a user may select one or more of the candidate colors via touch, keyboard selection, electronic mouse, electronic pen and the like. In one embodiment, mobile device 706 displays at user interface 724 a prompt 760 allowing the user to select a color library from a choice of multiple color libraries, such as multiple Spot color libraries, including but not limited to Pantone, Toyo, RAL System, WGSN. Mobile device 706 detects a user selection of one of the color libraries via user interface 724.
Mobile device 706 provides the one or more designated candidate colors to server 710, and optionally the selected color library, via respective transceivers 728 and 734 and network 736. Server 710 retrieves the selected color library from storage device 708. Server 710 dynamically builds a respective color swatch corresponding to each designated candidate color by extracting multiple colors from the retrieved color library. To dynamically build each respective color swatch corresponding to each of the designated candidate colors, server 710 may match each designated candidate color to the retrieved color library, and select multiple colors from within a predefined neighborhood of the matching color. Optionally, when matching each designated candidate color to the retrieved color library, server 710 may account for a dyeing substrate type, such as a type of thread for subsequent dyeing. Server 710 provides the respective color swatch corresponding to each designated candidate color to mobile device 706 via respective transceivers 728 and 734 and network 736. Mobile device 706 receives the respective color swatch from server 710.
Referring to
Subsequently, server 710 provides the matching color to dyeing machine 712, and a substrate (not shown) is dyed in accordance with the selected matching color. For example, the substrate may be a thread, and dyeing machine 712 may be a thread dyeing machine. Thread dyeing machine 712 may dye the thread according to the matched color.
A description of a method for selecting a color for a dyeing machine now follows. Reference is now made to
In procedure 800, a color image is obtained. With reference to
In procedure 802, at least one candidate color associated with the color image is identified. In one embodiment, identifying the at least one candidate color associated with the color image includes identifying in accordance with a color dominance factor of the color image. In another embodiment, identifying the at least one candidate color associated with the color image includes identifying in accordance with a color frequency factor of the color image. With reference to
In procedure 804, the color image is displayed with the at least one candidate color. With reference to
In procedure 806, at least one designated candidate color of the at least one candidate color is detected. In one embodiment, a prompt is displayed for allowing the selection of a color library from a choice of multiple color libraries. With reference to
In procedure 808, a respective color swatch corresponding to each of the at least one designated candidate color is dynamically built, where the respective color swatch is extracted from a color library. In one embodiment, the color library corresponds to the user selection of the color library from the choice of multiple color libraries via the prompt. In another embodiment, dynamically building the respective color swatch corresponding to each of the at least one designated candidate color includes selecting from the color library, multiple colors from a neighborhood of each of the at least one designated candidate color. In a further embodiment, dynamically building the respective color swatch corresponding to each of the at least one designated candidate color includes accounting for a dyeing substrate type, such as a type of thread. With reference to
In procedure 810, the respective color swatch is displayed with each of the at least one designated candidate color. In one embodiment, displaying each respective color swatch with each of the at least one designated candidate color further includes displaying each designated candidate color with respect to a color wheel. With reference to
In procedure 812, for each of the at least one designated candidate color, a matching color is selected from each respective color swatch. With reference to
In procedure 814, each selected matching color is stored. With reference to
In one embodiment, a substrate is dyed in accordance with the selected color matching at least one of the at least one designated candidate color. With reference to
It will be appreciated by persons skilled in the art that the disclosed technique is not limited to what has been particularly shown and described hereinabove. Rather the scope of the disclosed technique is defined only by the claims, which follow.
This application claims the benefit of priority of U.S. Provisional Application No. 62/552,416, filed Aug. 31, 2017, and entitled “Color Detection Algorithm”, the contents of which are incorporated herein by reference in their entirety, and U.S. Provisional Patent Application No. 62/684,207, filed Jun. 13, 2018, and entitled “Color Detection Algorithm”, the contents of which are incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
7586642 | Chiba | Sep 2009 | B2 |
8406482 | Chien et al. | Mar 2013 | B1 |
8634640 | Bhatti et al. | Jan 2014 | B2 |
8817329 | Satoh et al. | Aug 2014 | B2 |
9967411 | Chung et al. | May 2018 | B2 |
20060227397 | Goma et al. | Oct 2006 | A1 |
20070223064 | Ichitani | Sep 2007 | A1 |
20070242877 | Peters et al. | Oct 2007 | A1 |
20120082374 | Agarwal et al. | Apr 2012 | A1 |
20130208289 | Satoh et al. | Aug 2013 | A1 |
20130322750 | Agarwal et al. | Dec 2013 | A1 |
20140209682 | Gottwals et al. | Jul 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20190066338 A1 | Feb 2019 | US |
Number | Date | Country | |
---|---|---|---|
62684207 | Jun 2018 | US | |
62552416 | Aug 2017 | US |