Skip to content

Instantly share code, notes, and snippets.

@Sachin-crypto
Created November 14, 2022 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sachin-crypto/ffcbcfe4b9deb6a452aa1abbd759f3fe to your computer and use it in GitHub Desktop.
Save Sachin-crypto/ffcbcfe4b9deb6a452aa1abbd759f3fe to your computer and use it in GitHub Desktop.
{% extends "layout.html"%}
{% block title %}
Hand Sign Digit Recognition
{% endblock %}
{% block content %}
<div class="container py-5">
<header class="text-white text-center">
<h1 class="display-4">Hand Sign Digit Language Detection</h1>
<p class="lead mb-5">A webapp to detect a digit using hand sign language. Just drop an image of Hand Digit Sign
and see the magic.</p>
</header>
<div class="row py-4">
<div class="col-lg-6 mx-auto">
<!-- Upload image input-->
<form action="{{ url_for('predict_image_file') }}" enctype="multipart/form-data" method="POST">
<div class="input-group mb-3 px-2 py-2 rounded-pill bg-white shadow-sm">
<input class="form-control border-0" id="upload" name="file" type="file">
<label class="font-weight-light text-muted" for="upload" id="upload-label">Choose file</label>
<div class="input-group-append">
<label class="btn btn-light m-0 rounded-pill px-4" for="upload"> <i
class="fa fa-cloud-upload mr-2 text-muted"></i><small
class="text-uppercase font-weight-bold text-muted">Choose file</small></label>
</div>
</div>
<!-- Uploaded image area-->
<p class="font-italic text-white text-center">The image uploaded will be rendered inside the box
below.</p>
<div class="image-area mt-4"><img alt="" class="img-fluid rounded shadow-sm mx-auto d-block"
id="imageResult" name="imageResult"
src="#"></div>
<!-- Submit button-->
<div class="container">
<div class="row">
<div class="col text-center">
<input class="btn btn-primary my-3" type="submit"/>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment