169 tools from the Leaper Vision Toolkit MCP Server, categorised by risk level.
View the Leaper Vision Toolkit policy →get_tool_tree 获取工具节点和下一层子节点的工具名称的方法,每次调用仅获取一层子节点,主要用于列出某个模块的方法和获取所有方法列表。
参数说明:
- name: 要查询的节点名称,并根据name返回该节点及其下一层节点,不传则返回根节点和下一层结构。
返回结构是一个序列化树状结构的json,其中- Name:... 2/5 il_region_rotate_and_translate Rotate and translate a region based on anchor point transformation. 基于锚点的位置和角度变化,生成一个旋转和平移后的ROI区域对象。
The relative position between the region and ... il_region_translate Translate a region by the specified offset. 平移当前ROI区域,生成一个新的ROI区域对象。
The region is moved by the specified X and Y offsets. 区域按指定的X和Y偏移量移动。
并输出一个新... ilocr_ib_detect 这个是分割并识别行和字符工具。基于输入的图像和区域,分割并识别行和字符,返回字符分割和识别的结果和分数。Results 是字符分割和识别的信息,其中 ocrRes 表示分割和识别的所有结果,每个字符用空格隔开。ocrScoreRes 表示分割和识别的所有分数,用空格隔开,与结果一一对应。 image_get_channel BGR8 从彩色图像中提取某一个给定索引的通道图像。仅用于彩色图像。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 给定索引的通道的图像结果
Extract the channel of the given index from a color ima... image_info 获取输入图像的图片信息。
返回结构是一个序列化的JSON字符串,包含以下字段:
BytesPerLine : 每行像素数据的字节数,包含行末用于对齐的字节。
Height: 图像的高度,行的总数。
Width: 图像的宽度,列的总数。
ImageFormat: 图像类型... image_stats_count_pixel Count the pixels in the input image which is below, between or above the given threshold bounds.
计算输入图像中灰度值在设置范围之下、之内、之上的像素总数。
Returns a JSON s... image_stats_count_pixel_color Count the pixels in the input image which is between or outside the given color bounds.
For all of the channels, the pixel value is within the col... pat_match_get_pat_center Get the center of the pattern template. 获取当前配置的模板中心。
The template center indicates the report position of the matching result. 匹配结果将基于配置方式输出不同的中心点... pat_match_get_pat_center_mode Get the center mode of the pattern template. 获取当前配置的模板中心设置方式。
This enumeration represents the mode of the pattern template center. 该枚举表示模板匹配结果中心的设... pat_match_get_pat_feature Get the feature points of trained pattern. 获取模板的特征点。
The feature points are extracted from the trained template. 特征点通过给定的形状区域提取。
Level parameter ... pat_match_get_pat_image Get the pattern template image. 获取模板图像。
The template image is the original image used for training the pattern. 模板图像是用于训练模板的原始图像。
返回结构是一个序列化的json... pat_match_get_pat_mask Get the pattern template mask. 获取模板蒙版。
The mask is used to exclude some not-care pixels during training. 蒙版用于在训练过程中排除一些不关心的像素。
It will be an empt... pat_match_get_pat_prune_mask Get the prune mask. 获取特征点剔除蒙版。
The prune mask shows which features have been excluded from the pattern. 特征点剔除蒙版显示哪些特征已被从模板中排除。
It will be an empt... pat_match_get_pat_shape Get the shape of trained pattern as polylines. 获取模板的形状线。
The shape is represented as polylines extracted from the trained pattern. 形状线是通过给定的形状区域提取... pat_match_is_learnt Check whether the LMatch object is well-trained. 检查当前模板匹配的功能对象是否已训练。
Return True if it's trained, otherwise, return False. 若已训练,返回 true,否则返回 false... display_blob_analysis Display the blob analysis results. 这是针对斑点的图像的交互工具,并返回标记斑点后的图片。
This interface provide functionalities of the display control. 该接口提供显示控件功能。
Usuall... 2/5 display_circle_detector Display the circle detection results. 这个是针对圆定位的图像的交互工具,并返回检测和定位圆后的图片。
This interface provide functionalities of the display control. 该接口提供显示控件功能。
... 2/5 display_line_detector Display the line detection results. 这个是针对直线定位的图像的交互工具,并返回检测和定位直线后的图片。
This interface provide functionalities of the display control. 该接口提供显示控件功能。
... 2/5 display_match Display the pattern matching results. 这个是执行模板匹配的图像的交互工具,并返回标记斑点后的图片。
This interface provide functionalities of the display control. 该接口提供显示控件功能。
... 2/5 edge_filter_gradient_full Both vertically and horizontally oriented edges are represented by bright pixels.
全梯度,水平和垂直边缘在输出图像中均表现为较亮的像素。
Provides image edge enhancement fun... 2/5 edge_filter_gradient_h Horizontally oriented edges are represented by bright pixels.
水平梯度,水平边缘在输出图像中表现为较亮的像素。
Provides image edge enhancement functionality for horizont... 2/5 edge_filter_gradient_v Vertically oriented edges are represented by bright pixels.
垂直梯度,垂直边缘在输出图像中表现为较亮的像素。
Provides image edge enhancement functionality for vertical g... 2/5 edge_filter_set_edge_kernel Set the kernel used in edge filtering of specified type and size.
设置图像边缘滤波器所使用的滤波核类型核尺寸。
Sets the filter kernel type and size for image edge enha... 2/5 edge_filter_set_edge_polarity Set the edge polarity of interest in edge filtering.
设置滤波器的边缘极性,以获得感兴趣极性的边缘。
Sets the edge polarity of the filter to obtain edges of interest, an... 2/5 il_annulus_region Create an annulus region object. 创建一个圆环ROI区域对象。
Annulus region is a ring-shaped area defined by an inner and outer circle with the same center. 圆环... 2/5 il_circle_detector 这个是个圆定位相关的初始化工具,初始化创建一个圆定位工具的功能调用的对象。
是所有圆定位工具下的MCP工具的初始化工具,在这些工具调用之前,都需要保证前处理调用过有且仅有一次此初始化工具。返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和... 2/5 il_circle_detector_set_accept_score 设置圆定位工具所使用的检测的分数阈值,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理... 2/5 il_circle_detector_set_edge_width 设置圆定位工具所使用的圆边缘的宽度,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理的... 2/5 il_circle_detector_set_find_by 设置圆定位工具所使用的检测的搜索策略,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理... 2/5 il_circle_detector_set_max_count 设置圆定位工具所使用的最大检出个数,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理的... 2/5 il_circle_detector_set_norm_score 设置圆定位工具所使用的是否基于区域中的最大梯度值归一化圆分数,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这... 2/5 il_circle_detector_set_polarity 设置圆定位工具所使用的检测的边缘极性,并返回设置完成的圆定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理... 2/5 il_circle_region Create a circle region object. 创建一个圆形ROI区域对象。
Circle region is a circular area defined by a center point and radius. 圆形区域是由中心点和半径定义的圆形区域。
This re... 2/5 il_ellipse_region Create an ellipse region object. 创建一个椭圆ROI区域对象。
Ellipse region is an elliptical area defined by a center point, major and minor axes, and rotation... 2/5 il_image_filter 这个是图像滤波工具的初始化工具,创建一个 ILImageFilter 对象。
初始化图像滤波工具,用于后续的各种滤波操作。
This is an initialization tool for image filtering, creating an ILImageFilter obje... 2/5 il_image_filter_edge_preserve_denoise 过滤图像噪声并保留边缘工具。
Smooth out image noise while retaining sharp edges.
The smoothness of the denoising process is controlled by kernel sigma value wi... 2/5 il_image_filter_edge_preserve_texture_enhance 增强图像纹理并保留边缘工具。
Enhance the texture on image while retaining sharp edges.
The smoothness of the denoising process is controlled by kernel sigma va... 2/5 il_image_filter_equalize 均衡化工具。该工具将归一化亮度,增加图像对比度。
Equalizes the histogram of the input grayscale image. It will normalizes the brightness and increases the contrast of the... 2/5 il_image_filter_fill_hole 修补输入图像中的孔洞工具。
Fill holes in the input image by reconstructing missing pixels using nearby pixel values.
A hole is defined as a region of black pi... 2/5 il_image_filter_gaussian 高斯滤波工具。
Apply a Gaussian filter to the input image.
Gaussian filter is a smoothing filter that reduces noise while preserving edges.
用户没有指定滤波相关参... 2/5 il_image_filter_high_pass 高通滤波工具,相对于梯度更一致的区域,增强图像中的边。
Apply a high-pass filter to the input image to enhance edges.
High-pass filter emphasizes regions with strong gradien... 2/5 il_image_filter_linear_filter 线性滤波工具,基于自定义核,对输入图像进行线性滤波。
Apply a linear filter to the input image using a custom kernel.
Result pixel values beyond the depth range will be tru... 2/5 il_image_filter_linear_filter_abs 基于自定义核,对输入图像进行线性滤波,输出滤波结果的绝对值 。
Apply linear filtering on the given image using the custom kernel.
kMat then report absolute value.
用户没有指定滤波相关参数... 2/5 il_image_filter_local_median 中值滤波,输出图像中的每个像素表示输入图像中这一局部区域中所有像素中的中值。
Apply a median filter to the input image.
Median filter is effective for reducing salt-and-pepper noise w... 2/5 il_image_filter_local_median_norm 归一化中值滤波,用于从图像中去除背景像素。 该滤波器相当于输入图像与中值滤波的结果相减,然后将每个像素 << 1 + 128。
Used to subtract the background from an image.
This filter is the equivalent of s... 2/5 il_image_filter_mean_filter 均值滤波,输出像素中的每个像表示输入图像中这一局部区域中所有像素的均值。
Each output pixel represents the mean pixel value of the pixel values in the kernel neighborhood.
用户没有指定滤波相... 2/5 il_image_filter_optical_density 光密度,通过度量其通光量显露在输入图像中物体或特征的密度。
密度较高的物体或特征在输出图像中以较亮的像素表示。
Reveals the density of objects and features in the input image by measuring the amount of... 2/5 il_image_filter_set_kernel_sigma 设置图像滤波工具的Sigma值和Gain值。
Change the kernel using the specified sigma and gain value.
Sigma controls the filter kernel's smoothness, gain controls t... 2/5 il_image_filter_set_kernel_size 设置图像滤波工具的滤波核尺寸。
Change kernel size used in the filter, by default it's a 3x3 kernel.
Large kernel size results usually in stronger filtering effe... 2/5 il_image_filter_sharpen 锐化,使得图像中的边缘更锐利、纹理更清晰。
锐化效果的强度由滤波核的尺寸、 #KernelSigma 和 #KernelGain 值控制。
Emphasize texture and make the edges crisper and better defined.
The stre... 2/5 il_image_morph ~english Initialize a morphological operation tool object.
This is the initialization tool for all morphological operation MCP tools. Before calli... 2/5 il_image_morph_close 这个是闭操作工具。减少或消除输入图像中的较暗区域。闭操作等价于先膨胀再腐蚀。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像U... 2/5 il_image_morph_dilate 这个是膨胀工具。输出结果中的每个像素为其结构元范围内邻域像素的灰度值中的最大值。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图... 2/5 il_image_morph_erode 这个是腐蚀工具。输出结果中的每个像素为其结构元范围内邻域像素的灰度值中的最小值。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图... 2/5 il_image_morph_gradient 这个是梯度工具。输出形态学意义上的梯度图像。该工具等价于膨胀减去腐蚀的结果。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像U... 2/5 il_image_morph_open 这个是开操作工具。略微增强亮部区域,减少或消除输入图像中的面积较小的亮部,增强面积较大。开操作等价于先腐蚀再膨胀。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
... 2/5 il_image_morph_set_morph_shape ~english Set the structuring element used in morphology operations with specified shape and size. Returns the configured morphological tool object.... 2/5 il_image_morph_top_bottom_hat 这个是高低帽工具。每个像素输出高帽结果或低帽结果中的最大值。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。 2/5 il_image_morph_top_hat 这个是高帽工具。用于从输入图像中提取较小单元和细节。该工具等价于从原输入图像中减去开操作结果。
用户没有指定形态学相关参数时,不要调用设置参数的插件,传入的 ILImageMorph 类的文件中已经设置了形态学相关的默认参数。
返回结构是一个序列化的json,其中:
ResultImg属... 2/5 il_image_op_add 这个是将两个图像逐像素相加的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images shou... 2/5 il_image_op_add_scalar 这个是将输入图像和一个标量逐像素相加的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: For a color image to... 2/5 il_image_op_add_weighted 这个是将两个图像逐像素相加的工具。输出一个新图像,两个输入图像的尺寸需相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two... 2/5 il_image_op_bit_and 这个是将两个图像逐像素相加的工具。输出一个新图像,两个输入图像的尺寸需相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two... 2/5 il_image_op_bit_and_scalar 这个是将输入图像和一个标量逐像素进行位操作与的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input imag... 2/5 il_image_op_bit_not 这个是将输入图像逐像素进行位操作取非的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images s... 2/5 il_image_op_bit_or 这个是将两个图像逐像素进行位操作或的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images sh... 2/5 il_image_op_bit_or_scalar 这个是将输入图像和一个标量逐像素进行位操作或的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input imag... 2/5 il_image_op_bit_xor 这个是将两个图像逐像素进行位操作异或的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images s... 2/5 il_image_op_bit_xor_scalar 这个是将输入图像和一个标量逐像素进行位操作异或的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input ima... 2/5 il_image_op_blend 这个是将多帧图像融合用于将多张同一场景的图像融合为一张的工具。在不同的场景,通过使用不同的聚合方式达到不同目的。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
Engli... 2/5 il_image_op_diff 这个是将两个图像逐像素差值的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images should... 2/5 il_image_op_diff_scalar 这个是计算输入图像和一个标量逐像素差值的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images ... 2/5 il_image_op_divide 这个是将第一个输入图像逐像素除以第二个输入图像的像素的工具。输出一个新图像,对于第二个图像中的 0 像素,输出结果为 0。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
... 2/5 il_image_op_divide_scalar 这个是将输入图像逐像素除以一个标量的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images sh... 2/5 il_image_op_flip 这个是水平或垂直翻转一个图像的工具。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
R... 2/5 il_image_op_gain_offset 这个是图像增益和偏移的工具。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images should have the s... 2/5 il_image_op_invert 这个是反转图像的工具。8 位图:I' = 255 - I,16 位图:I' = 65535 - I。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: T... 2/5 il_image_op_log 这个是对输入图像进行逐像素对数运算的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images sh... 2/5 il_image_op_max 这个是将两个图像逐像素比较,取其最大值的工具。输出一个新图像,两个输入图像需尺寸相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The ... 2/5 il_image_op_max_scalar 这个是将输入图像和一个标量逐像素比较,取其最大值的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input im... 2/5 il_image_op_min 这个是将两个图像逐像素比较,取其最小值的工具。输出一个新图像,两个输入图像需尺寸相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The ... 2/5 il_image_op_min_scalar 这个是将输入图像和一个标量逐像素比较,取其最小值的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input im... 2/5 il_image_op_multiply 这个是将两个图像逐像素相乘的工具。输出一个新图像,两个输入图像需尺寸相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two in... 2/5 il_image_op_multiply_scalar 这个是将输入图像和一个标量逐像素相乘的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images s... 2/5 il_image_op_normalize 这个是归一化输入图像,拉伸指定的最小最大值范围内的像素到目标数值范围的工具。不改变图像位深,归一化后的结果图像与输入位深相同、通道数相同。对于彩色的多通道图像,输出也是彩色多通道图像,每个通道分别独立进行归一化。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回... 2/5 il_image_op_normalize_mean_std_dev 这个是归一化输入图像,以当前图像的均值和标准差计算感兴趣的数值范围,拉伸到目标数值范围的工具。不改变图像位深,归一化后的结果图像与输入位深相同、通道数相同。对于彩色的多通道图像,输出也是彩色多通道图像,每个通道分别独立进行归一化。
工具不需要通过其它工具设置参数,不需要传入ILImageOp... 2/5 il_image_op_pow 这个是将对输入图像进行逐像素幂运算的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images sh... 2/5 il_image_op_project_x 这个是水平投影图像的工具。聚合每一行上的像素。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultArray属性是输出的结果向量列表。 2/5 il_image_op_project_y 这个是垂直投影图像的工具。聚合每一列上的像素。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultArray属性是输出的结果向量列表。 2/5 il_image_op_resize 这个是缩放输入图像的工具。按照给定的缩放比例。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其... 2/5 il_image_op_resize_to 这个是缩放输入图像到指定的尺寸的工具。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
... 2/5 il_image_op_rotate 这个是顺时针旋转输入图像的工具。输出一个新图像,使用图像中心作为旋转中心。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结... 2/5 il_image_op_split 这个是按网格拆分一个图像的工具。为若干个小图 。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImgList属性是输出结果图像URL地址列表。 2/5 il_image_op_split_x 这个是水平拆分一个图像的工具。为若干个小图 。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImgList属性是输出结果图像URL地址列表。 2/5 il_image_op_split_y 这个是垂直拆分一个图像的工具。为若干个小图 。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImgList属性是输出结果图像URL地址列表。 2/5 il_image_op_sub 这个是将两个图像逐像素相减的工具。输出一个新图像,两个输入图像需尺寸相同、类型相同。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two in... 2/5 il_image_op_sub_scalar 这个是将输入图像和一个标量逐像素相减的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input images s... 2/5 il_image_op_tile_x 这个是将水平平铺一组图像,合成一张大尺寸图像的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input imag... 2/5 il_image_op_tile_y 这个是将垂直平铺一组图像,合成一张大尺寸图像的工具。输出一个新图像。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的json,其中:
ResultImg属性是输出结果图像URL地址。
English: The two input imag... 2/5 il_image_threshold LPV Image Threshold initialization tool. This is the initialization tool for image threshold operations. It is the prerequisite for all MCP tools s... 2/5 il_image_threshold_set_threshold Use user-specified threshold value to set the fixed threshold range for foreground pixels. The lower bound of threshold range is in range of 0 ~ 25... 2/5 il_image_threshold_set_threshold_adapt_globald Use global-adaptive threshold value. The optimal threshold value is calculated base on the entire input image, then revised by the given bias value... 3/5 il_image_threshold_set_threshold_adapt_local Use local-adaptive threshold value. This is a legacy function and deprecated since 2.18.0, SetThresholdAdaptLocalMean() has the same functionality ... 2/5 il_line_detector 这是一个直线定位相关的初始化工具,初始化创建一个直线定位工具的功能调用的对象。
是所有直线定位工具下的MCP工具的初始化工具,在这些工具调用之前,都需要保证前处理调用过有且仅有一次此初始化工具。返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称... 2/5 il_line_detector_set_accept_score 设置直线定位工具所使用的检测的分数阈值,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前... 2/5 il_line_detector_set_edge_width 设置直线定位工具所使用的直线边缘的宽度,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前... 2/5 il_line_detector_set_find_by 设置直线定位工具所使用的检测的搜索策略,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前... 2/5 il_line_detector_set_max_count 设置直线定位工具所使用的最大检出个数,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处... 2/5 il_line_detector_set_norm_score 设置直线定位工具所使用的是否基于区域中的最大梯度值归一化直线分数,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称... 2/5 il_line_detector_set_polarity 设置直线定位工具所使用的检测的边缘极性,并返回设置完成的直线定位工具的功能调用的对象。
返回结构是一个序列化的JSON字符串,属性包括:
LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前... 2/5 il_mask_region Create a mask region object. 创建一个蒙版ROI区域对象。
Mask region is defined by a binary image mask, where white pixels represent the region area. 蒙版区域由二值图像... 2/5 il_poly_region Create a polygon region object. 创建一个多边形ROI区域对象。
Polygon region is defined by a set of vertices that form a closed polygon. 多边形区域由一组顶点定义,形成一个闭合多边形。... 2/5 il_rect_region Create a rectangle region object. 创建一个矩形ROI区域对象。
Rectangular region is a simple rectangular area with the given top-left corner (x, y) and size (w... 2/5 il_region_add Add two regions together. 将当前ROI区域和输入的ROI区域相加。
The new region contains all parts from both input regions. 新的区域包含当前区域和输入区域中所包含的所有部分。
This operatio... 2/5 il_region_intersect Intersect two regions. 将当前ROI区域与输入的ROI区域进行并操作。
The new region contains only the overlapping parts of both regions. 新的区域仅包含两个区域同时覆盖的部分。
If an empt... 2/5 il_region_invert Invert a region. 取反当前ROI区域。
The new region contains all areas outside the original region. 新的区域包含原始区域之外的所有区域。
This operation creates the compleme... 2/5 il_region_rotate Rotate a region around its center. 以区域中心为旋转中心顺时针旋转当前ROI区域。
The region is rotated clockwise by the specified angle. 区域按指定角度顺时针旋转。
Note: Rotated LR... 2/5 il_region_subtract Subtract one region from another. 从当前ROI区域中减去输入的ROI区域。
The new region contains the parts of the original region that are not in the other region. ... 2/5 il_region_to_mask Generate a mask image from a region. 为当前ROI区域生成一个蒙版图像,以指定的位置和尺寸。
White pixels in the mask image represent areas within the region. 图像中的白像素表示该位置包含在... 2/5 il_region_union Union two regions. 将当前ROI区域与输入的区域进行与操作。
The new region contains all parts from both input regions. 新的区域包含当前区域和输入区域中所包含的所有部分。
This operation is eq... 2/5 il_region_xor XOR two regions. 将当前ROI区域与输入的区域进行异或操作。
The new region contains parts that are exclusively in one region but not both. 新的区域仅包含属于当前区域但不属于输入区域或属于输入区域... 2/5 il_rot_rect_region Create a rotated rectangle region object. 创建一个旋转矩形ROI区域对象。
Rotated rectangle region is a rectangular area that can be rotated by an arbitrary angl... 2/5 image_compare_compare Compare with the baseline image (and mask).
* @param[in] img The input image
* @param[in] region The input region, to limit the region of the com... 2/5 image_compare_compare_symmetric 比较输入图像中的两个对称区域,生成差异图和蒙版图。
返回结构是一个序列化的json,其中:
DiffResultImg属性是差异图像URL地址,
MaskResultImg属性是差异蒙版图像URL地址 2/5 image_compare_set_baseline Set the comparison baseline image (and mask).
* @param[in] img The input image
* @param[in] region The input region, to limit the region of the b... 2/5 image_convert_bgr_mix Mix the 3 channels in the input BGR color image using the specified weight for individual channel
根据指定的各通道权重,混合 BGR 彩色图像的三个通道
- Mix the 3 channel... 2/5 image_convert_bgr_to_gray Convert a BGR color image to grayscale
将 BGR 彩色图像转换为灰度图
- Convert a BGR color image to grayscale using the formula: Gray = 0.114⋅B + 0.587⋅G + 0.... 2/5 image_convert_bgr_to_gray_color 将 BGR 颜色值转换为灰度值
返回结构是一个序列化的JSON字符串,包含以下字段:
GrayValue: 转换后的灰度值 2/5 image_convert_color_map Apply color map on the given image to generate a pseudo color image
对输入图像应用颜色映射表,生成伪彩图
- Apply color map on the given image to generate a pseudo ... 2/5 image_convert_color_map_multi_band Apply color map of multiple bands on the given image, to generate a pseudo color image for data visualization
对输入图像应用多周期的颜色映射表,生成一张伪彩图,通常用于进行数据可视化... 2/5 image_convert_convert Convert the color image from one color space to another, for example, from BGR to HSV
对彩色图像进行颜色空间转换,如,从 BGR 转到 HSV 空间
- Convert the color image f... 2/5 image_convert_convert_color 颜色空间转换
返回结构是一个序列化的JSON字符串,包含以下字段:
Blue: 转换后的蓝色通道值
Green: 转换后的绿色通道值
Red: 转换后的红色通道值 2/5 image_convert_depth16_to8 Convert a 16bit image to 8bit depth, extracting the continues 8 bits from the specified index
转换 16 位图像到 8 位图像,从指定索引开始提取连续 8 位
- Convert a 16bit ... 2/5 image_convert_depth8_to16 转换 8 位图像到 16 位图像
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 输出结果图像URL地址 2/5 image_convert_gray_to_bgr Convert a grayscale image to a BGR color image
将灰度图转换为 BGR 彩色图像
- Convert a grayscale image to a BGR color image, all three channels are assigned... 2/5 image_convert_gray_to_bgr_color 将灰度值转换为 BGR 颜色值
返回结构是一个序列化的JSON字符串,包含以下字段:
Blue: 蓝色通道值
Green: 绿色通道值
Red: 红色通道值 2/5 image_convert_normalize_to16 归一化输入图像到 16 位图
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 输出结果图像URL地址 2/5 image_convert_normalize_to8 归一化输入图像到 8 位图
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 输出结果图像URL地址 2/5 image_copy_from 复制输入图像的内容并覆盖当前图像的指定位置。
若输入图像的尺寸过大或超出当前图像的范围,多余部分将被忽略。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 复制输入图像的内容并覆盖当前图像的结果
Copy the input image conten... 2/5 image_set_channel 设置彩色图像中某一个给定索引的通道图像。仅用于彩色图像。
输入的通道图像应为灰度图,尺寸与当前的彩色图像相同。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 设置通道后的图像结果
Set the channel of the given index... 2/5 image_set_size 设置图像为指定尺寸。如果设置尺寸比原尺寸更大,像素的数值则会为随机,可调用 SetTo() 或 SetToColor() 接口将其全部设置为 0 或其他数值。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 设置尺寸后的图像结果
Set the imag... 2/5 image_set_to 将图像中给定区域内的像素设置为指定的灰度值。
灰度值取值范围0-255,越低则越黑,越高则越白,0则为黑色,255是白色。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 设置灰度后的图像结果
Set the pixels in the given ... 2/5 image_set_to_color 将图像中给定区域内的像素设置为指定的 RGB 值。仅用于彩色图像。
蓝色通道值范围0-255,绿色通道值范围0-255,红色通道值范围0-255。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 设置颜色后的图像结果
Set the pixels i... 2/5 image_stats_max Find the pixel of maximum value in the input image, report the value and pixel's position.
If there's more than one pixel with the same value, rep... 2/5 image_stats_mean_std_dev Calculate the mean and standard deviation of the input image.
计算输入图像的灰度均值和标准差。
Returns a JSON string with the following fields:
MeanValue: The m... 2/5 image_stats_min Find the pixel of minimum value in the input image, report the value and pixel's position.
If there's more than one pixel with the same value, rep... 2/5 image_stats_sharpness Compute the relative sharpness of the input image, based on the edge gradients.
It's usually used to automate focusing a camera lens on a scene.
... 2/5 pat_match_learn Learn the pattern template features from the provided image. 训练模板,使用输入的图像。
The template center can be modified later. 模板中心可根据需求修改。
This function ... 2/5 pat_match_learn_with_shape Learn the pattern template features from the provided image. 训练模板,使用输入的图像。
The template center can be modified later. 模板中心可根据需求修改。
The shape and ... 2/5 pat_match_learn_with_shape_image Learn the pattern template features from the provided image. 训练模板,使用输入的图像。
The template center can be modified later. 模板中心可根据需求修改。
The shape and ... 2/5 pat_match_prune Prune the trained template features. 从已训练的模板特征中,剔除某些指定的特征。
Eliminate the features which are located outside of the given region or belong to the s... 2/5 pat_match_set_pat_center Customize the center of the pattern template. 修改模板匹配结果中心的设置方式。
By default, we use the template image center as pattern center. 默认设置为使用模板图像的中心作为匹配结... 2/5 edge_filter_new This interface provide functionalities of edge extraction.
该接口类提供了图像边缘增强的功能。
To use this interface, you should create a LEdgeFilter object.
使用这个... 3/5 il_annulus_sector_region Create an annulus sector region object. 创建一个环状扇形ROI区域对象。
Annulus sector region is a sector-shaped area within a ring, defined by start and end ang... 3/5 il_blob_analysis This interface provide functionalities of blob analysis. 该接口提供斑点分析的功能。
Blob analysis is a useful approach to segment object from background into c... 3/5 il_blob_analysis_color This interface provide functionalities of blob analysis. 该接口提供斑点分析的功能。
Blob analysis is a useful approach to segment object from background into c... 3/5 il_histogram_build_draw Build histogram from input image and region, and draw as image.
Draw the histogram as a data chart onto provide device context, using the index as... 3/5 il_histogram_build_items Build histogram from input image and region, output the pixel count for each bin.
Collects count of data in provided image into a set of predefine... 3/5 il_histogram_build_mean_std_dev Build histogram from input image and region, calculate mean and standard deviation.
Calculate the mean and standard deviation of the histogram. Th... 3/5 il_histogram_build_min_max Build histogram from input image and region, find minimum and maximum values.
Find the bin of minimum or maximum value, report the value and bin i... 3/5 il_image_op_scale_rotate 这个是缩放和旋转输入图像的工具。使用用户指定的锚点。若指定的结果图像对象为空图像,则生成和输入图像尺寸相同的图像。否则,将保持结果图像的尺寸,超出图像范围的像素设为背景像素(默认为黑色)。
工具不需要通过其它工具设置参数,不需要传入ILImageOp的对象。
返回结构是一个序列化的jso... 3/5 il_image_threshold_binarize Binarize the input image and return the result new image. If the lower bound of threshold value is smaller than the upper bound, pixels within the ... 3/5 il_image_threshold_stretch Stretch the input image and output the result image. Each output pixel represents the difference between the greyscale value of each input pixel an... 3/5 il_region_scale Scale a region while keeping the center point unchanged. 缩放当前ROI区域,生成一个新的ROI区域对象,保持区域中心点不变。
The region is scaled by the specified factors in X and... 3/5 image_compare_new This interface provide functionalities of image comparison on pixel level.
* To use this interface, you should create a LImageCompare object.
该接口类提... 3/5 image_new 生成一张像素为1*1黑色的图像(单通道灰度图,如果要转换BGR彩色图,需调用灰度转彩色工具进行转换),如果后续需要修改大小可以调用Image_SetSize方法。
返回结构是一个序列化的JSON字符串,包含以下字段:
ResultImg: 生成的图像结果
Create a new ... 3/5 pat_match_new Create a new pattern matching tool instance. 创建一个新的模板匹配工具实例。
This interface provides functionalities of pattern matching. 该接口提供模板匹配的功能。
Pattern ... 3/5 The Leaper Vision Toolkit MCP server exposes 169 tools across 4 categories: Read, Write, Destructive, Execute.
Use Intercept, the open-source MCP proxy. Write YAML rules for each tool — rate limits, argument validation, or deny rules — then run Intercept in front of the Leaper Vision Toolkit server.
Leaper Vision Toolkit tools are categorised as Read (16), Write (137), Destructive (1), Execute (15). Each category has a recommended default policy.
Open source. One binary. Zero dependencies.
npx -y @policylayer/intercept