Skip to content

Instantly share code, notes, and snippets.

@drjwbaker
Created August 8, 2016 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drjwbaker/0182696bacb081050139a2e1653eef46 to your computer and use it in GitHub Desktop.
Save drjwbaker/0182696bacb081050139a2e1653eef46 to your computer and use it in GitHub Desktop.
Pastec output based on test sample from British Library Microsoft Books data, 8 August 2016
[
{
"bounding_rects": [
{
"height": 289,
"width": 477,
"x": 63,
"y": 53
},
{
"height": 282,
"width": 471,
"x": 69,
"y": 54
}
],
"image_ids": [
20,
123
],
"scores": [
1020.0,
39.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/000741009-0-000053-1-A-Descriptive-Review-of-the-Year-1799-comprised-in-twelve-monthly-sections-[In-verse-]-1800.jpg",
"Pictures/1800/000741009-0-000015-1-A-Descriptive-Review-of-the-Year-1799-comprised-in-twelve-monthly-sections-[In-verse-]-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 320,
"width": 562,
"x": 74,
"y": 50
},
{
"height": 320,
"width": 558,
"x": 75,
"y": 50
},
{
"height": 320,
"width": 523,
"x": 87,
"y": 50
},
{
"height": 320,
"width": 523,
"x": 87,
"y": 50
},
{
"height": 319,
"width": 529,
"x": 75,
"y": 50
},
{
"height": 319,
"width": 529,
"x": 75,
"y": 50
},
{
"height": 319,
"width": 529,
"x": 75,
"y": 50
},
{
"height": 319,
"width": 529,
"x": 75,
"y": 50
}
],
"image_ids": [
1,
2,
32,
36,
44,
57,
73,
96
],
"scores": [
1011.0,
152.0,
115.0,
115.0,
107.0,
52.0,
52.0,
52.0
],
"tags": [
"",
"",
"",
"",
"",
"",
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/000320915-0-000007-2-A-Sacred-Poem-in-four-books-Being-a-paraphrase-on-the-Book-of-Job-By-the-Rev-V-L-Bernard-1800.jpg",
"Pictures/1800/000745995-0-000117-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/test2.jpg",
"Pictures/1800/test3.jpg",
"Pictures/1800/000745995-0-000165-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/000745995-0-000378-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/000745995-0-000339-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/000745995-0-000260-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 185,
"width": 555,
"x": 80,
"y": 35
},
{
"height": 182,
"width": 552,
"x": 81,
"y": 37
}
],
"image_ids": [
29,
42
],
"scores": [
919.0,
42.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/000342747-0-000003-1-[A-New-History-of-a-True-Book-[i-e-the-Bible]-in-verse-]-1800.jpg",
"Pictures/1800/001358398-0-000015-1-Letters-from-the-Mediterranean-in-1798-and-1799-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 680,
"width": 837,
"x": 64,
"y": 92
},
{
"height": 680,
"width": 837,
"x": 64,
"y": 92
}
],
"image_ids": [
22,
134
],
"scores": [
837.0,
837.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/001847031-0-000059-1-Providence-Displayed-or-the-remarkable-adventures-of-Alexander-Selkirk-who-li-1800.jpg",
"Pictures/1800/copy.jpg"
]
},
{
"bounding_rects": [
{
"height": 120,
"width": 249,
"x": 34,
"y": 32
},
{
"height": 117,
"width": 235,
"x": 43,
"y": 34
},
{
"height": 118,
"width": 245,
"x": 34,
"y": 32
}
],
"image_ids": [
65,
86,
109
],
"scores": [
850.0,
37.0,
23.0
],
"tags": [
"",
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/003546222-0-000029-1-Poems-1800.jpg",
"Pictures/1800/003546222-0-000035-1-Poems-1800.jpg",
"Pictures/1800/003546222-0-000012-1-Poems-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 141,
"width": 428,
"x": 52,
"y": 33
},
{
"height": 134,
"width": 394,
"x": 53,
"y": 34
}
],
"image_ids": [
78,
87
],
"scores": [
859.0,
30.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/003546222-0-000022-1-Poems-1800.jpg",
"Pictures/1800/003546222-0-000008-1-Poems-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 383,
"width": 593,
"x": 77,
"y": 55
},
{
"height": 359,
"width": 581,
"x": 77,
"y": 77
}
],
"image_ids": [
74,
99
],
"scores": [
1009.0,
132.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/000745995-0-000319-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/000745995-0-000369-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 256,
"width": 695,
"x": 99,
"y": 43
},
{
"height": 251,
"width": 557,
"x": 237,
"y": 46
}
],
"image_ids": [
77,
115
],
"scores": [
973.0,
35.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/002204249-0-000096-1-The-Cambrian-Hero-or-Llewelyn-the-Great-an-historical-tragedy-[in-five-acts-and-in-verse-by-W-Sotheby-]-1800.jpg",
"Pictures/1800/001451839-0-000013-1-The-Distress-d-Village-a-poem-representing-the-distressing-effects-of-fire-the-happy-consequence-of-insurance-etc-1800.jpg"
]
},
{
"bounding_rects": [
{
"height": 106,
"width": 353,
"x": 48,
"y": 46
},
{
"height": 106,
"width": 352,
"x": 48,
"y": 46
}
],
"image_ids": [
135,
139
],
"scores": [
879.0,
14.0
],
"tags": [
"",
""
],
"type": "SEARCH_RESULTS",
"mapped_image_ids": [
"Pictures/1800/000745995-0-000105-1-Essays-on-the-Progress-of-the-Vital-Principle-from-the-Vegetable-to-the-Animal-Kingdoms-and-the-Soul-of-Man-introductory-to-contemplations-on-Deity-MS-notes-[by-the-author]-1800.jpg",
"Pictures/1800/000741009-0-000027-1-A-Descriptive-Review-of-the-Year-1799-comprised-in-twelve-monthly-sections-[In-verse-]-1800.jpg"
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment