You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
<!DOCTYPE html>
|
|
<html lang="ja">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>物体検出</title>
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
</head>
|
|
|
|
<body class="bg-light">
|
|
<div class="container">
|
|
<div class="py-5 text-center">
|
|
<h1>物体検出</h1>
|
|
</div>
|
|
<div class="row justify-content-center">
|
|
<form method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<div>
|
|
<label>画像ファイル</label>
|
|
</div>
|
|
<div>
|
|
{{form.file}}
|
|
</div>
|
|
{% if result %}
|
|
<div>
|
|
<img src="{{ result }}" class="img-responsive">
|
|
</div>
|
|
{% endif %}
|
|
<hr>
|
|
{% for error in form.file.errors %}
|
|
{{error}}
|
|
{% endfor %}
|
|
<button class="btn btn-primary btn-lg btn-block" type="submit">送信</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|