Subface Camera is an experimental UVC gadget based on the following uvc-gadget versions:
- Original uvc-gadget.git
- Fork(copy) uvc-gadget.git - wlhe
- Fork(copy) uvc-gadget.git - climberhunt / Dave Hunt
- Fork(copy) uvc-gadget.git - peterbay / Petr Vavrin
- Raspberry Pi or similar device with USB device controller (UDC)
Set dwc2 (DesignWare Core 2) as device tree overlay by adding the following line at the end of the file /boot/config.txt.
dtoverlay=dwc2
Load dwc2 and libcomposite during boot by adding the following line
modules-load=dwc2,libcomposite
after rootwait in the file /boot/cmdline.txt.
Build the UVC gadget via make:
git clone https://github.com/mdeeg/uvc-gadget-subface
cd uvc-gadget-subface
make
First, the USB gadget has to be configured via configfs, for example using one of the provided shell scripts.
sudo sh ./gadget-subface-rgb.sh
Then, the UVC gadget can be started with suitable parameters, for example
./uvc-gadget -i images/hello_robot_640x480.png -u /dev/video0
Use at your own risk. Do not use without full consent of everyone involved. For educational purposes only.