find pose and angel of marker

조회 수: 1 (최근 30일)
moh ab
moh ab 2020년 3월 21일
댓글: darova 2020년 3월 23일
hi
in my project i have to set two markers to the robot and capture from 2 video real time
and my goal is find pose and angel of markers online and use them for simulink
can help me?
  댓글 수: 3
moh ab
moh ab 2020년 3월 23일
i import one image of project.
the black points in image are marker that i want find distance angel between them
moh ab
moh ab 2020년 3월 23일
please help me thanks

댓글을 달려면 로그인하십시오.

채택된 답변

darova
darova 2020년 3월 23일
Here is a start to find markers
I0 = imread('rob.png');
I1 = im2bw(I0,graythresh(I0)-0.3);
imshow(I1)
Then just use find() to identificate first and last pixels
Use atan2d to calculate angle
  댓글 수: 7
moh ab
moh ab 2020년 3월 23일
please help me
darova
darova 2020년 3월 23일
use bwlabel
L = bwlabel(I);
[y1,x1] = find(L==1);
x1 = mean(x1); % coordinates of the center
y1 = mean(y1);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tracking and Motion Estimation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by