ip-camera

IP camera Python error

时光总嘲笑我的痴心妄想 提交于 2019-12-03 22:59:28
问题 I am trying to access a video from an IP camera. I am using OpenCV and Python to do so. The code that I have tried is given below: import numpy as np import cv2 from cv2 import cv camera=cv.CaptureFromFile("http://root:root@192.168.0.90/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg") if camera is None: print 'Camera is null' else: print 'Camera is not null' cv.NamedWindow("win") while True: image=cv.QueryFrame(camera) cv.ShowImage("win", image) k=int(cv.WaitKey(10)) if k is 27:

C++ code Capturing image from IP / Ethernet Cameras (AXIS Cam)

妖精的绣舞 提交于 2019-12-03 22:13:53
问题 I've 4 Axis IP cams. I need a code to capture image from those cams. I've opencv code to capture image from USB cams but I don't kno how to capture from IP cams. 回答1: int main() { Mat frame; namedWindow("video", 1); VideoCapture cap("http://150.214.93.55/mjpg/video.mjpg"); while ( cap.isOpened() ) { cap >> frame; if(frame.empty()) break; imshow("video", frame); if(waitKey(30) >= 0) break; } return 0; } no idea, how your urls look like, but opencv seems to insist, it has to end with mjpg. so

How to discover onvif devices in C#

不想你离开。 提交于 2019-12-03 12:06:00
I'm developing an application that will probe ONVIF devices attached on network for auto-discovery. According to ONVIF Core specification SOAP format of Probe message is : <?xml version="1.0" encoding="UTF-8"?> <e:Envelope xmlns:e="http://www.w3.org/2003/05/soap-envelope" xmlns:w="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:dn="http://www.onvif.org/ver10/network/wsdl"> <e:Header> <w:MessageID>uuid:84ede3de-7dec-11d0-c360-f01234567890</w:MessageID> <w:To e:mustUnderstand="true">urn:schemas-xmlsoap-org:ws:2005:04:discovery</w

Android Media Player RTSP

不羁岁月 提交于 2019-12-03 08:38:24
I'm trying to watch RTSP streaming on Android device. But if the server set password for the streaming my Android cannot play it. If without password it's ok. Here is my codes. public class VideoFragment extends Fragment implements View.OnClickListener, SurfaceHolder.Callback, MediaPlayer.OnPreparedListener { VideoView m_videoView; SurfaceView m_surfaceView; SurfaceHolder m_surfaceHolder; MediaPlayer m_mediaPlayer; SharedPreferences m_sharedPref; Boolean m_videoStarted; public VideoFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater,

Receiving video stream from an IP camera on android

被刻印的时光 ゝ 提交于 2019-12-03 06:25:33
I have an IP camera which is streaming video in MJPEG format. Now my aim is to receive it and display it in my own custom android app. For this I have three programming alternatives on android platform : Using inbuilt Anrdroid MediaPlayer class Using FFMPEG library in native C and accessing it through JNI Using GStreamer port on android to receive the stream So please suggest a better solution? I have no experience with FFMPEG or GStreamer. So what is the feasibility of doing this? Use gstreamer for it. I have used gstreamer at beagleboard which has 1GHz processor for taking image from 2

How to get an IP camera stream into C#?

天大地大妈咪最大 提交于 2019-12-03 05:23:41
问题 I've used AForge library to make this little program, that shows live feed from a webcam into a PictureBox. private FilterInfoCollection VideoCaptureDevices; private VideoCaptureDevice FinalVideoDevice; private void Form1_Load(object sender, EventArgs e) { VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); try { foreach (FilterInfo VidCapDev in VideoCaptureDevices) { comboBox1.Items.Add(VidCapDev.Name); comboBox1.SelectedIndex = 0; } FinalVideoDevice = new

How do I create a live video recording program on Visual Studio using c#?

久未见 提交于 2019-12-02 13:21:32
I am currently doing a project for school and desperately in need of help. The main gist of the project: I am using 3 Bosch Dinion IP Cameras to film students during a lecture. I have to create a program on Visual Studio that enables the lecturer to view all 3 cameras on one screen, able to record all 3 footages and then save them in a database afterwards. The thing about Bosch is that there is very limited material for me to refer to online. I have already referred to SDKs from Bosch and Ozeki but I can't seem to figure out the codes. I sought help from a few people and they told me to use

C++ code Capturing image from IP / Ethernet Cameras (AXIS Cam)

时光怂恿深爱的人放手 提交于 2019-12-01 10:54:31
I've 4 Axis IP cams. I need a code to capture image from those cams. I've opencv code to capture image from USB cams but I don't kno how to capture from IP cams. int main() { Mat frame; namedWindow("video", 1); VideoCapture cap("http://150.214.93.55/mjpg/video.mjpg"); while ( cap.isOpened() ) { cap >> frame; if(frame.empty()) break; imshow("video", frame); if(waitKey(30) >= 0) break; } return 0; } no idea, how your urls look like, but opencv seems to insist, it has to end with mjpg. so if it doesn't, the trick is to append a dummy parameter: http://my/cool/ip-cam.ie?dummy=video.mjpg if you

IP camera video streaming using openCV in VC++

末鹿安然 提交于 2019-12-01 01:31:59
I have never written VC++ apps and now i am assigned a task of capturing IP camera and saving as files on the harddisk. i was surfing for last 2 days but cant find any suitable link or code for the same. the sample code i found on the net, captures webcam but nothing relevent to reading video streams on rtsp protocols with credentials. please help me for this.. Thanks & Regards user2727765 The below is the code snippet which accesses a public ip camera, which works fine for me. int main(int argc, char *argv[]) { Mat frame; namedWindow("video", 1); VideoCapture cap("http://66.184.211.231/mjpg

warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:540)

大兔子大兔子 提交于 2019-12-01 00:49:02
I am trying to display the video feed from IP camera getting the following error warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:540) Here's the code for the same. #include <stdio.h> #include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int main(int, char**) { VideoCapture vcap; Mat image; // This works on a D-Link CDS-932L const string videoStreamAddress = "http://admin:admin123@172.41.20.55:80/? action=stream?dummy=param.mjpg";//From mjpeg streamer //const string videoStreamAddress = "http://192.168.1.13:8080