webcam

OpenCV 2.3: Convert Mat to RGBA pixel array

本秂侑毒 提交于 2019-12-29 06:21:31
问题 I am attempting to use OpenCV to grab frames from a webcam and display them in a window using SFML. VideoCapture returns frames in OpenCV's Mat format. To display the frames, SFML requires a 1D array of pixels in its uint8 format, which (as far as I can tell) is interchangeable with uchar. This array is expected to represent 32 bits per pixel RGBA. So, I have a uchar array, and I'm looping over the Mat data and copying each pixel: VideoCapture cap(0); Mat frame; cap >> frame; uchar* camData =

Webcam cannot find a Player for :vfw://0

杀马特。学长 韩版系。学妹 提交于 2019-12-25 11:11:34
问题 I'm tryin to take a picture in my webcam, I'm just starting to use JMF I just need to take a picture with a webcam and save it to a specified directory I'm using this code import java.awt.Component; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Processor; import javax.media.protocol.FileTypeDescriptor; import javax.swing.JFrame; import javax.swing.JLabel; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * *

Webcam cannot find a Player for :vfw://0

走远了吗. 提交于 2019-12-25 11:10:16
问题 I'm tryin to take a picture in my webcam, I'm just starting to use JMF I just need to take a picture with a webcam and save it to a specified directory I'm using this code import java.awt.Component; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Processor; import javax.media.protocol.FileTypeDescriptor; import javax.swing.JFrame; import javax.swing.JLabel; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * *

Good and compatible webcam to do image processing/computer vision?

痞子三分冷 提交于 2019-12-25 02:42:19
问题 Please help. Rather than a actual question, this is a questions asking for feedback, suggestion and recommendation on what is a webcam good enough for image processing. I need a reasonable low light, self-focus camera that has enough depth of field to capture image. Digital cameras are too bulky for use in my application and also need software to interface to an embedded processor, which I wish to avoid. The image segmentation I am doing is quite tough in my opinion, requires edge detection,

cannot access /dev/video*: No such file or directory

☆樱花仙子☆ 提交于 2019-12-24 16:43:05
问题 So I'm working on a zynq z7000 card and I made a Linux Kernel on it. I put a Linaro as a Root File System. I managed to boot the card however I can only use mouse and keyboard usb devices. I tried webcam and flash drives but they are not working. when I use : lsusb I get the webcam device ... Bus 001 Device 005: ID 046d:0805 Logitech, Inc. Webcam C300 However when I try ls /dev/video* I get ls: cannot access /dev/video*: No such file or directory I've used these configurations to build my

c++ opencv get encoded webcam stream

让人想犯罪 __ 提交于 2019-12-24 13:26:38
问题 I am currently work on a project that capture video from webcam and send the encoded stream via UDP to do a real time streaming. #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; int main(int argc, char* argv[]) { VideoCapture cap(0); // open the video camera no. 0 double dWidth = cap.get(CV_CAP_PROP_FRAME_WIDTH); //get the width of frames of the video double dHeight = cap.get(CV_CAP_PROP_FRAME_HEIGHT); //get the height of frames of the video

OpenCV: how to be capable to capture frames from same camera with 2 different apps?

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:28:17
问题 So I have 2 diffrent apps that use web-cameras (on Windows) I created tham bouth but I need them to be separate, stand alone apps. I want tham bouth to be capable to capture from same camera. What should I add to my capturing OpenCV code? 回答1: You can't. Only one application can access any device at a time - even with common I/O devices like hard disks. If multiple applications could access a device simultaneously, it would be confused whose instructions to follow. You can use SplitCam,

How to use take a Photo in MS-Access in Vista or later - maybe MediaCapture or DirectShow

旧巷老猫 提交于 2019-12-24 12:17:56
问题 How to use MediaCapture or DirectShow API in MS-Access? As WIA is outdated for cameras. WIA examples exist but not MediaCapture or DirectShow I almost never use VBA but need to capture a photo using Access 2013. I have found a .net example by MS that looks like it will do want I need, how to get it to work in VBA in Access? ' Using Windows.Media.Capture.CameraCaptureUI API to capture a photo Dim dialog As New CameraCaptureUI() Dim file As StorageFile = Await dialog.CaptureFileAsync

How can I detect that system has webcam plugin installed or not using JavaScript?

天大地大妈咪最大 提交于 2019-12-24 12:06:03
问题 In my app, I am using webcam functionality. But if user doesn't have webcam plugin installed in his system then I want to prompt a message to him. There are 2 things: webcam plugin is not installed webcam plugin is installed, but webcam is not present. So I want the first condition code in JavaScript EDIT I am using this code for finding whether webcam is present or not $('#cambg').webcam({ width : 320, height : 240, mode : 'callback', swffile : '/flash/libraries/jquery/webcam/jscam_canvas

Unable to detect Capture Device (webcam) through JMF

会有一股神秘感。 提交于 2019-12-24 10:45:22
问题 I am using JMF to operate my web cam.My usb webcam works perfectly with JMF, I used it in JMStudio however,when I make this call from my java code deviceListVector = CaptureDeviceManager.getDeviceList( null ); my USB "webcam" is detected however when i am trying to detect webcam on my laptop it is not detecting any device. How can I properly detect the webcam of laptop, and its formats, from JMF API? 回答1: Make sure that the system you're using it on contains all the required files eg On