capturePhoto

private fun capturePhoto()

Captures a camera image via cameraProvider and sends it to the connected server via sendCaptureRequest.

Called in mCaptureButtonListener.