SlideShare a Scribd company logo
Hacking Art
History for Fun
and Profit
John Resig
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Lot 55: 20 Japanese Woodblock Prints
Each depicting a female/Geisha figure with
calligraphy throughout each print. Prints
measure 13.75" H x 9.375" W. Toning to
each print, some losses around edges.
Estimated Price: $400 - $600
Step 1: Acquire and read tons of expensive books.
Step 2: Learn to read Japanese. *
Japanese from the 17th to 19th century. *
You’re not going to learn this from Rosetta Stone.
Step 3: Learn to read Japanese calligraphy.
Solution: A fast-loading, responsive, i18ned, web
site: Ukiyo-e.org
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Digital Ocean
Amazon S3
Amazon Cloudfront
Digital Ocean
Images
Data

(HTML,
XML, JSON)
Images JS, CSS
Images JS, CSS
nginx
(w/ cache)
node.js
express
node.js
express
naught
mongodb
Elastic

Search
Scraper
Hacking Art History
https://github.com/jeresig/jquery-imgscrubber
Collecting Tons of Woodblock Print Data
Search
Page Page Page
HTML
Image
HTML
Image
HTML
Image
Search
Page Page Page
HTML
Image
HTML
Image
HTML
Image
Queue-based Crawling using PhantomJS
Processing Queue
Some Website
WebKit
PhantomJS
CasperJS
SpookyJS
Save Data
XML Files
Mongo Log
libxml (+ xpath)
MongoDB
Extract Data
Process Data
Artists
Images
Correct Artist
and Date
Add to Site!
module.exports = function() {
return {
scrape: [
{
start: "http://ukiyo-e.org/search",
visit: "//a[@class='img']",
next: "//a[contains(@rel,'next')]"
},
{
extract: {
"title": "//p[contains(@class, 'title')]//span",
"dateCreated": "//p[contains(@class, 'date')]//span",
"artists[]": "//p[contains(@class, 'artist')]//a",
"images[]": "//div[contains(@class,'imageholder')]//a/@href"
}
}
]
};
};
"locale" : "ja",
"given" : "Okiie",
"given_kana" : "おきいえ",
"surname" : "Hashimoto",
"surname_kana" : "はしもと",
"name" : "Hashimoto Okiie",
"ascii" : "Hashimoto Okiie",
"plain" : "Hashimoto Okiie",
"kana" : "はしもとおきいえ",
"_id" : ObjectId("530c0825d9a80976b2000437")
}
],
"names" : [
{
"original" : "Hashimoto Okiie (橋本興家)",
"locale" : "ja",
"kanji" : "橋本興家",
"given" : "Okiie",
"given_kana" : "おきいえ",
"surname" : "Hashimoto",
"surname_kana" : "はしもと",
"given_kanji" : "興家",
"surname_kanji" : "橋本",
"name" : "Hashimoto Okiie",
"ascii" : "Hashimoto Okiie",
"plain" : "Hashimoto Okiie",
"kana" : "はしもとおきいえ",
"_id" : ObjectId("530c0825d9a80976b2000439")
}
],
"extract" : [
"53dfc997cbf9fa7501d78e4820b24a9c"
],
"created" : ISODate("2014-02-25T03:04:05Z"),
"__v" : 0
}
“Stack Scraper”
https://github.com/jeresig/stack-scraper
https://github.com/jeresig/ukiyoe-scrapers
Image Similarity
https://github.com/jeresig/node-matchengine
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Image Similarity Search
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Idyll: Offline Image Cropping
• https://github.com/jeresig/idyll

• Crop images offline and on a mobile
device.

• Saves the selections back to a server.

• Data is synced and saved using HTML 5
appcache.

• https://github.com/jeresig/node-
appcache-glob
by David Chester

at Shutterstock
https://github.com/dchester/perl-image-crop-calibration-target
http://www.ersatzlabs.com/
Aiding Woodblock Print
Studies with Image Analysis
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Hacking Art History
Miyagawa Shuntei
Printed in 1897
Sold for: $550
Prints sell for $100-$400 individually
True Estimate: $2100 - $8400 *
* You just have to find
someone willing to buy them!
Does this work for other art forms?
• Collaborating with the Frick Art Reference Library

• Analyzing their Anonymous Italian Art Photo Archive

• Also working with the Zeri Foundation at the University
of Bologna in Italy

