-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (26 loc) · 1.55 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Handwriting Recognition in VR: A-Frame Component with API</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src='https://aframe.io/releases/1.4.0/aframe.min.js'></script>
<script src="https://unpkg.com/aframe-troika-text/dist/aframe-troika-text.min.js"></script>
</head>
<body>
<a-scene>
<a-plane id="drawingArea" class="clickable" handwriting-recognition-api="handwritingLanguage: de; size: 20" position="0 1.5 -5" rotation="0 0 0" width="5" height="4"></a-plane>
<a-entity id="outputText" position="0 0.2 -4"
troika-text="value: Console; color: black"></a-entity>
<a-entity id="send" text="value: Send; align: center; width: 3;" position="-2.5 0.2 -4" class="clickable" geometry="primitive: plane; height: 0.3" material="color: black">
</a-entity>
<a-entity id="clear" text="value: Clear; align: center; width: 3;" position="2.5 0.2 -4" class="clickable" geometry="primitive: plane; height: 0.3" material="color: black">
</a-entity>
<a-entity cursor="rayOrigin: mouse" raycaster="objects: .clickable;"></a-entity>
<a-entity class="controller" laser-controls="hand: left" raycaster="objects: .clickable;" line="color: #000000"></a-entity>
<a-sky color="#ECECEC" rotation="0 -90 0"></a-sky>
</a-scene>
<script src='handwriting-recognition-api.js'></script>
</body>
</html>