Skip to content

pyrateml/streamserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multipart Image HTTP Streaming Server.

Install:

pip install git+ssh://git@bitbucket-server.alexandra.dk:7999/~soren.rasmussen/streamserver.git

or

pip install streamserver

Example:

import cv2
import streamserver
cap = cv2.VideoCapture(0)

ret,_ = cap.read()
assert ret == True

with streamserver.StreamServer(JPEG_quality=75,host='localhost',port=5000) as ss:
    while cap.isOpened():
        ret,frame = cap.read()
        ss.set_frame(frame)
        wk = cv2.waitKey(20)
        if wk == ord('q'):
            break
cap.release()

or

ss-imageio

TODO:

  • Multiple streams on same server

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.6%
  • HTML 17.3%
  • Shell 1.1%