Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect circles width vision framework on ios11?

Tags:

ios11

vision

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

Is it possible ?

like image 857
fvisticot Avatar asked Jun 29 '17 20:06

fvisticot


1 Answers

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

like image 62
Xvolks Avatar answered Nov 09 '22 14:11

Xvolks