-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcamera-view_json.html
175 lines (144 loc) · 5.93 KB
/
camera-view_json.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
<!doctype html>
<html lang=”en”>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Smart Lens</title>
<link rel="stylesheet" href="css/detailViewStyleJSON.css">
<link rel="stylesheet" href="https://unpkg.com/@ivteplo/[email protected]/build/main.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/loadingOverlay.css">
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="js/getDetail_init.js"></script>
</head>
<body>
<!-- Camera -->
<main id="camera">
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<!-- Camera sensor -->
<canvas id="camera--sensor"></canvas>
<h3 id="SmartLens">Smart Lens
<a href="index.html" id="cross">
<span>X</span>
</a>
</h3>
<!-- Camera view -->
<video id="camera--view" autoplay playsinline></video>
<canvas id="canvas_no_display"></canvas>
<input type="range" class="slider" id="zoom">
<div id="sheet" class="column justify-end" aria-hidden="true">
<div id="detailContainer">
<p class="info" id="over-details">
Click on details for more information
</p>
<a id="detail0_0" class="details">
<img src="" class="detailImg">
<span class="detailLabel" id="detail0_0Label"></span>
</a>
<a id="detail0_1" class="details">
<img src="" class="detailImg">
<span class="detailLabel" id="detail0_1Label"></span>
</a>
<a id="detail1_0" class="details">
<img src="" class="detailImg">
<span class="detailLabel" id="detail1_0Label"></span>
</a>
<a id="detail1_1" class="details">
<img src="" class="detailImg">
<span class="detailLabel" id="detail1_1Label"></span>
</a>
</div>
<!-- The sheet itself -->
<div class="contents column">
<!-- Sheet controls -->
<header class="controls">
<!-- The thing to drag if you want to resize the sheet -->
<div class="draggable-area">
<div class="draggable-thumb"></div>
</div>
<!-- Button to close the sheet -->
<button id="close-sheet" type="button" title="Close the sheet"><img src="images/icons/down-arrow.png"
class="responsive-image"></button>
</header>
<!-- Body of the sheet -->
<main class="body fill column">
<div id="languageContainer" style="display:none">
<a id="English" href="#">English</a>
<a id="Italian" href="it/camera-view_json.html">Italiano</a>
</div>
<h2 id="artwork">
<span id="artworkTitle"></span>
-
<span id="author"></span>
</h2>
<h3 id="detailName"></h3>
<div class="flex-container">
<div>
<img class="responsive-image" id="detailImage" src="">
</div>
<div id="information">
<audio id="audio" controls src=""></audio>
<button type="button" id="audioGuide">
<img class="responsive-image" src="images/icons/Audio%20Icon.png">
<p>Listen the audio guide</p>
</button>
<button type="button" id="restart">
↻ Restart
</button>
<p id="description">
</p>
</div>
</div>
<video class="responsive-image" id="detailVideo" src="" controls>
</video>
</main>
</div>
</div>
</main>
<!-- Reference to your JavaScript file -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js" type="text/javascript"></script>
<script src="js/webcamManager.js"></script>
<script src="js/bottomSheetManager.js"></script>
<!--Qui si può selezionare la versione di riconoscimento desiderata decommentando lo script di interesse.
WARNING: è necessario fare la stessa cosa anche in ./it/camera-view.html-->
<script src="js/getDetailsObjDet_json.js" type="module"></script>
<!--<script src="js/getDetailsRetrieval.js" type="module"></script>-->
<!--<script src="js/getDetailsClass.js" type="module"></script>-->
<!-- Detail view -->
<div id="detail_view_json">
<div id="detail_close-sheet" >✖</div>
<h2 id="detail_artwork">
<span id="detail_artworkTitle">
</span>
-
<span id="detail_author">
</span>
</h2>
<h3 id="detail_detailName">
</h3>
<div class="flex-container">
<div>
<img class="responsive-image" id="detail_detailImage" src="#" alt="Immagine del dettaglio">
</div>
<div id="detail_information">
<audio id="detail_audio" controls src=""></audio>
<button type="button" id="detail_audioGuide">
<img class="responsive-image" src="images/icons/Audio%20Icon.png" alt="Audio guide icon">
<p>Listen to the guide</p>
</button>
<p id="detail_description">
</p>
</div>
</div>
<video class="responsive-image" id="detail_detailVideo" src="" controls>
</video>
<br class="spacer"/>
</div>
<script src="js/detailTextToSpeech.js"></script>
</body>
</html>