CVOGetProfile

该函数在 RC+ 启动时被调用。
请将您的自定义视觉对象的配置文件信息设置到 CVO_PROFILE 结构体中并返回。
各项设置请参阅 API 参考文档。Properties 和 ResultProperties 需以逗号分隔的字符串形式指定属性。关于可设置的属性,请参阅“6.3.6 属性”章节。

CVOAPI int32_t CVOGetProfile(CVO_PROFILE* profile)
{
    strcpy_s(profile->Name, CVO_VALUE_MAX_LENGTH, "InvertColor");
    strcpy_s(profile->NamePrefix, CVO_VALUE_MAX_LENGTH, "Invert");
    strcpy_s(profile->IconFileName, CVO_VALUE_MAX_LENGTH, "InvertColor.ico");
    profile->GrayscaleOnly = true;
    profile->UpdateImage = true;
    profile->DetectItems = true;
    profile->HasTeach = false;
    profile->SaveModelFileInProjectFolder = false;
    strcpy_s(profile->Properties, CVO_VALUE_MAX_LENGTH, "");
    strcpy_s(profile->ResultProperties, CVO_VALUE_MAX_LENGTH, "");

    return CVO_NOERROR;
}