gpt4 book ai didi

image - CIDetectorTypeRectangle 检测多个矩形

转载 作者:行者123 更新时间:2023-12-02 08:21:21 25 4
gpt4 key购买 nike

当使用 CIDetectorTypeRectangle 时,我只能(几乎)检测到相机图像中的一个矩形,但我想检测多个矩形。它可以检测多个矩形,就像可以检测多个面部一样?

最佳答案

我在使用 CIDetectorTypeRectangle 时遇到了同样的问题。我无法从 featuresInImage(image) 中获取超过 1 个功能。在Apple开发者文档中没有关于返回功能的最大数量的评论,但我可能在wwdc 2014 session 中找到了一些证据( http://asciiwwdc.com/2014/sessions/514 )。

[...] So we've created a generic rectangle detector object and it takes one option parameter which is the aspect ratio that we want to search for.

And again, you can ask the detector to return the features array.

Now right now, it just returns one rectangle but that may change in the future. [...]

希望有人可以证伪这个假设,否则我必须坚持使用 openCV2 进行矩形检测。

关于image - CIDetectorTypeRectangle 检测多个矩形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33200831/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com