video-capture

Appcelerator Titanium: how to record video?

Deadly 提交于 2019-12-13 12:36:37
问题 How to record video in Appcelerator Titanium and store in a specific location ? I am using an Android 2.3.6 device. This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); as an activityForResult but the callback in Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... }); is never called, none of

How to create multiple VideoCapture Objects

不羁的心 提交于 2019-12-13 09:28:29
问题 I wanted to create multiple VideoCapture Objects for stitching video from multiple cameras to a single video mashup. for example: I have path for three videos that I wanted to be read using Video Capture object shown below to get the frames from individual videos,so they can be used for writing. Expected:For N number of video paths cap0=cv2.VideoCapture(path1) cap1=cv2.VideoCapture(path2) cap2=cv2.VideoCapture(path3) . . capn=cv2.VideoCapture(path4) similarly I also wanted to create frame

Linking error: undefined reference to `cv::VideoCapture::open(std::string const&)`

China☆狼群 提交于 2019-12-13 07:03:04
问题 I'm trying to use an .avi file as my source. (Camera capture already works.) My project compiles without problems, but during linking I get the error: undefined reference to 'cv::VideoCapture::open(std::string const&)' What should I do? In which library is this std::string overload of VideoCapture::open() put? Edit: VideoCapture(0) (camera capture) compiles, links and works, so VideoCapture(std::string) has to be somewhere else that in libs I'm already linking with... right? Edit: OpenCV

Windows Mobile / Directdraw: Rotate video stream

血红的双手。 提交于 2019-12-13 05:15:09
问题 Follow up from: Directdraw: Rotate video stream I managed to preview the camera's video stream, but the image is rotated by 90° to landscape mode. I'm now searching for a way to rotate the camera image back to normal, but the problem is I don't even know where to start: Is this done in the VideoCaptureFilter, the VideoInfoHeader, in a DDSURFACEDESC structure? Can the rotation only be done by using an additional filter? Is it a filter setting? 回答1: I found out that this is usually done with

MTCNN_face_detection_alignment lagging in IP camera, Convention behind opencv cv2 videocapture frame matrix

倖福魔咒の 提交于 2019-12-13 03:11:59
问题 I am just trying to detect and recognize faces from the frame read through CV2 VideoCapture. For detection, using Tensorflow implementation of the face detection / alignment algorithm found at https://github.com/kpzhang93/MTCNN_face_detection_alignment. MTCNN Face detection process has no lag with builtin webcam and external camera connected with USB. However when it comes from IP camera there is a considerable lagging from detection algorithm. The algorithm takes more time to process single

Very Slow Processing of my Opencv Application

自闭症网瘾萝莉.ら 提交于 2019-12-12 22:18:13
问题 I am building an OpenCV application which captures a video from camera and overlays it on another video after removing the background. I am not able to achieve a reasonable speed as it is playing the output at about 1 fps, whereas my background removal is working at 3fps. Is there a way to display the background video at its normal speed and overlay the processed video at 3fps ? I tried commenting out my code and I realized that the problem lies majorly with the Rendering part itself. I tried

Opening video with openCV +python

微笑、不失礼 提交于 2019-12-12 19:45:26
问题 I using python 2.7 and openCV 2.3.1 (win 7). I trying open video file: stream = cv.VideoCapture("test1.avi") if stream.isOpened() == False: print "Cannot open input video!" exit() But I have warning: warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl_v2.hpp:394) If use video camera ( stream = cv.VideoCapture(0) ), this code works. Any ideas as to what I'm doing wrong? Thanks a lot to all! 回答1: Try using cv.CaptureFromFile() instead. Copy this code if you must: Watch Video

iOS - Creating multiple time-delayed live camera preview views

匆匆过客 提交于 2019-12-12 19:30:01
问题 I have done a ton of research, and haven't yet been able to find a viable solution, for many reasons, which I will outline below. Problem In my iOS app, I want three views that indefinitely show a delayed-live preview of the device's camera. For example, view 1 will show a camera view, delayed for 5s, view 2 will show the same camera view, delayed for 20s, and view 3 will show the same camera view, delayed 30s. This would be used to record yourself performing some kind of activity, such as a

Can you use Elgato's HDMIComponent Game Capture HD as a video-in device in C#?

拜拜、爱过 提交于 2019-12-12 15:55:41
问题 We're wondering if it's possible to capture the video stream from Elgato's Game Capture HD (or something similar--the model/brand doesn't matter) and get it in a window using C#. We haven't found any information on using that product with anything but its own software, nor have we found any other hardware that can capture such a thing. Again, our goal is simply to get a device with Component Out to appear in a window on-screen, nothing else. No recording, no screen capture, no overlays,

OpenCV VideoCapture IP camera reconnection

柔情痞子 提交于 2019-12-12 11:06:15
问题 I'm reading images from a camera through HTTP. This is the code: Mat src; VideoCapture cap(); cap.open("http://192.168.1.10:8008"); // IP camera while(1) { cap.read(src); // Other code } It works perfectly, but after running for a while if I physically disconnect the camera then the code hangs forever in cap.read(src); . I need some way to return from read if, let's say, after 5 seconds there is no new image. There is another problem. If the camera is reconnected while the program is waiting