forked from naver-ai/imagenet-annotation-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamt-question-form.html
217 lines (162 loc) · 8.98 KB
/
amt-question-form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!-- ImageNet Annotation Tool - FE
Copyright (c) 2022-present NAVER Corp.
MIT License -->
<meta content="width=device-width,initial-scale=1" name="viewport" />
<section class="container" id="SurveyLink">
<div class="row" id="workContent">
<div class="col-xs-12 col-md-6 col-md-offset-3">
<p> </p>
<h4>Please read the instruction carefully (takes less than 3 minutes).</h4>
<h4>Time spent reading the instruction is reflected in the reward.</h4>
<p> </p>
<h4>Instructions</h4>
<p>- This HIT contains <strong>10 pages</strong> of image selection tasks.</p>
<p>- Each page contains a task for <strong>1 object class name</strong> and <strong>48 candidate images</strong>.</p>
<p>- Select <strong>all</strong> images corresponding to the shown object class name.</p>
<p>- If unsure, you can use the <strong>Wikipedia link</strong> to learn about the object class.</p>
<p>- When you are done with a page, click <strong>submit</strong> and move on to the next page.</p>
<p> </p>
<h4>Interface</h4>
<p><img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/selection.png" style="border:1px solid black" width="300" /></p>
<p>- Selected images will appear with blue borders.</p>
<p>- If necessary, click on the image again to undo the selection.<br />
<br />
<img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/drawing_negative_sample.png" style="border:1px solid black" width="200" /> <img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/drawing_positive_sample.png" style="border:1px solid black" width="200" /></p>
<p>- Do not select drawings or paintings.<br />
</p>
<h4 class="pointer-only">Red pointer</h4>
<p class="pointer-only"><img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/red_what.png" style="border-width: 1px; border-style: solid; border-color: black;" width="200" /></p>
<p class="pointer-only">- Red pointer indicates the current position of the mouse cursor.</p>
<p class="pointer-only">- Red pointer will be fixed at the position of the image where you click.</p>
<p class="pointer-only">- When you click on the image again to de-select it, the red pointer will also be released.</p>
<p class="pointer-only"><img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/red_bad.png" style="border-width: 1px; border-style: solid; border-color: black;" width="200" /> <img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/red_good.png" style="border-width: 1px; border-style: solid; border-color: black;" width="200" /></p>
<p class="pointer-only">- Try to click on the object of interest.</p>
<p class="pointer-only"><img src="https://hybridsupervision-image-net.s3.us-east-2.amazonaws.com/mturk-readme/red_multi.png" style="border-width: 1px; border-style: solid; border-color: black;" width="300" /></p>
<p class="pointer-only">- When there are multiple objects, click on one of them.</p>
<p class="pointer-only"> </p>
<h4><span style="color: inherit;">Important n</span><span style="color: inherit;">otes on rewards</span></h4>
<p>- The annotations are performed on a separate web page linked below.</p>
<p>- Click on the link to open the page and complete 10 pages of tasks.</p>
<p>- <span style="color:#FF0000;"><strong>DO NOT CLOSE</strong></span> the current page during the annotation.</p>
<p>- When you complete the tasks, you will get a <span style="color:#FF0000;"><strong>unique survey code (e.g. A2F4C9)</strong></span>.</p>
<p>- Put the survey code in the form at the bottom of this page to claim the reward.</p>
<p>- You may be blocked from this task if the quality of the submission does not meet the minimal standard.</p>
<p> </p>
<h4>Content warnings</h4>
<p style="color: red;"><span style="color:#000000;">Some of the images may include nudity and other disturbing contents (e.g. snakes, insects, and birds).</span></p>
<p> </p>
<p> </p>
<!-- Submit Form -->
<h3 style="text-align: center;"><strong>>> <a href="javascript:notYet()" id="annotation_tool_anchor">Link to annotation task <img src="https://img.icons8.com/material-two-tone/24/000000/external-link.png" /></a> (new tab) <<<a href="javascript:notYet()"> </a> </strong></h3>
<p id="error_message" style="text-align: center; color: red;"> </p>
<p style="text-align: center;"> </p>
<div class="form-group"><label for="surveycode">Upon finishing the task, provide the survey code here and click "submit" to claim reward.</label><input class="form-control" id="surveycode" name="surveycode" placeholder="e.g. A2F4C9" required="" type="text" /></div>
<!-- End input from Worker --></div>
</div>
<!-- End Survey Link Layout --></section>
<!-- Please note that Bootstrap CSS/JS and JQuery are 3rd party libraries that may update their url/code at any time. Amazon Mechanical Turk (MTurk) is including these libraries as a default option for you, but is not responsible for any changes to the external libraries --><!-- External CSS references -->
<link crossorigin="anonymous" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" integrity="sha384-IS73LIqjtYesmURkDE9MXKbXqYA8rvKEp/ghicjem7Vc3mGRdQRptJSz60tvrB6+" rel="stylesheet" /><!-- Open internal style sheet -->
<style type="text/css">#collapseTrigger {
color: #fff;
display: block;
text-decoration: none;
}
#submitButton {
white-space: normal;
}
.image {
margin-bottom: 15px;
}
/* CSS for breaking long words/urls */
.dont-break-out {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
.pointer-only,
.blur-only {
display: none;
}
</style>
<script type='text/javascript' src='https://s3.amazonaws.com/mturk-public/externalHIT_v1.js'></script><!-- Close internal style sheet --><!-- External JS references --><script src="https://code.jquery.com/jquery-3.1.0.min.js"
integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"
integrity="sha384-s1ITto93iSMDxlp/79qhWHi+LsIi9Gx6yL+cOKDuymvihkfol83TYbLbOw+W/wv4" crossorigin="anonymous"></script><!-- Open internal javascript --><script>
$(document).ready(function () {
// Configuration 'annotationToolLink', 'version'
var annotationToolLink = "${toolLink}"
var version = "${version}"
var hitDatasetName = "${hitDatasetName}"
var imageNetHitId = "${imageNetHitId}"
var assignmentId = turkGetParam("assignmentId")
var workerId = turkGetParam("workerId")
var hitId = turkGetParam("hitId")
var submitAnchor = document.getElementById("annotation_tool_anchor")
// Validate and set link if validated
if (assignmentId === undefined)
displayErrorMessage("Can't find 'assignmentId'. Try again please.");
else if (workerId === undefined)
displayErrorMessage("Can't find 'workerId'. Try again please.");
else if (hitId === undefined)
displayErrorMessage("Can't find 'hitId'. Try again please.");
else {
submitAnchor.setAttribute("href", annotationToolLink +
"?version=" + version +
"&assignmentId=" + assignmentId +
"&hitDatasetName=" + hitDatasetName +
"&imageNetHitId=" + imageNetHitId +
"&workerId=" + workerId +
"&hitId=" + hitId
)
submitAnchor.setAttribute("target", "_blank");
}
// If pointer-visible version, Display instructions about pointer
if (version === "POINTER_ORIGINAL" || version === "POINTER_NO_ORIGINAL") {
Array.from(document.getElementsByClassName("pointer-only")).forEach(
($el) => {
$el.style.display = "block";
}
)
}
// If no-original version, Display instructions about blur
if (version === "POINTER_NO_ORIGINAL" || version === "NO_POINTER_NO_ORIGINAL") {
Array.from(document.getElementsByClassName("blur-only")).forEach(
($el) => {
$el.style.display = "block";
}
)
}
});
/**
* Gets a URL parameter from the query string
*/
function turkGetParam(name, defaultValue) {
var regexS = "[\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var tmpURL = window.location.href;
var results = regex.exec(tmpURL);
if (results == null) {
return defaultValue;
} else {
return results[1];
}
}
/**
* Display error message and disabling annotation tool link button
*/
function displayErrorMessage(msg) {
document.getElementById("error_message").innerText = msg;
document.getElementById("annotation_tool_anchor").style.opacity = 0.5;
}
/**
* Alert when link anchor is disabled and user clicked
*/
function notYet() {
alert("The link is not available, refresh and try again");
}
</script><!-- Close internal javascript -->