video-capture

Capture video using webcam and save as avi using c# [duplicate]

假装没事ソ 提交于 2019-12-07 07:02:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Webcam capture and convert to avi Is there any way of capturing video from webcam, encode and save the video as an avi file (as a movie) using c#? 回答1: Use AForge . Well tested, well documented, well maintained. AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms,

OpenCV (cv2 in Python) VideoCapture not releasing camera after deletion

谁说我不能喝 提交于 2019-12-07 04:57:05
问题 I am relatively new to Python, just having learnt it over the past month or so and have hacked this together based off examples and others' code I found online. I have gotten a Tkinter GUI to display the feed from a webcam as a loop of continuously updated images on a canvas. Quitting the GUI and re-running the script every other time results in this error: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__ return

Cropping a video file with defined width, length, and pixel location

狂风中的少年 提交于 2019-12-07 03:41:43
问题 I an trying to create a program that will detect a face in a video. There are a few requirements that must be passed before I accept the "face". After all of the requirements are met I then want to take the frames that hold that "face" and crop them to make the face the area of focus. The program will go through every frame and do this, then take the new video and make that into a video file. I have never worked with video files, or image file so this is all new to me. I am currently writing

Get/set video resolution when capturing image

纵然是瞬间 提交于 2019-12-07 02:30:42
I'm capturing images from my webcam with some code that mainly bases on this: Using the Sample Grabber . Here I only get the default resolution of 640x480 while the connected camera is able to show more (other capture applications show a bigger resolution). So, how can I: retrieve the list of available resolutions set one of these resolutions so that the captured image comes with it? Roman R. IAMStreamConfig interface lists capabilities and lets you select resolution of interest. enumerating media types on an unconnected yet pin will list you specific media types (amd resolutions) the camera

how to get the latest frame from capture device (camera) in opencv [python]

筅森魡賤 提交于 2019-12-06 19:43:33
问题 I want to connect to a camera, and only capture a frame when an event happens (e.g. keypress). A simplified version of what I'd like to do is this: cap = cv2.VideoCapture(device_id) while True: if event: img = cap.read() preprocess(img) process(img) cv.Waitkey(10) However, cap.read seems to only capture the next frame in the queue, and not the latest. I did a lot of searching online, and there seems to be a lot of questions on this but no definitive answer. Only some dirty hacks which involve

Record video with Accord.net (AForge)

早过忘川 提交于 2019-12-06 16:44:22
I used Accord.net (AForge) for connect to the webcam and record video But stored videos is slow motion ... this my project : using AForge.Video; using AForge.Video.DirectShow; using AForge.Video.FFMPEG; using System; using System.Drawing; using System.IO; using System.Threading; using System.Windows.Forms; namespace CaptureWebcam { public partial class Form1 : Form { private VideoCaptureDeviceForm captureDevice; private string path = Path.GetDirectoryName(Application.ExecutablePath) + @"\Videos\"; private FilterInfoCollection videoDevice; private VideoCaptureDevice videoSource; private

Video re-streaming server (video output format)

瘦欲@ 提交于 2019-12-06 15:53:47
I need to develop a video streaming server which would stream a live video to multiple users. It needs to support the following "video" sources for the re-stream server: web-camera surveillance camera (already supports MJPG stream) scanner I understand that I would need a different driver for adding support to each video input device. I also need to support the video-display in: web-browsers Mozilla Firefox 3.6 Internet Explorer 8 desktop applications developed in C++ / QT 4.6 My questions: What would be a good video output format that can be used to support the required browsers/applications?

Matlab: Tempo-Alignment according to Timestamps

こ雲淡風輕ζ 提交于 2019-12-06 14:52:41
May be it is so simple but I'm new to Matlab and not good in Timestamps issues in general. Sorry! I have two different cameras each contains timestamps of frames. I read them to two arrays TimestampsCam1 and TimestampsCam2: TimestampsCam1 contains 1500 records and the timestamps are in Microseconds as follows: 1 20931160389 2 20931180407 3 20931200603 4 20931220273 5 20931240360 ... and TimestampsCam2 contains 1000 records and the timestamps are in Milliseconds as follows: 1 28275280 2 28315443 3 28355607 4 28395771 5 28435935 ... The first camera starts capturing first and ends a bit later

Why OpenCV's `cvCreateCameraCapture` and `cvCreateFileCapture` do not work?

人盡茶涼 提交于 2019-12-06 12:27:20
问题 Have an AVI videofile, and a webcam. cvQueryFrame returns null in both cases. Code is applied(only for cam): #include "highgui.h" #include <iostream> using namespace std; int main( int argc, char** argv ) { cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE ); cvWaitKey(0); CvCapture* capture = cvCreateCameraCapture(-1); assert(capture != NULL); IplImage* frame; while(1){ frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "KillCam", frame ); char c = cvWaitKey(33); if( c == 30 )

Display timer while video recording android

房东的猫 提交于 2019-12-06 12:23:08
问题 I am making a video recorder and i want to have the time duration of how much time did the user have recorder the video. The time will counts upwards. in order to calculate the time, im using thread and the calculation start when the user click the start button and it will stop when the user click the stop button. for the timer thread im referring the tutorial from here. however my problem here is the timer is not working and i think the thread is not doing its job. below is my logcat. Here's