opencv_apps icon indicating copy to clipboard operation
opencv_apps copied to clipboard

Add line segment detector(lsd)

Open iory opened this issue 8 years ago • 9 comments

lsd

iory avatar Sep 15 '16 18:09 iory

please put line_segment_detector.png so that we can put that imgae on http://wiki.ros.org/opencv_apps

k-okada avatar Sep 21 '16 01:09 k-okada

OK! I upload it. line_segment_detector

iory avatar Sep 21 '16 16:09 iory

need rebase origin/indigo (see #45)

furushchev avatar Oct 06 '16 05:10 furushchev

@iory failing on test -> https://travis-ci.org/ros-perception/opencv_apps/jobs/166045561

+ catkin_test_results --verbose build
Full test results for 'opencv_apps/test_results/opencv_apps/roslaunch-check__home_travis_catkin_ws_src_opencv_apps_launch_line_segment_detector.launch.xml'
-------------------------------------------------
<testsuite errors="0" failures="1" name="roslaunch-check__home_travis_catkin_ws_src_opencv_apps_launch_line_segment_detector.launch.xml" tests="1" time="1"><testcase classname="Results" name="test_ran" status="run" time="1"><failure message="roslaunch check [/home/travis/catkin_ws/src/opencv_apps/launch/line_segment_detector.launch] failed" type="" /></testcase><system-out>&lt;![CDATA[
[/home/travis/catkin_ws/src/opencv_apps/launch/line_segment_detector.launch]:
	cannot find node [line_segment_detector] in package [opencv_apps]
]]&gt;</system-out></testsuite>
-------------------------------------------------
Full test results for 'opencv_apps/test_results/opencv_apps/roslaunch-check__home_travis_catkin_ws_src_opencv_apps_test_test-line_segment_detector.test.xml'
-------------------------------------------------
<testsuite errors="0" failures="1" name="roslaunch-check__home_travis_catkin_ws_src_opencv_apps_test_test-line_segment_detector.test.xml" tests="1" time="1"><testcase classname="Results" name="test_ran" status="run" time="1"><failure message="roslaunch check [/home/travis/catkin_ws/src/opencv_apps/test/test-line_segment_detector.test] failed" type="" /></testcase><system-out>&lt;![CDATA[
[/home/travis/catkin_ws/src/opencv_apps/test/test-line_segment_detector.test]:
	cannot find node [line_segment_detector] in package [opencv_apps]
]]&gt;</system-out></testsuite>
-------------------------------------------------
opencv_apps/test_results/opencv_apps/roslaunch-check__home_travis_catkin_ws_src_opencv_apps_launch_line_segment_detector.launch.xml: 1 tests, 0 errors, 1 failures
opencv_apps/test_results/opencv_apps/roslaunch-check__home_travis_catkin_ws_src_opencv_apps_test_test-line_segment_detector.test.xml: 1 tests, 0 errors, 1 failures
Summary: 124 tests, 0 errors, 2 failures
+ catkin_test_results --all build
Skipping "catkin_tools_prebuild/package.xml": 'tests'

k-okada avatar Feb 20 '17 09:02 k-okada

Test passed. Please check these codes.

iory avatar Mar 31 '17 17:03 iory

if(TARGET opencv_line_descriptor)
  set(OPENCV_HAVE_LINE_DESCRIPTOR TRUE)
endif()
if(OPENCV_HAVE_LINE_DESCRIPTOR)
  opencv_apps_add_nodelet(line_segment_detector
line_segment_detector/line_segment_detector
src/nodelet/line_segment_detector_nodelet.cpp) # ./lsd_lines.cpp
endif()

if target set, set OPENCV_HAVE.... and if OPENCV_HAVE.. is set, set target. seems very strange.... why are you confident with this.

-- ◉ Kei Okada

2017-04-03 11:47 GMT+09:00 iory [email protected]:

@iory commented on this pull request.

In CMakeLists.txt https://github.com/ros-perception/opencv_apps/pull/35#discussion_r109333296 :

@@ -9,6 +9,9 @@ message(STATUS "OpenCV Components: ${OpenCV_LIB_COMPONENTS}") if(OpenCV_VERSION VERSION_LESS "3.0" OR TARGET opencv_optflow) set(OPENCV_HAVE_OPTFLOW TRUE) endif() +if(TARGET opencv_line_descriptor)

This is function of opencv3. So we need target.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-perception/opencv_apps/pull/35#discussion_r109333296, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeG3DbYZnV_MncJUsZRnm3zQSmb21__ks5rsF3cgaJpZM4J-LYQ .

k-okada avatar Apr 04 '17 09:04 k-okada

I understand that "if(TARGET opencv_line_descriptor)" is true when opencv have line_segment_descriptor (in opencv3). Is this understanding wrong?

iory avatar Apr 04 '17 09:04 iory

I see, you're correct. that's why we need find_packge(OpenCV) and sometime we have trouble when we install ros-indgo-opencv3, becuase ros-indigo-cv-bridge is linked against opnecv2, but find_packaage(OpenCV) look for ros-indigo-opencv3

-- ◉ Kei Okada

2017-04-04 18:46 GMT+09:00 iory [email protected]:

I understand that "if(TARGET opencv_line_descriptor)" is true when opencv have line_segment_descriptor (in opencv3). Is this understanding wrong?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-perception/opencv_apps/pull/35#issuecomment-291449689, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeG3BGbkVFHuZLXHJkH0ImOQQ6jp6HRks5rshF3gaJpZM4J-LYQ .

k-okada avatar Apr 04 '17 10:04 k-okada

@iory please rebase origin/master

k-okada avatar Nov 14 '17 06:11 k-okada