... | ... | @@ -2,21 +2,30 @@ |
|
|
|
|
|
## Requirements for LPRF
|
|
|
* Python 2.7
|
|
|
* pyhton YAML
|
|
|
* OpenCV3 compiled with GUI and ChAruCo optional packages (ROS version can be used)
|
|
|
* PylonForPython --> https://gitlab.ciirc.cvut.cz/cmirajak/PylonForPython
|
|
|
|
|
|
### PylonForPython
|
|
|
Copy GitHub link to CameraManager and follow the project the README to install the package.
|
|
|
Copy GitHub link to CameraManager and follow the project the README to install the package. You must be logged in in order to clone package.
|
|
|
```
|
|
|
git clone git@gitlab.ciirc.cvut.cz:cmirajak/PylonForPython.git
|
|
|
|
|
|
```
|
|
|
## Choosing the calibration pattern
|
|
|
Two calibration pattern are available, the chessboard and ChAruCo (chessboard with position tags), both of which can be combined to calibrate the whole system. We will use the ChAruCo board for camera calibration and chessboard for laser position calibration.
|
|
|
|
|
|
|
|
|
## Generating ChAruCo board
|
|
|
**GenerateBoardCharuco.py** generates the ChAruCo board and saves it as .png file. You can configure the board generation by setting the number of columns, rows, size of the squares, size of the markers and specify the dictionary of markers. The generated picture of the board is printed in 1:1 ratio and glued to a flat surface.
|
|
|
|
|
|
The setting is later used in the other files. The setting of these files must be changed accordingly to this setting.
|
|
|
|
|
|
|
|
|
**GenerateBoardCharuco.py** generates the ChAruCo board and saves it as .png file. You can configure the board generation by setting the number of columns, rows, size of the squares, size of the markers and specify the dictionary of markers. Setup example:
|
|
|
```python
|
|
|
dictionary = aruco.DICT_4X4_1000
|
|
|
rows = 7
|
|
|
columns = 8
|
|
|
square_length = 0.020 # metres
|
|
|
marker_length = 0.012 # metres
|
|
|
```
|
|
|
The generated picture of the board is printed in 1:1 ratio and glued to a flat surface. The setting is later used in the other files. The setting of these files must be changed accordingly to this setting.
|
|
|
|
|
|
## Camera calibration
|
|
|
**CameraCalibrationLiveCharuco.py** is a python script for file camera calibration using the ChAruCo calibration pattern. The script must be set up accordingly for the board generated above. The output file path is specified as a variable **path_out=''**. The configuration file name is params_internal.yaml.
|
|
|
|