Hi, I Want to ask about Open CV Java
Can I get image crop using opencv java? from browse image i use netbean for developping sorry im very2 new in java
you can use one of the submat functions here , e.g.:
Mat orig = Imgcodecs.imread("my.jpg");
if (orig.empty()) { // did it work ? we HAVE to check !
// error handling
}
Rect roi = new Rect(20,20,60,60);
Mat crop = orig.submat(roi);
and please, bookmark the docs !
Asked: 2018-06-03 23:31:03 -0600
Seen: 166 times
Last updated: Jun 04 '18
How to translate this to Java?
OpenCV Tutorial 1 - Add OpenCV on API 8
Unresolved inclusion in OpenCV+Android tutorial
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
How to convert Floating point image to 32-bit single-channel?
OpenCV Python save jpg specifying quality; gives SystemError
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images