【问题标题】:Parse Error using vision.VideoPlayer使用 vision.VideoPlayer 解析错误
【发布时间】:2014-01-23 11:16:47
【问题描述】:

尝试使用vision.VideoPlayer 时出现以下错误:

错误使用 vision.VideoPlayer 指定的超类 coextensions.AbstractSystemObjectScope' 包含解析错误或 在 Matlab 的搜索路径上找不到,可能被另一个 同名文件。

virtualtrycolorm 19 中的错误

Matlab:class:InvalidSuperClass

实际上,我使用deploytool 从 MATLAB 创建了一个 exe 文件。尝试执行 exe 文件时出现错误。这是导致它的代码:

function virtualtrycolorm(~,~,~)     
redthresh = 0.25;     
greenthresh = 0.06;    
bluethresh = 0.15;    
import java.awt.Robot;     
import java.awt.event.*;   
varimouse = Robot;    
camera1=imaqhwinfo;    
cameraname=char(camera1.InstalledAdaptors(end));    
camerainfo=imaqhwinfo(cameraname);    
cameraid=camerainfo.DeviceInfo.DeviceID;     
cameraformat=char(camerainfo.DeviceInfo.SupportedFormats(end));
vid  = imaq.VideoDevice(cameraname, cameraid, cameraformat, 'ReturnedColorSpace', 'RGB');
vidinfo = imaqhwinfo(vid); 
screenSize = get(0,'ScreenSize');
blob = vision.BlobAnalysis('AreaOutputPort', false, 'CentroidOutputPort', true, 'BoundingBoxOutputPort', true','MaximumBlobArea', 4500, 'MinimumBlobArea', 100, 'MaximumCount', 3);
shapeins = vision.ShapeInserter('BorderColorSource', 'Input port', 'Fill', true,'FillColorSource', 'Input port', 'Opacity', 0.4);
%% here is the error:
videoPlayer = vision.VideoPlayer('Name', 'Final Video', 'Position', [100 100 800 500]);

【问题讨论】:

    标签: matlab computer-vision parse-error matlab-cvst


    【解决方案1】:

    我认为您不能将 vision.VideoPlayer 与 deploytool 一起使用。如果您使用的是 Windows,请改用 vision.DeployableVideoPlayer

    【讨论】:

      猜你喜欢
      • 2013-01-08
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-11
      相关资源
      最近更新 更多