Skip to content

Instantly share code, notes, and snippets.

View ajayverse404's full-sized avatar

Ajay Ramesh ajayverse404

View GitHub Profile
@ajayverse404
ajayverse404 / asynchronous_caching_video_stream.py
Created July 31, 2020 17:07 — forked from zongfan2/asynchronous_caching_video_stream.py
Asynchronous caching and analysis of video stream with opencv and multithreading
import cv2
from redis import ConnectionPool, Redis
import numpy as np
import json, time
from threading import Thread, Event
redis_config = {"server": "localhost",
"passwd": '',
"port": '6379',
"db": 0}