initstate = [x y w h];
%-----------------------------------------Show the tracking result
imshow(uint8(img1));
rectangle('Position',initstate,'LineWidth',4,'EdgeColor','r');
text(5, 18, strcat('#',num2str(i)), 'Color','y', 'FontWeight','bold', 'FontSize',20);
set(gca,'position',[0 0 1 1]); 
%保存结果
%outputImg---文件夹
outputImgName = [outputImg,num2str(i),'.jpg'];
saveas(gcf, outputImgName, 'jpg');

相关文章:

  • 2021-12-02
  • 2022-02-08
  • 2021-09-25
  • 2022-12-23
  • 2021-12-02
  • 2021-12-07
  • 2021-10-13
  • 2021-07-20
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案