Skip to content

Instantly share code, notes, and snippets.

View flotwig's full-sized avatar

Zach Bloomquist flotwig

View GitHub Profile
import cv2
import numpy as np
import time
def filter_image(img, hsv_lower, hsv_upper):
img_filt = cv2.medianBlur(img, 11)
hsv = cv2.cvtColor(img_filt, cv2.COLOR_BGR2HSV)
mask = cv2.inRange(hsv, hsv_lower, hsv_upper)
return mask
@flotwig
flotwig / 1. server.py.md
Last active February 18, 2019 03:33 — forked from IbroCalculus/server.py
Server code for python remote access of another machine on which the server part of this code has been installed

import socket

s = socket.socket()

host = socket.gethostname() port = 9009 s.bind((host,port)) print('This host/server ID is: ', host) print('\n',host,'has been binded to',port) print('\nServer is listening for incoming connections')

[2023-04-02T16:13:32-04:00] [2023-04-02T16:18:32-04:00]
[2023-04-01T23:57:36-04:00] [2023-04-02T01:39:11-04:00]
[2023-04-01T23:30:06-04:00] [2023-04-01T23:45:06-04:00]
[2023-04-01T20:03:54-04:00] [2023-04-01T22:34:38-04:00]
[2023-03-30T12:45:23-04:00] [2023-03-30T13:52:35-04:00]
[2023-03-30T12:39:11-04:00] [2023-03-30T12:44:53-04:00]
[2023-03-29T12:14:51-04:00] [2023-03-29T12:19:51-04:00]
[2023-03-28T12:36:13-04:00] [2023-03-28T13:44:10-04:00]
[2023-03-28T02:56:59-04:00] [2023-03-28T03:03:36-04:00]
[2023-03-28T02:49:11-04:00] [2023-03-28T02:54:11-04:00]