zoukankan      html  css  js  c++  java
  • 数据集 —— ground truth 数据集

    1. matlab 自带含 ground truth 数据集

    %% 加载停车标志数据到内存;
    data = load('stopSignsAndCars.mat', 'stopSignsAndCars');
    stopSignsAndCars = data.stopSignsAndCars;
    
    % 将 stopSignsAndCars 下的图像名,拓展为绝对路径加图像名,以方便读取
    imagePath = fullfile(toolboxdir('vision'), 'visiondata');
    stopSignsAndCars.imageFilename = fullfile(imagePath, stopSignsAndCars.imageFilename);
    
    summary(stopSignsAndCars)   
                % 查看该数据集的主要描述信息,主要标注了 stop sign,car rear:车尾,car front:车头
    
    stopSignsAndCarRears = stopSignsAndCars(:, {'imageFilename', 'stopSign', 'carRear'});
    
    % 使用已给的标注信息,对其中一副图像进行标注
    I = imread(stopSignsAndCarRears.imageFilename{1});
    I = insertObjectAnnotation(I, 'rectangle', stopSignsAndCarRears.stopSign{1}, 'stop sign', 'linewidth', 4, 'color', 'r');
    I = insertObjectAnnotation(I, 'rectangle', stopSignsAndCarRears.carRear{1}, 'car rear', 'linewidth', 4, 'color', 'g');
    
    imshow(I)



  • 相关阅读:
    HierarchicalDataTemplate
    Prism技巧
    常用Exception
    netcore URL重新路径
    Nintendo Switch相册整理
    交换变量-不借助任何变量
    QCombobox样式stylesheet总结
    Qt新旧Moc方式升级功能
    QSS使用方法总结
    【QRegExp】QLineEdit屏蔽空格
  • 原文地址:https://www.cnblogs.com/mtcnn/p/9421516.html
Copyright © 2011-2022 走看看