ip-camera

How to parse mjpeg http stream from ip camera?

不羁岁月 提交于 2019-11-26 06:59:35
问题 Given below is the code written for getting live stream from an IP Camera. from cv2 import * from cv2 import cv import urllib import numpy as np k=0 capture=cv.CaptureFromFile(\"http://IPADDRESS of the camera/axis-cgi/mjpg/video.cgi\") namedWindow(\"Display\",1) while True: frame=cv.QueryFrame(capture) if frame is None: print \'Cam not found\' break else: cv.ShowImage(\"Display\", frame) if k==0x1b: print \'Esc. Exiting\' break On running the code the output that I am getting is: Cam not

Android ICS and MJPEG using AsyncTask

人盡茶涼 提交于 2019-11-26 02:51:20
问题 I modified the MJPEG viewer code from Android and MJPEG to work using an AsyncTask (and thus work on Ice Cream Sandwich (ICS), 4.0.4) and here is my code. If anyone has any suggestions on how to optimize, cleanup, or do something more proper with the code please let me know. Two issues I\'d appreciate help addressing: If you have the device on a stream then lock the screen and unlock the screen it does not resume playing until you either kill and resume the app or rotate the screen. All my

Android and MJPEG

那年仲夏 提交于 2019-11-26 01:46:51
问题 I need to get the mjpeg stream from an IP camera, anyone know the right way do it? I googled a bit and I find this example http://www.anddev.org/mjpeg_on_android_anyone-t1871.html but I\'ve been stucked when I tried to get the stream from another activity called by the main activity. Here the code: Main acitivity package com.test; public class IntentTest extends Activity { /** Called when the activity is first created. */ ListView myListView = null; @Override public void onCreate(Bundle

Android and MJPEG

99封情书 提交于 2019-11-25 20:51:35
I need to get the mjpeg stream from an IP camera, anyone know the right way do it? I googled a bit and I find this example http://www.anddev.org/mjpeg_on_android_anyone-t1871.html but I've been stucked when I tried to get the stream from another activity called by the main activity. Here the code: Main acitivity package com.test; public class IntentTest extends Activity { /** Called when the activity is first created. */ ListView myListView = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myListView =