how to draw an updating rectangle object on a video stream ?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
I am beginninger of matlab. I tried myCameraGUI example which build up a simple camera preview inferface. My question is I cannot find a way to draw a updating rectangle object on the top of streamed video. I do have tried many times, but fail in the end. Does anyone know how to do that? Any direction, webpage, or even a function would be appreciated. Thank you.
Steven
0 件のコメント
採用された回答
Image Analyst
2012 年 11 月 9 日
It's possible to have graphics in the overlay above your live video. Did you call the preview() function to get live video, and then call plot() to plot your box?
3 件のコメント
Image Analyst
2012 年 11 月 9 日
You need two x and two y, not one. Try calling line just like this
axes(handles.cameraAxes);
hold on;
line([x1 x2], [y1 y2]);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!