Visual Servoing Platform
version 3.6.1 under development (2024-11-15)
|
This tutorial follows Tutorial: HSV low/high range tuner tool.
To run this tutorial you will need:
We suppose here that you already set the HSV low/high ranges using the range tuner tool explained in Tutorial: HSV low/high range tuner tool.
Note that all the material (source code and images) described in this tutorial is part of ViSP source code (in tutorial/segmentation/color
folder) and could be found in https://github.com/lagadic/visp/tree/master/tutorial/segmentation/color.
$ cd $VISP_WS/visp-build/tutorial/grabber $ ./tutorial-grabber-realsense --seqname /tmp/seq/image-%04d.png --record 0
/tmp/seq/
folder.$ cd $VISP_WS/visp-build/tutorial/segmentation/color $ ./tutorial-hsv-range-tuner --image /tmp/seq/image-0001.png
calib/hsv-thresholds.yml
calib/hsv-thresholds.yml
$ ./tutorial-hsv-segmentation --video /tmp/seq/image-%04d.png --hsv-thresholds calib/hsv-thresholds.yml
$ cd $VISP_WS/visp-build/tutorial/segmentation/color $ ./tutorial-hsv-range-tuner --hsv-thresholds calib/hsv-thresholds.yml
calib/hsv-thresholds.yml
calib/hsv-thresholds.yml
$ ./tutorial-hsv-segmentation --hsv-thresholds calib/hsv-thresholds.yml
You are now ready to see how to continue with Tutorial: Point cloud segmentation using HSV color scale.