-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
25 lines (25 loc) · 992 Bytes
/
app.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ONNX Model in Browser</title>
<!-- <script src="https://cdn.jsdelivr.net/npm/onnxjs/dist/onnx.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"></script>
<script src="https://docs.opencv.org/3.4.0/opencv.js"></script>
</head>
<body>
<h1>Run ONNX Model in Browser</h1>
<input type="file" id="imageInput" accept="image/*">
<button id="runModel">Run Model</button>
<script src="mtcnnjs/core.js"></script>
<script src="mtcnnjs/image-manipulation.js"></script>
<script src="mtcnnjs/onet.js"></script>
<script src="mtcnnjs/pnet.js"></script>
<script src="mtcnnjs/rnet.js"></script>
<script src="newmtcnn.js"></script>
<script src="app.js"></script>
<canvas id="outputCanvas"></canvas>
<img id="croppedImage" src="" alt="">
</body>
</html>