识别图片排除指定区域 - ExcludePos
函数简介
排除掉指定区域结果,用于颜色识别结果及图像识别
接口名称
ExcludePos
DLL调用
long ExcludePos(long ola, string json, int type, int x1, int y1, int x2, int y2)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由DLL版本 CreateCOLAPlugInterFace 接口生成json
(字符串): 识别返回的结果type
(整型数): 1颜色识别,2图像识别x1
(整型数): 排除区域左上角的X坐标y1
(整型数): 排除区域左上角的Y坐标x2
(整型数): 排除区域右下角的X坐标y2
(整型数): 排除区域右下角的Y坐标
示例:
待补充...
COM调用
long ExcludePos(string json, int type, int x1, int y1, int x2, int y2)
参数定义:
json
(字符串): 识别返回的结果type
(整型数): 1颜色识别,2图像识别x1
(整型数): 排除区域左上角的X坐标y1
(整型数): 排除区域左上角的Y坐标x2
(整型数): 排除区域右下角的X坐标y2
(整型数): 排除区域右下角的Y坐标
示例:
待补充...
返回值
字符串:
返回排除掉指定区域结果的json数据
注意:
DLL调用返回字符串指针地址,需要调用 FreeStringPtr接口释放内存