Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion real_time_gesture_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from soco import SoCo
import pygame
import time
import os

# General Settings
prediction = ''
Expand Down Expand Up @@ -53,7 +54,7 @@ def decrease(self, amount):
3: 'Palm',
4: 'Peace'}

model = load_model('/Users/brenner/project_kojak/models/VGG_cross_validated.h5')
model = load_model(os.path.dirname(os.path.realpath(__file__)) + '/models/VGG_cross_validated.h5')


def predict_rgb_image(img):
Expand Down