Closed Jakubach closed 5 years ago
Sorry the delay.
This is now fixed in visp master branch and will be integrated in ros-<distro>-visp
after ViSP next release; maybe end of the year.
In the meantime, to use visp master branch
ros-<distro>-visp
packageVISP_DIR
environment var pointing to ViSP build folder. It will help catkin_make
to find the location of ViSP libraries vision_visp
using catkin_make
Hello, when I try to detect data matrix codes I find an bug,
if you were trying to run this example: https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-barcode-detector-live_8cpp-example.html you can see, that there is an line:
bool status = detector->detect(I);
whose definition you can find here: https://visp-doc.inria.fr/doxygen/visp-daily/vpDetectorDataMatrixCode_8cpp_source.html I used std::chrono to check, which function take so long time to run and I inspected that this is the line:reg = dmtxRegionFindNext(dec, 0);
. If the second argument is 0, dmtx algorithm could look for pattern in a frame without any timeout. So putting there a value, ex. 50 fixed the problem - algorithm started working continously without lagging.Now I try to work with ROS, but I can not make changes to "detect()" function (which also takes 2 or more seconds to run once).
vpDetectorDataMatrixCode.h looks like:
Here is a link for this file: https://github.com/lagadic/visp/blob/master/modules/detection/include/visp3/detection/vpDetectorDataMatrixCode.h
Also running
catkin_make -DCMAKE_BUILD_TYPE=Release
didn't help me.