diff --git a/docs/en/camera.md b/docs/en/camera.md index b8dc5684..2620facd 100644 --- a/docs/en/camera.md +++ b/docs/en/camera.md @@ -34,6 +34,18 @@ raspistill -o test-image.jpeg If it doesn't work, check the camera cable connections and the cable itself. Replace the cable if it is damaged. Also, make sure the camera screws don't touch any components on the camera board. +## Camera parameters + +Some camera parameters, such as image size, FPS cap, and exposure, may be configured in the `main_camera.launch` file. The list of supported parameters can be found [in the cv_camera repository](https://github.com/OTL/cv_camera#parameters). + +Additionally you can specify an arbitrary capture parameter using its [OpenCV code](https://docs.opencv.org/3.3.1/d4/d15/group__videoio__flags__base.html). For example, add the following parameters to the camera node to set exposition manually: + +```xml + + + +``` + ## Computer vision The [SD card image](image.md) comes with a preinstalled [OpenCV](https://opencv.org) library, which is commonly used for various comupter vision-related tasks. Additional libraries for converting from ROS messages to OpenCV images and back are preinstalled as well. diff --git a/docs/ru/camera.md b/docs/ru/camera.md index 24bd3946..830e6019 100644 --- a/docs/ru/camera.md +++ b/docs/ru/camera.md @@ -36,6 +36,18 @@ raspistill -o test-image.jpg Если команда завершается с ошибкой, проверьте качество подключения шлейфа камеры к Raspberry Pi или замените его. +## Настройки камеры + +Ряд параметров камеры - размер изображения, максимальную частоту кадров, экспозицию - можно настроить в файле `main_camera.launch`. Список настраиваемых параметров можно [посмотреть в репозитории cv_camera](https://github.com/OTL/cv_camera#parameters). + +Параметры, не указанные в этом списке, можно указывать через [код параметра OpenCV](https://docs.opencv.org/3.3.1/d4/d15/group__videoio__flags__base.html). Например, для установки фиксированной экспозиции добавьте следующие параметры в ноду камеры: + +```xml + + + +``` + ## Компьютерное зрение Для реализации алгоритмов компьютерного зрения рекомендуется использовать предустановленную на [образ SD-карты](image.md) библиотеку [OpenCV](https://opencv.org).