Borrar filtros
Borrar filtros

find pose and angel of marker

1 visualización (últimos 30 días)
moh ab
moh ab el 21 de Mzo. de 2020
Comentada: darova el 23 de Mzo. de 2020
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 comentarios
moh ab
moh ab el 23 de Mzo. de 2020
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 el 23 de Mzo. de 2020
please help me thanks

Iniciar sesión para comentar.

Respuesta aceptada

darova
darova el 23 de Mzo. de 2020
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 comentarios
moh ab
moh ab el 23 de Mzo. de 2020
please help me
darova
darova el 23 de Mzo. de 2020
use bwlabel
L = bwlabel(I);
[y1,x1] = find(L==1);
x1 = mean(x1); % coordinates of the center
y1 = mean(y1);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Computer Vision Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by