Using Motion software usb webcam doesn't work - webcam

I'm trying to use ONLY ONE usb webcam plug and play with Motion software in localhost.
I have attached the webcam via WSL2 to Ubuntu distribution.
I have started motion with:
sudo service motion start
motion started as a service
After I have opened the motion.conf file in order to setting the configuration parameters to use the usb webcam.
But when I watched in my browser to IP 127.0.0.1:8080 if the webcam worked, Motion showsìed only a gray screen instead of the webcam screen, with a picture at the top left:
UNABLE TO OPEN VIDEO DEVICE
Unfortunately I don't know which parameters in the configuration file, motion.conf, shall I have to set in order to use the usb webcam with Motion.
If someone knows how to resolve this issue, please tell me thank you!

Related

ToupTek XCAM4K8MPA camera connection to Linux computer

I'm trying to connect a ToupTek XCAM4K8MPA camera to a Linux Ubuntu 20.04 64-bit computer to use with their provided ToupLite software for microscopy image capturing. The camera comes with a USB 3.0 cable, HDMI cable and USB WLAN adapter.
I have managed to set up the ToupTek ToupLite software (Link to manual, Link to download page) which, as far as I understand, comes with the SDK included. I have then connected the camera via USB 3.0 and HDMI cable to the computer, but ToupLite shows No device as in, the camera is not recognized or connected. I have tested the camera by simply connecting it to a computer monitor via HDMI cable and it works, but for capture I would like it to be connected to a computer and the WLAN or Wi-Fi connection solution is not really a good option.
Perhaps someone has some ideas of what I am missing.
Note: Relevant tags include touptek, touplite, microscopy
I ended up using the WLAN connection. Made a non-changing IP address for the camera and the ToupLite software recognizes that it is on the local network.

Can't Enable Integrated Webcam in Virtual Machine

I used to work on my Virtual Box normally until it started giving me critical errors, so i backed up my machine and reinstalled virtualbox and loaded my backed up machine. Now i am working on a project that needs the use of the Webcam, so i use my PC's built in webcam usually. I used to enable it from the VM settings. However, now it the webcam seetings doesn't show in the devices. The photos below show the problem i am facing.
The image below shows that the webcam option is checked in the devices.
However, when i enter to enable my camera from the devices, i don't find the webcam options! (image below)
Is it recommended to reinstall my Virtual box again? If a solution couldn't be found?
The VirtualBox Extension Pack is required to allow Webcam passthrough.
Available here -
https://www.virtualbox.org/wiki/Downloads

Is there any way to use Kinect SDK remotely with network?

The Azure Kinect sensor SDK requires Kinect to connect directly to pc via usb, but it's not appropriate to me. Is it posible to use something like raspberry pi to transfer kinect sensor data and process on a remote server? Do you have any suggestions for this?
I found the Kinect sdk does not support ARM architecture(raspberry pi),what other device can I use?
Processing the depth camera image requires GPU compute, so we don't currently support headless operation. There are some users that have successfully enabled headless operation on Linux, but it is not a straight forward path. See https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/810 for more info.

Use IP camera with OPEN CV without internet connection (direct connection to pc)

I am sorry, this might not be the correct platform to ask this kind of question but I couldn't think of any other place .
I for one of my project I need to capture some video footage from an outdoor camera using open cv. Actually, its a part of a bigger project where another signal triggers the camera. Since the camera will be located outside, I am looking for weather proof night vision enabled USB cameras that I can easily control via OPENCV. However I cannot find any descent USB camera and most of the websites show IP cameras. My problem is that the installation will be at a site where there is no internet so I cannot use internet. Can anybody please suggest if and how these IP cameras can be connected to the PC and be controlled via OPEN CV or else suggest some websites where I can get descent outdoor USB IR cameras.
I have also tried the NOIR Raspi camera but the quality is not very good and I think the range will also not be very good. Moreover running OPEN CV on RpI is very slow even for simple video recording.
Please refer to that thread for how to use IP cameras with open CV. I didn't try it personally, but a simple google search got me that. http://answers.opencv.org/question/133/how-do-i-access-an-ip-camera/
To access an IP camera is very simple, you just need this line:
cv2.VideoCapture("rstp://ipaddress:port/blahbla")
Now, if you dont have internet the IP camera as the PI should be on the same network, you can have a wireless router with no internet.
If you dont have a wireless router you can create a hotspot on your PI so you can connect the Camera directly to the PI, alot of IP cameras support hotspot so you can connect your pi to them.

on windows 7/8, how to read usb device descriptor from a usb camera, and read picture stream with webcam meanwhile

I use webcam-capture(java api) to get video stream from a usb camera, it work fine.
I want read a usb device descriptor(store some private information), i find out that should install WinUSB or libusbk as a driver to the usb devices. and it test ok, read the descriptor success (by libusb_control_transfer api)
the question is:
befor I install WinUSB, the usb camera is a camera device in the windows device management list. the LibUSB work fail, can't open the usb devices, the error number is -5, means entrypoin not find
after I install WinUSB, libUSB api work ok, but the webcam program can't open the usb devices, it is a universal usb device in the windows device management list.
is there some way the webcam work ok, at the same time, i can read the usb device descriptor use libusb or use other something?
i tested on windows 7 and windows 8, have the same problem.
thanks.
Sadly this is not possible because each of your applications needs a different driver. The only way this can work is if you use libusb and build you own capturing api on top which is quite complicated. As long as webcam-capture can not read the data you want to know about the webcam I am afraid this is not possible.