Application of Computer Vision in Automatic Color Extraction and Color Scheme Generation of Oil Paintings
Main Article Content
Abstract
As an important category of visual art, oil painting's use and matching of colors directly determine the emotional expression and aesthetic value of the artwork. In scenarios such as digital preservation, art design assistance, and online exhibitions, how to efficiently and accurately extract representative colors from oil painting images and generate harmonious color schemes has become a research hotspot in the interdisciplinary field of art and technology. This paper constructs a complete methodological system for automatic oil painting color extraction and color scheme generation based on computer vision technology. First, a color feature model of the oil painting image is constructed through color space transformation and image preprocessing. Then, the main color tone is extracted by combining an improved K-Means clustering and color frequency statistics method. Finally, a color scheme generation strategy is constructed based on color harmony theory. Experiments were conducted using a dataset containing 200 oil paintings of different styles, and systematic tests were performed on color extraction accuracy and subjective and objective evaluation indicators of color schemes. The results show that the proposed method achieves an average color extraction accuracy of 91.2%, and the consistency between the color schemes and art expert evaluations is 86.7%, effectively supporting the automated analysis and design application of oil painting colors. This study provides a reproducible technical path for the digital processing of oil painting colors and lays a methodological foundation for the in-depth application of computer vision in the field of art.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
D. G. Stork, “Computer vision, ML, and AI in the study of fine art,” Commun. ACM, vol. 67, no. 5, pp. 68-75, 2024, doi: 10.1145/3633454.
A. Janas, M. F. Mecklenburg, L. Fuster-López, et al., “Shrinkage and mechanical properties of drying oil paints,” Herit. Sci., vol. 10, no. 1, pp. 1-10, 2022, doi: 10.1186/s40494-022-00814-2.
Y. F. Li, Z. B. Fan, Y. X. Zhu, et al., “Comparing color usage in abstract, oil, and Chinese ink paintings,” J. Vis., vol. 26, no. 6, pp. 1389-1404, 2023, doi: 10.1007/s12650-023-00929-z.
M. Gomez Lobon, M. Ghirardello, E. Juncosa Darder, et al., “A study of cadmium yellow paints from Joan Miró's paintings and studio materials preserved at the Fundació Miró Mallorca,” Herit. Sci., vol. 11, no. 1, pp. 1-16, 2023, doi: 10.1186/s40494-023-00987-4.
R. Davisayahvorakul, S. Muangmeesri, D. Jiraroj, et al., “Glycerol ketal biobased product preparation from biomass-derived reactants using an H-ZSM-5 catalyst for oil color painting application,” ACS Sustain. Chem. Eng., vol. 12, no. 11, pp. 4598-4604, 2024, doi: 10.1021/acssuschemeng.3c08057.
M. Gardner and C. E. Rogge, “Beauty revealed: technical analysis and treatment of Zand and Qajar Oil paintings,” J. Amer. Inst. Conserv., vol. 62, no. 4, pp. 264-284, 2023, doi: 10.1080/01971360.2022.2138245.
A. Kachkine, “Physical restoration of a painting with a digitally constructed mask,” Nature, vol. 642, no. 8067, pp. 343-350, 2025, doi: 10.1038/s41586-025-09045-4.
E. Son, “Symbolic Image of Colors in the Animation Film, Loving Vincent,” Q. Rev. Film Video, vol. 40, no. 7, pp. 807-826, 2023, doi: 10.1080/10509208.2023.2235991.
F. Valentini, S. De Angelis, L. Marinelli, et al., “Multianalytical non-invasive characterization of ‘Mater boni consilii’ iconography oil painting,” Heritage, vol. 6, no. 4, pp. 3499-3513, 2023, doi: 10.3390/heritage6040186.
C. de Mecquenem, M. Eveno, D. Zurbach, et al., “Influence of the painting medium on the alteration process of smalt in oil paintings studied using combined K and Co K-edge XANES,” Appl. Phys. A, vol. 130, no. 11, 781, 2024, doi: 10.1007/s00339-024-07943-4.
F. A. Pisu, C. M. Carbonaro, P. C. Ricci, et al., “Cadmium yellow pigments in oil paintings: Optical degradation studies utilizing 3D fluorescence mapping supported by Raman spectroscopy and colorimetry,” Heritage, vol. 7, no. 5, pp. 2426-2443, 2024, doi: 10.3390/heritage7050115.
M. A. Choffel, C. G. Farling, K. A. Frano, et al., “Revealing the fugitive palette of the early American South: a SERS study of eighteenth-century oil paintings,” Stud. Conserv., vol. 67, no. 8, pp. 556-568, 2022, doi: 10.1080/00393630.2021.1961391.
I. S. Bolshakov, A. A. Lykina, O. V. Kravtsenyuk, et al., “Optical and terahertz methods for studying easel oil paintings,” J. Opt. Technol., vol. 91, no. 5, pp. 323-329, 2024, doi: 10.1364/JOT.91.000323.
L. Monico, K. Janssens, M. Cotte, et al., “Advanced X-ray techniques to study the alteration of pigments in paintings,” La Rivista del Nuovo Cimento, vol. 48, no. 6, pp. 315-434, 2025, doi: 10.1007/s40766-025-00070-7.