Any usb camera can be used. you can also use piCamera module for rasperryPi. just need to install corresponding drivers
Installed Raspberry Pi with the basic operating system nothing special. We don’t need to do anything particularly special when setting up the Raspberry Pi from here. Download Raspbian Stretch with desktop for Desktop veresion and Raspbian Stretch Lite for CLI version
sudo apt-get install rpi.gpio
sudo apt-get install fswebcam