• Analyzing their Italian Art Archives
Similar Images
Different photo, same work of art.
Similar Images
Different photo, slightly different cropping.
Similar Images
Different photo, dramatically different lighting.
Alternate Images
Partial Image vs. Full Image
Alternate Images
Color vs. Black-and-White
Alternate Images
Partial Image vs. Much Larger Image
Conservation
Conservation
Repairs and possibly removal of later additions.
Conservation
Analysis even spots dramatic conservation work.
Copies
Copies
Copies
Copies
Copies
Graph Analysis with neo4j
Frick 420
420
Zeri 1583642090
Frick 417
417
?
Hacking Art History
Frick 347
347
Zeri 12227
33526
Frick 348
348
33525
?
Hacking Art History
8132a 8132
57129
57134
57130
57138
8131a 8131
?
Hacking Art History
Hacking Art History
Hacking Art History
• http://ejohn.org/research/

• http://ukiyo-e.org/
• https://github.com/jeresig
Correcting Print Data
Japanese Names
• Utagawa Hiroshige
• Ando Hiroshige
• Andō Hiroshige
• Hiroshige
• 歌川広重
• 広重
安⼟土
安堂
安島
安東
安籐
安藤
安道
安達
阿藤
Andō
安藤
andō
antō
anzō
yasuzuka
A many-to-many mapping!
Sharaku Toshusai
東洲斎写楽
Sharaku Toshusai
東洲斎写楽
Is this the family name?
Where are the stress marks?
How do you “split” this name?
Which name parts

correlate?
Tools (all are Node modules!)
• https://github.com/lovell/
hepburn

• https://github.com/jeresig/
node-enamdict

• https://github.com/jeresig/
node-ndlna

• https://github.com/jeresig/
node-romaji-name
ndlnahepburn enamdict
romaji-name
Hepburn
• https://github.com/lovell/
hepburn

• Takes in the English form of a
Japanese word.

• Returns it written in Hiragana or
Katakana (phonetic Japanese
alphabets).
ndlnahepburn enamdict
romaji-name
うたがわひろしげUtagawa Hiroshige
Enamdict
• https://github.com/jeresig/
node-enamdict

• Downloads and queries the
ENAMDICT database

• (A mapping of Japanese proper
names to Hiragana and
English.)

• Used to correct typos and figure
out surname/given name.
ndlnahepburn enamdict
romaji-name
NDLNA
• https://github.com/jeresig/
node-ndlna

• Queries the NDLNA database

• Finds the correct Kanji for an
English name.

• Or the correct English for a
Kanji name.
ndlnahepburn enamdict
romaji-name
ndlnahepburn enamdict
romaji-name
{
"original" : "Sharaku Toshusai (東洲斎写楽 )",
"locale" : "ja",
"kanji" : "東洲斎写楽",
"given" : "Sharaku",
"given_kana" : "しゃらく",
"surname" : "Tōshūsai",
"surname_kana" : "とおしゅうさい",
"surname_kanji" : "東洲斎",
"given_kanji" : "写楽",
"name" : "Tōshūsai Sharaku",
"ascii" : "Tooshuusai Sharaku",
"plain" : "Toshusai Sharaku",
"kana" : "とおしゅうさいしゃらく"
}
Dates
• https://github.com/jeresig/node-yearrange
var yr = require("yearrange");
yr.parse("1877")
// {"start": 1877, "end": 1877}
yr.parse("1847-48")
// {"start": 1847, "end": 1848}
yr.parse("ca. 1810-20s")
// {"start": 1810, "end": 1829, "circa": true}
yr.parse("18th–19th century")
// {"start": 1700, "end": 1899}
yr.parse("Meiji era")
// {"start": 1868, "end": 1912}
Artist Rectification

More Related Content

PDF
EmpireJS: Hacking Art with Node js and Image Analysis
jeresig
 
PDF
Computer Vision as Art Historical Investigation
jeresig
 
PDF
Image 2-1
Rachel Phillips
 
PDF
NYARC 2014: Frick/Zeri Results
jeresig
 
PPT
JW 09-fine arts ppt
Scott Koga-Browes
 
PDF
OPENVIS Conference Quick Report Part 2
Keiichiro Ono
 
PPTX
Blockprinting Powerpoint
Lisa Franklin
 
PPTX
Honours Crit Presentation (2nd Semester)
samheisler
 
EmpireJS: Hacking Art with Node js and Image Analysis
jeresig
 
Computer Vision as Art Historical Investigation
jeresig
 
Image 2-1
Rachel Phillips
 
NYARC 2014: Frick/Zeri Results
jeresig
 
JW 09-fine arts ppt
Scott Koga-Browes
 
OPENVIS Conference Quick Report Part 2
Keiichiro Ono
 
Blockprinting Powerpoint
Lisa Franklin
 
Honours Crit Presentation (2nd Semester)
samheisler
 

Similar to Hacking Art History (19)

PDF
Jacques Seurat
Carmen Sanborn
 
