This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
import sys | |
import os | |
import argparse | |
import time | |
import cv2 | |
PATH = os.path.abspath(os.path.dirname(__file__)) |
This file contains hidden or 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
# learnt | |
# import cv2 | |
# import flask and initialize app ... | |
# define global pushed_frame and frame_is_ready variable | |
def generateStreamFrame(): | |
# grab global references to the output frame | |
global pushed_frame, frame_is_ready | |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
__author__ = 'Shi Qi' | |
import sys | |
import os | |
import argparse | |
import numpy as np | |
import cv2 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
__author__ = 'Shi Qi' | |
import sys | |
import os | |
import argparse | |
import json | |
import numpy as np | |
import cv2 |
This file contains hidden or 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
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
MODEL_NAME = "keras_model" | |
GRAM_USAGE = 2048 | |
INPUT_WIDTH = 224 | |
INPUT_HEIGHT = 224 | |
INPUT_CHANNEL = 3 |