Core.line不适用于与OpenCV4Android参数 [英] Core.line is not applicable for the arguments with OpenCV4Android

查看:548
本文介绍了Core.line不适用于与OpenCV4Android参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到一些麻烦与OpenCV4Android。

i am getting some troubles with OpenCV4Android.

Core.line(mGray, pt1, pt2, new Scalar(255,0,0));

Core.line(mRgba, pt1, pt2, new Scalar(255,0,0));

Core.line(mRgba, pt1, pt2, new Scalar(255,0,0,0));

从Eclipse中的错误:
在类型核心的方法行(垫,点,点,标量)不适用的参数(垫,点,点,标量)

The Error from Eclipse: The method line(Mat, Point, Point, Scalar) in the type Core is not applicable for the arguments (Mat, Point, Point, Scalar)

请问有人知道什么是错?

Does somebody knows whats wrong?

推荐答案

好像有在OpenCV的不同类型的点。

It seems like there are different types of Point at OpenCV.

org.opencv.core.Point

是正确/接受点式。

is the correct/accepted point-type.

这篇关于Core.line不适用于与OpenCV4Android参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