PPTX
Large-Scale Quantitative Analysis of Painting Arts (CABDyN, University of Oxf...
danielykim
 
PDF
Utilization and possibilities of art information in a data-driven society
KAMURA
 
ZIP
MCN 2008: could tagging and folksonomy improve access to art museum collectio...
j trant
 
PDF
Japanese art
smolinskiel
 
PPTX
Ukiyo e
Candy Tsai
 
PPT
Japanese Art After 1392 Ashley, Will, Megan
bassmanb
 
PDF
Ukiyo-E Influence
Tasha Holloway
 
PDF
Japanese Woodblock Printing Salter Rebecca
licakucio
 
PPTX
Ava Lee Art History Comparative
JenPepper
 
PPTX
Art appreciation
LethOjales02
 
DOCX
Collaborative – Information Fluency
Ms. Beka
 
PPTX
Art of China and Japan.pptx
Sidra Akhtar
 
PPT
Europe, 1850-1900 & Japan
Laura Smith
 
PPT
1d printmaking
Aaron Lawler, PhD
 
PPT
Sayre woa ch10_lecture-243773
Alexa Wheeler, University of New Mexico Valencia
 
PDF
Art1100 LVA 21-2 Modernism Online
Dan Gunn
 
PDF
East Asia Arts China, Japan and Korea arts
TanyaMiya1
 
DOCX
CATALOGUE ENTRY TOKAIDO ROAD ARTNameCours.docx
troutmanboris
 
Jacques Seurat
Carmen Sanborn
 
Large-Scale Quantitative Analysis of Painting Arts (CABDyN, University of Oxf...
danielykim
 
Utilization and possibilities of art information in a data-driven society
KAMURA
 
MCN 2008: could tagging and folksonomy improve access to art museum collectio...
j trant
 
Japanese art
smolinskiel
 
Ukiyo e
Candy Tsai
 
Japanese Art After 1392 Ashley, Will, Megan
bassmanb
 
Ukiyo-E Influence
Tasha Holloway
 
Japanese Woodblock Printing Salter Rebecca
licakucio
 
Ava Lee Art History Comparative
JenPepper
 
Art appreciation
LethOjales02
 
Collaborative – Information Fluency
Ms. Beka
 
Art of China and Japan.pptx
Sidra Akhtar
 
Europe, 1850-1900 & Japan
Laura Smith
 
1d printmaking
Aaron Lawler, PhD
 
Art1100 LVA 21-2 Modernism Online
Dan Gunn
 
East Asia Arts China, Japan and Korea arts
TanyaMiya1
 
CATALOGUE ENTRY TOKAIDO ROAD ARTNameCours.docx
troutmanboris
 

More from jeresig (20)

PDF
Does Coding Every Day Matter?
jeresig
 
PDF
Accidentally Becoming a Digital Librarian
jeresig
 
PDF
2014: John's Favorite Thing (Neo4j)
jeresig
 
PDF
Using JS to teach JS at Khan Academy
jeresig
 
PDF
Applying Computer Vision to Art History
jeresig
 
PDF
Applying Computer Vision to Art History
jeresig
 
PDF
JavaScript Libraries (Ajax Exp 2006)
jeresig
 
PDF
Introduction to jQuery (Ajax Exp 2006)
jeresig
 
PDF
jQuery Recommendations to the W3C (2011)
jeresig
 
PDF
jQuery Open Source Process (RIT 2011)
jeresig
 
PDF
jQuery Open Source Process (Knight Foundation 2011)
jeresig
 
PDF
jQuery Mobile
jeresig
 
PDF
jQuery Open Source (Fronteer 2011)
jeresig
 
PDF
Holistic JavaScript Performance
jeresig
 
PDF
New Features Coming in Browsers (RIT '09)
jeresig
 
PDF
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
PDF
Advanced jQuery (Ajax Exp 2007)
jeresig
 
PDF
JavaScript Library Overview (Ajax Exp West 2007)
jeresig
 
PDF
Meta Programming with JavaScript
jeresig
 
PDF
Advancing JavaScript with Libraries (Yahoo Tech Talk)
jeresig
 
Does Coding Every Day Matter?
jeresig
 
Accidentally Becoming a Digital Librarian
jeresig
 
2014: John's Favorite Thing (Neo4j)
jeresig
 
Using JS to teach JS at Khan Academy
jeresig
 
Applying Computer Vision to Art History
jeresig
 
Applying Computer Vision to Art History
jeresig
 
JavaScript Libraries (Ajax Exp 2006)
jeresig
 
Introduction to jQuery (Ajax Exp 2006)
jeresig
 
jQuery Recommendations to the W3C (2011)
jeresig
 
jQuery Open Source Process (RIT 2011)
jeresig
 
jQuery Open Source Process (Knight Foundation 2011)
jeresig
 
jQuery Mobile
jeresig
 
jQuery Open Source (Fronteer 2011)
jeresig
 
Holistic JavaScript Performance
jeresig
 
New Features Coming in Browsers (RIT '09)
jeresig
 
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
Advanced jQuery (Ajax Exp 2007)
jeresig
 
JavaScript Library Overview (Ajax Exp West 2007)
jeresig
 
Meta Programming with JavaScript
jeresig
 
Advancing JavaScript with Libraries (Yahoo Tech Talk)
jeresig
 

Recently uploaded (20)

PPTX
MtA文凭办理|办理蒙特埃里森大学毕业证成绩单复刻学分无法毕业怎么办?
ekwp9g1k
 
DOCX
This is a security test for Inspectiv test
Firsts Lasts
 
PPTX
Lecture 1b - Diagnostic Analytics Intro and Purpose ver 1.0 (1).pptx
guddipatel10
 
DOCX
Nutrition about ICT AND TLE.09111001991981
CharmicahOmayan3
 
PPTX
Escalator_21bar064,070,073aeqweqeqe.pptx
Aaravpatel25
 
PPT
preposition-powerpoint-aus-ver1_ver_4.ppt
NhungNgLHoi
 
PDF
Choosing Between Flight Cases and Shipping Boxes for Maximum Safety.pdf
Maadhu Flight Case LLP
 
PDF
gri-report-2023.nb hjjhbjhbjbmnmnmbbmbmbm
dsoham206
 
PDF
Zero no Tsukaima 2 - Albion of the Wind.pdf
WaldeckFlugelWallens
 
PPTX
ALPHAWEBSITE122wdawdwawfawfwafwfawfwa.pptx
panjibagus296
 
PPTX
2 Human Resource Planning.pptxkkkkkkkkkkkkkkkkkkkk
khushigulati2325
 
PPTX
Book Symbols in 'The Curious Incident of the Dog in the Night-time'.pptx
JuanPabloPelezMontoy
 
PPTX
Human Efficiencknkjnhjbnhjbhjhjbnljy.pptx
hanhocpt13
 
PDF
Your Love Story, Beautifully Told by FliqaIndia’s Creative Experts
sandeep239227
 
PDF
RETN Brand Guidelines made by RETN Communications
polyglotte1
 
PDF
MIRACLE - Neshama ft. Ailym - Music Video Pitch
frankiedmuniz
 
DOCX
CUP-OBTL CEE 03 Updated.doc dvkshdijddcx
hildogavino28
 
PDF
Between Porchlight and Citylight: The Joseph Kim Journey
Joseph Kim Nolensville Tennessee
 
PPTX
Bharatanatyam-Dance-Sculpture-and-Sacred-Spaces (2).pptx
Deepshikha Maurya
 
PDF
ARTIFICIAL intelligence ............,....
kasimnagori121
 
MtA文凭办理|办理蒙特埃里森大学毕业证成绩单复刻学分无法毕业怎么办?
ekwp9g1k
 
This is a security test for Inspectiv test
Firsts Lasts
 
Lecture 1b - Diagnostic Analytics Intro and Purpose ver 1.0 (1).pptx
guddipatel10
 
Nutrition about ICT AND TLE.09111001991981
CharmicahOmayan3
 
Escalator_21bar064,070,073aeqweqeqe.pptx
Aaravpatel25
 
preposition-powerpoint-aus-ver1_ver_4.ppt
NhungNgLHoi
 
Choosing Between Flight Cases and Shipping Boxes for Maximum Safety.pdf
Maadhu Flight Case LLP
 
gri-report-2023.nb hjjhbjhbjbmnmnmbbmbmbm
dsoham206
 
Zero no Tsukaima 2 - Albion of the Wind.pdf
WaldeckFlugelWallens
 
ALPHAWEBSITE122wdawdwawfawfwafwfawfwa.pptx
panjibagus296
 
2 Human Resource Planning.pptxkkkkkkkkkkkkkkkkkkkk
khushigulati2325
 
Book Symbols in 'The Curious Incident of the Dog in the Night-time'.pptx
JuanPabloPelezMontoy
 
Human Efficiencknkjnhjbnhjbhjhjbnljy.pptx
hanhocpt13
 
Your Love Story, Beautifully Told by FliqaIndia’s Creative Experts
sandeep239227
 
RETN Brand Guidelines made by RETN Communications
polyglotte1
 
MIRACLE - Neshama ft. Ailym - Music Video Pitch
frankiedmuniz
 
CUP-OBTL CEE 03 Updated.doc dvkshdijddcx
hildogavino28
 
Between Porchlight and Citylight: The Joseph Kim Journey
Joseph Kim Nolensville Tennessee
 
Bharatanatyam-Dance-Sculpture-and-Sacred-Spaces (2).pptx
Deepshikha Maurya
 
ARTIFICIAL intelligence ............,....
kasimnagori121
 

Hacking Art History