Skip to content

Instantly share code, notes, and snippets.

View novasush's full-sized avatar
😉
Happy and Focussed

Sushrut Ashtikar novasush

😉
Happy and Focussed
View GitHub Profile
@CasiaFan
CasiaFan / asynchronous_caching_video_stream.py
Last active July 17, 2024 22:46
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 multithreading import Thread, Event
redis_config = {"server": "localhost",
"passwd": '',
"port": '6379',
"db": 0}