image
imagewidth (px)
27
1.39k
panel_name
stringlengths
11
11
characters
sequencelengths
1
10
themes
sequencelengths
0
3
color
stringclasses
2 values
year
int64
1.95k
2k
caption
stringlengths
12
223
19501002_00
[ "Charlie Brown", "Patty", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words how i hate him
19501002_01
[ "Charlie Brown", "Patty", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words good ol' charlie brown
19501002_02
[ "Charlie Brown", "Patty", "Shermy" ]
[]
grayscale
1,950
a charlie brown cartoon with the words good ol' charlie brown
19501002_03
[ "Charlie Brown", "Patty", "Shermy" ]
[]
grayscale
1,950
well, here comes charlie brown
19501003_00
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
that's what little girls are made of
19501003_01
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon strip with the words and everything nice
19501003_02
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
little girls are made of sugar and spice
19501003_03
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon of a girl and boy talking to each other
19501004_00
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog looking out the window
19501004_01
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog looking out the window
19501004_02
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon of a dog sitting in front of a window
19501004_03
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog carrying a flower
19501005_00
[ "Patty", "Shermy" ]
[ "rain" ]
grayscale
1,950
a cartoon of a little boy running in the rain
19501005_01
[ "Patty", "Shermy" ]
[ "rain" ]
grayscale
1,950
a cartoon of a girl walking in the rain with an umbrella
19501005_02
[ "Patty", "Shermy" ]
[ "rain" ]
grayscale
1,950
a cartoon drawing of a child holding an umbrella in the rain
19501005_03
[ "Patty", "Shermy" ]
[ "rain" ]
grayscale
1,950
a cartoon of a girl running in the rain
19501006_00
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog watering a plant
19501006_01
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog looking at a flower
19501006_02
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog looking at a flower
19501006_03
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon drawing of a dog looking at a flower
19501007_00
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with a sign that says watch out for children
19501007_01
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words let's leave don't think anything is coming
19501007_02
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with a sign that says watch out for children
19501007_03
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with a sign that says watch out for children
19501009_00
[ "Patty", "Shermy" ]
[ "love" ]
grayscale
1,950
will you still love me when i'm grown up and rich and you're just a poor little girl?
19501009_01
[ "Patty", "Shermy" ]
[ "love" ]
grayscale
1,950
a cartoon with the words that will be different
19501009_02
[ "Patty", "Shermy" ]
[ "love" ]
grayscale
1,950
a cartoon with the words, and you will still love rich and famous
19501009_03
[ "Patty", "Shermy" ]
[ "love" ]
grayscale
1,950
a cartoon of a boy and girl talking to each other
19501010_00
[ "Charlie Brown", "Snoopy" ]
[]
grayscale
1,950
a cartoon of a dog sitting on the floor next to a chair
19501010_01
[ "Charlie Brown", "Snoopy" ]
[]
grayscale
1,950
a cartoon with the words klunk and a dog
19501010_02
[ "Charlie Brown", "Snoopy" ]
[]
grayscale
1,950
a charlie brown cartoon with a dog sitting on a chair
19501010_03
[ "Charlie Brown", "Snoopy" ]
[]
grayscale
1,950
a cartoon of a dog sitting on a chair and reading a book
19501011_00
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words nine million and ten million
19501011_01
[ "Patty", "Shermy" ]
[]
grayscale
1,950
five million, six million, seven million, eight million
19501011_02
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words ten million that's pretty good, must be an all time record
19501011_03
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words one million, three million, four million
19501012_00
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
charlie brown and snoopy in a wagon
19501012_01
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon drawing of a boy pulling a dog in a wagon
19501012_02
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
charlie brown and snoopy coloring pages
19501012_03
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon drawing of a boy and his dog in a wagon
19501013_00
[ "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a black and white drawing of a stool
19501013_01
[ "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon drawing of a dog sitting at a table
19501013_02
[ "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon drawing of a boy sitting at a table with a dog
19501013_03
[ "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon drawing of a boy sitting at a table with a dog
19501013_04
[ "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon drawing of a boy sitting at a table with a dog
19501014_00
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words notice the fierce gleam comes from a long line of killers
19501014_01
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words he's a mean one
19501014_02
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words don't get too close
19501014_03
[ "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words she's asleep
19501016_00
[ "Charlie Brown", "Snoopy" ]
[ "games and sports" ]
grayscale
1,950
a black and white drawing of a dog running
19501016_01
[ "Charlie Brown", "Snoopy" ]
[ "games and sports" ]
grayscale
1,950
a black and white drawing of a dog running
19501016_02
[ "Charlie Brown", "Snoopy" ]
[ "games and sports" ]
grayscale
1,950
a cartoon with the words nice try on a dog
19501016_03
[ "Charlie Brown", "Snoopy" ]
[ "games and sports" ]
grayscale
1,950
a black and white cartoon of a dog running
19501016_04
[ "Charlie Brown", "Snoopy" ]
[ "games and sports" ]
grayscale
1,950
a cartoon drawing of a dog flying through the air
19501017_00
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
sore toe cartoon by charlie brown
19501017_01
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a peanuts cartoon with the words hopscotch
19501017_02
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon drawing of a girl running in the air
19501017_03
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon drawing of a little girl running
19501018_00
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon with a sign that says root beer for sale
19501018_01
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
charlie brown flowers for sale
19501018_02
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
charlie brown lemonade for sale
19501018_03
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon dog sitting at a table with the words bones for sale
19501019_00
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon with the words, it's a good thing i'm not sad
19501019_01
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon about what's wrong with charlie brown
19501019_02
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon drawing of two people talking to each other
19501019_03
[ "Charlie Brown", "Patty" ]
[]
grayscale
1,950
a cartoon with the words hey wake up
19501020_00
[ "Snoopy", "Shermy" ]
[ "pranks" ]
grayscale
1,950
a cartoon of a dog sitting next to a box
19501020_01
[ "Snoopy", "Shermy" ]
[ "pranks" ]
grayscale
1,950
a cartoon of a dog sitting in front of a box
19501020_02
[ "Snoopy", "Shermy" ]
[ "pranks" ]
grayscale
1,950
a cartoon of a dog sitting in front of a box
19501020_03
[ "Snoopy", "Shermy" ]
[ "pranks" ]
grayscale
1,950
a cartoon drawing of a boy looking at a box
19501021_00
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words flowers for sale
19501021_01
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon of a boy and girl walking with a dog
19501021_02
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
charlie brown and snoopy looking at flowers
19501021_03
[ "Charlie Brown", "Patty", "Snoopy", "Shermy" ]
[]
grayscale
1,950
a cartoon drawing of two children running with a dog
19501023_00
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words luck luck it's all matter
19501023_01
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon of a man and woman playing checkers
19501023_02
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon drawing of two children playing checkers
19501023_03
[ "Patty", "Shermy" ]
[]
grayscale
1,950
yes sir, this is a real game of skill
19501024_00
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words mittens on it
19501024_01
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
charlie brown and snoopy cartoon
19501024_02
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
a cartoon strip with the words not entirely
19501024_03
[ "Charlie Brown", "Shermy" ]
[]
grayscale
1,950
so you see, it's the heat from the sun that keeps us warm
19501025_00
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a peanuts cartoon with the words so then he said to me
19501025_01
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon with the words, i'll call you when i can talk more freely
19501025_02
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
charlie brown and snoopy talking on the phone
19501025_03
[ "Patty", "Snoopy" ]
[]
grayscale
1,950
a cartoon with the words and you should see the look on his face
19501026_00
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words, i could have fooled you if i wasn't so jealous
19501026_01
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a peanuts cartoon with the words wait i'm home
19501026_02
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon strip with the words well, well, pretty little girl in the next block
19501026_03
[ "Patty", "Shermy" ]
[]
grayscale
1,950
a cartoon with the words patty is not my home aunt agnes
19501027_00
[ "Charlie Brown", "Shermy" ]
[ "education and school" ]
grayscale
1,950
a peanuts cartoon with two people talking to each other
19501027_01
[ "Charlie Brown", "Shermy" ]
[ "education and school" ]
grayscale
1,950
a cartoon with peanuts and charlie talking about basketball
19501027_02
[ "Charlie Brown", "Shermy" ]
[ "education and school" ]
grayscale
1,950
a cartoon with peanuts and charlie talking about baseball
19501027_03
[ "Charlie Brown", "Shermy" ]
[ "education and school" ]
grayscale
1,950
cartoon peanuts and charlie brown talking about the earth
19501028_00
[ "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon of peanuts and charlie talking about mashed potato
19501028_01
[ "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
a peanuts cartoon with a boy and girl talking to each other
19501028_02
[ "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
charlie brown and snoopy eating ice cream
19501028_03
[ "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
peanuts cartoon about what kind of ice cream is it
19501030_00
[ "Charlie Brown", "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon with peanuts and charlie in front of a birthday cake
19501030_01
[ "Charlie Brown", "Patty", "Shermy" ]
[ "food" ]
grayscale
1,950
a cartoon with peanuts and charlie saying, we don't know how old we are

Peanut Comic Strip Dataset (Snoopy & Co.)

Peanuts 1999/01/30

This is a dataset Peanuts comic strips from 1950/10/02 to 2000/02/13. There are 77,457 panels extracted from 17,816 comic strips. The dataset size is approximately 4.4G.

Each row in the dataset contains the following fields:

  • image: PIL.Image containing the extracted panel.
  • panel_name: unique identifier for the row.
  • characters: tuple[str, ...] of characters included in the comic strip the panel is part of.
  • themes: tuple[str, ...] of theme in the comic strip the panel is part of.
  • color: str indicating whether the panel is grayscale or in color.
  • caption: BLIP-2_OPT_6.7B generated caption from the panel.
  • year: int storing the year the specific panel was released.

OPT-6.7B has a non-commercial use license and so this dataset cannot be used for commercial projects. If you need a dataset for commercial use please see this similar dataset that uses Flan-T5-XL, which allows for commercial use.

Character and theme information was extracted from Peanuts Wiki (Fandom) using Beautiful Soup. Images were extracted from Peanuts Search.

Only strips with the following characters were extracted:

- "Charlie Brown"
- "Sally Brown"
- "Joe Cool" # Snoopy alter-ego
- "Franklin"
- "Violet Gray"
- "Eudora"
- "Frieda"
- "Marcie"
- "Peppermint Patty"
- "Patty"
- "Pig-Pen"
- "Linus van Pelt"
- "Lucy van Pelt"
- "Rerun van Pelt"
- "Schroeder"
- "Snoopy"
- "Shermy"
- "Spike"
- "Woodstock"
- "the World War I Flying Ace" # Snoopy alter-ego

Extraction Details

Panel detection and extraction was done using the following codeblock:

def check_contour(cnt):
    area = cv2.contourArea(cnt)
    if area < 600:
        return False

    _, _, w, h = cv2.boundingRect(cnt)
    if w / h < 1 / 2: return False
    if w / h > 2 / 1: return False

    return True

def get_panels_from_image(path):
    panels = []
    original_img = cv2.imread(path)
    gray = cv2.cvtColor(original_img, cv2.COLOR_BGR2GRAY)
    blur = cv2.GaussianBlur(gray, (5,5), 0)
    thresh = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)[1]

    kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (3,3))
    opening = cv2.morphologyEx(thresh, cv2.MORPH_OPEN, kernel, iterations=1)
    invert = 255 - opening

    cnts, _ = cv2.findContours(invert, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

    idx = 0 
    for cnt in cnts:
        if not check_contour(cnt): continue
        idx += 1
        x,y,w,h = cv2.boundingRect(cnt)
        roi = original_img[y:y+h,x:x+w]
        panels.append(roi)

    return panels

check_contour will reject panels with area < 600 or with aspect ratios larger than 2 or smaller than 0.5.

Grayscale detection was done using the following codeblock:

def is_grayscale(panel):
    LAB_THRESHOLD = 10.
    img = cv2.cvtColor(panel, cv2.COLOR_RGB2LAB)
    _, ea, eb = cv2.split(img)
    de = abs(ea - eb)
    mean_e = np.mean(de)
    return mean_e < LAB_THRESHOLD

Captioning was done using the standard BLIP-2 pipeline shown in the Huggingface docs using beam search over 10 beams and a repetition penalty of 2.0. Raw captions are extracted and no postprocessing is applied. You may wish to normalise captions (such as replacing "cartoon" with "peanuts cartoon") or incorporate extra metadata into prompts.

Downloads last month
2
Edit dataset card