webcam

Kivy With opencv. Resizing Image size

ⅰ亾dé卋堺 提交于 2019-12-02 13:01:14
I want to insert an opencv webcam video in kivy. Unfortunately, when I do this and maximize the window the image does not adjust to the screen size. Is there any way to do this ? from kivy.app import App from kivy.uix.image import Image from kivy.clock import Clock from kivy.graphics.texture import Texture import cv2 from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.lang import Builder from kivy.core.window import Window Window.size=(1000,1000) class KivyCamera(Image): def __init__

Using webcam with opencv python shows a black screen w/waitkey()

◇◆丶佛笑我妖孽 提交于 2019-12-02 10:03:18
问题 I'm trying to access a basic webcam (Logitech c270) through opencv python VideoCapture. Unfortunately though, every time I run the program the display screen comes up black. I know the camera works because I can view the video through their software. I am well aware of making sure to put in the waitkey(x) so that's not the issue. I also have this code just in case the index changes: for i in range(4): capture = cv2.VideoCapture(i) if not capture: print "UNABLE TO CAPTURE CAMERA" else: print

Access webcam and microphone input in VB.net

女生的网名这么多〃 提交于 2019-12-02 07:55:32
How can you access the webcam and microphone in VB.net, assuming the user even has one? I fail to see a My.Computer.Webcam or My.Computer.Microphone, both of which would probably have been a nice addition. Thanks for the help! If there is no easy method for doing this, what is the name of the driver that handles this and what methods should I use to make this work? Cyclone, you can use DirectShow .Net Library to access the webcam and microphone here a example Webcam using DirectShow.NET (Vb .Net) bye. 来源: https://stackoverflow.com/questions/1451627/access-webcam-and-microphone-input-in-vb-net

Cannot Send canvas data from Javascript AJAX to PHP page

北城以北 提交于 2019-12-02 07:23:54
I have a video element on my page showing webcam stream . Next I have a canvas with functions that takes snapshots and displays images in canvas. Now I need to send this canvas image to server and save it to file with PHP. I combined various tutorials online and ended up with this code below, however the image that is saved on the server folder is just blank, so I guess the PHP file does not properly receive the data to show... please help if you can :) Only The Jquery + AJAX not transmitting the post variable is the problem... here is the code: var int=self.setInterval(function(){snapshot()}

OpenCV + Webcam compatibility

孤街醉人 提交于 2019-12-02 07:20:28
For the people that have experience with OpenCV, are there any webcams that don't work with OpenCV. I am looking into the feasibility of a project and I know I am going to need a high quality feed (1080p), so I am going to need a webcam that is capable of that. So does OpenCV have problems with certain cameras? To be analysing a video feed of that resolution on the fly I am going to need a fast processor, I know this, but will I need a machine that is not consumer available...ie, will an i7 do? Thanks. On Linux, if it's supported by v4l2, it is probably going to work (e.g., my home webcam isn

How to get video stream from webcam in emgu cv?

怎甘沉沦 提交于 2019-12-02 06:21:52
问题 I'm using emgu cv in c#. I need to know How I can get the video stream from my webcam(default webcam)in emgu cv? 回答1: You can use the following code to make an app to capture and display video stream: public class CameraCapture { private Capture capture; //takes images from camera as image frames private bool captureInProgress; private void ProcessFrame(object sender, EventArgs arg) { Image<Bgr, Byte> ImageFrame = capture.QueryFrame(); //line 1 CamImageBox.Image = ImageFrame; //line 2 }

How to check with JavaScript that webcam is being used in Chrome

孤街醉人 提交于 2019-12-02 04:56:22
问题 If webcam is being used in Chrome, there will be a red dot on the tab for that page. And if other pages try to access webcam will get black for video. My question is, is it able to check with JavaScript that webcam is being used? How? By using navigator.getUserMedia, I tried following code: navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; navigator.getUserMedia({ audio: true, video: true }, function

Using webcam with opencv python shows a black screen w/waitkey()

蹲街弑〆低调 提交于 2019-12-02 04:23:51
I'm trying to access a basic webcam (Logitech c270) through opencv python VideoCapture. Unfortunately though, every time I run the program the display screen comes up black. I know the camera works because I can view the video through their software. I am well aware of making sure to put in the waitkey(x) so that's not the issue. I also have this code just in case the index changes: for i in range(4): capture = cv2.VideoCapture(i) if not capture: print "UNABLE TO CAPTURE CAMERA" else: print "taken camera from index: ", i break But it's returned a 0 index each time. And it's the issue is not

Using WinRT library in WPF application.

别等时光非礼了梦想. 提交于 2019-12-02 04:11:58
I have followed this article here: http://blogs.msdn.com/b/eternalcoding/archive/2013/10/29/how-to-use-specific-winrt-api-from-desktop-apps-capturing-a-photo-using-your-webcam-into-a-wpf-app.aspx And it all works great... but how do I get a preview in WPF? The XAML "CaptureElement" control is not available in WPF. Is there any other way I can get a preview using the MediaCapture API? Why would Microsoft not make this control Available? Late reply, but in case that helps folks in the future: previewing MediaCapture in WPF is difficult but possible. Here is some code sample: https://github.com

C++ OpenCV 2.4.11: List all cameras

拟墨画扇 提交于 2019-12-01 20:41:33
I want to list all connected webcams (USB-webcams and internal webcams), using C++, OpenCV 2.4.11, Windows 8.1 and Qt Creator 3.4.2. For me it is enough to get the number of accessible webcams in the following way: VideoCapture videoCapture(0); // Will access my internal laptop webcam. VideoCapture videoCapture(1); // Will access the first connected usb webcam. Here is my code: // Following procedure detects, how many webcams are accessible from 0 on upwards. numberOfDevices = 0; bool noError = true; while (noError) { try { // Check if camera is available. VideoCapture videoCapture