我有python脚本,我尝试用.net中的pythonnet重写它。但我混淆了如何将python中的这一行转换为.net?
contours = sorted(contours, key = cv2.contourArea, reverse = True)[:10]发布于 2022-03-27 19:58:52
使用System.Linq;
var sorted = contours
.OrderByDescending(c => c.ContourArea)
.Take(10);https://stackoverflow.com/questions/71631375
复制相似问题