![]() |
Wireless-X
|
https://git.cse.iitb.ac.in/rajneeshkatkam/PARA-Site_WirelessX
1. Make sure that you are in the Wireless-X source directory 2. Grant the permission to execute install.sh installation script using the following command: $ sudo chmod a+x install.sh 3. Execute the install.sh script to install the necessary dependencies using the following command: $ sudo ./install.sh
1. Run the Wireless-X server using the following command: $ python3 Wireless-X_server.py 2. Enter your linux system password (the same password you enter while executing a command as "sudo"). This is required in order to set up the virtual webcam device. 3. Application Installation and Setup on Android Smartphone: a. Install the Wireless-X apk on Android smartphone and give required permissions. b. Now, enter the IP address displayed in the terminal (on which the server is running) into the android application. c. Click on Test Button to test the connection of smartphone with the server. If failed, Recheck if you have entered correct IP address of Laptop/ Desktop (on which the server is running). d. After successfull connection, you would be able to control mouse, keyboard of laptop and use smartphones camera as webcam for the laptop/Desktop. e. Now you would be able to use this virtual webcam device on chrome for video conferincing. (Tested on chrome for MS Teams and Google Meet). f. (Optional) Inorder to test if camera frames are received to the Laptop/ Desktop, use the below command while (Note: camera option should be turned on in the Wireless-X apk on Android): $ ffplay /dev/video20
$ sudo modprobe -r v4l2loopback
1. Check if your virtual device is created $ ls /dev | grep -P '^video\d+$' OR $ v4l2-ctl --list-devices # TO List the virtual devices in detail Output should look somewhat like this: Wireless-X Camera (platform:v4l2loopback-000): /dev/video20 Webcam C170: Webcam C170 (usb-0000:00:1a.0-1.2): /dev/video0 /dev/video1 2. Inorder to test if virtual device is working: Copy the sample code from https://github.com/jremmons/pyfakewebcam page and save it as python file and run it. $ python3 demo.py If everything worked correctly, no error should be displayed and terminal should be blank. Now, Open another terminal and test if virtual device output is being display by entering below command: $ ffplay /dev/video20 Note: ffplay
OpenCV Reference:
https://cmsdk.com/java/android-opencv-tcp-video-streaming.html
v4l2loopback References:
https://github.com/jremmons/pyfakewebcam https://github.com/jremmons/pyfakewebcam/issues/5 https://github.com/umlaeute/v4l2loopback#DKMS
Android Reference:
https://stackoverflow.com/questions/23024831/android-shared-preferences-for-creating-one-time-activity-example