|
| 1 | +RemoteWebcam |
| 2 | +============ |
1 | 3 | This folder contains programs used to get a realtime remote access to a webcam. It is a TCP server (RemoteWebcamMultiSrv) opening a webcam and sending images to a TCP client (RemoteWebcamCli, only compatible with OpenCV < 4) optionally using: |
2 | | -_ JPEG compression provided by the OpenCV function cvEncodeImage() and with a time compression based on movement detection. |
3 | | -_ No compression. |
4 | | -_ MJPEG (compatible with e.g. VLC, Google Chrome (modify mjpeg.html to test), check also mjpeg.py for a sample client in Python using OpenCV, note that RemoteWebcamCli does not support MJPEG). This is the default. |
| 4 | +- JPEG compression provided by the OpenCV function cvEncodeImage() and with a time compression based on movement detection. |
| 5 | +- No compression. |
| 6 | +- MJPEG (compatible with e.g. VLC, Google Chrome (modify `mjpeg.html` to test), check also `mjpeg.py` for a sample client in Python using OpenCV, note that RemoteWebcamCli does not support MJPEG). This is the default. |
5 | 7 |
|
6 | | -It is recommended to be connected with an administrator account, deactivate any antivirus, firewall or other settings that would block network ports. Choose Work/Private for the network type if asked when connecting to the different networks (avoid Public type, to check and change go to Network and Sharing Center and click on Public to be able to change to Work/Private, or go to PC Settings\Network, select the desired network and enable the option Find devices and content/Make this PC discoverable). |
7 | | -Check also proxy settings of Internet Explorer, and any other installed browser. |
| 8 | +Change the desired parameters in the configuration files (`RemoteWebcamMultiSrv.txt`, `RemoteWebcamCli.txt`, etc.) if necessary. |
8 | 9 |
|
9 | 10 | It should work with the following software: |
10 | 11 | *** USER and DEVEL *** |
11 | | -_ Windows 10 Professional 64 bit |
12 | | -_ Kinect v2 SDK (not compatible with Visual Studio 2008 and Windows XP) |
| 12 | +- Windows 10 Professional 64 bit |
| 13 | +- Kinect v2 SDK (not compatible with Visual Studio 2008 and Windows XP) |
13 | 14 | *** DEVEL *** |
14 | | -_ Visual Studio 2022 |
15 | | -_ OpenCV 4.10.0 (see http://www.ensta-bretagne.fr/lebars/Share/setup_vs_opencv.pdf and adapt the instructions to the desired OpenCV version, see https://community.chocolatey.org/packages/libopencv-dev/4.10.0.20240808 ) |
| 15 | +- Visual Studio 2022 |
| 16 | +- OpenCV 4.10.0 (see http://www.ensta-bretagne.fr/lebars/Share/setup_vs_opencv.pdf and adapt the instructions to the desired OpenCV version, see https://community.chocolatey.org/packages/libopencv-dev/4.10.0.20240808 ) |
16 | 17 |
|
17 | | -It is also supposed to be compatible with Linux with equivalent prerequisites (see e.g. https://www.ensta-bretagne.fr/lebars/Share/setup_qt_opencv.pdf), see CMakeLists.txt or Makefile. |
| 18 | +It is also supposed to be compatible with Linux with equivalent prerequisites (see e.g. https://www.ensta-bretagne.fr/lebars/Share/setup_qt_opencv.pdf ), see `CMakeLists.txt` or `Makefile`. |
18 | 19 |
|
19 | 20 | Restart the computer after installation. |
20 | 21 |
|
21 | 22 | The following are required sources dependencies: |
22 | | -_ ..\OSUtils: Windows/Linux abstraction layer (threads, network, serial port, time management...) as well as other useful functions (see https://github.com/ENSTABretagneRobotics/OSUtils ) |
23 | | -_ ..\Extensions: some image functions (see https://github.com/ENSTABretagneRobotics/Extensions ) |
24 | | - |
25 | | -Please do not try to build the program in a directory that contains commas or other unusual characters! Mind the line endings in the configuration files depending on the OS (use e.g. the command dos2unix *.txt to convert line endings for Linux)! |
26 | | - |
27 | | -If recording does not work, try to specify another codec in RemoteWebcamMultiSrv.txt. |
| 23 | +- `..\OSUtils`: Windows/Linux abstraction layer (threads, network, serial port, time management...) as well as other useful functions (see https://github.com/ENSTABretagneRobotics/OSUtils ) |
| 24 | +- `..\Extensions`: some image functions (see https://github.com/ENSTABretagneRobotics/Extensions ) |
| 25 | + |
| 26 | +Known issues: |
| 27 | +- It is recommended to be connected with an administrator account, deactivate any antivirus, firewall or other settings that would block network ports, for Work/Private and Public network types if asked. |
| 28 | +- Try to change the value of the port (`4014` by default) in `RemoteWebcamMultiSrv.txt`, `mjpeg.html`, `mjpeg.py`, `RemoteWebcamCli.txt` if the communication does not work (e.g. due to the port already used by another program). |
| 29 | +- If recording does not work, try to specify another codec for the parameter `szVideoRecordCodec` in `RemoteWebcamMultiSrv.txt`. |
| 30 | +- Mind the line endings in the configuration files depending on the OS (use e.g. the command `dos2unix *.txt` to convert line endings for Linux). |
| 31 | +- Please avoid building or run the program in a directory that contains commas or other unusual characters. |
| 32 | +- Check the web browser and system proxy settings if your network uses a proxy, if necessary. |
28 | 33 |
|
29 | 34 | See also https://github.com/ENSTABretagneRobotics/Android and http://www.ensta-bretagne.fr/lebars/utilities/ . |
0 commit comments