【问题标题】:Computer Vision System (vision video player) & GUI计算机视觉系统(视觉视频播放器)和 GUI
【发布时间】:2014-07-05 03:45:29
【问题描述】:

我想知道如何将vision.VideoPlayer 集成到 GUI Axes 中,我正在使用计算机视觉系统我试图将这个工具集成到轴中,但我没有到达,实时视频的大小图像为 640x480 RGB

videocam1 = vision.VideoPlayer;
 videocam2 = vision.VideoPlayer;
 while get(hObject,'Value')  


    frame1 = getdata(cam1,1,'uint8');
    frame1 = double(frame1) ;

    frame2 = getdata(cam2,1,'uint8');
    frame2 = double(frame2);


    m1 = min(min(min(frame1))) ; M1 = max(max(max(frame1))) ;
    m2 = min(min(min(frame2))) ; M2 = max(max(max(frame2))) ;

    frame01 = (frame1-m1)/(M1-m1) ;
    frame02 = (frame2-m2)/(M2-m2) ;

%     showFrameOnAxis(hAxes.axis1, videocam1.step(frame01));
%     showFrameOnAxis(hAxes.axis2, videocam2.step(frame02));

    videocam1.step(frame01);
    videocam2.step(frame02);

    nframe = nframe+1 ;

end

【问题讨论】:

    标签: matlab-cvst


    【解决方案1】:

    这是一个名为 Video Display in a Custom User Interface 的示例,它向您展示了如何做到这一点。

    【讨论】:

      猜你喜欢
      • 2014-07-02
      • 1970-01-01
      • 2011-09-13
      • 2010-12-04
      • 2018-11-07
      • 2011-10-18
      • 2017-08-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多