Plot in Webcam-Live Image

10 ビュー (過去 30 日間)
Alicia Wüst
Alicia Wüst 2021 年 8 月 15 日
Hi everybody,
In my GUI I display a video live out of cam in an UIAxes. My plan is to plot detected markers in the image. Right know I don't know how to overlay the image and the plots in the same axes. Does anyone know how to solve this problem?
Best regards.
  1 件のコメント
Alicia Wüst
Alicia Wüst 2021 年 8 月 15 日
編集済み: Alicia Wüst 2021 年 8 月 15 日
In addition here is my code:
if recognized_objects > 0
image(UIAXES,CURRENT_FRAME);
hold (UIAXES);
plot(UIAXES,CenterObjectsMatrix(:,1),CenterObjectsMatrix(:,2),'*r');
else
image(UIAXES, CURRENT_FRAME);
end

サインインしてコメントする。

回答 (1 件)

Harikrishnan Balachandran Nair
Harikrishnan Balachandran Nair 2021 年 8 月 19 日
Hi,
From my understanding, you want to preview your live webcam Image on a UIAxes, and plot on the same UIAxes.
Inorder to get an idea on how to preview live webcam video in you GUI, you can refer to the following link
You can use the 'hold' and 'plot' functions to plot your markers on the same UIAxes as the image.
You may refer to the following similar questions as well :

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by