openCV 3的一些改动

import org.opencv.highgui.Highgui 有提示错误

主要是因为OpenCV 3版本的库中已经没有opencv.highgui.Highgui这个包,需要改为 import org.opencv.imgproc.Imgproc;

也就是说 Imgcodecs.imread 代替了 Highgui .imread 

 

Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),new Scalar(0, 255, 0));

The method rectangle(Mat, Point, Point, Scalar) is undefined for the type Core

原因:需要import org.opencv.imgproc.Imgproc;    Imgproc.rectangle()代替Core.rectangle()

 

https://stackoverflow.com/questions/30284379/why-im-getting-the-method-rectanglemat-point-point-scalar-is-undefined-for

转载于:https://www.cnblogs.com/xxg1993/p/7566973.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Paperback: 366 pages Publisher: Packt Publishing - ebooks Account (November 13, 2015) Language: English ISBN-10: 1784399752 ISBN-13: 978-1784399757 About This Book Build computer vision projects to capture high-quality image data, detect and track objects, process the actions of humans or animals, and much more Discover practical and interesting innovations in computer vision while building atop a mature open-source library, OpenCV 3 Familiarize yourself with multiple approaches and theories wherever critical decisions need to be made Who This Book Is For This book is ideal for you if you aspire to build computer vision systems that are smarter, faster, and more practical than the competition. This is an advanced book, intended for those who already have some experience in setting up an OpenCV development environment and building applications with OpenCV. What You Will Learn Select and configure camera systems to see invisible light, fast motion, and distant objects Build a "camera trap", as used by nature photographers, and process photos to create beautiful effects Develop a facial expression recognition system with various feature extraction techniques and machine learning methods Build an Android panorama application using the OpenCV stitching module in C++, with NDK support Optimize your object detection model, make it rotation invariant, and apply scene-specific constraints to make it faster and more robust Create a person identification and registration system based on the biometric properties of that person, such as their fingerprint, iris, and face Fuse data from videos and gyroscopes to stabilize videos shot from your mobile phone and create hyperlapse videos In Detail This book makes use of OpenCV 3 to tackle increasingly challenging computer vision problems. You begin by taking a critical look at inputs, in order to decide which types of light, lenses, and image formats are best suited for a given purpose. You then consider the finer aspects of computational photography as you build an automated camera to assist nature photographers. You will gain
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值