video-capture

Opencv writing and reading from a buffer

左心房为你撑大大i 提交于 2019-12-12 09:54:37
问题 I have two tasks (Threads) each task runs on a different processor(core), the first capture an image repeatedly using OpenCV videocapture() . I only used these two lines for the capture : cv::Mat frame; capture.read(frame); Now I want to display the captured image using the second task. After executing the imshow function within the second task's code : cv::imshow("Display window", frame); I got the following output error : OpenCV Error: Assertion failed (size.width>0 && size.height>0) in

How to choose Full Frames (Uncompressed) as codec for VideoWriter

*爱你&永不变心* 提交于 2019-12-12 09:43:49
问题 i want to store uncompressed frames from a device as a video, but i need to know how to choose " Full Frames (Uncompressed) " as a codec for the VideoWriter (in emgu aka openCV). Iam able to choose it from the dropdown menu when iam passing -1 like this VideoWriter myVideoWriter = new VideoWriter ("myVieoColor.avi", -1 , 15, videoSize, true); But i want to choose the Full Frames (Uncompressed) codec automatically. For example i know i can choose the Lagarith Lossless Video Codec by

Video Recording with webcam on a webpage [closed]

蓝咒 提交于 2019-12-12 08:48:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a requirement of recording video via web cam, on my webpage. What are the available plugins for the same. My website is developed using Ruby on Rails framework Regards, Pankaj 回答1: If an HTML5 solution could be suitable for you, you can take a look to WebRTC (currently supported in Chrome, Firefox and

Unity: Record video from device camera

笑着哭i 提交于 2019-12-12 08:24:16
问题 I want a plugin or a library or a way to record video (sure with sound) in unity (windows standalone) from device camera. Currently, I am able to take screenshots using this camera. Someone says that I can take many screenshots and convert it to one video file. I found a plugin on Asset store called Camera Shoot I want something like it but for windows. Edit 1: Now I am using a library that captures video from unity camera (virtual camera inside unity). I am previewing my camera feed on a

Video capture with 1:1 aspect ratio in iOS

血红的双手。 提交于 2019-12-12 07:06:45
问题 I want to capture videos with iOS camera with 1:1 aspect ratio. I tried with UIImagePickerController, but it don't provide changing aspect ratio. Could anyone give me ideas? Additionally, iPhone app "Viddy" provides 1:1 aspect ratio video capturing http://gyazo.com/1ccba9990bb589961f1d5df23b71b84b.png?1364791668 Thanks! 回答1: GPUImageMovie* movieFile = [[GPUImageMovie alloc] initWithAsset:asset]; GPUImageCropFilter *cropFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0.0, 0

Java openCV 3.0 VideoCapture rtsp stream from Foscam FI9805W

三世轮回 提交于 2019-12-12 05:58:32
问题 I'm trying to get a videostream vom an ip cam with opencv 3.0 in java. Everything works fine if i look for my webcam with this code: VideoCapture camera = new VideoCapture(0); but with the RTSP Stream I get an error. What I found was that it should work to get a RTSP Stream like this: VideoCapture camera = new VideoCapture("rtsp://test:test@192.168.1.76:88/videoMain"); User: test Password: test I am using a Foscam FI9805W. On this website are possible ways to connect but nothings works (http:

Stopping a Directshow graph freezes WinXP when using CC Decoder filter

走远了吗. 提交于 2019-12-12 05:38:50
问题 I have a PC running Windows XP x64 and I am trying to record video+audio and closed caption from Analog TV using a USB PCTV (Conexant Polaris). As a initial test, I have built a simple graph in GraphStudio with the following chain of filters: Crossbar > Video Capture > CC Decoder > Line 21 Decoder > Video Renderer I can play this and see it render a video showing correct closed caption, but almost every time I hit stop in GraphStudio, the computer will freeze and I have to reboot it. I also

how to use Microsoft Video Capture Macros using C#

…衆ロ難τιáo~ 提交于 2019-12-12 05:05:00
问题 I want to make an Windows application using C#.NET in which I capture video from an attached webcam and store it into any location. Can anybody give me pointers on how to get started/accomplish this? 回答1: If your using Winforms, then you need to use a component of DirectX called DirectShow to do this. You can see an example and download source code from this link. If you are using WPF, you can see how this is done from this link. If you need a library that will work with both WPF and Winforms

NullPointerException in FrameGrab.getFrame

不羁岁月 提交于 2019-12-12 04:34:55
问题 I would like to get frame from video using jcodec, but I get NullPointerException. import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.imageio.ImageIO; import org.jcodec.api.FrameGrab; import org.jcodec.api.JCodecException; public class App { public static void main( String[] args ) { int frameNumber = 150; try { BufferedImage frame = new BufferedImage(1, 1, BufferedImage.TYPE_INT

Capture still image from webcam (DirectSHowLib, VB.NET)

别来无恙 提交于 2019-12-12 04:21:43
问题 I'm ashamed, but I'll ask anyway: which is the most straightforward way to take a picture from a webcam with its default size and color-depth? I started playing with DirectShowLib but I'm clueless... Can anyone guive me a guidance? Imports DirectShowLib Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click PictureBox1.Image = Nothing Dim Cam As DsDevice = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice).FirstOrDefault If Cam IsNot