• 大小: 422KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: 其他
  • 标签: Culane  数据集  

资源简介

车道线检测SCNN中使用CULane数据集转换代码,将json文件转换为灰度图像

资源截图

代码片段和文件信息

#include “label_generator.hpp“

void LabelGenerator::outputLabels(ofstream &output_ofs)
{
int n=0;
for(n=0; n {
if(axis_per_line!=labels[n].size())
{
std::cerr< std::cerr<<“label generate error“< }
for(int i=0; i {
output_ofs< }
}
// if less than l
while(n {
for(int i=0; i {
output_ofs<<“-1 “;
}
n++;
}
}

void LabelGenerator::outputWeights(ofstream &output_ofs)
{
int n=0;
for(n=0; n {
if(axis_per_line!=weights[n].size())
{
std::cerr<<“label generate error“< }
for(int i=0; i {
output_ofs< }
}
// if less than l
while(n {
for

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-16 09:23  seg_label_generate-master\
     文件          25  2018-04-16 09:23  seg_label_generate-master\.gitignore
     文件        1266  2018-04-16 09:23  seg_label_generate-master\Makefile
     文件        1179  2018-04-16 09:23  seg_label_generate-master\README.md
     目录           0  2018-04-16 09:23  seg_label_generate-master\include\
     文件         597  2018-04-16 09:23  seg_label_generate-master\include\label_generator.hpp
     目录           0  2018-04-16 09:23  seg_label_generate-master\include\lane\
     文件        4178  2018-04-16 09:23  seg_label_generate-master\include\lane\GMHeader.h
     文件        2664  2018-04-16 09:23  seg_label_generate-master\include\lane\GM_SubLibrary.hpp
     文件         518  2018-04-16 09:23  seg_label_generate-master\include\lane\polyfit.hpp
     文件         584  2018-04-16 09:23  seg_label_generate-master\include\lane\spline.hpp
     文件        1008  2018-04-16 09:23  seg_label_generate-master\include\lane\util.hpp
     文件        1399  2018-04-16 09:23  seg_label_generate-master\include\seg_label_generator.hpp
     文件         548  2018-04-16 09:23  seg_label_generate-master\labelGen.sh
     文件         237  2018-04-16 09:23  seg_label_generate-master\listGen.sh
     目录           0  2018-04-16 09:23  seg_label_generate-master\src\
     文件         873  2018-04-16 09:23  seg_label_generate-master\src\label_generator.cpp
     目录           0  2018-04-16 09:23  seg_label_generate-master\src\lane\
     文件       23499  2018-04-16 09:23  seg_label_generate-master\src\lane\GM_SubLibrary.cpp
     文件        1735  2018-04-16 09:23  seg_label_generate-master\src\lane\polyfit.cpp
     文件        4904  2018-04-16 09:23  seg_label_generate-master\src\lane\spline.cpp
     文件        5947  2018-04-16 09:23  seg_label_generate-master\src\lane\util.cpp
     文件        3367  2018-04-16 09:23  seg_label_generate-master\src\main.cpp
     文件       11393  2018-04-16 09:23  seg_label_generate-master\src\seg_label_generator.cpp
     文件      407360  2018-04-16 09:23  seg_label_generate-master\visualize.png

评论

共有 条评论