![]() Expected boundary '-' not found, instead found a line of 50 bytes Expected boundary '-' not found, instead found a line of 12 bytes Expected boundary '-' not found, instead found a line of 98 bytes Expected boundary '-' not found, instead found a line of 8 bytes Expected boundary '-' not found, instead found a line of 127 bytes As soon as I second client connects, get following dump many times and server crashes: When first client connects, streaming works perfectly. I am having issue when multiple clients connect to the server. Would you mind giving a bit more detail and example of how to actually use the above code? I assume I would kick it off in a terminal and let it run, at which time I could access the stream via a browser, but I'm not sure how to actually save images from OpenCV/SimpleCV to the server.Īnd a followup, is there a reason you're not just using Apache? I'm sure there was a good reason, it just seems it's already installed with most Linux distros so I'm not sure why one would write another server. I don't understand how to write the code to get the components to talk to eachother. I discovered your code above when starting to work through that tutorial. There is a post here about streaming OpenCV images via Apache. I thought maybe it would be more reliable if I were to somehow get the stream to write to a location and then use Apache to actually serve it up. I'm presently using SimpleCV, which includes an mjpeg streaming server that seems to work in a similar way to this code, however with that server I often have to re-load the page a few times to get the image feed to appear, and sometimes it disappears after it's been streaming for a while. Please forgive me I'm a bit of a noob at this. I have a couple questions maybe someone could help with. Server = ThreadedHTTPServer(( 'localhost', 8080), CamHandler) """Handle requests in a separate thread."""Ĭapture. send_header( 'Content-type', 'text/html')Ĭlass ThreadedHTTPServer( ThreadingMixIn, HTTPServer): ![]() send_header( 'Content-length', str( tmpFile. send_header( 'Content-type', 'image/jpeg') ![]() Author: Igor Maculan - Simple mjpg stream http serverįrom BaseHTTPServer import BaseHTTPRequestHandler, HTTPServerĬlass CamHandler( BaseHTTPRequestHandler):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |