fvisticot
fvisticot

Reputation: 8546

Detect circles width vision framework on ios11?

I need to detect circles in an image. iOS11 allows to detect and track rectangles but how can we track circles ?

Is it possible ?

Upvotes: 11

Views: 1486

Answers (1)

Xvolks
Xvolks

Reputation: 2155

I have not seen anything like CIRectangleFeature for circles. As a workaround you may use OpenCV framework that has a Hough Circle Transformation.

Pro: it's multi-platform compliant.

Con: you need to embed a large library for one feature.

Edit: I tried implementing an objc class VNDetectCirclesRequest : VNImageBasedRequest. Unfortunately, those classes have a private implementation and the program crashes with "-[VNDetectCirclesRequest internalPerformInContext:error:] has not been implemented". I have also tried to implement this method, but the parameter context is of type VNRequestPerformingContext that is private.

See OpenCV doc

Upvotes: 3

Related Questions