Skip to content

Commit 919d087

Browse files
committed
created custom od
1 parent 510d5f7 commit 919d087

File tree

116 files changed

+459
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+459
-0
lines changed

Custom object detection/README.md

Lines changed: 76 additions & 0 deletions
43.6 KB
Binary file not shown.
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
<?xml version='1.0' encoding='ISO-8859-1'?>
2+
<?xml-stylesheet type='text/xsl' href='image_metadata_stylesheet.xsl'?>
3+
<dataset>
4+
<name>imglab dataset</name>
5+
<comment>Created by imglab tool.</comment>
6+
<images>
7+
<image file='faces/faces_001.jpg'>
8+
<box top='487' left='60' width='72' height='76'/>
9+
<box top='368' left='122' width='82' height='106'/>
10+
<box top='154' left='309' width='73' height='85'/>
11+
<box top='129' left='409' width='84' height='85'/>
12+
<box top='72' left='701' width='80' height='84'/>
13+
<box top='387' left='649' width='57' height='54'/>
14+
<box top='542' left='729' width='65' height='75'/>
15+
</image>
16+
<image file='faces/faces_002.jpg'>
17+
<box top='76' left='103' width='143' height='133'/>
18+
</image>
19+
<image file='faces/faces_003.jpg'>
20+
<box top='107' left='22' width='220' height='213'/>
21+
</image>
22+
<image file='faces/faces_004.jpg'>
23+
<box top='30' left='118' width='56' height='55'/>
24+
</image>
25+
<image file='faces/faces_005.jpg'>
26+
<box top='69' left='143' width='118' height='115'/>
27+
</image>
28+
<image file='faces/faces_006.jpg'>
29+
<box top='92' left='208' width='133' height='144'/>
30+
</image>
31+
<image file='faces/faces_007.jpg'>
32+
<box top='20' left='50' width='71' height='67'/>
33+
<box top='86' left='138' width='46' height='61'/>
34+
<box top='103' left='207' width='53' height='48'/>
35+
<box top='45' left='323' width='55' height='56'/>
36+
<box top='68' left='447' width='55' height='53'/>
37+
<box top='120' left='508' width='61' height='59'/>
38+
</image>
39+
<image file='faces/faces_008.jpg'>
40+
<box top='31' left='36' width='95' height='104'/>
41+
</image>
42+
<image file='faces/faces_009.jpg'>
43+
<box top='94' left='171' width='96' height='98'/>
44+
</image>
45+
<image file='faces/faces_010.jpg'>
46+
<box top='53' left='63' width='66' height='61'/>
47+
<box top='48' left='131' width='57' height='64'/>
48+
</image>
49+
<image file='faces/faces_011.jpg'>
50+
<box top='68' left='115' width='33' height='28'/>
51+
<box top='52' left='155' width='31' height='32'/>
52+
<box top='62' left='191' width='33' height='37'/>
53+
<box top='118' left='205' width='29' height='29'/>
54+
<box top='125' left='158' width='38' height='35'/>
55+
<box top='120' left='122' width='26' height='28'/>
56+
</image>
57+
<image file='faces/faces_012.jpg'>
58+
<box top='79' left='88' width='104' height='99'/>
59+
</image>
60+
<image file='faces/faces_013.jpg'>
61+
<box top='21' left='8' width='41' height='44'/>
62+
<box top='27' left='64' width='57' height='68'/>
63+
</image>
64+
<image file='faces/faces_014.jpg'>
65+
<box top='61' left='170' width='62' height='65'/>
66+
</image>
67+
<image file='faces/faces_015.jpg'>
68+
<box top='153' left='212' width='112' height='110'/>
69+
</image>
70+
<image file='faces/faces_016.jpg'>
71+
<box top='111' left='58' width='171' height='163'/>
72+
</image>
73+
<image file='faces/faces_017.jpg'>
74+
<box top='36' left='177' width='63' height='59'/>
75+
<box top='193' left='74' width='61' height='63'/>
76+
</image>
77+
<image file='faces/faces_018.jpg'>
78+
<box top='111' left='67' width='34' height='37'/>
79+
<box top='100' left='105' width='36' height='39'/>
80+
<box top='213' left='92' width='38' height='38'/>
81+
<box top='148' left='126' width='41' height='39'/>
82+
<box top='133' left='173' width='35' height='31'/>
83+
<box top='92' left='215' width='32' height='44'/>
84+
<box top='144' left='258' width='36' height='35'/>
85+
<box top='148' left='320' width='43' height='41'/>
86+
<box top='107' left='375' width='37' height='43'/>
87+
</image>
88+
<image file='faces/faces_019.jpg'>
89+
<box top='89' left='42' width='51' height='58'/>
90+
<box top='118' left='105' width='49' height='61'/>
91+
<box top='108' left='165' width='61' height='64'/>
92+
<box top='129' left='237' width='65' height='70'/>
93+
</image>
94+
<image file='faces/faces_020.jpg'>
95+
<box top='295' left='249' width='175' height='145'/>
96+
</image>
97+
<image file='faces/faces_021.jpg'>
98+
<box top='271' left='193' width='57' height='55'/>
99+
<box top='275' left='385' width='57' height='57'/>
100+
</image>
101+
<image file='faces/faces_022.jpg'>
102+
<box top='92' left='26' width='59' height='51'/>
103+
<box top='36' left='156' width='58' height='55'/>
104+
<box top='50' left='284' width='53' height='50'/>
105+
</image>
106+
<image file='faces/faces_023.jpg'>
107+
<box top='291' left='522' width='153' height='143'/>
108+
</image>
109+
<image file='faces/faces_024.jpg'>
110+
<box top='141' left='172' width='145' height='123'/>
111+
</image>
112+
<image file='faces/faces_025.jpg'>
113+
<box top='131' left='48' width='473' height='418'/>
114+
</image>
115+
<image file='faces/faces_026.jpg'>
116+
<box top='114' left='52' width='70' height='64'/>
117+
<box top='263' left='79' width='75' height='74'/>
118+
<box top='159' left='126' width='56' height='63'/>
119+
<box top='178' left='208' width='59' height='63'/>
120+
<box top='82' left='223' width='61' height='60'/>
121+
<box top='122' left='303' width='63' height='67'/>
122+
<box top='256' left='304' width='61' height='64'/>
123+
<box top='197' left='375' width='82' height='73'/>
124+
</image>
125+
<image file='faces/faces_027.jpg'>
126+
<box top='28' left='106' width='68' height='71'/>
127+
</image>
128+
<image file='faces/faces_028.jpg'>
129+
<box top='219' left='129' width='82' height='81'/>
130+
<box top='228' left='224' width='82' height='75'/>
131+
<box top='219' left='333' width='83' height='82'/>
132+
</image>
133+
<image file='faces/faces_029.jpg'>
134+
<box top='91' left='111' width='42' height='35'/>
135+
<box top='159' left='153' width='38' height='38'/>
136+
<box top='82' left='213' width='37' height='31'/>
137+
<box top='71' left='284' width='40' height='37'/>
138+
<box top='120' left='292' width='33' height='36'/>
139+
<box top='84' left='348' width='33' height='39'/>
140+
<box top='91' left='405' width='35' height='39'/>
141+
</image>
142+
<image file='faces/faces_030.jpg'>
143+
<box top='35' left='22' width='440' height='421'/>
144+
</image>
145+
<image file='faces/faces_031.jpg'>
146+
<box top='93' left='59' width='205' height='202'/>
147+
</image>
148+
<image file='faces/faces_032.jpg'>
149+
<box top='33' left='84' width='54' height='53'/>
150+
<box top='56' left='155' width='40' height='40'/>
151+
<box top='50' left='234' width='36' height='41'/>
152+
<box top='42' left='320' width='46' height='48'/>
153+
</image>
154+
<image file='faces/faces_033.jpg'>
155+
<box top='37' left='27' width='44' height='43'/>
156+
</image>
157+
<image file='faces/faces_034.jpg'>
158+
<box top='134' left='128' width='99' height='103'/>
159+
</image>
160+
<image file='faces/faces_035.jpg'>
161+
<box top='108' left='162' width='219' height='197'/>
162+
</image>
163+
<image file='faces/faces_036.jpg'>
164+
<box top='29' left='176' width='82' height='87'/>
165+
</image>
166+
<image file='faces/faces_037.jpg'>
167+
<box top='78' left='110' width='68' height='68'/>
168+
<box top='56' left='244' width='53' height='57'/>
169+
</image>
170+
<image file='faces/faces_038.jpg'>
171+
<box top='37' left='112' width='41' height='48'/>
172+
<box top='38' left='204' width='45' height='46'/>
173+
</image>
174+
<image file='faces/faces_039.jpg'>
175+
<box top='25' left='35' width='39' height='39'/>
176+
</image>
177+
<image file='faces/faces_040.jpg'>
178+
<box top='62' left='58' width='77' height='85'/>
179+
</image>
180+
<image file='faces/faces_041.jpg'>
181+
<box top='84' left='115' width='155' height='161'/>
182+
</image>
183+
<image file='faces/faces_042.jpg'>
184+
<box top='353' left='159' width='326' height='322'/>
185+
</image>
186+
<image file='faces/faces_043.jpg'>
187+
<box top='189' left='271' width='52' height='43'/>
188+
</image>
189+
<image file='faces/faces_044.jpg'>
190+
<box top='133' left='65' width='34' height='35'/>
191+
<box top='54' left='114' width='39' height='38'/>
192+
<box top='260' left='135' width='43' height='42'/>
193+
<box top='233' left='260' width='29' height='37'/>
194+
<box top='42' left='337' width='37' height='36'/>
195+
<box top='95' left='399' width='44' height='43'/>
196+
</image>
197+
</images>
198+
</dataset>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?xml version="1.0" encoding="ISO-8859-1" ?>
2+
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4+
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes' />
5+
6+
<!-- ************************************************************************* -->
7+
8+
<xsl:variable name="max_images_displayed">30</xsl:variable>
9+
10+
<!-- ************************************************************************* -->
11+
12+
<xsl:template match="/dataset">
13+
<html>
14+
<head>
15+
16+
<style type="text/css">
17+
div#box{
18+
position: absolute;
19+
border-style:solid;
20+
border-width:1px;
21+
border-color:red;
22+
}
23+
24+
div#circle{
25+
position: absolute;
26+
border-style:solid;
27+
border-width:1px;
28+
border-color:red;
29+
border-radius:7px;
30+
width:1px;
31+
height: 1px;
32+
}
33+
34+
div#label{
35+
position: absolute;
36+
color: red;
37+
}
38+
39+
div#img{
40+
position: relative;
41+
margin-bottom:2em;
42+
}
43+
44+
45+
pre {
46+
color: black;
47+
margin: 1em 0.25in;
48+
padding: 0.5em;
49+
background: rgb(240,240,240);
50+
border-top: black dotted 1px;
51+
border-left: black dotted 1px;
52+
border-right: black solid 2px;
53+
border-bottom: black solid 2px;
54+
}
55+
56+
</style>
57+
58+
</head>
59+
60+
<body>
61+
Dataset name: <b><xsl:value-of select='/dataset/name'/></b> <br/>
62+
Dataset comment: <pre><xsl:value-of select='/dataset/comment'/></pre> <br/>
63+
Number of images: <xsl:value-of select="count(images/image)"/> <br/>
64+
Number of boxes: <xsl:value-of select="count(images/image/box)"/> <br/>
65+
<br/>
66+
<hr/>
67+
68+
<!-- Show a warning if we aren't going to show all the images -->
69+
<xsl:if test="count(images/image) &gt; $max_images_displayed">
70+
<h2>Only displaying the first <xsl:value-of select="$max_images_displayed"/> images.</h2>
71+
<hr/>
72+
</xsl:if>
73+
74+
75+
<xsl:for-each select="images/image">
76+
<!-- Don't try to display too many images. It makes your browser hang -->
77+
<xsl:if test="position() &lt;= $max_images_displayed">
78+
<b><xsl:value-of select="@file"/></b> (Number of boxes: <xsl:value-of select="count(box)"/>)
79+
<div id="img">
80+
<img src="{@file}"/>
81+
<xsl:for-each select="box">
82+
<div id="box" style="top: {@top}px; left: {@left}px; width: {@width}px; height: {@height}px;"></div>
83+
84+
<!-- If there is a label then display it in the lower right corner. -->
85+
<xsl:if test="label">
86+
<div id="label" style="top: {@top+@height}px; left: {@left+@width}px;">
87+
<xsl:value-of select="label"/>
88+
</div>
89+
</xsl:if>
90+
91+
<xsl:for-each select="part">
92+
<!--
93+
<div id="label" style="top: {@y+7}px; left: {@x}px;">
94+
<xsl:value-of select="@name"/>
95+
</div>
96+
-->
97+
<div id="circle" style="top: {(@y)}px; left: {(@x)}px; "></div>
98+
</xsl:for-each>
99+
</xsl:for-each>
100+
</div>
101+
</xsl:if>
102+
</xsl:for-each>
103+
</body>
104+
</html>
105+
</xsl:template>
106+
107+
<!-- ************************************************************************* -->
108+
109+
</xsl:stylesheet>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[annotated.jpg]
2+
backuphash=49753
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[annotated.jpg]
2+
filters=crop64=1,fffffc31;
3+
crop=rect64(fffffc31)
4+
moddate=ae861dece4add601
5+
width=525
6+
height=538
7+
textactive=0
264 KB
2.89 MB
106 KB

0 commit comments

Comments
 (0)