Skip to content

Commit

Permalink
Penultimate changes and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
S-JZ committed Oct 22, 2021
1 parent 40de2b0 commit 7b2b713
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/virtualscreen/doodle.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="container">
<div class="row">
<div class="col-md-12 text-center text-md-left p-2">
<img src="{% static "assets/img/ins_VD.jpeg" %}" class="d-block w-100" alt="Gestures">
<img src="{% static "assets/img/ins_VD.jpeg" %}" width="30" height="418" class="d-block w-100" alt="Gestures">
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/virtualscreen/gf.html
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@
<li class="form-line" data-type="control_button" id="id_2">
<div id="cid_2" class="form-input-wide" data-layout="full">
<div data-align="center" class="form-buttons-wrapper form-buttons-center jsTest-button-wrapperField">
<p><a href="{% url 'thankyou' %}" id="input_2" type="button" class="form-submit-button submit-button jf-form-buttons jsTest-submitField">Order Now</a></p>
<p><a href="{% url 'thankyou' %}" type="button" class="form-submit-button submit-button jf-form-buttons jsTest-submitField">Order Now</a></p>
</div>
</div>
</li>
Expand Down
7 changes: 3 additions & 4 deletions virtual_doodle/Navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ def standard_scroll(key='down'):
hover_and_click(True, True, index_x, index_y)
t1 = time.time()
l1, img1 = hand_map.calc_dis(tips[0], tips[1], frame)
if l1 < 10:
if l1 < 15:
status = False
if not status:
if up_fingers[0] == up_fingers[1] == up_fingers[2] == up_fingers[3] == up_fingers[4] == 1:
status = True
else:
l2, img2 = hand_map.calc_dis(tips[0], tips[1], frame)
if l2 > 60:
if l2 > 40:
standard_scroll()
else:
standard_scroll('up')
Expand All @@ -89,5 +89,4 @@ def standard_scroll(key='down'):
break

cap.release()
cv2.destroyAllWindows()

cv2.destroyAllWindows()
1 change: 1 addition & 0 deletions virtualscreen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from virtual_doodle import Virtual_Doodle, Navigation
from .models import Contact
from django.contrib import messages
import cv2


def home(request):
Expand Down

0 comments on commit 7b2b713

Please sign in to comment.