Hi there,
Welcome to the forums.
I'll answer this question, and then send a reply to your other question.
The example programs that are provided with the
py_websockets_bot library will run both on an external PC, and on a Pi. When running the image processing and motion vector samples on the Pi, you will need to run them from the desktop to begin with, as they make use of some of the OpenCV windowing functionality to display their output (cv2.imshow etc). If remove calls to imshow etc from your programs then they will also run without an X server.
Now, having said that. You can run all of your image and sensor processing code on the Pi, but the Pi doesn't have a very powerful CPU, so it can be slow, especially when performing image processing. To help make things a bit quicker, the py_websockets_bot library provides the option to stream 'small' (160x120) images that have been scaled down on the GPU.
Hope that helps.
Regards
Alan