I would like to use a simulated webcam on Genymotion. I have installed v4l2loopback on my Ubuntu Desktop and it works fine (on a webpage or Cheese) but the camera is not available on Genymotion.
Perhaps because the camera is using a v4l2 driver ? Or is there some precise spec (pixel format, colors ...) to adjust ?
Thanks :)
I just tried using the DroidCam as a camera but it doesn't worked for me, but according this issue on the v4l2loopback's repository, the Genymotion have support to v4l2 cameras:
Under Windows the driver can only be openCV, and it's slow. However
under Linux you should be able to use v4l2loopback because we use API
v4l2 to read the camera video stream.
So to have a good performance we recommend using Linux with
v4l2loopback instead of Windows with openCV, but we cannot guaranty
that because have have never conducted any tests on that kind of user
case.
Related
I just bought the USB Kinect adapter and realised it just works with USB 3.0. When connecting it to the USB 3.0 port of the PC everything works fine, but when I tried to connect to my Raspberry Pi3 it just won't work. I've already installed all the drivers (Openni,Sensorkinect) but when I execute the "Sample-NiSimpleRead" of OpenNI I get the following message:
One or more of the following nodes could not be enumerated:
Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!
Besides, when I try sudo lsusb -v|grep -i nui I get:
iProduct 2 NuiSensor Adaptor
Still, there's no way to make it work. I've seen some projects in Youtube which use Raspberry3 and Kinect, so there should be one way to solve this. Do you have any idea?
Kinect v2 is solely USB3, while RPi is USB2 (as you stated). Maybe you've seen the videos of Kinect v1, which uses USB2?
Kincect V2 needs USB-3, so if you need to plugin into a embedded device then Nvidia Jetson TK1/TX1/TX2 boards are the best bet. Here is a link that shows a demo of Kinect-V2 with Jetson TK1. I have tried the same steps for TX2 and it works fine after the successful installation of "libfreenect2".
I've been using OpenCV to read out camera output and process the frames. I am on Windows 7, and it turns out that OpenCV cannot simultaneously read multiple USB cameras in Windows. Does anybody have an experience with SimpleCV in Windows 7 in this direction? Is it capable of displaying output of multiple USB cameras in Windows 7 simultaneously?
Thanks!
I'm one of the core developers for SimpleCV and I'm guessing if OpenCV can't do it than it won't work. We have pygame as a graceful fallback on linux and mac but a camera interface doesn't exist to it on windows sadly. I have still yet to find a good open source solution to just viewing a webcam on windows either.
I would like to create my Kinect development environment and am contemplating using iMac as the box with Windows 7 installed as dual boot and/or parallels.
Has anyone tried this configuration earlier and does it work?
Running Bootcamp(dual boot) works with windows 7/8 Parallels does not.
I have a macpro 1,1 and a mac air both work with bootcamp(dual boot).
The only thing that could cause it not to work is the USB configuration. Kinect requires that it be connected to a USB host controller and not a hub. I believe all of the iMac's USB ports are host ports so I don't believe this to be an issue. If you use the Kinect Sensor Chooser control built into the WPFViewers sample app it will tell you if that particular problem arises (insufficient bandwidth).
Parallels will not work with the SDK at the time of this writing due to driver. Kinect is not an official USB device and the driver requires direct communication with the Kinect. I hoped that this would be resolved with the official Kinect for Windows hardware but alas it was not.
You might want to look at native OSX Kinect development using OpenKinect
http://openkinect.org/wiki/Getting_Started
If you don't want to have to write all the image processing code yourself, and are working in C#, you could start with the Accord library:
http://accord-net.origo.ethz.ch/
I'm playing around with OpenCV since a while and I found some strange behavior of some specific capturing devices (PS3 Eye, Logitech C940, iSight) even on different Platforms.
Using OpenCV in Windows: All cams mentioned above work well. But when I want to use 2 cams and therefore create a second capture it will depend on the devices that I use in my Dual Cam Setup.
PS3 Eye + C940: no problems
2x C940: no problems
2x PS3 Eye: No chance, only the specific device that was connected first will initialize. The other PS3 Eye cannot be used the same time...No error events and no information about the problem is shown.
Now using OpenCV in MacOSX 10.7 (same for 10.6.x) there's different problems using the same devices and even the same QtGui-Application with 2 independent GLWidgets for displaying cv output in the QtGui.
Every Setup is great as long as it doesn't use a PS Eye in Mac OS. I tried macam and several other tools, but I just cannot get OpenCV to init this cam in OSX (I bought 3 for my project so hardware probs not very likely).
I'm still wondering where the problem is...Maybe 2 PS Eye's would work in OSX if a single one did? I can't tell.
I can even capture from 2x Logitech FULL HD Webcams simultaniously with nice performance.
Any Idea where Limitation could be with Dual PS Eye in Windows? Perhaps USB? And why can't OpenCV in OSX Capture from PSEye but macam can access the cam?
I just want to understand what's happening. Perhaps anyone of you found a way to use at least a singe PS Eye in OSX? Or is this just not possible? Can't opencv somehow use the macam component?
Video capturing is very platform-dependent area. So difference between Windows and OS X is rather expected than wondering. OpenCV utilizes a lot of video capturing APIs to support as many device models as possible. At the moment (OpenCV 2.3.1) it uses following libs/APIs on the back-end:
Windows:
DirectShow (thought VideoInput library)
Microsoft's Video for Windows (VfW) API
CMU 1394 Digital Camera Driver
Matrox Imaging Library (MIL) (opt)
OpenNI camera drivers (opt)
XIMEA API for XIMEA devices (opt)
Linux:
libdc1394 (API v1 or API v2) - IIDC standard compliant cameras (opt)
PvAPI for Prosilica GigE Vision cameras (opt)
unicap - The uniform API for image acquisition devices (opt)
video4linux (V4L or V4L2) (opt)
OpenNI camera drivers (for Kinect) (opt)
XINE (opt)
XIMEA API for XIMEA devices (opt)
OS X:
QuickTime (opt)
QTKit (if no QuickTime, these two are mutually exclusive in OpenCV)
OpenNI camera drivers (opt)
XIMEA API for XIMEA devices (opt)
Android:
builtin Android camera
* (opt) - these interfaces are optional - can be turned on or off during the OpenCV build and may require some additional SDK.
About PS3 Eye - on Windows, it is most probably some limitation of VideoInput library or installed driver. On OS X - first, ensure that your OpenCV is built with QuickTime support. And second, ensure that macam.component is correctly installed into the QuickTime. Here is a quote from their FAQ:
Why can't I use my webcam with other applications?
You can. Please copy the macam.component into the
/Library/QuickTime/ directory (for access by all users on the system)
or into the ~/Library/QuickTime/ (for access by only that user). If
you have a previous copy, please delete it first. A restart is usually
not needed, but if you have trouble, it's a good thing to try. To
verify that your installation works, test with a simple program such
as HackTVCarbon, VideoViewer, or BTV.
I am having trouble accessing the external USB camera instead of the built-in iSight when using OpenCV with a MacBook Pro under Mac OSX.
When passing an argument to the cvCaptureFromCAM(index) function other than 0 or -1 I will always get a
Warning: Max Camera Num is 0; Using camera 0
The camera is a Sony PS3 EYE working perfectly with the macam driver and quicktime component.
Yet I am unable to access it using OpenCV which will always default to the built-in iSight (even when trying to "occupy" the iSight with a different program).
Any ideas?
Thank you very much in advance, your help is very much appreciated!
I was just messing with the same problem, macam drivers are 32 bit, if your opencv install is compiled as 64 bit it won't work. I end up installing opencv twice 64 bit with mac ports and 32 bit with howebrew whenever I am using ps3eye I switch to 32 bit version.