Java OpenCV - org.opencv.core.Core rectangle()方法丢失 [英] Java OpenCV - org.opencv.core.Core rectangle() method missing

查看:2154
本文介绍了Java OpenCV - org.opencv.core.Core rectangle()方法丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有openCV-3.0.0 alpha,我在openCV教程网站上找到了一个示例代码。我习惯了相同的代码并编译它,但eclipse告诉我, org.opencv.core.Core rectangle()方法c $ c>类找不到。我自己检查了课程,确实找不到这个方法。有谁知道这个方法现在存储在哪个类中?我在openCV-3.0.0中被停用的 org.opencv.highgui.Highgui 类发现了一个类似的问题,并被 org.opencv .imgcodecs.Imgcodecs

解决方案

它在 org.opencv中找到。 imgproc.Imgproc 包,例如

  Imgproc.rectangle(webcam_img,null,null,null); 


I have openCV-3.0.0 alpha and I found a sample code on the openCV tutorials website. I used to same code and compiled it, but eclipse tells me that the rectangle() method in the org.opencv.core.Core class cannot be found. I checked the class myself and indeed could not find this method. Does anyone know in which class this method is now stored in? I found a similar problem with the org.opencv.highgui.Highgui class which was discontinued in the openCV-3.0.0 and replaced by org.opencv.imgcodecs.Imgcodecs

解决方案

it is found in org.opencv.imgproc.Imgproc package, e.g.

Imgproc.rectangle(webcam_img, null, null, null);

这篇关于Java OpenCV - org.opencv.core.Core rectangle()方法丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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