COCOLabelParser DL

1 개요

Source Annotation Result
Source Annotation Result
Fig. COCOLabelParserDL 동작 수행 결과

2 API

3 예제 코드:

CResult res;
CCOCOLabelParserDL cocoLabelParserDL;

cocoLabelParserDL.SetSourceImageFolderPath(L"Source");
cocoLabelParserDL.SetSourceAnnotationPath(L"SourceAnnotation.json");
cocoLabelParserDL.SetDestinationImageFolderPath(L"Result");
cocoLabelParserDL.EnableSingleFileSaveMode(true);
cocoLabelParserDL.SetLabelShape(CCOCOLabelParserDL::ELabelShape_Segmentation);

if(IsFail(res = cocoLabelParserDL.Execute()))
    break;
CResult res = new CResult();
CCOCOLabelParserDL cocoLabelParserDL = new CCOCOLabelParserDL();

cocoLabelParserDL.SetSourceImageFolderPath("Source");
cocoLabelParserDL.SetSourceAnnotationPath("SourceAnnotation.json");
cocoLabelParserDL.SetDestinationImageFolderPath("Result");
cocoLabelParserDL.EnableSingleFileSaveMode(true);
cocoLabelParserDL.SetLabelShape(CCOCOLabelParserDL.ELabelShape.Segmentation);

if((res = cocoLabelParserDL.Execute()).IsFail())
    break;
cocoLabelParserDL = CCOCOLabelParserDL()

cocoLabelParserDL.SetSourceImageFolderPath('Source')
cocoLabelParserDL.SetSourceAnnotationPath('SourceAnnotation.json')
cocoLabelParserDL.SetDestinationImageFolderPath('Result')
cocoLabelParserDL.EnableSingleFileSaveMode(True)
cocoLabelParserDL.SetLabelShape(CCOCOLabelParserDL.ELabelShape.Segmentation)
        
if (res := cocoLabelParserDL.Execute()).IsFail():
    break