It looks like you are using the old (2016) version of the usb camera and camera server, which is in the NI vision library. You should instead use the new CameraServer and UsbCamera (not USBCamera) class, which are in the cscore and wpilibj libraries. This
link should help you get started, and for more complex vision processing, see this
link.