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
''' usage : | |
python3 Client.py -v videos/video3.mkv | |
''' | |
import socket | |
import numpy as np | |
import cv2 | |
import pickle | |
import struct | |
import time | |
import sys |
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
''' usage : | |
python3 Server.py | |
''' | |
import numpy as np | |
import cv2 | |
import socket | |
import pickle | |
import struct | |
from Recognize import * | |
if __name__ == "__main__": |
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
import socket | |
if __name__ == "__main__": | |
HOST = "localhost" | |
PORT = 3333 | |
try: | |
client_Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
print("\n[*] Socket successfully created") | |
except socket.error as err: | |
print("\n[*] Socket creation failed with error : ",err) | |
print("\n[*] Connecting to server @ ip = {} and port = {}".format(HOST,PORT)) |
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
import socket | |
import sys | |
import time | |
if __name__ == "__main__": | |
HOST = "localhost" | |
PORT = 3333 | |
try: | |
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
print("\n[*] Socket successfully created") | |
except socket.error as err: |
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
import cv2 | |
from xml.dom import minidom | |
import numpy as np | |
from scipy.signal import convolve2d as conv | |
import matplotlib.pyplot as plt | |
import sys | |
if __name__ == "__main__": | |
# path to the cascade file | |
cascade_path = "Haar_Cascades/haarcascade_frontalface_default.xml" | |
# open and parse the xml file |
NewerOlder