sort_contours_xld算子的几种排序方式研究

本文详细探讨了sort_contours_xld算子的5种排序方式,包括'upper_left', 'upper_right', 'lower_left', 'lower_right'以及不太常见的'character'。重点解释了'character'排序方式,它类似于'upper_left',但在重叠时会考虑其他坐标。通过示例代码展示了如何根据最小外接矩形的左上角坐标进行升序或降序排列,并指出'upper_right', 'true', 'row'与'upper_left', 'true', 'row'在行排列时没有区别。建议读者通过实践操作以深入理解各种排序方式。" 118332948,11087164,NanoDet:轻量级目标检测模型训练实战,"['深度学习', '计算机视觉', '目标检测', 'NanoDet', '模型训练']
摘要由CSDN通过智能技术生成

 

算子sort_contours_xld算子有5种排序方式,即:

 

'upper_left':

The position is determined by the upper left corner of the surrounding rectangle.

'upper_right':
The position is determined by the upper right corner of the surrounding rectangle.

'lower_left':
The position is determined by the lower left corner of the surrounding rectangle.

'lower_right':
The position is determined by the lower right corner of the surrounding rectangle.

'character':
The position is determined by the upper left corner of the surrounding rectangle. In contrast to 'upper_left', the contours are also sorted according to the remaining coordinate, if they overlap in the direction of the coordinate which is specified by the parameter RowOrCol.

 

其中'character'排序方式不太好理解,不过从英文说明可知,它跟'upper_left'排序方式很像,我想一般来说,前面的四种排序方式一般够用了。

 

'upper_left'排序方式为例,它的英文说明的翻译是:位置由环绕矩形的左上角决定。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值