-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
128 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.1.5 on 2021-12-22 03:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('humancounter', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='train', | ||
name='OutputImage', | ||
field=models.CharField(default='a', max_length=100), | ||
), | ||
migrations.AlterField( | ||
model_name='video', | ||
name='OutputVideo', | ||
field=models.CharField(default='a', max_length=100), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.1.5 on 2021-12-22 03:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('humancounter', '0002_auto_20211222_0910'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='train', | ||
name='OutputImage', | ||
field=models.CharField(blank=True, default='a', max_length=100), | ||
), | ||
migrations.AlterField( | ||
model_name='video', | ||
name='OutputVideo', | ||
field=models.CharField(blank=True, default='a', max_length=100), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
{% extends "humancounter/base.html" %} {% block content %} {% load crispy_forms_tags %} | ||
<span class="d-flex justify-content-center"><a href="/web" class="btn btn-success"> | ||
</i> Submit by webcam | ||
</a></span> | ||
|
||
<form method="POST" enctype="multipart/form-data"> | ||
{%csrf_token%} {{form.as_p}} | ||
<div class="row"> | ||
<div class="d-flex justify-content-start"> | ||
<button type="submit" class="btn btn-success btn-block btn-lg"><i class="fas fa-database"></i> | ||
Submit the Video</button> | ||
{%csrf_token%} | ||
<table> | ||
<tr> | ||
<td><label>Upload Video:</label></td> | ||
<td>{{form.video}}</td> | ||
<td> | ||
<button type="submit" class="btn btn-success"> | ||
Submit the Video</button> | ||
</td> | ||
<td> | ||
<a href="/web" class="btn btn-success"> | ||
</i> Submit by webcam | ||
</a> | ||
</td> | ||
<td> | ||
<a href="{% url 'train_insert' %}" class="btn btn-success"> | ||
</i> Submit an Image | ||
</a> | ||
</div> | ||
|
||
|
||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
|
||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters