简体   繁体   中英

Draw circle on an image Opencv4Android 3.1.0

There are solutions to this question using canvas, as stated in Draw a circle on an existing image . I am trying to use Opencv4Android 3.1.0 and have not been able to find the function to draw circle, like the ones present in the previous version, in the Core class.

Is it only me, or is this a problem with the new Opencv4Android 3.1.0 ? If not present in the Core class, then can anyone please point out where it is present now? Thanks in advance.

Update 1

Am not able to find it even in my package. Does Opencv4Android 3.1.0 come without a function to draw a circle?

Write the OpenCV code in C++ You can use the same OpenCV circle function stated in http://docs.opencv.org/3.0-beta/modules/core/doc/drawing_functions.html#circle

However, for the C++ file to import in Android, follow this link

在OpenCV最新版本中,Core类不包含圆形,因此从现在开始,您必须使用关键字“ Imgproc.circle”绘制一个圆形。

试试这段代码:

Imgproc.circle(image, new Point(960,540), 500, new Scalar(0, 255, 0, 150), 4);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM