analyze_artwork <- function(img_path, art_title, artist_name,
drawing_hours, brush_strokes,
provider = NULL) {
styles <- art_style_ai(img_path, provider = provider)
desc <- art_about_ai(img_path, provider = provider)
profile <- art_profile_ai(
art_title, artist_name, drawing_hours, brush_strokes,
img_path,
provider = provider
)
classifications <- classify_styles_ai(styles$tag, provider = provider)
list(
styles = styles,
description = desc,
profile = profile,
classifications = classifications
)
}
res <- analyze_artwork(
img_path = "artwork.jpeg",
art_title = "Portrait of Jeezy",
artist_name = "Bobby Fatemi",
drawing_hours = 12,
brush_strokes = 5000,
provider = "gemini"
)
res
$styles
tag tag_norm
<char> <char>
1: Cubist-Inspired Figuration cubist-inspired figuration
2: Vibrant, Saturated Color Palette vibrant, saturated color palette
3: Bold Black Outlines bold black outlines
4: Dense, Overlapping Composition dense, overlapping composition
5: Stylized, Prominent Eyes stylized, prominent eyes
6: Textured Surface textured surface
7: Scientific and Textual Collage scientific and textual collage
desc
<char>
1: Faces are deconstructed into geometric planes and reassembled from multiple viewpoints, showing a clear influence from Cubism.
2: The artwork utilizes intense, high-chroma colors like electric blue, magenta, and orange, creating a visually energetic and bold statement.
3: Thick, dark lines define the fragmented shapes and separate the vivid color blocks, similar to the style of stained glass or cloisonnism.
4: The canvas is filled with interlocking faces and abstract forms, leaving little negative space and creating a dynamic, crowded visual field.
5: Eyes are rendered as large, almond-shaped focal points with detailed lashes, often staring directly at the viewer with an intense gaze.
6: The painting's surface shows physical texture, with visible crinkles and impasto-like qualities that add tactile depth to the work.
7: The artist incorporates scientific imagery, such as chemical structure diagrams, alongside numbers and text like the word 'ZINC'.
$description
[1] "This vibrant abstract painting features a dense collage of fragmented human faces, dominated by large, stylized eyes that gaze directly at the viewer. The artist employs a style reminiscent of Cubism, using bold black outlines to define overlapping planes and fractured perspectives. The palette is highly saturated and energetic, featuring electric blues, bright reds, oranges, and pinks. Scientific elements, including chemical diagrams, the word \"ZINC,\" and its atomic number and mass, are integrated into the composition. The overall mood is one of intense, chaotic energy, merging human portraiture with the language of chemistry."
attr(,"modelVersion")
[1] "gemini-2.5-pro"
attr(,"usageMetadata")
attr(,"usageMetadata")$promptTokenCount
[1] 316
attr(,"usageMetadata")$candidatesTokenCount
[1] 116
attr(,"usageMetadata")$totalTokenCount
[1] 1669
attr(,"usageMetadata")$promptTokensDetails
attr(,"usageMetadata")$promptTokensDetails[[1]]
attr(,"usageMetadata")$promptTokensDetails[[1]]$modality
[1] "TEXT"
attr(,"usageMetadata")$promptTokensDetails[[1]]$tokenCount
[1] 58
attr(,"usageMetadata")$promptTokensDetails[[2]]
attr(,"usageMetadata")$promptTokensDetails[[2]]$modality
[1] "IMAGE"
attr(,"usageMetadata")$promptTokensDetails[[2]]$tokenCount
[1] 258
attr(,"usageMetadata")$thoughtsTokenCount
[1] 1237
attr(,"prompt_versions")
attr(,"prompt_versions")$system
[1] "v1"
attr(,"prompt_versions")$user
[1] "v1"
$profile
category
<char>
1: Abstract Portraiture
style
<char>
1: The artwork is executed in a vibrant, Abstract Cubist style. It deconstructs and reassembles multiple faces from various perspectives simultaneously, characterized by geometric shapes, distorted features, and a flattened sense of depth, reminiscent of early 20th-century avant-garde movements.
methodology
<char>
1: Titled 'Portrait of Jeezy', this piece was meticulously created by artist Bobby Fatemi over 12 hours, utilizing an estimated 5000 individual brush strokes. The technique involves layering bold colors and thick, definitive lines on a textured surface to construct fragmented and overlapping visages.
color
<char>
1: A dynamic and high-contrast color profile dominates the canvas. Saturated primary and secondary colors—including electric blues, fiery reds and oranges, and vivid magentas—are juxtaposed to create a powerful visual energy. The bold black outlines serve to contain and define the intense color fields.
details
<char>
1: A fascinating and distinctive detail is the integration of scientific iconography. The painting is layered with chemical structure diagrams and explicit references to the element Zinc, including its name, atomic symbol (Zn), atomic number (30), and atomic mass (65.38), creating a unique fusion of portrait art and chemistry.
$classifications
tag category
<char> <char>
1: Cubist-Inspired Figuration Cubism
2: Vibrant, Saturated Color Palette Fauvism
3: Bold Black Outlines Pop Art
4: Dense, Overlapping Composition Cubism
5: Stylized, Prominent Eyes Expressionism
6: Textured Surface Expressionism
7: Scientific and Textual Collage Dada