All Projects → akmamun → Multi Threading Camera Stream

akmamun / Multi Threading Camera Stream

Multi-threading camera stream to improve video processing performance

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Multi Threading Camera Stream

Phormatics
Using A.I. and computer vision to build a virtual personal fitness trainer. (Most Startup-Viable Hack - HackNYU2018)
Stars: ✭ 79 (+338.89%)
Mutual labels:  flask, camera, opencv
Python Tutorial
🏃 Some of the python tutorial - 《Python学习笔记》
Stars: ✭ 122 (+577.78%)
Mutual labels:  flask, opencv
Flask face detection
Face detection example in Python 3 based on OpenCV and Flask
Stars: ✭ 55 (+205.56%)
Mutual labels:  flask, opencv
Computer Vision
Computer vision exercise with Python and OpenCV.
Stars: ✭ 17 (-5.56%)
Mutual labels:  camera, opencv
Primestereomatch
A heterogeneous and fully parallel stereo matching algorithm for depth estimation, implementing a local adaptive support weight (ADSW) Guided Image Filter (GIF) cost aggregation stage. Developed in both C++ and OpenCL.
Stars: ✭ 191 (+961.11%)
Mutual labels:  camera, opencv
React Native Opencv Tutorial
👩‍🏫Fully working example of the OpenCV library used together with React Native
Stars: ✭ 244 (+1255.56%)
Mutual labels:  camera, opencv
Hiitpi
A workout trainer Dash/Flask app that helps track your HIIT workouts by analyzing real-time video streaming from your sweet Pi using machine learning and Edge TPU..
Stars: ✭ 106 (+488.89%)
Mutual labels:  flask, opencv
React Native Openalpr
An open-source React Native automatic license plate recognition package for OpenALPR
Stars: ✭ 415 (+2205.56%)
Mutual labels:  camera, opencv
Multi Camera Live Object Tracking
Multi-camera live traffic and object counting with YOLO v4, Deep SORT, and Flask.
Stars: ✭ 375 (+1983.33%)
Mutual labels:  flask, opencv
Grip
Program for rapidly developing computer vision applications
Stars: ✭ 314 (+1644.44%)
Mutual labels:  camera, opencv
Live Video Magnification
An OpenCV/Qt based realtime application for Eulerian Video Magnification / Motion Magnification. Works with multiple videos and cameras at the same time and let's you export the magnified videos.
Stars: ✭ 187 (+938.89%)
Mutual labels:  camera, opencv
V4l2loopback cpp
v4l2loopback usage in C++ and from OpenCV
Stars: ✭ 6 (-66.67%)
Mutual labels:  camera, opencv
Neuvision
Structured Light based 3D scanner
Stars: ✭ 165 (+816.67%)
Mutual labels:  camera, opencv
Live Stream Face Detection
Live Streaming and Face Detection with Flask in Browser
Stars: ✭ 47 (+161.11%)
Mutual labels:  flask, live-streaming
Stereo Vision
This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
Stars: ✭ 160 (+788.89%)
Mutual labels:  camera, opencv
Smartopencv
🔥 🔥 🔥 SmartOpenCV是一个OpenCV在Android端的增强库,解决了OpenCV Android SDK在图像预览方面存在的诸多问题,且无需修改OpenCV SDK源码,与OpenCV的SDK解耦
Stars: ✭ 1,869 (+10283.33%)
Mutual labels:  camera, opencv
Androidfacedetection
Android 平台进行人脸检测的几种方案
Stars: ✭ 106 (+488.89%)
Mutual labels:  camera, opencv
Sltk
An OpenCV-based structured light processing toolkit.
Stars: ✭ 151 (+738.89%)
Mutual labels:  camera, opencv
Ffdynamic
Library with dynamic audio/video composition and runtime control
Stars: ✭ 274 (+1422.22%)
Mutual labels:  opencv, live-streaming
Yasea
RTMP live streaming client for Android
Stars: ✭ 4,557 (+25216.67%)
Mutual labels:  camera, live-streaming

Camera streaming(Open-CV + Flask) and display on different threads with safe synchronization

pip install requirements.txt

Run Server

python app.py

Use Built-in Webcam of Laptop

Put Zero (O) in cv2.VideoCapture(0)
cv2.VideoCapture(0)
 

Use Ip Camera/CCTV/RTSP Link

cv2.VideoCapture('rtsp://username:[email protected]_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')  

Example RTSP Link

cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=0_stream=0.sdp')

Change Channel Number to Change the Camera

cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=1_stream=0.sdp')

Display the resulting frame in browser

cv2.imencode('.jpg', frame)[1].tobytes()

Display the resulting frame in window

Write this end of the line camera.py
if __name__ == "__main__" :
    cap = CameraStream().start()
    while True :
        frame = cap.read()
        cv2.imshow('webcam', frame)
        if cv2.waitKey(1) == 27 :
            break
    cap.stop()
    cv2.destroyAllWindows()      

Credit

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].