├── .gitignore
├── .idea
├── codeStyles
│ └── Project.xml
├── misc.xml
├── modules.xml
├── runConfigurations.xml
└── vcs.xml
├── LICENSE
├── README.md
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── example
│ │ └── root
│ │ └── opencvfacedetect
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── root
│ │ │ └── opencvfacedetect
│ │ │ ├── CameraRawData.java
│ │ │ ├── MainActivity.java
│ │ │ └── ShowDetectResultView.java
│ ├── jniLibs
│ │ ├── armeabi-v7a
│ │ │ └── libopencv_java3.so
│ │ ├── armeabi
│ │ │ └── libopencv_java3.so
│ │ └── x86_64
│ │ │ └── libopencv_java3.so
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ └── ic_launcher_background.xml
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── raw
│ │ └── lbpcascade_frontalface.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── root
│ └── opencvfacedetect
│ └── ExampleUnitTest.java
├── build.gradle
├── cameraModule
├── .gitignore
├── build.gradle
├── gradle.properties
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── example
│ │ └── root
│ │ └── cameramodule
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── root
│ │ │ └── cameramodule
│ │ │ ├── Camera2Api.java
│ │ │ ├── CameraApi.java
│ │ │ ├── DensityUtils.java
│ │ │ ├── ICameraApiCallback.java
│ │ │ └── MainActivity.java
│ ├── manifest
│ │ └── AndroidManifest.xml
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ └── ic_launcher_background.xml
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── root
│ └── cameramodule
│ └── ExampleUnitTest.java
├── effect-picture
├── 1536370580306_video.gif
├── 1536370682495_video.gif
└── 1536504061111mz1.gif
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── import-summary.txt
├── openCVLibrary342dev
├── build.gradle
├── lint.xml
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── aidl
│ └── org
│ │ └── opencv
│ │ └── engine
│ │ └── OpenCVEngineInterface.aidl
│ ├── java
│ └── org
│ │ └── opencv
│ │ ├── android
│ │ ├── AsyncServiceHelper.java
│ │ ├── BaseLoaderCallback.java
│ │ ├── Camera2Renderer.java
│ │ ├── CameraBridgeViewBase.java
│ │ ├── CameraGLRendererBase.java
│ │ ├── CameraGLSurfaceView.java
│ │ ├── CameraRenderer.java
│ │ ├── FpsMeter.java
│ │ ├── InstallCallbackInterface.java
│ │ ├── JavaCamera2View.java
│ │ ├── JavaCameraView.java
│ │ ├── LoaderCallbackInterface.java
│ │ ├── OpenCVLoader.java
│ │ ├── StaticHelper.java
│ │ └── Utils.java
│ │ ├── aruco
│ │ ├── Aruco.java
│ │ ├── Board.java
│ │ ├── CharucoBoard.java
│ │ ├── DetectorParameters.java
│ │ ├── Dictionary.java
│ │ └── GridBoard.java
│ │ ├── bgsegm
│ │ ├── BackgroundSubtractorCNT.java
│ │ ├── BackgroundSubtractorGMG.java
│ │ ├── BackgroundSubtractorGSOC.java
│ │ ├── BackgroundSubtractorLSBP.java
│ │ ├── BackgroundSubtractorLSBPDesc.java
│ │ ├── BackgroundSubtractorMOG.java
│ │ ├── Bgsegm.java
│ │ └── SyntheticSequenceGenerator.java
│ │ ├── bioinspired
│ │ ├── Bioinspired.java
│ │ ├── Retina.java
│ │ ├── RetinaFastToneMapping.java
│ │ └── TransientAreasSegmentationModule.java
│ │ ├── calib3d
│ │ ├── Calib3d.java
│ │ ├── StereoBM.java
│ │ ├── StereoMatcher.java
│ │ └── StereoSGBM.java
│ │ ├── core
│ │ ├── Algorithm.java
│ │ ├── Core.java
│ │ ├── CvException.java
│ │ ├── CvType.java
│ │ ├── DMatch.java
│ │ ├── KeyPoint.java
│ │ ├── Mat.java
│ │ ├── MatOfByte.java
│ │ ├── MatOfDMatch.java
│ │ ├── MatOfDouble.java
│ │ ├── MatOfFloat.java
│ │ ├── MatOfFloat4.java
│ │ ├── MatOfFloat6.java
│ │ ├── MatOfInt.java
│ │ ├── MatOfInt4.java
│ │ ├── MatOfKeyPoint.java
│ │ ├── MatOfPoint.java
│ │ ├── MatOfPoint2f.java
│ │ ├── MatOfPoint3.java
│ │ ├── MatOfPoint3f.java
│ │ ├── MatOfRect.java
│ │ ├── MatOfRect2d.java
│ │ ├── Point.java
│ │ ├── Point3.java
│ │ ├── Range.java
│ │ ├── Rect.java
│ │ ├── Rect2d.java
│ │ ├── RotatedRect.java
│ │ ├── Scalar.java
│ │ ├── Size.java
│ │ ├── TermCriteria.java
│ │ └── TickMeter.java
│ │ ├── dnn
│ │ ├── DictValue.java
│ │ ├── Dnn.java
│ │ ├── Layer.java
│ │ └── Net.java
│ │ ├── face
│ │ ├── BIF.java
│ │ ├── BasicFaceRecognizer.java
│ │ ├── EigenFaceRecognizer.java
│ │ ├── Face.java
│ │ ├── FaceRecognizer.java
│ │ ├── Facemark.java
│ │ ├── FacemarkAAM.java
│ │ ├── FacemarkKazemi.java
│ │ ├── FacemarkLBF.java
│ │ ├── FacemarkTrain.java
│ │ ├── FisherFaceRecognizer.java
│ │ ├── LBPHFaceRecognizer.java
│ │ ├── MACE.java
│ │ ├── PredictCollector.java
│ │ └── StandardCollector.java
│ │ ├── features2d
│ │ ├── AKAZE.java
│ │ ├── AgastFeatureDetector.java
│ │ ├── BFMatcher.java
│ │ ├── BOWImgDescriptorExtractor.java
│ │ ├── BOWKMeansTrainer.java
│ │ ├── BOWTrainer.java
│ │ ├── BRISK.java
│ │ ├── DescriptorExtractor.java
│ │ ├── DescriptorMatcher.java
│ │ ├── FastFeatureDetector.java
│ │ ├── Feature2D.java
│ │ ├── FeatureDetector.java
│ │ ├── Features2d.java
│ │ ├── FlannBasedMatcher.java
│ │ ├── GFTTDetector.java
│ │ ├── KAZE.java
│ │ ├── MSER.java
│ │ ├── ORB.java
│ │ └── Params.java
│ │ ├── img_hash
│ │ ├── AverageHash.java
│ │ ├── BlockMeanHash.java
│ │ ├── ColorMomentHash.java
│ │ ├── ImgHashBase.java
│ │ ├── Img_hash.java
│ │ ├── MarrHildrethHash.java
│ │ ├── PHash.java
│ │ └── RadialVarianceHash.java
│ │ ├── imgcodecs
│ │ └── Imgcodecs.java
│ │ ├── imgproc
│ │ ├── CLAHE.java
│ │ ├── Imgproc.java
│ │ ├── LineSegmentDetector.java
│ │ ├── Moments.java
│ │ └── Subdiv2D.java
│ │ ├── ml
│ │ ├── ANN_MLP.java
│ │ ├── ANN_MLP_ANNEAL.java
│ │ ├── Boost.java
│ │ ├── DTrees.java
│ │ ├── EM.java
│ │ ├── KNearest.java
│ │ ├── LogisticRegression.java
│ │ ├── Ml.java
│ │ ├── NormalBayesClassifier.java
│ │ ├── ParamGrid.java
│ │ ├── RTrees.java
│ │ ├── SVM.java
│ │ ├── SVMSGD.java
│ │ ├── StatModel.java
│ │ └── TrainData.java
│ │ ├── objdetect
│ │ ├── BaseCascadeClassifier.java
│ │ ├── CascadeClassifier.java
│ │ ├── HOGDescriptor.java
│ │ └── Objdetect.java
│ │ ├── osgi
│ │ ├── OpenCVInterface.java
│ │ └── OpenCVNativeLoader.java
│ │ ├── phase_unwrapping
│ │ ├── HistogramPhaseUnwrapping.java
│ │ ├── PhaseUnwrapping.java
│ │ └── Phase_unwrapping.java
│ │ ├── photo
│ │ ├── AlignExposures.java
│ │ ├── AlignMTB.java
│ │ ├── CalibrateCRF.java
│ │ ├── CalibrateDebevec.java
│ │ ├── CalibrateRobertson.java
│ │ ├── MergeDebevec.java
│ │ ├── MergeExposures.java
│ │ ├── MergeMertens.java
│ │ ├── MergeRobertson.java
│ │ ├── Photo.java
│ │ ├── Tonemap.java
│ │ ├── TonemapDrago.java
│ │ ├── TonemapDurand.java
│ │ ├── TonemapMantiuk.java
│ │ └── TonemapReinhard.java
│ │ ├── plot
│ │ ├── Plot.java
│ │ └── Plot2d.java
│ │ ├── structured_light
│ │ ├── GrayCodePattern.java
│ │ ├── Params.java
│ │ ├── SinusoidalPattern.java
│ │ ├── StructuredLightPattern.java
│ │ └── Structured_light.java
│ │ ├── text
│ │ ├── BaseOCR.java
│ │ ├── Callback.java
│ │ ├── ClassifierCallback.java
│ │ ├── ERFilter.java
│ │ ├── OCRBeamSearchDecoder.java
│ │ ├── OCRHMMDecoder.java
│ │ ├── OCRTesseract.java
│ │ ├── Text.java
│ │ ├── TextDetector.java
│ │ └── TextDetectorCNN.java
│ │ ├── tracking
│ │ ├── MultiTracker.java
│ │ ├── Tracker.java
│ │ ├── TrackerBoosting.java
│ │ ├── TrackerCSRT.java
│ │ ├── TrackerGOTURN.java
│ │ ├── TrackerKCF.java
│ │ ├── TrackerMIL.java
│ │ ├── TrackerMOSSE.java
│ │ ├── TrackerMedianFlow.java
│ │ ├── TrackerTLD.java
│ │ └── Tracking.java
│ │ ├── utils
│ │ └── Converters.java
│ │ ├── video
│ │ ├── BackgroundSubtractor.java
│ │ ├── BackgroundSubtractorKNN.java
│ │ ├── BackgroundSubtractorMOG2.java
│ │ ├── DenseOpticalFlow.java
│ │ ├── DualTVL1OpticalFlow.java
│ │ ├── FarnebackOpticalFlow.java
│ │ ├── KalmanFilter.java
│ │ ├── SparseOpticalFlow.java
│ │ ├── SparsePyrLKOpticalFlow.java
│ │ └── Video.java
│ │ ├── videoio
│ │ ├── VideoCapture.java
│ │ ├── VideoWriter.java
│ │ └── Videoio.java
│ │ ├── xfeatures2d
│ │ ├── BoostDesc.java
│ │ ├── BriefDescriptorExtractor.java
│ │ ├── DAISY.java
│ │ ├── FREAK.java
│ │ ├── HarrisLaplaceFeatureDetector.java
│ │ ├── LATCH.java
│ │ ├── LUCID.java
│ │ ├── MSDDetector.java
│ │ ├── PCTSignatures.java
│ │ ├── PCTSignaturesSQFD.java
│ │ ├── SIFT.java
│ │ ├── SURF.java
│ │ ├── StarDetector.java
│ │ ├── VGG.java
│ │ └── Xfeatures2d.java
│ │ ├── ximgproc
│ │ ├── AdaptiveManifoldFilter.java
│ │ ├── ContourFitting.java
│ │ ├── DTFilter.java
│ │ ├── DisparityFilter.java
│ │ ├── DisparityWLSFilter.java
│ │ ├── EdgeAwareInterpolator.java
│ │ ├── EdgeBoxes.java
│ │ ├── FastGlobalSmootherFilter.java
│ │ ├── FastLineDetector.java
│ │ ├── GraphSegmentation.java
│ │ ├── GuidedFilter.java
│ │ ├── RFFeatureGetter.java
│ │ ├── RidgeDetectionFilter.java
│ │ ├── SelectiveSearchSegmentation.java
│ │ ├── SelectiveSearchSegmentationStrategy.java
│ │ ├── SelectiveSearchSegmentationStrategyColor.java
│ │ ├── SelectiveSearchSegmentationStrategyFill.java
│ │ ├── SelectiveSearchSegmentationStrategyMultiple.java
│ │ ├── SelectiveSearchSegmentationStrategySize.java
│ │ ├── SelectiveSearchSegmentationStrategyTexture.java
│ │ ├── SparseMatchInterpolator.java
│ │ ├── StructuredEdgeDetection.java
│ │ ├── SuperpixelLSC.java
│ │ ├── SuperpixelSEEDS.java
│ │ ├── SuperpixelSLIC.java
│ │ └── Ximgproc.java
│ │ └── xphoto
│ │ ├── GrayworldWB.java
│ │ ├── LearningBasedWB.java
│ │ ├── SimpleWB.java
│ │ ├── WhiteBalancer.java
│ │ └── Xphoto.java
│ └── res
│ └── values
│ └── attrs.xml
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the ART/Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 | out/
15 |
16 | # Gradle files
17 | .gradle/
18 | build/
19 |
20 | # Local configuration file (sdk path, etc)
21 | local.properties
22 |
23 | # Proguard folder generated by Eclipse
24 | proguard/
25 |
26 | # Log Files
27 | *.log
28 |
29 | # Android Studio Navigation editor temp files
30 | .navigation/
31 |
32 | # Android Studio captures folder
33 | captures/
34 |
35 | # IntelliJ
36 | *.iml
37 | .idea/workspace.xml
38 | .idea/tasks.xml
39 | .idea/gradle.xml
40 | .idea/assetWizardSettings.xml
41 | .idea/dictionaries
42 | .idea/libraries
43 | .idea/caches
44 |
45 | # Keystore files
46 | # Uncomment the following line if you do not want to check your keystore files in.
47 | #*.jks
48 |
49 | # External native build folder generated in Android Studio 2.2 and later
50 | .externalNativeBuild
51 |
52 | # Google Services (e.g. APIs or Firebase)
53 | google-services.json
54 |
55 | # Freeline
56 | freeline.py
57 | freeline/
58 | freeline_project_description.json
59 |
60 | # fastlane
61 | fastlane/report.xml
62 | fastlane/Preview.html
63 | fastlane/screenshots
64 | fastlane/test_output
65 | fastlane/readme.md
66 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OpenCvFaceDetect
2 | reach face detect function by use opencv
3 |
4 |
5 |
6 |
7 | ## 关于
8 | 基于Android 平台利用OpenCV来实现实时人脸检测的详细介绍,请移步 [基于opencv实现人脸检测](https://blog.csdn.net/qq_34902522/article/details/82464516)
9 |
10 |
11 | ## 效果图
12 | 
13 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 27
5 | defaultConfig {
6 | applicationId "com.example.root.opencvfacedetect"
7 | minSdkVersion 23
8 | targetSdkVersion 27
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 |
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(include: ['*.jar'], dir: 'libs')
24 | implementation 'com.android.support:appcompat-v7:27.1.1'
25 | implementation 'com.android.support.constraint:constraint-layout:1.1.2'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
28 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
29 | implementation project(':openCVLibrary342dev')
30 | implementation project(':cameraModule')
31 | }
32 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/example/root/opencvfacedetect/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.root.opencvfacedetect;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.example.root.opencvfacedetect", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/root/opencvfacedetect/CameraRawData.java:
--------------------------------------------------------------------------------
1 | package com.example.root.opencvfacedetect;
2 |
3 | public class CameraRawData {
4 | private byte[] rawData;
5 | private long timestamp;
6 |
7 | public CameraRawData() {
8 | }
9 |
10 | public CameraRawData(byte[] rawData, long timestamp) {
11 | this.rawData = rawData;
12 | this.timestamp = timestamp;
13 | }
14 |
15 | public byte[] getRawData() {
16 | return rawData;
17 | }
18 |
19 | public void setRawData(byte[] rawData) {
20 | this.rawData = rawData;
21 | }
22 |
23 | public long getTimestamp() {
24 | return timestamp;
25 | }
26 |
27 | public void setTimestamp(long timestamp) {
28 | this.timestamp = timestamp;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libopencv_java3.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/jniLibs/armeabi/libopencv_java3.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libopencv_java3.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/jniLibs/x86_64/libopencv_java3.so
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | OpenCvFaceDetect
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/root/opencvfacedetect/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.root.opencvfacedetect;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | jcenter()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.1.4'
11 |
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | jcenter()
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/cameraModule/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | .idea/misc.xml
3 |
--------------------------------------------------------------------------------
/cameraModule/build.gradle:
--------------------------------------------------------------------------------
1 | if (isRunAlone.toBoolean()) {
2 | apply plugin: 'com.android.application'
3 | } else {
4 | apply plugin: 'com.android.library'
5 | }
6 |
7 | android {
8 | compileSdkVersion 27
9 | defaultConfig {
10 | if (isRunAlone.toBoolean()) {
11 | applicationId "com.example.root.cameramodule"
12 | }
13 | minSdkVersion 23
14 | targetSdkVersion 27
15 | versionCode 1
16 | versionName "1.0"
17 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
18 | }
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 |
26 | sourceSets {
27 | main {
28 | if(isRunAlone.toBoolean()){
29 | manifest.srcFile 'src/main/manifest/AndroidManifest.xml'
30 | }else {
31 | manifest.srcFile 'src/main/AndroidManifest.xml'
32 | }
33 | }
34 | }
35 | }
36 |
37 | dependencies {
38 | implementation fileTree(dir: 'libs', include: ['*.jar'])
39 | implementation 'com.android.support:appcompat-v7:27.1.1'
40 | implementation 'com.android.support.constraint:constraint-layout:1.1.2'
41 | testImplementation 'junit:junit:4.12'
42 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
43 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
44 | }
45 |
--------------------------------------------------------------------------------
/cameraModule/gradle.properties:
--------------------------------------------------------------------------------
1 | isRunAlone=false
--------------------------------------------------------------------------------
/cameraModule/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/cameraModule/src/androidTest/java/com/example/root/cameramodule/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.root.cameramodule;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.example.root.cameramodule", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/cameraModule/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/cameraModule/src/main/java/com/example/root/cameramodule/Camera2Api.java:
--------------------------------------------------------------------------------
1 | package com.example.root.cameramodule;
2 |
3 | public class Camera2Api {
4 | private static volatile Camera2Api CAMERA2API_INSTANCE = null;
5 |
6 |
7 | private Camera2Api() {
8 |
9 | }
10 |
11 | public static Camera2Api getInstance() {
12 | if (CAMERA2API_INSTANCE == null) {
13 | synchronized (Camera2Api.class) {
14 | if (CAMERA2API_INSTANCE == null) {
15 | CAMERA2API_INSTANCE = new Camera2Api();
16 | }
17 | }
18 | }
19 | return CAMERA2API_INSTANCE;
20 | }
21 |
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/cameraModule/src/main/java/com/example/root/cameramodule/DensityUtils.java:
--------------------------------------------------------------------------------
1 | package com.example.root.cameramodule;
2 |
3 | import android.content.Context;
4 |
5 | public class DensityUtils {
6 |
7 | private static float scale;
8 |
9 | /**
10 | * dp to px(像素)
11 | */
12 | public static int dip2px(Context context, float dpValue) {
13 | if (scale == 0) {
14 | scale = context.getResources().getDisplayMetrics().density;
15 | }
16 | return (int) (dpValue * scale + 0.5f);
17 | }
18 |
19 | /**
20 | * px to dp
21 | */
22 | public static int px2dip(Context context, float pxValue) {
23 | if (scale == 0) {
24 | scale = context.getResources().getDisplayMetrics().density;
25 | }
26 | return (int) (pxValue / scale + 0.5f);
27 | }
28 |
29 | /**
30 | * px to sp
31 | * @param context
32 | * @param pxValue
33 | * @return
34 | */
35 | public static int px2sp(Context context, float pxValue) {
36 | final float fontScale = context.getResources().getDisplayMetrics().scaledDensity;
37 | return (int) (pxValue / fontScale + 0.5f);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/cameraModule/src/main/java/com/example/root/cameramodule/ICameraApiCallback.java:
--------------------------------------------------------------------------------
1 | package com.example.root.cameramodule;
2 |
3 | import android.hardware.Camera;
4 |
5 | public interface ICameraApiCallback {
6 | void onPreviewFrameCallback(byte[] data, Camera camera);
7 | void onNotSupportErrorTip(String message);
8 |
9 | void onCameraInit(Camera camera);
10 | }
11 |
--------------------------------------------------------------------------------
/cameraModule/src/main/manifest/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/cameraModule/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/cameraModule/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | CameraModule
3 | 相机启动失败
4 | 不支持这个分辨率
5 |
6 |
--------------------------------------------------------------------------------
/cameraModule/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/cameraModule/src/test/java/com/example/root/cameramodule/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.root.cameramodule;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/effect-picture/1536370580306_video.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/effect-picture/1536370580306_video.gif
--------------------------------------------------------------------------------
/effect-picture/1536370682495_video.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/effect-picture/1536370682495_video.gif
--------------------------------------------------------------------------------
/effect-picture/1536504061111mz1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/effect-picture/1536504061111mz1.gif
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MRYangY/OpenCvFaceDetect/524453e6f2283d807599a7a3c3bf137671653216/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Aug 31 14:19:52 CST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/import-summary.txt:
--------------------------------------------------------------------------------
1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY
2 | ======================================
3 |
4 | Moved Files:
5 | ------------
6 | Android Gradle projects use a different directory structure than ADT
7 | Eclipse projects. Here's how the projects were restructured:
8 |
9 | * AndroidManifest.xml => openCVLibrary342dev/src/main/AndroidManifest.xml
10 | * lint.xml => openCVLibrary342dev/lint.xml
11 | * res/ => openCVLibrary342dev/src/main/res/
12 | * src/ => openCVLibrary342dev/src/main/java/
13 | * src/org/opencv/engine/OpenCVEngineInterface.aidl => openCVLibrary342dev/src/main/aidl/org/opencv/engine/OpenCVEngineInterface.aidl
14 |
15 | Next Steps:
16 | -----------
17 | You can now build the project. The Gradle project needs network
18 | connectivity to download dependencies.
19 |
20 | Bugs:
21 | -----
22 | If for some reason your project does not build, and you determine that
23 | it is due to a bug or limitation of the Eclipse to Gradle importer,
24 | please file a bug at http://b.android.com with category
25 | Component-Tools.
26 |
27 | (This import summary is for your information only, and can be deleted
28 | after import once you are satisfied with the results.)
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 27
5 | buildToolsVersion "27.0.3"
6 |
7 | defaultConfig {
8 | minSdkVersion 23
9 | targetSdkVersion 27
10 | }
11 |
12 | buildTypes {
13 | release {
14 | minifyEnabled false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/aidl/org/opencv/engine/OpenCVEngineInterface.aidl:
--------------------------------------------------------------------------------
1 | package org.opencv.engine;
2 |
3 | /**
4 | * Class provides a Java interface for OpenCV Engine Service. It's synchronous with native OpenCVEngine class.
5 | */
6 | interface OpenCVEngineInterface
7 | {
8 | /**
9 | * @return Returns service version.
10 | */
11 | int getEngineVersion();
12 |
13 | /**
14 | * Finds an installed OpenCV library.
15 | * @param OpenCV version.
16 | * @return Returns path to OpenCV native libs or an empty string if OpenCV can not be found.
17 | */
18 | String getLibPathByVersion(String version);
19 |
20 | /**
21 | * Tries to install defined version of OpenCV from Google Play Market.
22 | * @param OpenCV version.
23 | * @return Returns true if installation was successful or OpenCV package has been already installed.
24 | */
25 | boolean installVersion(String version);
26 |
27 | /**
28 | * Returns list of libraries in loading order, separated by semicolon.
29 | * @param OpenCV version.
30 | * @return Returns names of OpenCV libraries, separated by semicolon.
31 | */
32 | String getLibraryList(String version);
33 | }
34 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/android/FpsMeter.java:
--------------------------------------------------------------------------------
1 | package org.opencv.android;
2 |
3 | import java.text.DecimalFormat;
4 |
5 | import org.opencv.core.Core;
6 |
7 | import android.graphics.Canvas;
8 | import android.graphics.Color;
9 | import android.graphics.Paint;
10 | import android.util.Log;
11 |
12 | public class FpsMeter {
13 | private static final String TAG = "FpsMeter";
14 | private static final int STEP = 20;
15 | private static final DecimalFormat FPS_FORMAT = new DecimalFormat("0.00");
16 |
17 | private int mFramesCouner;
18 | private double mFrequency;
19 | private long mprevFrameTime;
20 | private String mStrfps;
21 | Paint mPaint;
22 | boolean mIsInitialized = false;
23 | int mWidth = 0;
24 | int mHeight = 0;
25 |
26 | public void init() {
27 | mFramesCouner = 0;
28 | mFrequency = Core.getTickFrequency();
29 | mprevFrameTime = Core.getTickCount();
30 | mStrfps = "";
31 |
32 | mPaint = new Paint();
33 | mPaint.setColor(Color.BLUE);
34 | mPaint.setTextSize(20);
35 | }
36 |
37 | public void measure() {
38 | if (!mIsInitialized) {
39 | init();
40 | mIsInitialized = true;
41 | } else {
42 | mFramesCouner++;
43 | if (mFramesCouner % STEP == 0) {
44 | long time = Core.getTickCount();
45 | double fps = STEP * mFrequency / (time - mprevFrameTime);
46 | mprevFrameTime = time;
47 | if (mWidth != 0 && mHeight != 0)
48 | mStrfps = FPS_FORMAT.format(fps) + " FPS@" + Integer.valueOf(mWidth) + "x" + Integer.valueOf(mHeight);
49 | else
50 | mStrfps = FPS_FORMAT.format(fps) + " FPS";
51 | Log.i(TAG, mStrfps);
52 | }
53 | }
54 | }
55 |
56 | public void setResolution(int width, int height) {
57 | mWidth = width;
58 | mHeight = height;
59 | }
60 |
61 | public void draw(Canvas canvas, float offsetx, float offsety) {
62 | Log.d(TAG, mStrfps);
63 | canvas.drawText(mStrfps, offsetx, offsety, mPaint);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/android/InstallCallbackInterface.java:
--------------------------------------------------------------------------------
1 | package org.opencv.android;
2 |
3 | /**
4 | * Installation callback interface.
5 | */
6 | public interface InstallCallbackInterface
7 | {
8 | /**
9 | * New package installation is required.
10 | */
11 | static final int NEW_INSTALLATION = 0;
12 | /**
13 | * Current package installation is in progress.
14 | */
15 | static final int INSTALLATION_PROGRESS = 1;
16 |
17 | /**
18 | * Target package name.
19 | * @return Return target package name.
20 | */
21 | public String getPackageName();
22 | /**
23 | * Installation is approved.
24 | */
25 | public void install();
26 | /**
27 | * Installation is canceled.
28 | */
29 | public void cancel();
30 | /**
31 | * Wait for package installation.
32 | */
33 | public void wait_install();
34 | };
35 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/android/LoaderCallbackInterface.java:
--------------------------------------------------------------------------------
1 | package org.opencv.android;
2 |
3 | /**
4 | * Interface for callback object in case of asynchronous initialization of OpenCV.
5 | */
6 | public interface LoaderCallbackInterface
7 | {
8 | /**
9 | * OpenCV initialization finished successfully.
10 | */
11 | static final int SUCCESS = 0;
12 | /**
13 | * Google Play Market cannot be invoked.
14 | */
15 | static final int MARKET_ERROR = 2;
16 | /**
17 | * OpenCV library installation has been canceled by the user.
18 | */
19 | static final int INSTALL_CANCELED = 3;
20 | /**
21 | * This version of OpenCV Manager Service is incompatible with the app. Possibly, a service update is required.
22 | */
23 | static final int INCOMPATIBLE_MANAGER_VERSION = 4;
24 | /**
25 | * OpenCV library initialization has failed.
26 | */
27 | static final int INIT_FAILED = 0xff;
28 |
29 | /**
30 | * Callback method, called after OpenCV library initialization.
31 | * @param status status of initialization (see initialization status constants).
32 | */
33 | public void onManagerConnected(int status);
34 |
35 | /**
36 | * Callback method, called in case the package installation is needed.
37 | * @param callback answer object with approve and cancel methods and the package description.
38 | */
39 | public void onPackageInstall(final int operation, InstallCallbackInterface callback);
40 | };
41 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/bgsegm/BackgroundSubtractorGSOC.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.bgsegm;
5 |
6 | import org.opencv.core.Mat;
7 | import org.opencv.video.BackgroundSubtractor;
8 |
9 | // C++: class BackgroundSubtractorGSOC
10 | //javadoc: BackgroundSubtractorGSOC
11 |
12 | public class BackgroundSubtractorGSOC extends BackgroundSubtractor {
13 |
14 | protected BackgroundSubtractorGSOC(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static BackgroundSubtractorGSOC __fromPtr__(long addr) { return new BackgroundSubtractorGSOC(addr); }
18 |
19 | //
20 | // C++: void cv::bgsegm::BackgroundSubtractorGSOC::apply(Mat image, Mat& fgmask, double learningRate = -1)
21 | //
22 |
23 | //javadoc: BackgroundSubtractorGSOC::apply(image, fgmask, learningRate)
24 | public void apply(Mat image, Mat fgmask, double learningRate)
25 | {
26 |
27 | apply_0(nativeObj, image.nativeObj, fgmask.nativeObj, learningRate);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: BackgroundSubtractorGSOC::apply(image, fgmask)
33 | public void apply(Mat image, Mat fgmask)
34 | {
35 |
36 | apply_1(nativeObj, image.nativeObj, fgmask.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | //
43 | // C++: void cv::bgsegm::BackgroundSubtractorGSOC::getBackgroundImage(Mat& backgroundImage)
44 | //
45 |
46 | //javadoc: BackgroundSubtractorGSOC::getBackgroundImage(backgroundImage)
47 | public void getBackgroundImage(Mat backgroundImage)
48 | {
49 |
50 | getBackgroundImage_0(nativeObj, backgroundImage.nativeObj);
51 |
52 | return;
53 | }
54 |
55 |
56 | @Override
57 | protected void finalize() throws Throwable {
58 | delete(nativeObj);
59 | }
60 |
61 |
62 |
63 | // C++: void cv::bgsegm::BackgroundSubtractorGSOC::apply(Mat image, Mat& fgmask, double learningRate = -1)
64 | private static native void apply_0(long nativeObj, long image_nativeObj, long fgmask_nativeObj, double learningRate);
65 | private static native void apply_1(long nativeObj, long image_nativeObj, long fgmask_nativeObj);
66 |
67 | // C++: void cv::bgsegm::BackgroundSubtractorGSOC::getBackgroundImage(Mat& backgroundImage)
68 | private static native void getBackgroundImage_0(long nativeObj, long backgroundImage_nativeObj);
69 |
70 | // native support for java finalize()
71 | private static native void delete(long nativeObj);
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/bgsegm/BackgroundSubtractorLSBP.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.bgsegm;
5 |
6 | import org.opencv.core.Mat;
7 | import org.opencv.video.BackgroundSubtractor;
8 |
9 | // C++: class BackgroundSubtractorLSBP
10 | //javadoc: BackgroundSubtractorLSBP
11 |
12 | public class BackgroundSubtractorLSBP extends BackgroundSubtractor {
13 |
14 | protected BackgroundSubtractorLSBP(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static BackgroundSubtractorLSBP __fromPtr__(long addr) { return new BackgroundSubtractorLSBP(addr); }
18 |
19 | //
20 | // C++: void cv::bgsegm::BackgroundSubtractorLSBP::apply(Mat image, Mat& fgmask, double learningRate = -1)
21 | //
22 |
23 | //javadoc: BackgroundSubtractorLSBP::apply(image, fgmask, learningRate)
24 | public void apply(Mat image, Mat fgmask, double learningRate)
25 | {
26 |
27 | apply_0(nativeObj, image.nativeObj, fgmask.nativeObj, learningRate);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: BackgroundSubtractorLSBP::apply(image, fgmask)
33 | public void apply(Mat image, Mat fgmask)
34 | {
35 |
36 | apply_1(nativeObj, image.nativeObj, fgmask.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | //
43 | // C++: void cv::bgsegm::BackgroundSubtractorLSBP::getBackgroundImage(Mat& backgroundImage)
44 | //
45 |
46 | //javadoc: BackgroundSubtractorLSBP::getBackgroundImage(backgroundImage)
47 | public void getBackgroundImage(Mat backgroundImage)
48 | {
49 |
50 | getBackgroundImage_0(nativeObj, backgroundImage.nativeObj);
51 |
52 | return;
53 | }
54 |
55 |
56 | @Override
57 | protected void finalize() throws Throwable {
58 | delete(nativeObj);
59 | }
60 |
61 |
62 |
63 | // C++: void cv::bgsegm::BackgroundSubtractorLSBP::apply(Mat image, Mat& fgmask, double learningRate = -1)
64 | private static native void apply_0(long nativeObj, long image_nativeObj, long fgmask_nativeObj, double learningRate);
65 | private static native void apply_1(long nativeObj, long image_nativeObj, long fgmask_nativeObj);
66 |
67 | // C++: void cv::bgsegm::BackgroundSubtractorLSBP::getBackgroundImage(Mat& backgroundImage)
68 | private static native void getBackgroundImage_0(long nativeObj, long backgroundImage_nativeObj);
69 |
70 | // native support for java finalize()
71 | private static native void delete(long nativeObj);
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/bgsegm/BackgroundSubtractorLSBPDesc.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.bgsegm;
5 |
6 |
7 |
8 | // C++: class BackgroundSubtractorLSBPDesc
9 | //javadoc: BackgroundSubtractorLSBPDesc
10 |
11 | public class BackgroundSubtractorLSBPDesc {
12 |
13 | protected final long nativeObj;
14 | protected BackgroundSubtractorLSBPDesc(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static BackgroundSubtractorLSBPDesc __fromPtr__(long addr) { return new BackgroundSubtractorLSBPDesc(addr); }
20 |
21 | @Override
22 | protected void finalize() throws Throwable {
23 | delete(nativeObj);
24 | }
25 |
26 |
27 |
28 | // native support for java finalize()
29 | private static native void delete(long nativeObj);
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/bgsegm/SyntheticSequenceGenerator.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.bgsegm;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class SyntheticSequenceGenerator
10 | //javadoc: SyntheticSequenceGenerator
11 |
12 | public class SyntheticSequenceGenerator extends Algorithm {
13 |
14 | protected SyntheticSequenceGenerator(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static SyntheticSequenceGenerator __fromPtr__(long addr) { return new SyntheticSequenceGenerator(addr); }
18 |
19 | //
20 | // C++: cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
21 | //
22 |
23 | //javadoc: SyntheticSequenceGenerator::SyntheticSequenceGenerator(background, object, amplitude, wavelength, wavespeed, objspeed)
24 | public SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
25 | {
26 |
27 | super( SyntheticSequenceGenerator_0(background.nativeObj, object.nativeObj, amplitude, wavelength, wavespeed, objspeed) );
28 |
29 | return;
30 | }
31 |
32 |
33 | //
34 | // C++: void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(Mat& frame, Mat& gtMask)
35 | //
36 |
37 | //javadoc: SyntheticSequenceGenerator::getNextFrame(frame, gtMask)
38 | public void getNextFrame(Mat frame, Mat gtMask)
39 | {
40 |
41 | getNextFrame_0(nativeObj, frame.nativeObj, gtMask.nativeObj);
42 |
43 | return;
44 | }
45 |
46 |
47 | @Override
48 | protected void finalize() throws Throwable {
49 | delete(nativeObj);
50 | }
51 |
52 |
53 |
54 | // C++: cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
55 | private static native long SyntheticSequenceGenerator_0(long background_nativeObj, long object_nativeObj, double amplitude, double wavelength, double wavespeed, double objspeed);
56 |
57 | // C++: void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(Mat& frame, Mat& gtMask)
58 | private static native void getNextFrame_0(long nativeObj, long frame_nativeObj, long gtMask_nativeObj);
59 |
60 | // native support for java finalize()
61 | private static native void delete(long nativeObj);
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/bioinspired/Bioinspired.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.bioinspired;
5 |
6 |
7 |
8 | // C++: class Bioinspired
9 | //javadoc: Bioinspired
10 |
11 | public class Bioinspired {
12 |
13 | public static final int
14 | RETINA_COLOR_RANDOM = 0,
15 | RETINA_COLOR_DIAGONAL = 1,
16 | RETINA_COLOR_BAYER = 2;
17 |
18 |
19 |
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/CvException.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | public class CvException extends RuntimeException {
4 |
5 | private static final long serialVersionUID = 1L;
6 |
7 | public CvException(String msg) {
8 | super(msg);
9 | }
10 |
11 | @Override
12 | public String toString() {
13 | return "CvException [" + super.toString() + "]";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/DMatch.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //C++: class DMatch
4 |
5 | /**
6 | * Structure for matching: query descriptor index, train descriptor index, train
7 | * image index and distance between descriptors.
8 | */
9 | public class DMatch {
10 |
11 | /**
12 | * Query descriptor index.
13 | */
14 | public int queryIdx;
15 | /**
16 | * Train descriptor index.
17 | */
18 | public int trainIdx;
19 | /**
20 | * Train image index.
21 | */
22 | public int imgIdx;
23 |
24 | // javadoc: DMatch::distance
25 | public float distance;
26 |
27 | // javadoc: DMatch::DMatch()
28 | public DMatch() {
29 | this(-1, -1, Float.MAX_VALUE);
30 | }
31 |
32 | // javadoc: DMatch::DMatch(_queryIdx, _trainIdx, _distance)
33 | public DMatch(int _queryIdx, int _trainIdx, float _distance) {
34 | queryIdx = _queryIdx;
35 | trainIdx = _trainIdx;
36 | imgIdx = -1;
37 | distance = _distance;
38 | }
39 |
40 | // javadoc: DMatch::DMatch(_queryIdx, _trainIdx, _imgIdx, _distance)
41 | public DMatch(int _queryIdx, int _trainIdx, int _imgIdx, float _distance) {
42 | queryIdx = _queryIdx;
43 | trainIdx = _trainIdx;
44 | imgIdx = _imgIdx;
45 | distance = _distance;
46 | }
47 |
48 | public boolean lessThan(DMatch it) {
49 | return distance < it.distance;
50 | }
51 |
52 | @Override
53 | public String toString() {
54 | return "DMatch [queryIdx=" + queryIdx + ", trainIdx=" + trainIdx
55 | + ", imgIdx=" + imgIdx + ", distance=" + distance + "]";
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/KeyPoint.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import org.opencv.core.Point;
4 |
5 | //javadoc: KeyPoint
6 | public class KeyPoint {
7 |
8 | /**
9 | * Coordinates of the keypoint.
10 | */
11 | public Point pt;
12 | /**
13 | * Diameter of the useful keypoint adjacent area.
14 | */
15 | public float size;
16 | /**
17 | * Computed orientation of the keypoint (-1 if not applicable).
18 | */
19 | public float angle;
20 | /**
21 | * The response, by which the strongest keypoints have been selected. Can
22 | * be used for further sorting or subsampling.
23 | */
24 | public float response;
25 | /**
26 | * Octave (pyramid layer), from which the keypoint has been extracted.
27 | */
28 | public int octave;
29 | /**
30 | * Object ID, that can be used to cluster keypoints by an object they
31 | * belong to.
32 | */
33 | public int class_id;
34 |
35 | // javadoc:KeyPoint::KeyPoint(x,y,_size,_angle,_response,_octave,_class_id)
36 | public KeyPoint(float x, float y, float _size, float _angle, float _response, int _octave, int _class_id)
37 | {
38 | pt = new Point(x, y);
39 | size = _size;
40 | angle = _angle;
41 | response = _response;
42 | octave = _octave;
43 | class_id = _class_id;
44 | }
45 |
46 | // javadoc: KeyPoint::KeyPoint()
47 | public KeyPoint()
48 | {
49 | this(0, 0, 0, -1, 0, 0, -1);
50 | }
51 |
52 | // javadoc: KeyPoint::KeyPoint(x, y, _size, _angle, _response, _octave)
53 | public KeyPoint(float x, float y, float _size, float _angle, float _response, int _octave)
54 | {
55 | this(x, y, _size, _angle, _response, _octave, -1);
56 | }
57 |
58 | // javadoc: KeyPoint::KeyPoint(x, y, _size, _angle, _response)
59 | public KeyPoint(float x, float y, float _size, float _angle, float _response)
60 | {
61 | this(x, y, _size, _angle, _response, 0, -1);
62 | }
63 |
64 | // javadoc: KeyPoint::KeyPoint(x, y, _size, _angle)
65 | public KeyPoint(float x, float y, float _size, float _angle)
66 | {
67 | this(x, y, _size, _angle, 0, 0, -1);
68 | }
69 |
70 | // javadoc: KeyPoint::KeyPoint(x, y, _size)
71 | public KeyPoint(float x, float y, float _size)
72 | {
73 | this(x, y, _size, -1, 0, 0, -1);
74 | }
75 |
76 | @Override
77 | public String toString() {
78 | return "KeyPoint [pt=" + pt + ", size=" + size + ", angle=" + angle
79 | + ", response=" + response + ", octave=" + octave
80 | + ", class_id=" + class_id + "]";
81 | }
82 |
83 | }
84 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfDMatch.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | import org.opencv.core.DMatch;
7 |
8 | public class MatOfDMatch extends Mat {
9 | // 32FC4
10 | private static final int _depth = CvType.CV_32F;
11 | private static final int _channels = 4;
12 |
13 | public MatOfDMatch() {
14 | super();
15 | }
16 |
17 | protected MatOfDMatch(long addr) {
18 | super(addr);
19 | if( !empty() && checkVector(_channels, _depth) < 0 )
20 | throw new IllegalArgumentException("Incompatible Mat: " + toString());
21 | //FIXME: do we need release() here?
22 | }
23 |
24 | public static MatOfDMatch fromNativeAddr(long addr) {
25 | return new MatOfDMatch(addr);
26 | }
27 |
28 | public MatOfDMatch(Mat m) {
29 | super(m, Range.all());
30 | if( !empty() && checkVector(_channels, _depth) < 0 )
31 | throw new IllegalArgumentException("Incompatible Mat: " + toString());
32 | //FIXME: do we need release() here?
33 | }
34 |
35 | public MatOfDMatch(DMatch...ap) {
36 | super();
37 | fromArray(ap);
38 | }
39 |
40 | public void alloc(int elemNumber) {
41 | if(elemNumber>0)
42 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
43 | }
44 |
45 |
46 | public void fromArray(DMatch...a) {
47 | if(a==null || a.length==0)
48 | return;
49 | int num = a.length;
50 | alloc(num);
51 | float buff[] = new float[num * _channels];
52 | for(int i=0; i ldm) {
75 | DMatch adm[] = ldm.toArray(new DMatch[0]);
76 | fromArray(adm);
77 | }
78 |
79 | public List toList() {
80 | DMatch[] adm = toArray();
81 | return Arrays.asList(adm);
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfDouble.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | public class MatOfDouble extends Mat {
7 | // 64FC(x)
8 | private static final int _depth = CvType.CV_64F;
9 | private static final int _channels = 1;
10 |
11 | public MatOfDouble() {
12 | super();
13 | }
14 |
15 | protected MatOfDouble(long addr) {
16 | super(addr);
17 | if( !empty() && checkVector(_channels, _depth) < 0 )
18 | throw new IllegalArgumentException("Incompatible Mat");
19 | //FIXME: do we need release() here?
20 | }
21 |
22 | public static MatOfDouble fromNativeAddr(long addr) {
23 | return new MatOfDouble(addr);
24 | }
25 |
26 | public MatOfDouble(Mat m) {
27 | super(m, Range.all());
28 | if( !empty() && checkVector(_channels, _depth) < 0 )
29 | throw new IllegalArgumentException("Incompatible Mat");
30 | //FIXME: do we need release() here?
31 | }
32 |
33 | public MatOfDouble(double...a) {
34 | super();
35 | fromArray(a);
36 | }
37 |
38 | public void alloc(int elemNumber) {
39 | if(elemNumber>0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(double...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length / _channels;
47 | alloc(num);
48 | put(0, 0, a); //TODO: check ret val!
49 | }
50 |
51 | public double[] toArray() {
52 | int num = checkVector(_channels, _depth);
53 | if(num < 0)
54 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
55 | double[] a = new double[num * _channels];
56 | if(num == 0)
57 | return a;
58 | get(0, 0, a); //TODO: check ret val!
59 | return a;
60 | }
61 |
62 | public void fromList(List lb) {
63 | if(lb==null || lb.size()==0)
64 | return;
65 | Double ab[] = lb.toArray(new Double[0]);
66 | double a[] = new double[ab.length];
67 | for(int i=0; i toList() {
73 | double[] a = toArray();
74 | Double ab[] = new Double[a.length];
75 | for(int i=0; i0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(float...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length / _channels;
47 | alloc(num);
48 | put(0, 0, a); //TODO: check ret val!
49 | }
50 |
51 | public float[] toArray() {
52 | int num = checkVector(_channels, _depth);
53 | if(num < 0)
54 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
55 | float[] a = new float[num * _channels];
56 | if(num == 0)
57 | return a;
58 | get(0, 0, a); //TODO: check ret val!
59 | return a;
60 | }
61 |
62 | public void fromList(List lb) {
63 | if(lb==null || lb.size()==0)
64 | return;
65 | Float ab[] = lb.toArray(new Float[0]);
66 | float a[] = new float[ab.length];
67 | for(int i=0; i toList() {
73 | float[] a = toArray();
74 | Float ab[] = new Float[a.length];
75 | for(int i=0; i0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(float...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length / _channels;
47 | alloc(num);
48 | put(0, 0, a); //TODO: check ret val!
49 | }
50 |
51 | public float[] toArray() {
52 | int num = checkVector(_channels, _depth);
53 | if(num < 0)
54 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
55 | float[] a = new float[num * _channels];
56 | if(num == 0)
57 | return a;
58 | get(0, 0, a); //TODO: check ret val!
59 | return a;
60 | }
61 |
62 | public void fromList(List lb) {
63 | if(lb==null || lb.size()==0)
64 | return;
65 | Float ab[] = lb.toArray(new Float[0]);
66 | float a[] = new float[ab.length];
67 | for(int i=0; i toList() {
73 | float[] a = toArray();
74 | Float ab[] = new Float[a.length];
75 | for(int i=0; i0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(float...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length / _channels;
47 | alloc(num);
48 | put(0, 0, a); //TODO: check ret val!
49 | }
50 |
51 | public float[] toArray() {
52 | int num = checkVector(_channels, _depth);
53 | if(num < 0)
54 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
55 | float[] a = new float[num * _channels];
56 | if(num == 0)
57 | return a;
58 | get(0, 0, a); //TODO: check ret val!
59 | return a;
60 | }
61 |
62 | public void fromList(List lb) {
63 | if(lb==null || lb.size()==0)
64 | return;
65 | Float ab[] = lb.toArray(new Float[0]);
66 | float a[] = new float[ab.length];
67 | for(int i=0; i toList() {
73 | float[] a = toArray();
74 | Float ab[] = new Float[a.length];
75 | for(int i=0; i0)
41 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
42 | }
43 |
44 | public void fromArray(int...a) {
45 | if(a==null || a.length==0)
46 | return;
47 | int num = a.length / _channels;
48 | alloc(num);
49 | put(0, 0, a); //TODO: check ret val!
50 | }
51 |
52 | public int[] toArray() {
53 | int num = checkVector(_channels, _depth);
54 | if(num < 0)
55 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
56 | int[] a = new int[num * _channels];
57 | if(num == 0)
58 | return a;
59 | get(0, 0, a); //TODO: check ret val!
60 | return a;
61 | }
62 |
63 | public void fromList(List lb) {
64 | if(lb==null || lb.size()==0)
65 | return;
66 | Integer ab[] = lb.toArray(new Integer[0]);
67 | int a[] = new int[ab.length];
68 | for(int i=0; i toList() {
74 | int[] a = toArray();
75 | Integer ab[] = new Integer[a.length];
76 | for(int i=0; i0)
41 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
42 | }
43 |
44 | public void fromArray(int...a) {
45 | if(a==null || a.length==0)
46 | return;
47 | int num = a.length / _channels;
48 | alloc(num);
49 | put(0, 0, a); //TODO: check ret val!
50 | }
51 |
52 | public int[] toArray() {
53 | int num = checkVector(_channels, _depth);
54 | if(num < 0)
55 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
56 | int[] a = new int[num * _channels];
57 | if(num == 0)
58 | return a;
59 | get(0, 0, a); //TODO: check ret val!
60 | return a;
61 | }
62 |
63 | public void fromList(List lb) {
64 | if(lb==null || lb.size()==0)
65 | return;
66 | Integer ab[] = lb.toArray(new Integer[0]);
67 | int a[] = new int[ab.length];
68 | for(int i=0; i toList() {
74 | int[] a = toArray();
75 | Integer ab[] = new Integer[a.length];
76 | for(int i=0; i0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(Point...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length;
47 | alloc(num);
48 | int buff[] = new int[num * _channels];
49 | for(int i=0; i lp) {
70 | Point ap[] = lp.toArray(new Point[0]);
71 | fromArray(ap);
72 | }
73 |
74 | public List toList() {
75 | Point[] ap = toArray();
76 | return Arrays.asList(ap);
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfPoint2f.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | public class MatOfPoint2f extends Mat {
7 | // 32FC2
8 | private static final int _depth = CvType.CV_32F;
9 | private static final int _channels = 2;
10 |
11 | public MatOfPoint2f() {
12 | super();
13 | }
14 |
15 | protected MatOfPoint2f(long addr) {
16 | super(addr);
17 | if( !empty() && checkVector(_channels, _depth) < 0 )
18 | throw new IllegalArgumentException("Incompatible Mat");
19 | //FIXME: do we need release() here?
20 | }
21 |
22 | public static MatOfPoint2f fromNativeAddr(long addr) {
23 | return new MatOfPoint2f(addr);
24 | }
25 |
26 | public MatOfPoint2f(Mat m) {
27 | super(m, Range.all());
28 | if( !empty() && checkVector(_channels, _depth) < 0 )
29 | throw new IllegalArgumentException("Incompatible Mat");
30 | //FIXME: do we need release() here?
31 | }
32 |
33 | public MatOfPoint2f(Point...a) {
34 | super();
35 | fromArray(a);
36 | }
37 |
38 | public void alloc(int elemNumber) {
39 | if(elemNumber>0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(Point...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length;
47 | alloc(num);
48 | float buff[] = new float[num * _channels];
49 | for(int i=0; i lp) {
70 | Point ap[] = lp.toArray(new Point[0]);
71 | fromArray(ap);
72 | }
73 |
74 | public List toList() {
75 | Point[] ap = toArray();
76 | return Arrays.asList(ap);
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfPoint3.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | public class MatOfPoint3 extends Mat {
7 | // 32SC3
8 | private static final int _depth = CvType.CV_32S;
9 | private static final int _channels = 3;
10 |
11 | public MatOfPoint3() {
12 | super();
13 | }
14 |
15 | protected MatOfPoint3(long addr) {
16 | super(addr);
17 | if( !empty() && checkVector(_channels, _depth) < 0 )
18 | throw new IllegalArgumentException("Incompatible Mat");
19 | //FIXME: do we need release() here?
20 | }
21 |
22 | public static MatOfPoint3 fromNativeAddr(long addr) {
23 | return new MatOfPoint3(addr);
24 | }
25 |
26 | public MatOfPoint3(Mat m) {
27 | super(m, Range.all());
28 | if( !empty() && checkVector(_channels, _depth) < 0 )
29 | throw new IllegalArgumentException("Incompatible Mat");
30 | //FIXME: do we need release() here?
31 | }
32 |
33 | public MatOfPoint3(Point3...a) {
34 | super();
35 | fromArray(a);
36 | }
37 |
38 | public void alloc(int elemNumber) {
39 | if(elemNumber>0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(Point3...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length;
47 | alloc(num);
48 | int buff[] = new int[num * _channels];
49 | for(int i=0; i lp) {
71 | Point3 ap[] = lp.toArray(new Point3[0]);
72 | fromArray(ap);
73 | }
74 |
75 | public List toList() {
76 | Point3[] ap = toArray();
77 | return Arrays.asList(ap);
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfPoint3f.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | public class MatOfPoint3f extends Mat {
7 | // 32FC3
8 | private static final int _depth = CvType.CV_32F;
9 | private static final int _channels = 3;
10 |
11 | public MatOfPoint3f() {
12 | super();
13 | }
14 |
15 | protected MatOfPoint3f(long addr) {
16 | super(addr);
17 | if( !empty() && checkVector(_channels, _depth) < 0 )
18 | throw new IllegalArgumentException("Incompatible Mat");
19 | //FIXME: do we need release() here?
20 | }
21 |
22 | public static MatOfPoint3f fromNativeAddr(long addr) {
23 | return new MatOfPoint3f(addr);
24 | }
25 |
26 | public MatOfPoint3f(Mat m) {
27 | super(m, Range.all());
28 | if( !empty() && checkVector(_channels, _depth) < 0 )
29 | throw new IllegalArgumentException("Incompatible Mat");
30 | //FIXME: do we need release() here?
31 | }
32 |
33 | public MatOfPoint3f(Point3...a) {
34 | super();
35 | fromArray(a);
36 | }
37 |
38 | public void alloc(int elemNumber) {
39 | if(elemNumber>0)
40 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
41 | }
42 |
43 | public void fromArray(Point3...a) {
44 | if(a==null || a.length==0)
45 | return;
46 | int num = a.length;
47 | alloc(num);
48 | float buff[] = new float[num * _channels];
49 | for(int i=0; i lp) {
71 | Point3 ap[] = lp.toArray(new Point3[0]);
72 | fromArray(ap);
73 | }
74 |
75 | public List toList() {
76 | Point3[] ap = toArray();
77 | return Arrays.asList(ap);
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfRect.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 |
7 | public class MatOfRect extends Mat {
8 | // 32SC4
9 | private static final int _depth = CvType.CV_32S;
10 | private static final int _channels = 4;
11 |
12 | public MatOfRect() {
13 | super();
14 | }
15 |
16 | protected MatOfRect(long addr) {
17 | super(addr);
18 | if( !empty() && checkVector(_channels, _depth) < 0 )
19 | throw new IllegalArgumentException("Incompatible Mat");
20 | //FIXME: do we need release() here?
21 | }
22 |
23 | public static MatOfRect fromNativeAddr(long addr) {
24 | return new MatOfRect(addr);
25 | }
26 |
27 | public MatOfRect(Mat m) {
28 | super(m, Range.all());
29 | if( !empty() && checkVector(_channels, _depth) < 0 )
30 | throw new IllegalArgumentException("Incompatible Mat");
31 | //FIXME: do we need release() here?
32 | }
33 |
34 | public MatOfRect(Rect...a) {
35 | super();
36 | fromArray(a);
37 | }
38 |
39 | public void alloc(int elemNumber) {
40 | if(elemNumber>0)
41 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
42 | }
43 |
44 | public void fromArray(Rect...a) {
45 | if(a==null || a.length==0)
46 | return;
47 | int num = a.length;
48 | alloc(num);
49 | int buff[] = new int[num * _channels];
50 | for(int i=0; i lr) {
73 | Rect ap[] = lr.toArray(new Rect[0]);
74 | fromArray(ap);
75 | }
76 |
77 | public List toList() {
78 | Rect[] ar = toArray();
79 | return Arrays.asList(ar);
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/MatOfRect2d.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 |
7 | public class MatOfRect2d extends Mat {
8 | // 64FC4
9 | private static final int _depth = CvType.CV_64F;
10 | private static final int _channels = 4;
11 |
12 | public MatOfRect2d() {
13 | super();
14 | }
15 |
16 | protected MatOfRect2d(long addr) {
17 | super(addr);
18 | if( !empty() && checkVector(_channels, _depth) < 0 )
19 | throw new IllegalArgumentException("Incompatible Mat");
20 | //FIXME: do we need release() here?
21 | }
22 |
23 | public static MatOfRect2d fromNativeAddr(long addr) {
24 | return new MatOfRect2d(addr);
25 | }
26 |
27 | public MatOfRect2d(Mat m) {
28 | super(m, Range.all());
29 | if( !empty() && checkVector(_channels, _depth) < 0 )
30 | throw new IllegalArgumentException("Incompatible Mat");
31 | //FIXME: do we need release() here?
32 | }
33 |
34 | public MatOfRect2d(Rect2d...a) {
35 | super();
36 | fromArray(a);
37 | }
38 |
39 | public void alloc(int elemNumber) {
40 | if(elemNumber>0)
41 | super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
42 | }
43 |
44 | public void fromArray(Rect2d...a) {
45 | if(a==null || a.length==0)
46 | return;
47 | int num = a.length;
48 | alloc(num);
49 | double buff[] = new double[num * _channels];
50 | for(int i=0; i lr) {
73 | Rect2d ap[] = lr.toArray(new Rect2d[0]);
74 | fromArray(ap);
75 | }
76 |
77 | public List toList() {
78 | Rect2d[] ar = toArray();
79 | return Arrays.asList(ar);
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/Point.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //javadoc:Point_
4 | public class Point {
5 |
6 | public double x, y;
7 |
8 | public Point(double x, double y) {
9 | this.x = x;
10 | this.y = y;
11 | }
12 |
13 | public Point() {
14 | this(0, 0);
15 | }
16 |
17 | public Point(double[] vals) {
18 | this();
19 | set(vals);
20 | }
21 |
22 | public void set(double[] vals) {
23 | if (vals != null) {
24 | x = vals.length > 0 ? vals[0] : 0;
25 | y = vals.length > 1 ? vals[1] : 0;
26 | } else {
27 | x = 0;
28 | y = 0;
29 | }
30 | }
31 |
32 | public Point clone() {
33 | return new Point(x, y);
34 | }
35 |
36 | public double dot(Point p) {
37 | return x * p.x + y * p.y;
38 | }
39 |
40 | @Override
41 | public int hashCode() {
42 | final int prime = 31;
43 | int result = 1;
44 | long temp;
45 | temp = Double.doubleToLongBits(x);
46 | result = prime * result + (int) (temp ^ (temp >>> 32));
47 | temp = Double.doubleToLongBits(y);
48 | result = prime * result + (int) (temp ^ (temp >>> 32));
49 | return result;
50 | }
51 |
52 | @Override
53 | public boolean equals(Object obj) {
54 | if (this == obj) return true;
55 | if (!(obj instanceof Point)) return false;
56 | Point it = (Point) obj;
57 | return x == it.x && y == it.y;
58 | }
59 |
60 | public boolean inside(Rect r) {
61 | return r.contains(this);
62 | }
63 |
64 | @Override
65 | public String toString() {
66 | return "{" + x + ", " + y + "}";
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/Point3.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //javadoc:Point3_
4 | public class Point3 {
5 |
6 | public double x, y, z;
7 |
8 | public Point3(double x, double y, double z) {
9 | this.x = x;
10 | this.y = y;
11 | this.z = z;
12 | }
13 |
14 | public Point3() {
15 | this(0, 0, 0);
16 | }
17 |
18 | public Point3(Point p) {
19 | x = p.x;
20 | y = p.y;
21 | z = 0;
22 | }
23 |
24 | public Point3(double[] vals) {
25 | this();
26 | set(vals);
27 | }
28 |
29 | public void set(double[] vals) {
30 | if (vals != null) {
31 | x = vals.length > 0 ? vals[0] : 0;
32 | y = vals.length > 1 ? vals[1] : 0;
33 | z = vals.length > 2 ? vals[2] : 0;
34 | } else {
35 | x = 0;
36 | y = 0;
37 | z = 0;
38 | }
39 | }
40 |
41 | public Point3 clone() {
42 | return new Point3(x, y, z);
43 | }
44 |
45 | public double dot(Point3 p) {
46 | return x * p.x + y * p.y + z * p.z;
47 | }
48 |
49 | public Point3 cross(Point3 p) {
50 | return new Point3(y * p.z - z * p.y, z * p.x - x * p.z, x * p.y - y * p.x);
51 | }
52 |
53 | @Override
54 | public int hashCode() {
55 | final int prime = 31;
56 | int result = 1;
57 | long temp;
58 | temp = Double.doubleToLongBits(x);
59 | result = prime * result + (int) (temp ^ (temp >>> 32));
60 | temp = Double.doubleToLongBits(y);
61 | result = prime * result + (int) (temp ^ (temp >>> 32));
62 | temp = Double.doubleToLongBits(z);
63 | result = prime * result + (int) (temp ^ (temp >>> 32));
64 | return result;
65 | }
66 |
67 | @Override
68 | public boolean equals(Object obj) {
69 | if (this == obj) return true;
70 | if (!(obj instanceof Point3)) return false;
71 | Point3 it = (Point3) obj;
72 | return x == it.x && y == it.y && z == it.z;
73 | }
74 |
75 | @Override
76 | public String toString() {
77 | return "{" + x + ", " + y + ", " + z + "}";
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/Range.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //javadoc:Range
4 | public class Range {
5 |
6 | public int start, end;
7 |
8 | public Range(int s, int e) {
9 | this.start = s;
10 | this.end = e;
11 | }
12 |
13 | public Range() {
14 | this(0, 0);
15 | }
16 |
17 | public Range(double[] vals) {
18 | set(vals);
19 | }
20 |
21 | public void set(double[] vals) {
22 | if (vals != null) {
23 | start = vals.length > 0 ? (int) vals[0] : 0;
24 | end = vals.length > 1 ? (int) vals[1] : 0;
25 | } else {
26 | start = 0;
27 | end = 0;
28 | }
29 |
30 | }
31 |
32 | public int size() {
33 | return empty() ? 0 : end - start;
34 | }
35 |
36 | public boolean empty() {
37 | return end <= start;
38 | }
39 |
40 | public static Range all() {
41 | return new Range(Integer.MIN_VALUE, Integer.MAX_VALUE);
42 | }
43 |
44 | public Range intersection(Range r1) {
45 | Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end));
46 | r.end = Math.max(r.end, r.start);
47 | return r;
48 | }
49 |
50 | public Range shift(int delta) {
51 | return new Range(start + delta, end + delta);
52 | }
53 |
54 | public Range clone() {
55 | return new Range(start, end);
56 | }
57 |
58 | @Override
59 | public int hashCode() {
60 | final int prime = 31;
61 | int result = 1;
62 | long temp;
63 | temp = Double.doubleToLongBits(start);
64 | result = prime * result + (int) (temp ^ (temp >>> 32));
65 | temp = Double.doubleToLongBits(end);
66 | result = prime * result + (int) (temp ^ (temp >>> 32));
67 | return result;
68 | }
69 |
70 | @Override
71 | public boolean equals(Object obj) {
72 | if (this == obj) return true;
73 | if (!(obj instanceof Range)) return false;
74 | Range it = (Range) obj;
75 | return start == it.start && end == it.end;
76 | }
77 |
78 | @Override
79 | public String toString() {
80 | return "[" + start + ", " + end + ")";
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/Scalar.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //javadoc:Scalar_
4 | public class Scalar {
5 |
6 | public double val[];
7 |
8 | public Scalar(double v0, double v1, double v2, double v3) {
9 | val = new double[] { v0, v1, v2, v3 };
10 | }
11 |
12 | public Scalar(double v0, double v1, double v2) {
13 | val = new double[] { v0, v1, v2, 0 };
14 | }
15 |
16 | public Scalar(double v0, double v1) {
17 | val = new double[] { v0, v1, 0, 0 };
18 | }
19 |
20 | public Scalar(double v0) {
21 | val = new double[] { v0, 0, 0, 0 };
22 | }
23 |
24 | public Scalar(double[] vals) {
25 | if (vals != null && vals.length == 4)
26 | val = vals.clone();
27 | else {
28 | val = new double[4];
29 | set(vals);
30 | }
31 | }
32 |
33 | public void set(double[] vals) {
34 | if (vals != null) {
35 | val[0] = vals.length > 0 ? vals[0] : 0;
36 | val[1] = vals.length > 1 ? vals[1] : 0;
37 | val[2] = vals.length > 2 ? vals[2] : 0;
38 | val[3] = vals.length > 3 ? vals[3] : 0;
39 | } else
40 | val[0] = val[1] = val[2] = val[3] = 0;
41 | }
42 |
43 | public static Scalar all(double v) {
44 | return new Scalar(v, v, v, v);
45 | }
46 |
47 | public Scalar clone() {
48 | return new Scalar(val);
49 | }
50 |
51 | public Scalar mul(Scalar it, double scale) {
52 | return new Scalar(val[0] * it.val[0] * scale, val[1] * it.val[1] * scale,
53 | val[2] * it.val[2] * scale, val[3] * it.val[3] * scale);
54 | }
55 |
56 | public Scalar mul(Scalar it) {
57 | return mul(it, 1);
58 | }
59 |
60 | public Scalar conj() {
61 | return new Scalar(val[0], -val[1], -val[2], -val[3]);
62 | }
63 |
64 | public boolean isReal() {
65 | return val[1] == 0 && val[2] == 0 && val[3] == 0;
66 | }
67 |
68 | @Override
69 | public int hashCode() {
70 | final int prime = 31;
71 | int result = 1;
72 | result = prime * result + java.util.Arrays.hashCode(val);
73 | return result;
74 | }
75 |
76 | @Override
77 | public boolean equals(Object obj) {
78 | if (this == obj) return true;
79 | if (!(obj instanceof Scalar)) return false;
80 | Scalar it = (Scalar) obj;
81 | if (!java.util.Arrays.equals(val, it.val)) return false;
82 | return true;
83 | }
84 |
85 | @Override
86 | public String toString() {
87 | return "[" + val[0] + ", " + val[1] + ", " + val[2] + ", " + val[3] + "]";
88 | }
89 |
90 | }
91 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/core/Size.java:
--------------------------------------------------------------------------------
1 | package org.opencv.core;
2 |
3 | //javadoc:Size_
4 | public class Size {
5 |
6 | public double width, height;
7 |
8 | public Size(double width, double height) {
9 | this.width = width;
10 | this.height = height;
11 | }
12 |
13 | public Size() {
14 | this(0, 0);
15 | }
16 |
17 | public Size(Point p) {
18 | width = p.x;
19 | height = p.y;
20 | }
21 |
22 | public Size(double[] vals) {
23 | set(vals);
24 | }
25 |
26 | public void set(double[] vals) {
27 | if (vals != null) {
28 | width = vals.length > 0 ? vals[0] : 0;
29 | height = vals.length > 1 ? vals[1] : 0;
30 | } else {
31 | width = 0;
32 | height = 0;
33 | }
34 | }
35 |
36 | public double area() {
37 | return width * height;
38 | }
39 |
40 | public boolean empty() {
41 | return width <= 0 || height <= 0;
42 | }
43 |
44 | public Size clone() {
45 | return new Size(width, height);
46 | }
47 |
48 | @Override
49 | public int hashCode() {
50 | final int prime = 31;
51 | int result = 1;
52 | long temp;
53 | temp = Double.doubleToLongBits(height);
54 | result = prime * result + (int) (temp ^ (temp >>> 32));
55 | temp = Double.doubleToLongBits(width);
56 | result = prime * result + (int) (temp ^ (temp >>> 32));
57 | return result;
58 | }
59 |
60 | @Override
61 | public boolean equals(Object obj) {
62 | if (this == obj) return true;
63 | if (!(obj instanceof Size)) return false;
64 | Size it = (Size) obj;
65 | return width == it.width && height == it.height;
66 | }
67 |
68 | @Override
69 | public String toString() {
70 | return (int)width + "x" + (int)height;
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/EigenFaceRecognizer.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 | import org.opencv.face.BasicFaceRecognizer;
7 | import org.opencv.face.EigenFaceRecognizer;
8 |
9 | // C++: class EigenFaceRecognizer
10 | //javadoc: EigenFaceRecognizer
11 |
12 | public class EigenFaceRecognizer extends BasicFaceRecognizer {
13 |
14 | protected EigenFaceRecognizer(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static EigenFaceRecognizer __fromPtr__(long addr) { return new EigenFaceRecognizer(addr); }
18 |
19 | //
20 | // C++: static Ptr_EigenFaceRecognizer cv::face::EigenFaceRecognizer::create(int num_components = 0, double threshold = DBL_MAX)
21 | //
22 |
23 | //javadoc: EigenFaceRecognizer::create(num_components, threshold)
24 | public static EigenFaceRecognizer create(int num_components, double threshold)
25 | {
26 |
27 | EigenFaceRecognizer retVal = EigenFaceRecognizer.__fromPtr__(create_0(num_components, threshold));
28 |
29 | return retVal;
30 | }
31 |
32 | //javadoc: EigenFaceRecognizer::create(num_components)
33 | public static EigenFaceRecognizer create(int num_components)
34 | {
35 |
36 | EigenFaceRecognizer retVal = EigenFaceRecognizer.__fromPtr__(create_1(num_components));
37 |
38 | return retVal;
39 | }
40 |
41 | //javadoc: EigenFaceRecognizer::create()
42 | public static EigenFaceRecognizer create()
43 | {
44 |
45 | EigenFaceRecognizer retVal = EigenFaceRecognizer.__fromPtr__(create_2());
46 |
47 | return retVal;
48 | }
49 |
50 |
51 | @Override
52 | protected void finalize() throws Throwable {
53 | delete(nativeObj);
54 | }
55 |
56 |
57 |
58 | // C++: static Ptr_EigenFaceRecognizer cv::face::EigenFaceRecognizer::create(int num_components = 0, double threshold = DBL_MAX)
59 | private static native long create_0(int num_components, double threshold);
60 | private static native long create_1(int num_components);
61 | private static native long create_2();
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/Facemark.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 | import java.lang.String;
7 | import java.util.ArrayList;
8 | import java.util.List;
9 | import org.opencv.core.Algorithm;
10 | import org.opencv.core.Mat;
11 | import org.opencv.core.MatOfPoint2f;
12 | import org.opencv.core.MatOfRect;
13 | import org.opencv.utils.Converters;
14 |
15 | // C++: class Facemark
16 | //javadoc: Facemark
17 |
18 | public class Facemark extends Algorithm {
19 |
20 | protected Facemark(long addr) { super(addr); }
21 |
22 | // internal usage only
23 | public static Facemark __fromPtr__(long addr) { return new Facemark(addr); }
24 |
25 | //
26 | // C++: bool cv::face::Facemark::fit(Mat image, vector_Rect faces, vector_vector_Point2f& landmarks)
27 | //
28 |
29 | //javadoc: Facemark::fit(image, faces, landmarks)
30 | public boolean fit(Mat image, MatOfRect faces, List landmarks)
31 | {
32 | Mat faces_mat = faces;
33 | Mat landmarks_mat = new Mat();
34 | boolean retVal = fit_0(nativeObj, image.nativeObj, faces_mat.nativeObj, landmarks_mat.nativeObj);
35 | Converters.Mat_to_vector_vector_Point2f(landmarks_mat, landmarks);
36 | landmarks_mat.release();
37 | return retVal;
38 | }
39 |
40 |
41 | //
42 | // C++: void cv::face::Facemark::loadModel(String model)
43 | //
44 |
45 | //javadoc: Facemark::loadModel(model)
46 | public void loadModel(String model)
47 | {
48 |
49 | loadModel_0(nativeObj, model);
50 |
51 | return;
52 | }
53 |
54 |
55 | @Override
56 | protected void finalize() throws Throwable {
57 | delete(nativeObj);
58 | }
59 |
60 |
61 |
62 | // C++: bool cv::face::Facemark::fit(Mat image, vector_Rect faces, vector_vector_Point2f& landmarks)
63 | private static native boolean fit_0(long nativeObj, long image_nativeObj, long faces_mat_nativeObj, long landmarks_mat_nativeObj);
64 |
65 | // C++: void cv::face::Facemark::loadModel(String model)
66 | private static native void loadModel_0(long nativeObj, String model);
67 |
68 | // native support for java finalize()
69 | private static native void delete(long nativeObj);
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/FacemarkAAM.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 | import org.opencv.face.FacemarkTrain;
7 |
8 | // C++: class FacemarkAAM
9 | //javadoc: FacemarkAAM
10 |
11 | public class FacemarkAAM extends FacemarkTrain {
12 |
13 | protected FacemarkAAM(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static FacemarkAAM __fromPtr__(long addr) { return new FacemarkAAM(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/FacemarkKazemi.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 |
7 |
8 | // C++: class FacemarkKazemi
9 | //javadoc: FacemarkKazemi
10 |
11 | public class FacemarkKazemi extends Facemark {
12 |
13 | protected FacemarkKazemi(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static FacemarkKazemi __fromPtr__(long addr) { return new FacemarkKazemi(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/FacemarkLBF.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 |
7 |
8 | // C++: class FacemarkLBF
9 | //javadoc: FacemarkLBF
10 |
11 | public class FacemarkLBF extends FacemarkTrain {
12 |
13 | protected FacemarkLBF(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static FacemarkLBF __fromPtr__(long addr) { return new FacemarkLBF(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/FacemarkTrain.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 |
7 |
8 | // C++: class FacemarkTrain
9 | //javadoc: FacemarkTrain
10 |
11 | public class FacemarkTrain extends Facemark {
12 |
13 | protected FacemarkTrain(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static FacemarkTrain __fromPtr__(long addr) { return new FacemarkTrain(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/FisherFaceRecognizer.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 | import org.opencv.face.BasicFaceRecognizer;
7 | import org.opencv.face.FisherFaceRecognizer;
8 |
9 | // C++: class FisherFaceRecognizer
10 | //javadoc: FisherFaceRecognizer
11 |
12 | public class FisherFaceRecognizer extends BasicFaceRecognizer {
13 |
14 | protected FisherFaceRecognizer(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static FisherFaceRecognizer __fromPtr__(long addr) { return new FisherFaceRecognizer(addr); }
18 |
19 | //
20 | // C++: static Ptr_FisherFaceRecognizer cv::face::FisherFaceRecognizer::create(int num_components = 0, double threshold = DBL_MAX)
21 | //
22 |
23 | //javadoc: FisherFaceRecognizer::create(num_components, threshold)
24 | public static FisherFaceRecognizer create(int num_components, double threshold)
25 | {
26 |
27 | FisherFaceRecognizer retVal = FisherFaceRecognizer.__fromPtr__(create_0(num_components, threshold));
28 |
29 | return retVal;
30 | }
31 |
32 | //javadoc: FisherFaceRecognizer::create(num_components)
33 | public static FisherFaceRecognizer create(int num_components)
34 | {
35 |
36 | FisherFaceRecognizer retVal = FisherFaceRecognizer.__fromPtr__(create_1(num_components));
37 |
38 | return retVal;
39 | }
40 |
41 | //javadoc: FisherFaceRecognizer::create()
42 | public static FisherFaceRecognizer create()
43 | {
44 |
45 | FisherFaceRecognizer retVal = FisherFaceRecognizer.__fromPtr__(create_2());
46 |
47 | return retVal;
48 | }
49 |
50 |
51 | @Override
52 | protected void finalize() throws Throwable {
53 | delete(nativeObj);
54 | }
55 |
56 |
57 |
58 | // C++: static Ptr_FisherFaceRecognizer cv::face::FisherFaceRecognizer::create(int num_components = 0, double threshold = DBL_MAX)
59 | private static native long create_0(int num_components, double threshold);
60 | private static native long create_1(int num_components);
61 | private static native long create_2();
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/face/PredictCollector.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.face;
5 |
6 |
7 |
8 | // C++: class PredictCollector
9 | //javadoc: PredictCollector
10 |
11 | public class PredictCollector {
12 |
13 | protected final long nativeObj;
14 | protected PredictCollector(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static PredictCollector __fromPtr__(long addr) { return new PredictCollector(addr); }
20 |
21 | @Override
22 | protected void finalize() throws Throwable {
23 | delete(nativeObj);
24 | }
25 |
26 |
27 |
28 | // native support for java finalize()
29 | private static native void delete(long nativeObj);
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/features2d/FlannBasedMatcher.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.features2d;
5 |
6 | import org.opencv.features2d.DescriptorMatcher;
7 | import org.opencv.features2d.FlannBasedMatcher;
8 |
9 | // C++: class FlannBasedMatcher
10 | //javadoc: FlannBasedMatcher
11 |
12 | public class FlannBasedMatcher extends DescriptorMatcher {
13 |
14 | protected FlannBasedMatcher(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static FlannBasedMatcher __fromPtr__(long addr) { return new FlannBasedMatcher(addr); }
18 |
19 | //
20 | // C++: cv::FlannBasedMatcher::FlannBasedMatcher(Ptr_flann_IndexParams indexParams = makePtr(), Ptr_flann_SearchParams searchParams = makePtr())
21 | //
22 |
23 | //javadoc: FlannBasedMatcher::FlannBasedMatcher()
24 | public FlannBasedMatcher()
25 | {
26 |
27 | super( FlannBasedMatcher_0() );
28 |
29 | return;
30 | }
31 |
32 |
33 | //
34 | // C++: static Ptr_FlannBasedMatcher cv::FlannBasedMatcher::create()
35 | //
36 |
37 | //javadoc: FlannBasedMatcher::create()
38 | public static FlannBasedMatcher create()
39 | {
40 |
41 | FlannBasedMatcher retVal = FlannBasedMatcher.__fromPtr__(create_0());
42 |
43 | return retVal;
44 | }
45 |
46 |
47 | @Override
48 | protected void finalize() throws Throwable {
49 | delete(nativeObj);
50 | }
51 |
52 |
53 |
54 | // C++: cv::FlannBasedMatcher::FlannBasedMatcher(Ptr_flann_IndexParams indexParams = makePtr(), Ptr_flann_SearchParams searchParams = makePtr())
55 | private static native long FlannBasedMatcher_0();
56 |
57 | // C++: static Ptr_FlannBasedMatcher cv::FlannBasedMatcher::create()
58 | private static native long create_0();
59 |
60 | // native support for java finalize()
61 | private static native void delete(long nativeObj);
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/img_hash/AverageHash.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.img_hash;
5 |
6 | import org.opencv.img_hash.AverageHash;
7 | import org.opencv.img_hash.ImgHashBase;
8 |
9 | // C++: class AverageHash
10 | //javadoc: AverageHash
11 |
12 | public class AverageHash extends ImgHashBase {
13 |
14 | protected AverageHash(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static AverageHash __fromPtr__(long addr) { return new AverageHash(addr); }
18 |
19 | //
20 | // C++: static Ptr_AverageHash cv::img_hash::AverageHash::create()
21 | //
22 |
23 | //javadoc: AverageHash::create()
24 | public static AverageHash create()
25 | {
26 |
27 | AverageHash retVal = AverageHash.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_AverageHash cv::img_hash::AverageHash::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/img_hash/BlockMeanHash.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.img_hash;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Mat;
9 | import org.opencv.core.MatOfDouble;
10 | import org.opencv.img_hash.BlockMeanHash;
11 | import org.opencv.img_hash.ImgHashBase;
12 | import org.opencv.utils.Converters;
13 |
14 | // C++: class BlockMeanHash
15 | //javadoc: BlockMeanHash
16 |
17 | public class BlockMeanHash extends ImgHashBase {
18 |
19 | protected BlockMeanHash(long addr) { super(addr); }
20 |
21 | // internal usage only
22 | public static BlockMeanHash __fromPtr__(long addr) { return new BlockMeanHash(addr); }
23 |
24 | //
25 | // C++: static Ptr_BlockMeanHash cv::img_hash::BlockMeanHash::create(int mode = BLOCK_MEAN_HASH_MODE_0)
26 | //
27 |
28 | //javadoc: BlockMeanHash::create(mode)
29 | public static BlockMeanHash create(int mode)
30 | {
31 |
32 | BlockMeanHash retVal = BlockMeanHash.__fromPtr__(create_0(mode));
33 |
34 | return retVal;
35 | }
36 |
37 | //javadoc: BlockMeanHash::create()
38 | public static BlockMeanHash create()
39 | {
40 |
41 | BlockMeanHash retVal = BlockMeanHash.__fromPtr__(create_1());
42 |
43 | return retVal;
44 | }
45 |
46 |
47 | //
48 | // C++: vector_double cv::img_hash::BlockMeanHash::getMean()
49 | //
50 |
51 | //javadoc: BlockMeanHash::getMean()
52 | public MatOfDouble getMean()
53 | {
54 |
55 | MatOfDouble retVal = MatOfDouble.fromNativeAddr(getMean_0(nativeObj));
56 |
57 | return retVal;
58 | }
59 |
60 |
61 | //
62 | // C++: void cv::img_hash::BlockMeanHash::setMode(int mode)
63 | //
64 |
65 | //javadoc: BlockMeanHash::setMode(mode)
66 | public void setMode(int mode)
67 | {
68 |
69 | setMode_0(nativeObj, mode);
70 |
71 | return;
72 | }
73 |
74 |
75 | @Override
76 | protected void finalize() throws Throwable {
77 | delete(nativeObj);
78 | }
79 |
80 |
81 |
82 | // C++: static Ptr_BlockMeanHash cv::img_hash::BlockMeanHash::create(int mode = BLOCK_MEAN_HASH_MODE_0)
83 | private static native long create_0(int mode);
84 | private static native long create_1();
85 |
86 | // C++: vector_double cv::img_hash::BlockMeanHash::getMean()
87 | private static native long getMean_0(long nativeObj);
88 |
89 | // C++: void cv::img_hash::BlockMeanHash::setMode(int mode)
90 | private static native void setMode_0(long nativeObj, int mode);
91 |
92 | // native support for java finalize()
93 | private static native void delete(long nativeObj);
94 |
95 | }
96 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/img_hash/ColorMomentHash.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.img_hash;
5 |
6 | import org.opencv.img_hash.ColorMomentHash;
7 | import org.opencv.img_hash.ImgHashBase;
8 |
9 | // C++: class ColorMomentHash
10 | //javadoc: ColorMomentHash
11 |
12 | public class ColorMomentHash extends ImgHashBase {
13 |
14 | protected ColorMomentHash(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static ColorMomentHash __fromPtr__(long addr) { return new ColorMomentHash(addr); }
18 |
19 | //
20 | // C++: static Ptr_ColorMomentHash cv::img_hash::ColorMomentHash::create()
21 | //
22 |
23 | //javadoc: ColorMomentHash::create()
24 | public static ColorMomentHash create()
25 | {
26 |
27 | ColorMomentHash retVal = ColorMomentHash.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_ColorMomentHash cv::img_hash::ColorMomentHash::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/img_hash/ImgHashBase.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.img_hash;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class ImgHashBase
10 | //javadoc: ImgHashBase
11 |
12 | public class ImgHashBase extends Algorithm {
13 |
14 | protected ImgHashBase(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static ImgHashBase __fromPtr__(long addr) { return new ImgHashBase(addr); }
18 |
19 | //
20 | // C++: double cv::img_hash::ImgHashBase::compare(Mat hashOne, Mat hashTwo)
21 | //
22 |
23 | //javadoc: ImgHashBase::compare(hashOne, hashTwo)
24 | public double compare(Mat hashOne, Mat hashTwo)
25 | {
26 |
27 | double retVal = compare_0(nativeObj, hashOne.nativeObj, hashTwo.nativeObj);
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | //
34 | // C++: void cv::img_hash::ImgHashBase::compute(Mat inputArr, Mat& outputArr)
35 | //
36 |
37 | //javadoc: ImgHashBase::compute(inputArr, outputArr)
38 | public void compute(Mat inputArr, Mat outputArr)
39 | {
40 |
41 | compute_0(nativeObj, inputArr.nativeObj, outputArr.nativeObj);
42 |
43 | return;
44 | }
45 |
46 |
47 | @Override
48 | protected void finalize() throws Throwable {
49 | delete(nativeObj);
50 | }
51 |
52 |
53 |
54 | // C++: double cv::img_hash::ImgHashBase::compare(Mat hashOne, Mat hashTwo)
55 | private static native double compare_0(long nativeObj, long hashOne_nativeObj, long hashTwo_nativeObj);
56 |
57 | // C++: void cv::img_hash::ImgHashBase::compute(Mat inputArr, Mat& outputArr)
58 | private static native void compute_0(long nativeObj, long inputArr_nativeObj, long outputArr_nativeObj);
59 |
60 | // native support for java finalize()
61 | private static native void delete(long nativeObj);
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/img_hash/PHash.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.img_hash;
5 |
6 | import org.opencv.img_hash.ImgHashBase;
7 | import org.opencv.img_hash.PHash;
8 |
9 | // C++: class PHash
10 | //javadoc: PHash
11 |
12 | public class PHash extends ImgHashBase {
13 |
14 | protected PHash(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static PHash __fromPtr__(long addr) { return new PHash(addr); }
18 |
19 | //
20 | // C++: static Ptr_PHash cv::img_hash::PHash::create()
21 | //
22 |
23 | //javadoc: PHash::create()
24 | public static PHash create()
25 | {
26 |
27 | PHash retVal = PHash.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_PHash cv::img_hash::PHash::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ml/Ml.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ml;
5 |
6 |
7 |
8 | // C++: class Ml
9 | //javadoc: Ml
10 |
11 | public class Ml {
12 |
13 | public static final int
14 | VAR_NUMERICAL = 0,
15 | VAR_ORDERED = 0,
16 | VAR_CATEGORICAL = 1,
17 | TEST_ERROR = 0,
18 | TRAIN_ERROR = 1,
19 | ROW_SAMPLE = 0,
20 | COL_SAMPLE = 1;
21 |
22 |
23 |
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/objdetect/BaseCascadeClassifier.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.objdetect;
5 |
6 | import org.opencv.core.Algorithm;
7 |
8 | // C++: class BaseCascadeClassifier
9 | //javadoc: BaseCascadeClassifier
10 |
11 | public class BaseCascadeClassifier extends Algorithm {
12 |
13 | protected BaseCascadeClassifier(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static BaseCascadeClassifier __fromPtr__(long addr) { return new BaseCascadeClassifier(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/objdetect/Objdetect.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.objdetect;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Mat;
9 | import org.opencv.core.MatOfInt;
10 | import org.opencv.core.MatOfRect;
11 | import org.opencv.utils.Converters;
12 |
13 | // C++: class Objdetect
14 | //javadoc: Objdetect
15 |
16 | public class Objdetect {
17 |
18 | public static final int
19 | CASCADE_DO_CANNY_PRUNING = 1,
20 | CASCADE_SCALE_IMAGE = 2,
21 | CASCADE_FIND_BIGGEST_OBJECT = 4,
22 | CASCADE_DO_ROUGH_SEARCH = 8;
23 |
24 |
25 | //
26 | // C++: void cv::groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
27 | //
28 |
29 | //javadoc: groupRectangles(rectList, weights, groupThreshold, eps)
30 | public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold, double eps)
31 | {
32 | Mat rectList_mat = rectList;
33 | Mat weights_mat = weights;
34 | groupRectangles_0(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold, eps);
35 |
36 | return;
37 | }
38 |
39 | //javadoc: groupRectangles(rectList, weights, groupThreshold)
40 | public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold)
41 | {
42 | Mat rectList_mat = rectList;
43 | Mat weights_mat = weights;
44 | groupRectangles_1(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold);
45 |
46 | return;
47 | }
48 |
49 |
50 |
51 |
52 | // C++: void cv::groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
53 | private static native void groupRectangles_0(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold, double eps);
54 | private static native void groupRectangles_1(long rectList_mat_nativeObj, long weights_mat_nativeObj, int groupThreshold);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/osgi/OpenCVInterface.java:
--------------------------------------------------------------------------------
1 | package org.opencv.osgi;
2 |
3 | /**
4 | * Dummy interface to allow some integration testing within OSGi implementation.
5 | */
6 | public interface OpenCVInterface
7 | {
8 | }
9 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/osgi/OpenCVNativeLoader.java:
--------------------------------------------------------------------------------
1 | package org.opencv.osgi;
2 |
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 |
6 | /**
7 | * This class is intended to provide a convenient way to load OpenCV's native
8 | * library from the Java bundle. If Blueprint is enabled in the OSGi container
9 | * this class will be instantiated automatically and the init() method called
10 | * loading the native library.
11 | */
12 | public class OpenCVNativeLoader implements OpenCVInterface {
13 |
14 | public void init() {
15 | System.loadLibrary("opencv_java3");
16 | Logger.getLogger("org.opencv.osgi").log(Level.INFO, "Successfully loaded OpenCV native library.");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/phase_unwrapping/HistogramPhaseUnwrapping.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.phase_unwrapping;
5 |
6 | import org.opencv.core.Mat;
7 |
8 | // C++: class HistogramPhaseUnwrapping
9 | //javadoc: HistogramPhaseUnwrapping
10 |
11 | public class HistogramPhaseUnwrapping extends PhaseUnwrapping {
12 |
13 | protected HistogramPhaseUnwrapping(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static HistogramPhaseUnwrapping __fromPtr__(long addr) { return new HistogramPhaseUnwrapping(addr); }
17 |
18 | //
19 | // C++: void cv::phase_unwrapping::HistogramPhaseUnwrapping::getInverseReliabilityMap(Mat& reliabilityMap)
20 | //
21 |
22 | //javadoc: HistogramPhaseUnwrapping::getInverseReliabilityMap(reliabilityMap)
23 | public void getInverseReliabilityMap(Mat reliabilityMap)
24 | {
25 |
26 | getInverseReliabilityMap_0(nativeObj, reliabilityMap.nativeObj);
27 |
28 | return;
29 | }
30 |
31 |
32 | @Override
33 | protected void finalize() throws Throwable {
34 | delete(nativeObj);
35 | }
36 |
37 |
38 |
39 | // C++: void cv::phase_unwrapping::HistogramPhaseUnwrapping::getInverseReliabilityMap(Mat& reliabilityMap)
40 | private static native void getInverseReliabilityMap_0(long nativeObj, long reliabilityMap_nativeObj);
41 |
42 | // native support for java finalize()
43 | private static native void delete(long nativeObj);
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/phase_unwrapping/PhaseUnwrapping.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.phase_unwrapping;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class PhaseUnwrapping
10 | //javadoc: PhaseUnwrapping
11 |
12 | public class PhaseUnwrapping extends Algorithm {
13 |
14 | protected PhaseUnwrapping(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static PhaseUnwrapping __fromPtr__(long addr) { return new PhaseUnwrapping(addr); }
18 |
19 | //
20 | // C++: void cv::phase_unwrapping::PhaseUnwrapping::unwrapPhaseMap(Mat wrappedPhaseMap, Mat& unwrappedPhaseMap, Mat shadowMask = Mat())
21 | //
22 |
23 | //javadoc: PhaseUnwrapping::unwrapPhaseMap(wrappedPhaseMap, unwrappedPhaseMap, shadowMask)
24 | public void unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Mat shadowMask)
25 | {
26 |
27 | unwrapPhaseMap_0(nativeObj, wrappedPhaseMap.nativeObj, unwrappedPhaseMap.nativeObj, shadowMask.nativeObj);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: PhaseUnwrapping::unwrapPhaseMap(wrappedPhaseMap, unwrappedPhaseMap)
33 | public void unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap)
34 | {
35 |
36 | unwrapPhaseMap_1(nativeObj, wrappedPhaseMap.nativeObj, unwrappedPhaseMap.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | @Override
43 | protected void finalize() throws Throwable {
44 | delete(nativeObj);
45 | }
46 |
47 |
48 |
49 | // C++: void cv::phase_unwrapping::PhaseUnwrapping::unwrapPhaseMap(Mat wrappedPhaseMap, Mat& unwrappedPhaseMap, Mat shadowMask = Mat())
50 | private static native void unwrapPhaseMap_0(long nativeObj, long wrappedPhaseMap_nativeObj, long unwrappedPhaseMap_nativeObj, long shadowMask_nativeObj);
51 | private static native void unwrapPhaseMap_1(long nativeObj, long wrappedPhaseMap_nativeObj, long unwrappedPhaseMap_nativeObj);
52 |
53 | // native support for java finalize()
54 | private static native void delete(long nativeObj);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/phase_unwrapping/Phase_unwrapping.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.phase_unwrapping;
5 |
6 |
7 |
8 | // C++: class Phase_unwrapping
9 | //javadoc: Phase_unwrapping
10 |
11 | public class Phase_unwrapping {
12 |
13 |
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/AlignExposures.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Algorithm;
9 | import org.opencv.core.Mat;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class AlignExposures
13 | //javadoc: AlignExposures
14 |
15 | public class AlignExposures extends Algorithm {
16 |
17 | protected AlignExposures(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static AlignExposures __fromPtr__(long addr) { return new AlignExposures(addr); }
21 |
22 | //
23 | // C++: void cv::AlignExposures::process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
24 | //
25 |
26 | //javadoc: AlignExposures::process(src, dst, times, response)
27 | public void process(List src, List dst, Mat times, Mat response)
28 | {
29 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
30 | Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
31 | process_0(nativeObj, src_mat.nativeObj, dst_mat.nativeObj, times.nativeObj, response.nativeObj);
32 |
33 | return;
34 | }
35 |
36 |
37 | @Override
38 | protected void finalize() throws Throwable {
39 | delete(nativeObj);
40 | }
41 |
42 |
43 |
44 | // C++: void cv::AlignExposures::process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
45 | private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_mat_nativeObj, long times_nativeObj, long response_nativeObj);
46 |
47 | // native support for java finalize()
48 | private static native void delete(long nativeObj);
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/CalibrateCRF.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Algorithm;
9 | import org.opencv.core.Mat;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class CalibrateCRF
13 | //javadoc: CalibrateCRF
14 |
15 | public class CalibrateCRF extends Algorithm {
16 |
17 | protected CalibrateCRF(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static CalibrateCRF __fromPtr__(long addr) { return new CalibrateCRF(addr); }
21 |
22 | //
23 | // C++: void cv::CalibrateCRF::process(vector_Mat src, Mat& dst, Mat times)
24 | //
25 |
26 | //javadoc: CalibrateCRF::process(src, dst, times)
27 | public void process(List src, Mat dst, Mat times)
28 | {
29 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
30 | process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
31 |
32 | return;
33 | }
34 |
35 |
36 | @Override
37 | protected void finalize() throws Throwable {
38 | delete(nativeObj);
39 | }
40 |
41 |
42 |
43 | // C++: void cv::CalibrateCRF::process(vector_Mat src, Mat& dst, Mat times)
44 | private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj);
45 |
46 | // native support for java finalize()
47 | private static native void delete(long nativeObj);
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/MergeDebevec.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Mat;
9 | import org.opencv.photo.MergeExposures;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class MergeDebevec
13 | //javadoc: MergeDebevec
14 |
15 | public class MergeDebevec extends MergeExposures {
16 |
17 | protected MergeDebevec(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static MergeDebevec __fromPtr__(long addr) { return new MergeDebevec(addr); }
21 |
22 | //
23 | // C++: void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times, Mat response)
24 | //
25 |
26 | //javadoc: MergeDebevec::process(src, dst, times, response)
27 | public void process(List src, Mat dst, Mat times, Mat response)
28 | {
29 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
30 | process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
31 |
32 | return;
33 | }
34 |
35 |
36 | //
37 | // C++: void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times)
38 | //
39 |
40 | //javadoc: MergeDebevec::process(src, dst, times)
41 | public void process(List src, Mat dst, Mat times)
42 | {
43 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
44 | process_1(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
45 |
46 | return;
47 | }
48 |
49 |
50 | @Override
51 | protected void finalize() throws Throwable {
52 | delete(nativeObj);
53 | }
54 |
55 |
56 |
57 | // C++: void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times, Mat response)
58 | private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj, long response_nativeObj);
59 |
60 | // C++: void cv::MergeDebevec::process(vector_Mat src, Mat& dst, Mat times)
61 | private static native void process_1(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj);
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/MergeExposures.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Algorithm;
9 | import org.opencv.core.Mat;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class MergeExposures
13 | //javadoc: MergeExposures
14 |
15 | public class MergeExposures extends Algorithm {
16 |
17 | protected MergeExposures(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static MergeExposures __fromPtr__(long addr) { return new MergeExposures(addr); }
21 |
22 | //
23 | // C++: void cv::MergeExposures::process(vector_Mat src, Mat& dst, Mat times, Mat response)
24 | //
25 |
26 | //javadoc: MergeExposures::process(src, dst, times, response)
27 | public void process(List src, Mat dst, Mat times, Mat response)
28 | {
29 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
30 | process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
31 |
32 | return;
33 | }
34 |
35 |
36 | @Override
37 | protected void finalize() throws Throwable {
38 | delete(nativeObj);
39 | }
40 |
41 |
42 |
43 | // C++: void cv::MergeExposures::process(vector_Mat src, Mat& dst, Mat times, Mat response)
44 | private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj, long response_nativeObj);
45 |
46 | // native support for java finalize()
47 | private static native void delete(long nativeObj);
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/MergeRobertson.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Mat;
9 | import org.opencv.photo.MergeExposures;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class MergeRobertson
13 | //javadoc: MergeRobertson
14 |
15 | public class MergeRobertson extends MergeExposures {
16 |
17 | protected MergeRobertson(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static MergeRobertson __fromPtr__(long addr) { return new MergeRobertson(addr); }
21 |
22 | //
23 | // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times, Mat response)
24 | //
25 |
26 | //javadoc: MergeRobertson::process(src, dst, times, response)
27 | public void process(List src, Mat dst, Mat times, Mat response)
28 | {
29 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
30 | process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
31 |
32 | return;
33 | }
34 |
35 |
36 | //
37 | // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times)
38 | //
39 |
40 | //javadoc: MergeRobertson::process(src, dst, times)
41 | public void process(List src, Mat dst, Mat times)
42 | {
43 | Mat src_mat = Converters.vector_Mat_to_Mat(src);
44 | process_1(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
45 |
46 | return;
47 | }
48 |
49 |
50 | @Override
51 | protected void finalize() throws Throwable {
52 | delete(nativeObj);
53 | }
54 |
55 |
56 |
57 | // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times, Mat response)
58 | private static native void process_0(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj, long response_nativeObj);
59 |
60 | // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times)
61 | private static native void process_1(long nativeObj, long src_mat_nativeObj, long dst_nativeObj, long times_nativeObj);
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/Tonemap.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class Tonemap
10 | //javadoc: Tonemap
11 |
12 | public class Tonemap extends Algorithm {
13 |
14 | protected Tonemap(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static Tonemap __fromPtr__(long addr) { return new Tonemap(addr); }
18 |
19 | //
20 | // C++: float cv::Tonemap::getGamma()
21 | //
22 |
23 | //javadoc: Tonemap::getGamma()
24 | public float getGamma()
25 | {
26 |
27 | float retVal = getGamma_0(nativeObj);
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | //
34 | // C++: void cv::Tonemap::process(Mat src, Mat& dst)
35 | //
36 |
37 | //javadoc: Tonemap::process(src, dst)
38 | public void process(Mat src, Mat dst)
39 | {
40 |
41 | process_0(nativeObj, src.nativeObj, dst.nativeObj);
42 |
43 | return;
44 | }
45 |
46 |
47 | //
48 | // C++: void cv::Tonemap::setGamma(float gamma)
49 | //
50 |
51 | //javadoc: Tonemap::setGamma(gamma)
52 | public void setGamma(float gamma)
53 | {
54 |
55 | setGamma_0(nativeObj, gamma);
56 |
57 | return;
58 | }
59 |
60 |
61 | @Override
62 | protected void finalize() throws Throwable {
63 | delete(nativeObj);
64 | }
65 |
66 |
67 |
68 | // C++: float cv::Tonemap::getGamma()
69 | private static native float getGamma_0(long nativeObj);
70 |
71 | // C++: void cv::Tonemap::process(Mat src, Mat& dst)
72 | private static native void process_0(long nativeObj, long src_nativeObj, long dst_nativeObj);
73 |
74 | // C++: void cv::Tonemap::setGamma(float gamma)
75 | private static native void setGamma_0(long nativeObj, float gamma);
76 |
77 | // native support for java finalize()
78 | private static native void delete(long nativeObj);
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/TonemapDrago.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import org.opencv.photo.Tonemap;
7 |
8 | // C++: class TonemapDrago
9 | //javadoc: TonemapDrago
10 |
11 | public class TonemapDrago extends Tonemap {
12 |
13 | protected TonemapDrago(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static TonemapDrago __fromPtr__(long addr) { return new TonemapDrago(addr); }
17 |
18 | //
19 | // C++: float cv::TonemapDrago::getBias()
20 | //
21 |
22 | //javadoc: TonemapDrago::getBias()
23 | public float getBias()
24 | {
25 |
26 | float retVal = getBias_0(nativeObj);
27 |
28 | return retVal;
29 | }
30 |
31 |
32 | //
33 | // C++: float cv::TonemapDrago::getSaturation()
34 | //
35 |
36 | //javadoc: TonemapDrago::getSaturation()
37 | public float getSaturation()
38 | {
39 |
40 | float retVal = getSaturation_0(nativeObj);
41 |
42 | return retVal;
43 | }
44 |
45 |
46 | //
47 | // C++: void cv::TonemapDrago::setBias(float bias)
48 | //
49 |
50 | //javadoc: TonemapDrago::setBias(bias)
51 | public void setBias(float bias)
52 | {
53 |
54 | setBias_0(nativeObj, bias);
55 |
56 | return;
57 | }
58 |
59 |
60 | //
61 | // C++: void cv::TonemapDrago::setSaturation(float saturation)
62 | //
63 |
64 | //javadoc: TonemapDrago::setSaturation(saturation)
65 | public void setSaturation(float saturation)
66 | {
67 |
68 | setSaturation_0(nativeObj, saturation);
69 |
70 | return;
71 | }
72 |
73 |
74 | @Override
75 | protected void finalize() throws Throwable {
76 | delete(nativeObj);
77 | }
78 |
79 |
80 |
81 | // C++: float cv::TonemapDrago::getBias()
82 | private static native float getBias_0(long nativeObj);
83 |
84 | // C++: float cv::TonemapDrago::getSaturation()
85 | private static native float getSaturation_0(long nativeObj);
86 |
87 | // C++: void cv::TonemapDrago::setBias(float bias)
88 | private static native void setBias_0(long nativeObj, float bias);
89 |
90 | // C++: void cv::TonemapDrago::setSaturation(float saturation)
91 | private static native void setSaturation_0(long nativeObj, float saturation);
92 |
93 | // native support for java finalize()
94 | private static native void delete(long nativeObj);
95 |
96 | }
97 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/photo/TonemapMantiuk.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.photo;
5 |
6 | import org.opencv.photo.Tonemap;
7 |
8 | // C++: class TonemapMantiuk
9 | //javadoc: TonemapMantiuk
10 |
11 | public class TonemapMantiuk extends Tonemap {
12 |
13 | protected TonemapMantiuk(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static TonemapMantiuk __fromPtr__(long addr) { return new TonemapMantiuk(addr); }
17 |
18 | //
19 | // C++: float cv::TonemapMantiuk::getSaturation()
20 | //
21 |
22 | //javadoc: TonemapMantiuk::getSaturation()
23 | public float getSaturation()
24 | {
25 |
26 | float retVal = getSaturation_0(nativeObj);
27 |
28 | return retVal;
29 | }
30 |
31 |
32 | //
33 | // C++: float cv::TonemapMantiuk::getScale()
34 | //
35 |
36 | //javadoc: TonemapMantiuk::getScale()
37 | public float getScale()
38 | {
39 |
40 | float retVal = getScale_0(nativeObj);
41 |
42 | return retVal;
43 | }
44 |
45 |
46 | //
47 | // C++: void cv::TonemapMantiuk::setSaturation(float saturation)
48 | //
49 |
50 | //javadoc: TonemapMantiuk::setSaturation(saturation)
51 | public void setSaturation(float saturation)
52 | {
53 |
54 | setSaturation_0(nativeObj, saturation);
55 |
56 | return;
57 | }
58 |
59 |
60 | //
61 | // C++: void cv::TonemapMantiuk::setScale(float scale)
62 | //
63 |
64 | //javadoc: TonemapMantiuk::setScale(scale)
65 | public void setScale(float scale)
66 | {
67 |
68 | setScale_0(nativeObj, scale);
69 |
70 | return;
71 | }
72 |
73 |
74 | @Override
75 | protected void finalize() throws Throwable {
76 | delete(nativeObj);
77 | }
78 |
79 |
80 |
81 | // C++: float cv::TonemapMantiuk::getSaturation()
82 | private static native float getSaturation_0(long nativeObj);
83 |
84 | // C++: float cv::TonemapMantiuk::getScale()
85 | private static native float getScale_0(long nativeObj);
86 |
87 | // C++: void cv::TonemapMantiuk::setSaturation(float saturation)
88 | private static native void setSaturation_0(long nativeObj, float saturation);
89 |
90 | // C++: void cv::TonemapMantiuk::setScale(float scale)
91 | private static native void setScale_0(long nativeObj, float scale);
92 |
93 | // native support for java finalize()
94 | private static native void delete(long nativeObj);
95 |
96 | }
97 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/plot/Plot.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.plot;
5 |
6 |
7 |
8 | // C++: class Plot
9 | //javadoc: Plot
10 |
11 | public class Plot {
12 |
13 |
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/structured_light/Params.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.structured_light;
5 |
6 |
7 |
8 | // C++: class Params
9 | //javadoc: Params
10 |
11 | public class Params {
12 |
13 | protected final long nativeObj;
14 | protected Params(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static Params __fromPtr__(long addr) { return new Params(addr); }
20 |
21 | //
22 | // C++: cv::structured_light::SinusoidalPattern::Params::Params()
23 | //
24 |
25 | //javadoc: Params::Params()
26 | public Params()
27 | {
28 |
29 | nativeObj = Params_0();
30 |
31 | return;
32 | }
33 |
34 |
35 | @Override
36 | protected void finalize() throws Throwable {
37 | delete(nativeObj);
38 | }
39 |
40 |
41 |
42 | // C++: cv::structured_light::SinusoidalPattern::Params::Params()
43 | private static native long Params_0();
44 |
45 | // native support for java finalize()
46 | private static native void delete(long nativeObj);
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/structured_light/StructuredLightPattern.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.structured_light;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Algorithm;
9 | import org.opencv.core.Mat;
10 | import org.opencv.utils.Converters;
11 |
12 | // C++: class StructuredLightPattern
13 | //javadoc: StructuredLightPattern
14 |
15 | public class StructuredLightPattern extends Algorithm {
16 |
17 | protected StructuredLightPattern(long addr) { super(addr); }
18 |
19 | // internal usage only
20 | public static StructuredLightPattern __fromPtr__(long addr) { return new StructuredLightPattern(addr); }
21 |
22 | //
23 | // C++: bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD)
24 | //
25 |
26 | // Unknown type 'vector_vector_Mat' (I), skipping the function
27 |
28 |
29 | //
30 | // C++: bool cv::structured_light::StructuredLightPattern::generate(vector_Mat& patternImages)
31 | //
32 |
33 | //javadoc: StructuredLightPattern::generate(patternImages)
34 | public boolean generate(List patternImages)
35 | {
36 | Mat patternImages_mat = new Mat();
37 | boolean retVal = generate_0(nativeObj, patternImages_mat.nativeObj);
38 | Converters.Mat_to_vector_Mat(patternImages_mat, patternImages);
39 | patternImages_mat.release();
40 | return retVal;
41 | }
42 |
43 |
44 | @Override
45 | protected void finalize() throws Throwable {
46 | delete(nativeObj);
47 | }
48 |
49 |
50 |
51 | // C++: bool cv::structured_light::StructuredLightPattern::generate(vector_Mat& patternImages)
52 | private static native boolean generate_0(long nativeObj, long patternImages_mat_nativeObj);
53 |
54 | // native support for java finalize()
55 | private static native void delete(long nativeObj);
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/structured_light/Structured_light.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.structured_light;
5 |
6 |
7 |
8 | // C++: class Structured_light
9 | //javadoc: Structured_light
10 |
11 | public class Structured_light {
12 |
13 | public static final int
14 | FTP = 0,
15 | PSP = 1,
16 | FAPS = 2,
17 | DECODE_3D_UNDERWORLD = 0;
18 |
19 |
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/BaseOCR.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 |
7 |
8 | // C++: class BaseOCR
9 | //javadoc: BaseOCR
10 |
11 | public class BaseOCR {
12 |
13 | protected final long nativeObj;
14 | protected BaseOCR(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static BaseOCR __fromPtr__(long addr) { return new BaseOCR(addr); }
20 |
21 | @Override
22 | protected void finalize() throws Throwable {
23 | delete(nativeObj);
24 | }
25 |
26 |
27 |
28 | // native support for java finalize()
29 | private static native void delete(long nativeObj);
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/Callback.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 |
7 |
8 | // C++: class Callback
9 | //javadoc: Callback
10 |
11 | public class Callback {
12 |
13 | protected final long nativeObj;
14 | protected Callback(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static Callback __fromPtr__(long addr) { return new Callback(addr); }
20 |
21 | @Override
22 | protected void finalize() throws Throwable {
23 | delete(nativeObj);
24 | }
25 |
26 |
27 |
28 | // native support for java finalize()
29 | private static native void delete(long nativeObj);
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/ClassifierCallback.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 |
7 |
8 | // C++: class ClassifierCallback
9 | //javadoc: ClassifierCallback
10 |
11 | public class ClassifierCallback {
12 |
13 | protected final long nativeObj;
14 | protected ClassifierCallback(long addr) { nativeObj = addr; }
15 |
16 | public long getNativeObjAddr() { return nativeObj; }
17 |
18 | // internal usage only
19 | public static ClassifierCallback __fromPtr__(long addr) { return new ClassifierCallback(addr); }
20 |
21 | @Override
22 | protected void finalize() throws Throwable {
23 | delete(nativeObj);
24 | }
25 |
26 |
27 |
28 | // native support for java finalize()
29 | private static native void delete(long nativeObj);
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/ERFilter.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 | import org.opencv.core.Algorithm;
7 |
8 | // C++: class ERFilter
9 | //javadoc: ERFilter
10 |
11 | public class ERFilter extends Algorithm {
12 |
13 | protected ERFilter(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static ERFilter __fromPtr__(long addr) { return new ERFilter(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/TextDetector.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 | import org.opencv.core.Mat;
9 | import org.opencv.core.MatOfFloat;
10 | import org.opencv.core.MatOfRect;
11 | import org.opencv.utils.Converters;
12 |
13 | // C++: class TextDetector
14 | //javadoc: TextDetector
15 |
16 | public class TextDetector {
17 |
18 | protected final long nativeObj;
19 | protected TextDetector(long addr) { nativeObj = addr; }
20 |
21 | public long getNativeObjAddr() { return nativeObj; }
22 |
23 | // internal usage only
24 | public static TextDetector __fromPtr__(long addr) { return new TextDetector(addr); }
25 |
26 | //
27 | // C++: void cv::text::TextDetector::detect(Mat inputImage, vector_Rect& Bbox, vector_float& confidence)
28 | //
29 |
30 | //javadoc: TextDetector::detect(inputImage, Bbox, confidence)
31 | public void detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)
32 | {
33 | Mat Bbox_mat = Bbox;
34 | Mat confidence_mat = confidence;
35 | detect_0(nativeObj, inputImage.nativeObj, Bbox_mat.nativeObj, confidence_mat.nativeObj);
36 |
37 | return;
38 | }
39 |
40 |
41 | @Override
42 | protected void finalize() throws Throwable {
43 | delete(nativeObj);
44 | }
45 |
46 |
47 |
48 | // C++: void cv::text::TextDetector::detect(Mat inputImage, vector_Rect& Bbox, vector_float& confidence)
49 | private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);
50 |
51 | // native support for java finalize()
52 | private static native void delete(long nativeObj);
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/text/TextDetectorCNN.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.text;
5 |
6 | import java.lang.String;
7 | import java.util.ArrayList;
8 | import java.util.List;
9 | import org.opencv.core.Mat;
10 | import org.opencv.core.MatOfFloat;
11 | import org.opencv.core.MatOfRect;
12 | import org.opencv.text.TextDetector;
13 | import org.opencv.text.TextDetectorCNN;
14 | import org.opencv.utils.Converters;
15 |
16 | // C++: class TextDetectorCNN
17 | //javadoc: TextDetectorCNN
18 |
19 | public class TextDetectorCNN extends TextDetector {
20 |
21 | protected TextDetectorCNN(long addr) { super(addr); }
22 |
23 | // internal usage only
24 | public static TextDetectorCNN __fromPtr__(long addr) { return new TextDetectorCNN(addr); }
25 |
26 | //
27 | // C++: static Ptr_TextDetectorCNN cv::text::TextDetectorCNN::create(String modelArchFilename, String modelWeightsFilename)
28 | //
29 |
30 | //javadoc: TextDetectorCNN::create(modelArchFilename, modelWeightsFilename)
31 | public static TextDetectorCNN create(String modelArchFilename, String modelWeightsFilename)
32 | {
33 |
34 | TextDetectorCNN retVal = TextDetectorCNN.__fromPtr__(create_0(modelArchFilename, modelWeightsFilename));
35 |
36 | return retVal;
37 | }
38 |
39 |
40 | //
41 | // C++: void cv::text::TextDetectorCNN::detect(Mat inputImage, vector_Rect& Bbox, vector_float& confidence)
42 | //
43 |
44 | //javadoc: TextDetectorCNN::detect(inputImage, Bbox, confidence)
45 | public void detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)
46 | {
47 | Mat Bbox_mat = Bbox;
48 | Mat confidence_mat = confidence;
49 | detect_0(nativeObj, inputImage.nativeObj, Bbox_mat.nativeObj, confidence_mat.nativeObj);
50 |
51 | return;
52 | }
53 |
54 |
55 | @Override
56 | protected void finalize() throws Throwable {
57 | delete(nativeObj);
58 | }
59 |
60 |
61 |
62 | // C++: static Ptr_TextDetectorCNN cv::text::TextDetectorCNN::create(String modelArchFilename, String modelWeightsFilename)
63 | private static native long create_0(String modelArchFilename, String modelWeightsFilename);
64 |
65 | // C++: void cv::text::TextDetectorCNN::detect(Mat inputImage, vector_Rect& Bbox, vector_float& confidence)
66 | private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);
67 |
68 | // native support for java finalize()
69 | private static native void delete(long nativeObj);
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/Tracker.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 | import org.opencv.core.Rect2d;
9 |
10 | // C++: class Tracker
11 | //javadoc: Tracker
12 |
13 | public class Tracker extends Algorithm {
14 |
15 | protected Tracker(long addr) { super(addr); }
16 |
17 | // internal usage only
18 | public static Tracker __fromPtr__(long addr) { return new Tracker(addr); }
19 |
20 | //
21 | // C++: bool cv::Tracker::init(Mat image, Rect2d boundingBox)
22 | //
23 |
24 | //javadoc: Tracker::init(image, boundingBox)
25 | public boolean init(Mat image, Rect2d boundingBox)
26 | {
27 |
28 | boolean retVal = init_0(nativeObj, image.nativeObj, boundingBox.x, boundingBox.y, boundingBox.width, boundingBox.height);
29 |
30 | return retVal;
31 | }
32 |
33 |
34 | //
35 | // C++: bool cv::Tracker::update(Mat image, Rect2d& boundingBox)
36 | //
37 |
38 | //javadoc: Tracker::update(image, boundingBox)
39 | public boolean update(Mat image, Rect2d boundingBox)
40 | {
41 | double[] boundingBox_out = new double[4];
42 | boolean retVal = update_0(nativeObj, image.nativeObj, boundingBox_out);
43 | if(boundingBox!=null){ boundingBox.x = boundingBox_out[0]; boundingBox.y = boundingBox_out[1]; boundingBox.width = boundingBox_out[2]; boundingBox.height = boundingBox_out[3]; }
44 | return retVal;
45 | }
46 |
47 |
48 | @Override
49 | protected void finalize() throws Throwable {
50 | delete(nativeObj);
51 | }
52 |
53 |
54 |
55 | // C++: bool cv::Tracker::init(Mat image, Rect2d boundingBox)
56 | private static native boolean init_0(long nativeObj, long image_nativeObj, double boundingBox_x, double boundingBox_y, double boundingBox_width, double boundingBox_height);
57 |
58 | // C++: bool cv::Tracker::update(Mat image, Rect2d& boundingBox)
59 | private static native boolean update_0(long nativeObj, long image_nativeObj, double[] boundingBox_out);
60 |
61 | // native support for java finalize()
62 | private static native void delete(long nativeObj);
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerBoosting.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerBoosting;
8 |
9 | // C++: class TrackerBoosting
10 | //javadoc: TrackerBoosting
11 |
12 | public class TrackerBoosting extends Tracker {
13 |
14 | protected TrackerBoosting(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerBoosting __fromPtr__(long addr) { return new TrackerBoosting(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerBoosting cv::TrackerBoosting::create()
21 | //
22 |
23 | //javadoc: TrackerBoosting::create()
24 | public static TrackerBoosting create()
25 | {
26 |
27 | TrackerBoosting retVal = TrackerBoosting.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerBoosting cv::TrackerBoosting::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerCSRT.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerCSRT;
8 |
9 | // C++: class TrackerCSRT
10 | //javadoc: TrackerCSRT
11 |
12 | public class TrackerCSRT extends Tracker {
13 |
14 | protected TrackerCSRT(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerCSRT __fromPtr__(long addr) { return new TrackerCSRT(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerCSRT cv::TrackerCSRT::create()
21 | //
22 |
23 | //javadoc: TrackerCSRT::create()
24 | public static TrackerCSRT create()
25 | {
26 |
27 | TrackerCSRT retVal = TrackerCSRT.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerCSRT cv::TrackerCSRT::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerGOTURN.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerGOTURN;
8 |
9 | // C++: class TrackerGOTURN
10 | //javadoc: TrackerGOTURN
11 |
12 | public class TrackerGOTURN extends Tracker {
13 |
14 | protected TrackerGOTURN(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerGOTURN __fromPtr__(long addr) { return new TrackerGOTURN(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerGOTURN cv::TrackerGOTURN::create()
21 | //
22 |
23 | //javadoc: TrackerGOTURN::create()
24 | public static TrackerGOTURN create()
25 | {
26 |
27 | TrackerGOTURN retVal = TrackerGOTURN.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerGOTURN cv::TrackerGOTURN::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerKCF.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerKCF;
8 |
9 | // C++: class TrackerKCF
10 | //javadoc: TrackerKCF
11 |
12 | public class TrackerKCF extends Tracker {
13 |
14 | protected TrackerKCF(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerKCF __fromPtr__(long addr) { return new TrackerKCF(addr); }
18 |
19 | public static final int
20 | GRAY = (1 << 0),
21 | CN = (1 << 1),
22 | CUSTOM = (1 << 2);
23 |
24 |
25 | //
26 | // C++: static Ptr_TrackerKCF cv::TrackerKCF::create()
27 | //
28 |
29 | //javadoc: TrackerKCF::create()
30 | public static TrackerKCF create()
31 | {
32 |
33 | TrackerKCF retVal = TrackerKCF.__fromPtr__(create_0());
34 |
35 | return retVal;
36 | }
37 |
38 |
39 | @Override
40 | protected void finalize() throws Throwable {
41 | delete(nativeObj);
42 | }
43 |
44 |
45 |
46 | // C++: static Ptr_TrackerKCF cv::TrackerKCF::create()
47 | private static native long create_0();
48 |
49 | // native support for java finalize()
50 | private static native void delete(long nativeObj);
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerMIL.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerMIL;
8 |
9 | // C++: class TrackerMIL
10 | //javadoc: TrackerMIL
11 |
12 | public class TrackerMIL extends Tracker {
13 |
14 | protected TrackerMIL(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerMIL __fromPtr__(long addr) { return new TrackerMIL(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerMIL cv::TrackerMIL::create()
21 | //
22 |
23 | //javadoc: TrackerMIL::create()
24 | public static TrackerMIL create()
25 | {
26 |
27 | TrackerMIL retVal = TrackerMIL.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerMIL cv::TrackerMIL::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerMOSSE.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerMOSSE;
8 |
9 | // C++: class TrackerMOSSE
10 | //javadoc: TrackerMOSSE
11 |
12 | public class TrackerMOSSE extends Tracker {
13 |
14 | protected TrackerMOSSE(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerMOSSE __fromPtr__(long addr) { return new TrackerMOSSE(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerMOSSE cv::TrackerMOSSE::create()
21 | //
22 |
23 | //javadoc: TrackerMOSSE::create()
24 | public static TrackerMOSSE create()
25 | {
26 |
27 | TrackerMOSSE retVal = TrackerMOSSE.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerMOSSE cv::TrackerMOSSE::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerMedianFlow.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerMedianFlow;
8 |
9 | // C++: class TrackerMedianFlow
10 | //javadoc: TrackerMedianFlow
11 |
12 | public class TrackerMedianFlow extends Tracker {
13 |
14 | protected TrackerMedianFlow(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerMedianFlow __fromPtr__(long addr) { return new TrackerMedianFlow(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerMedianFlow cv::TrackerMedianFlow::create()
21 | //
22 |
23 | //javadoc: TrackerMedianFlow::create()
24 | public static TrackerMedianFlow create()
25 | {
26 |
27 | TrackerMedianFlow retVal = TrackerMedianFlow.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerMedianFlow cv::TrackerMedianFlow::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/TrackerTLD.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 | import org.opencv.tracking.Tracker;
7 | import org.opencv.tracking.TrackerTLD;
8 |
9 | // C++: class TrackerTLD
10 | //javadoc: TrackerTLD
11 |
12 | public class TrackerTLD extends Tracker {
13 |
14 | protected TrackerTLD(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static TrackerTLD __fromPtr__(long addr) { return new TrackerTLD(addr); }
18 |
19 | //
20 | // C++: static Ptr_TrackerTLD cv::TrackerTLD::create()
21 | //
22 |
23 | //javadoc: TrackerTLD::create()
24 | public static TrackerTLD create()
25 | {
26 |
27 | TrackerTLD retVal = TrackerTLD.__fromPtr__(create_0());
28 |
29 | return retVal;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: static Ptr_TrackerTLD cv::TrackerTLD::create()
41 | private static native long create_0();
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/tracking/Tracking.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.tracking;
5 |
6 |
7 |
8 | // C++: class Tracking
9 | //javadoc: Tracking
10 |
11 | public class Tracking {
12 |
13 |
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/video/BackgroundSubtractor.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.video;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class BackgroundSubtractor
10 | //javadoc: BackgroundSubtractor
11 |
12 | public class BackgroundSubtractor extends Algorithm {
13 |
14 | protected BackgroundSubtractor(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static BackgroundSubtractor __fromPtr__(long addr) { return new BackgroundSubtractor(addr); }
18 |
19 | //
20 | // C++: void cv::BackgroundSubtractor::apply(Mat image, Mat& fgmask, double learningRate = -1)
21 | //
22 |
23 | //javadoc: BackgroundSubtractor::apply(image, fgmask, learningRate)
24 | public void apply(Mat image, Mat fgmask, double learningRate)
25 | {
26 |
27 | apply_0(nativeObj, image.nativeObj, fgmask.nativeObj, learningRate);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: BackgroundSubtractor::apply(image, fgmask)
33 | public void apply(Mat image, Mat fgmask)
34 | {
35 |
36 | apply_1(nativeObj, image.nativeObj, fgmask.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | //
43 | // C++: void cv::BackgroundSubtractor::getBackgroundImage(Mat& backgroundImage)
44 | //
45 |
46 | //javadoc: BackgroundSubtractor::getBackgroundImage(backgroundImage)
47 | public void getBackgroundImage(Mat backgroundImage)
48 | {
49 |
50 | getBackgroundImage_0(nativeObj, backgroundImage.nativeObj);
51 |
52 | return;
53 | }
54 |
55 |
56 | @Override
57 | protected void finalize() throws Throwable {
58 | delete(nativeObj);
59 | }
60 |
61 |
62 |
63 | // C++: void cv::BackgroundSubtractor::apply(Mat image, Mat& fgmask, double learningRate = -1)
64 | private static native void apply_0(long nativeObj, long image_nativeObj, long fgmask_nativeObj, double learningRate);
65 | private static native void apply_1(long nativeObj, long image_nativeObj, long fgmask_nativeObj);
66 |
67 | // C++: void cv::BackgroundSubtractor::getBackgroundImage(Mat& backgroundImage)
68 | private static native void getBackgroundImage_0(long nativeObj, long backgroundImage_nativeObj);
69 |
70 | // native support for java finalize()
71 | private static native void delete(long nativeObj);
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/video/DenseOpticalFlow.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.video;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class DenseOpticalFlow
10 | //javadoc: DenseOpticalFlow
11 |
12 | public class DenseOpticalFlow extends Algorithm {
13 |
14 | protected DenseOpticalFlow(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static DenseOpticalFlow __fromPtr__(long addr) { return new DenseOpticalFlow(addr); }
18 |
19 | //
20 | // C++: void cv::DenseOpticalFlow::calc(Mat I0, Mat I1, Mat& flow)
21 | //
22 |
23 | //javadoc: DenseOpticalFlow::calc(I0, I1, flow)
24 | public void calc(Mat I0, Mat I1, Mat flow)
25 | {
26 |
27 | calc_0(nativeObj, I0.nativeObj, I1.nativeObj, flow.nativeObj);
28 |
29 | return;
30 | }
31 |
32 |
33 | //
34 | // C++: void cv::DenseOpticalFlow::collectGarbage()
35 | //
36 |
37 | //javadoc: DenseOpticalFlow::collectGarbage()
38 | public void collectGarbage()
39 | {
40 |
41 | collectGarbage_0(nativeObj);
42 |
43 | return;
44 | }
45 |
46 |
47 | @Override
48 | protected void finalize() throws Throwable {
49 | delete(nativeObj);
50 | }
51 |
52 |
53 |
54 | // C++: void cv::DenseOpticalFlow::calc(Mat I0, Mat I1, Mat& flow)
55 | private static native void calc_0(long nativeObj, long I0_nativeObj, long I1_nativeObj, long flow_nativeObj);
56 |
57 | // C++: void cv::DenseOpticalFlow::collectGarbage()
58 | private static native void collectGarbage_0(long nativeObj);
59 |
60 | // native support for java finalize()
61 | private static native void delete(long nativeObj);
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/video/SparseOpticalFlow.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.video;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class SparseOpticalFlow
10 | //javadoc: SparseOpticalFlow
11 |
12 | public class SparseOpticalFlow extends Algorithm {
13 |
14 | protected SparseOpticalFlow(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static SparseOpticalFlow __fromPtr__(long addr) { return new SparseOpticalFlow(addr); }
18 |
19 | //
20 | // C++: void cv::SparseOpticalFlow::calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat& nextPts, Mat& status, Mat& err = cv::Mat())
21 | //
22 |
23 | //javadoc: SparseOpticalFlow::calc(prevImg, nextImg, prevPts, nextPts, status, err)
24 | public void calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status, Mat err)
25 | {
26 |
27 | calc_0(nativeObj, prevImg.nativeObj, nextImg.nativeObj, prevPts.nativeObj, nextPts.nativeObj, status.nativeObj, err.nativeObj);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: SparseOpticalFlow::calc(prevImg, nextImg, prevPts, nextPts, status)
33 | public void calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status)
34 | {
35 |
36 | calc_1(nativeObj, prevImg.nativeObj, nextImg.nativeObj, prevPts.nativeObj, nextPts.nativeObj, status.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | @Override
43 | protected void finalize() throws Throwable {
44 | delete(nativeObj);
45 | }
46 |
47 |
48 |
49 | // C++: void cv::SparseOpticalFlow::calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat& nextPts, Mat& status, Mat& err = cv::Mat())
50 | private static native void calc_0(long nativeObj, long prevImg_nativeObj, long nextImg_nativeObj, long prevPts_nativeObj, long nextPts_nativeObj, long status_nativeObj, long err_nativeObj);
51 | private static native void calc_1(long nativeObj, long prevImg_nativeObj, long nextImg_nativeObj, long prevPts_nativeObj, long nextPts_nativeObj, long status_nativeObj);
52 |
53 | // native support for java finalize()
54 | private static native void delete(long nativeObj);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/xfeatures2d/BriefDescriptorExtractor.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.xfeatures2d;
5 |
6 | import org.opencv.features2d.Feature2D;
7 | import org.opencv.xfeatures2d.BriefDescriptorExtractor;
8 |
9 | // C++: class BriefDescriptorExtractor
10 | //javadoc: BriefDescriptorExtractor
11 |
12 | public class BriefDescriptorExtractor extends Feature2D {
13 |
14 | protected BriefDescriptorExtractor(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static BriefDescriptorExtractor __fromPtr__(long addr) { return new BriefDescriptorExtractor(addr); }
18 |
19 | //
20 | // C++: static Ptr_BriefDescriptorExtractor cv::xfeatures2d::BriefDescriptorExtractor::create(int bytes = 32, bool use_orientation = false)
21 | //
22 |
23 | //javadoc: BriefDescriptorExtractor::create(bytes, use_orientation)
24 | public static BriefDescriptorExtractor create(int bytes, boolean use_orientation)
25 | {
26 |
27 | BriefDescriptorExtractor retVal = BriefDescriptorExtractor.__fromPtr__(create_0(bytes, use_orientation));
28 |
29 | return retVal;
30 | }
31 |
32 | //javadoc: BriefDescriptorExtractor::create(bytes)
33 | public static BriefDescriptorExtractor create(int bytes)
34 | {
35 |
36 | BriefDescriptorExtractor retVal = BriefDescriptorExtractor.__fromPtr__(create_1(bytes));
37 |
38 | return retVal;
39 | }
40 |
41 | //javadoc: BriefDescriptorExtractor::create()
42 | public static BriefDescriptorExtractor create()
43 | {
44 |
45 | BriefDescriptorExtractor retVal = BriefDescriptorExtractor.__fromPtr__(create_2());
46 |
47 | return retVal;
48 | }
49 |
50 |
51 | @Override
52 | protected void finalize() throws Throwable {
53 | delete(nativeObj);
54 | }
55 |
56 |
57 |
58 | // C++: static Ptr_BriefDescriptorExtractor cv::xfeatures2d::BriefDescriptorExtractor::create(int bytes = 32, bool use_orientation = false)
59 | private static native long create_0(int bytes, boolean use_orientation);
60 | private static native long create_1(int bytes);
61 | private static native long create_2();
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/xfeatures2d/LUCID.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.xfeatures2d;
5 |
6 | import org.opencv.features2d.Feature2D;
7 | import org.opencv.xfeatures2d.LUCID;
8 |
9 | // C++: class LUCID
10 | //javadoc: LUCID
11 |
12 | public class LUCID extends Feature2D {
13 |
14 | protected LUCID(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static LUCID __fromPtr__(long addr) { return new LUCID(addr); }
18 |
19 | //
20 | // C++: static Ptr_LUCID cv::xfeatures2d::LUCID::create(int lucid_kernel = 1, int blur_kernel = 2)
21 | //
22 |
23 | //javadoc: LUCID::create(lucid_kernel, blur_kernel)
24 | public static LUCID create(int lucid_kernel, int blur_kernel)
25 | {
26 |
27 | LUCID retVal = LUCID.__fromPtr__(create_0(lucid_kernel, blur_kernel));
28 |
29 | return retVal;
30 | }
31 |
32 | //javadoc: LUCID::create(lucid_kernel)
33 | public static LUCID create(int lucid_kernel)
34 | {
35 |
36 | LUCID retVal = LUCID.__fromPtr__(create_1(lucid_kernel));
37 |
38 | return retVal;
39 | }
40 |
41 | //javadoc: LUCID::create()
42 | public static LUCID create()
43 | {
44 |
45 | LUCID retVal = LUCID.__fromPtr__(create_2());
46 |
47 | return retVal;
48 | }
49 |
50 |
51 | @Override
52 | protected void finalize() throws Throwable {
53 | delete(nativeObj);
54 | }
55 |
56 |
57 |
58 | // C++: static Ptr_LUCID cv::xfeatures2d::LUCID::create(int lucid_kernel = 1, int blur_kernel = 2)
59 | private static native long create_0(int lucid_kernel, int blur_kernel);
60 | private static native long create_1(int lucid_kernel);
61 | private static native long create_2();
62 |
63 | // native support for java finalize()
64 | private static native void delete(long nativeObj);
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/xfeatures2d/MSDDetector.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.xfeatures2d;
5 |
6 | import org.opencv.features2d.Feature2D;
7 |
8 | // C++: class MSDDetector
9 | //javadoc: MSDDetector
10 |
11 | public class MSDDetector extends Feature2D {
12 |
13 | protected MSDDetector(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static MSDDetector __fromPtr__(long addr) { return new MSDDetector(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/DTFilter.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class DTFilter
10 | //javadoc: DTFilter
11 |
12 | public class DTFilter extends Algorithm {
13 |
14 | protected DTFilter(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static DTFilter __fromPtr__(long addr) { return new DTFilter(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::DTFilter::filter(Mat src, Mat& dst, int dDepth = -1)
21 | //
22 |
23 | //javadoc: DTFilter::filter(src, dst, dDepth)
24 | public void filter(Mat src, Mat dst, int dDepth)
25 | {
26 |
27 | filter_0(nativeObj, src.nativeObj, dst.nativeObj, dDepth);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: DTFilter::filter(src, dst)
33 | public void filter(Mat src, Mat dst)
34 | {
35 |
36 | filter_1(nativeObj, src.nativeObj, dst.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | @Override
43 | protected void finalize() throws Throwable {
44 | delete(nativeObj);
45 | }
46 |
47 |
48 |
49 | // C++: void cv::ximgproc::DTFilter::filter(Mat src, Mat& dst, int dDepth = -1)
50 | private static native void filter_0(long nativeObj, long src_nativeObj, long dst_nativeObj, int dDepth);
51 | private static native void filter_1(long nativeObj, long src_nativeObj, long dst_nativeObj);
52 |
53 | // native support for java finalize()
54 | private static native void delete(long nativeObj);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/FastGlobalSmootherFilter.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class FastGlobalSmootherFilter
10 | //javadoc: FastGlobalSmootherFilter
11 |
12 | public class FastGlobalSmootherFilter extends Algorithm {
13 |
14 | protected FastGlobalSmootherFilter(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static FastGlobalSmootherFilter __fromPtr__(long addr) { return new FastGlobalSmootherFilter(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::FastGlobalSmootherFilter::filter(Mat src, Mat& dst)
21 | //
22 |
23 | //javadoc: FastGlobalSmootherFilter::filter(src, dst)
24 | public void filter(Mat src, Mat dst)
25 | {
26 |
27 | filter_0(nativeObj, src.nativeObj, dst.nativeObj);
28 |
29 | return;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: void cv::ximgproc::FastGlobalSmootherFilter::filter(Mat src, Mat& dst)
41 | private static native void filter_0(long nativeObj, long src_nativeObj, long dst_nativeObj);
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/FastLineDetector.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class FastLineDetector
10 | //javadoc: FastLineDetector
11 |
12 | public class FastLineDetector extends Algorithm {
13 |
14 | protected FastLineDetector(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static FastLineDetector __fromPtr__(long addr) { return new FastLineDetector(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::FastLineDetector::detect(Mat _image, Mat& _lines)
21 | //
22 |
23 | //javadoc: FastLineDetector::detect(_image, _lines)
24 | public void detect(Mat _image, Mat _lines)
25 | {
26 |
27 | detect_0(nativeObj, _image.nativeObj, _lines.nativeObj);
28 |
29 | return;
30 | }
31 |
32 |
33 | //
34 | // C++: void cv::ximgproc::FastLineDetector::drawSegments(Mat& _image, Mat lines, bool draw_arrow = false)
35 | //
36 |
37 | //javadoc: FastLineDetector::drawSegments(_image, lines, draw_arrow)
38 | public void drawSegments(Mat _image, Mat lines, boolean draw_arrow)
39 | {
40 |
41 | drawSegments_0(nativeObj, _image.nativeObj, lines.nativeObj, draw_arrow);
42 |
43 | return;
44 | }
45 |
46 | //javadoc: FastLineDetector::drawSegments(_image, lines)
47 | public void drawSegments(Mat _image, Mat lines)
48 | {
49 |
50 | drawSegments_1(nativeObj, _image.nativeObj, lines.nativeObj);
51 |
52 | return;
53 | }
54 |
55 |
56 | @Override
57 | protected void finalize() throws Throwable {
58 | delete(nativeObj);
59 | }
60 |
61 |
62 |
63 | // C++: void cv::ximgproc::FastLineDetector::detect(Mat _image, Mat& _lines)
64 | private static native void detect_0(long nativeObj, long _image_nativeObj, long _lines_nativeObj);
65 |
66 | // C++: void cv::ximgproc::FastLineDetector::drawSegments(Mat& _image, Mat lines, bool draw_arrow = false)
67 | private static native void drawSegments_0(long nativeObj, long _image_nativeObj, long lines_nativeObj, boolean draw_arrow);
68 | private static native void drawSegments_1(long nativeObj, long _image_nativeObj, long lines_nativeObj);
69 |
70 | // native support for java finalize()
71 | private static native void delete(long nativeObj);
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/GuidedFilter.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class GuidedFilter
10 | //javadoc: GuidedFilter
11 |
12 | public class GuidedFilter extends Algorithm {
13 |
14 | protected GuidedFilter(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static GuidedFilter __fromPtr__(long addr) { return new GuidedFilter(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::GuidedFilter::filter(Mat src, Mat& dst, int dDepth = -1)
21 | //
22 |
23 | //javadoc: GuidedFilter::filter(src, dst, dDepth)
24 | public void filter(Mat src, Mat dst, int dDepth)
25 | {
26 |
27 | filter_0(nativeObj, src.nativeObj, dst.nativeObj, dDepth);
28 |
29 | return;
30 | }
31 |
32 | //javadoc: GuidedFilter::filter(src, dst)
33 | public void filter(Mat src, Mat dst)
34 | {
35 |
36 | filter_1(nativeObj, src.nativeObj, dst.nativeObj);
37 |
38 | return;
39 | }
40 |
41 |
42 | @Override
43 | protected void finalize() throws Throwable {
44 | delete(nativeObj);
45 | }
46 |
47 |
48 |
49 | // C++: void cv::ximgproc::GuidedFilter::filter(Mat src, Mat& dst, int dDepth = -1)
50 | private static native void filter_0(long nativeObj, long src_nativeObj, long dst_nativeObj, int dDepth);
51 | private static native void filter_1(long nativeObj, long src_nativeObj, long dst_nativeObj);
52 |
53 | // native support for java finalize()
54 | private static native void delete(long nativeObj);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/RFFeatureGetter.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class RFFeatureGetter
10 | //javadoc: RFFeatureGetter
11 |
12 | public class RFFeatureGetter extends Algorithm {
13 |
14 | protected RFFeatureGetter(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static RFFeatureGetter __fromPtr__(long addr) { return new RFFeatureGetter(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::RFFeatureGetter::getFeatures(Mat src, Mat features, int gnrmRad, int gsmthRad, int shrink, int outNum, int gradNum)
21 | //
22 |
23 | //javadoc: RFFeatureGetter::getFeatures(src, features, gnrmRad, gsmthRad, shrink, outNum, gradNum)
24 | public void getFeatures(Mat src, Mat features, int gnrmRad, int gsmthRad, int shrink, int outNum, int gradNum)
25 | {
26 |
27 | getFeatures_0(nativeObj, src.nativeObj, features.nativeObj, gnrmRad, gsmthRad, shrink, outNum, gradNum);
28 |
29 | return;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: void cv::ximgproc::RFFeatureGetter::getFeatures(Mat src, Mat features, int gnrmRad, int gsmthRad, int shrink, int outNum, int gradNum)
41 | private static native void getFeatures_0(long nativeObj, long src_nativeObj, long features_nativeObj, int gnrmRad, int gsmthRad, int shrink, int outNum, int gradNum);
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyColor.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.ximgproc.SelectiveSearchSegmentationStrategy;
7 |
8 | // C++: class SelectiveSearchSegmentationStrategyColor
9 | //javadoc: SelectiveSearchSegmentationStrategyColor
10 |
11 | public class SelectiveSearchSegmentationStrategyColor extends SelectiveSearchSegmentationStrategy {
12 |
13 | protected SelectiveSearchSegmentationStrategyColor(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static SelectiveSearchSegmentationStrategyColor __fromPtr__(long addr) { return new SelectiveSearchSegmentationStrategyColor(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyFill.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.ximgproc.SelectiveSearchSegmentationStrategy;
7 |
8 | // C++: class SelectiveSearchSegmentationStrategyFill
9 | //javadoc: SelectiveSearchSegmentationStrategyFill
10 |
11 | public class SelectiveSearchSegmentationStrategyFill extends SelectiveSearchSegmentationStrategy {
12 |
13 | protected SelectiveSearchSegmentationStrategyFill(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static SelectiveSearchSegmentationStrategyFill __fromPtr__(long addr) { return new SelectiveSearchSegmentationStrategyFill(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyMultiple.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.ximgproc.SelectiveSearchSegmentationStrategy;
7 |
8 | // C++: class SelectiveSearchSegmentationStrategyMultiple
9 | //javadoc: SelectiveSearchSegmentationStrategyMultiple
10 |
11 | public class SelectiveSearchSegmentationStrategyMultiple extends SelectiveSearchSegmentationStrategy {
12 |
13 | protected SelectiveSearchSegmentationStrategyMultiple(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static SelectiveSearchSegmentationStrategyMultiple __fromPtr__(long addr) { return new SelectiveSearchSegmentationStrategyMultiple(addr); }
17 |
18 | //
19 | // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::addStrategy(Ptr_SelectiveSearchSegmentationStrategy g, float weight)
20 | //
21 |
22 | //javadoc: SelectiveSearchSegmentationStrategyMultiple::addStrategy(g, weight)
23 | public void addStrategy(SelectiveSearchSegmentationStrategy g, float weight)
24 | {
25 |
26 | addStrategy_0(nativeObj, g.getNativeObjAddr(), weight);
27 |
28 | return;
29 | }
30 |
31 |
32 | //
33 | // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::clearStrategies()
34 | //
35 |
36 | //javadoc: SelectiveSearchSegmentationStrategyMultiple::clearStrategies()
37 | public void clearStrategies()
38 | {
39 |
40 | clearStrategies_0(nativeObj);
41 |
42 | return;
43 | }
44 |
45 |
46 | @Override
47 | protected void finalize() throws Throwable {
48 | delete(nativeObj);
49 | }
50 |
51 |
52 |
53 | // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::addStrategy(Ptr_SelectiveSearchSegmentationStrategy g, float weight)
54 | private static native void addStrategy_0(long nativeObj, long g_nativeObj, float weight);
55 |
56 | // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::clearStrategies()
57 | private static native void clearStrategies_0(long nativeObj);
58 |
59 | // native support for java finalize()
60 | private static native void delete(long nativeObj);
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategySize.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.ximgproc.SelectiveSearchSegmentationStrategy;
7 |
8 | // C++: class SelectiveSearchSegmentationStrategySize
9 | //javadoc: SelectiveSearchSegmentationStrategySize
10 |
11 | public class SelectiveSearchSegmentationStrategySize extends SelectiveSearchSegmentationStrategy {
12 |
13 | protected SelectiveSearchSegmentationStrategySize(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static SelectiveSearchSegmentationStrategySize __fromPtr__(long addr) { return new SelectiveSearchSegmentationStrategySize(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyTexture.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.ximgproc.SelectiveSearchSegmentationStrategy;
7 |
8 | // C++: class SelectiveSearchSegmentationStrategyTexture
9 | //javadoc: SelectiveSearchSegmentationStrategyTexture
10 |
11 | public class SelectiveSearchSegmentationStrategyTexture extends SelectiveSearchSegmentationStrategy {
12 |
13 | protected SelectiveSearchSegmentationStrategyTexture(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static SelectiveSearchSegmentationStrategyTexture __fromPtr__(long addr) { return new SelectiveSearchSegmentationStrategyTexture(addr); }
17 |
18 | @Override
19 | protected void finalize() throws Throwable {
20 | delete(nativeObj);
21 | }
22 |
23 |
24 |
25 | // native support for java finalize()
26 | private static native void delete(long nativeObj);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/ximgproc/SparseMatchInterpolator.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.ximgproc;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class SparseMatchInterpolator
10 | //javadoc: SparseMatchInterpolator
11 |
12 | public class SparseMatchInterpolator extends Algorithm {
13 |
14 | protected SparseMatchInterpolator(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static SparseMatchInterpolator __fromPtr__(long addr) { return new SparseMatchInterpolator(addr); }
18 |
19 | //
20 | // C++: void cv::ximgproc::SparseMatchInterpolator::interpolate(Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat& dense_flow)
21 | //
22 |
23 | //javadoc: SparseMatchInterpolator::interpolate(from_image, from_points, to_image, to_points, dense_flow)
24 | public void interpolate(Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat dense_flow)
25 | {
26 |
27 | interpolate_0(nativeObj, from_image.nativeObj, from_points.nativeObj, to_image.nativeObj, to_points.nativeObj, dense_flow.nativeObj);
28 |
29 | return;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: void cv::ximgproc::SparseMatchInterpolator::interpolate(Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat& dense_flow)
41 | private static native void interpolate_0(long nativeObj, long from_image_nativeObj, long from_points_nativeObj, long to_image_nativeObj, long to_points_nativeObj, long dense_flow_nativeObj);
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/xphoto/GrayworldWB.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.xphoto;
5 |
6 | import org.opencv.xphoto.WhiteBalancer;
7 |
8 | // C++: class GrayworldWB
9 | //javadoc: GrayworldWB
10 |
11 | public class GrayworldWB extends WhiteBalancer {
12 |
13 | protected GrayworldWB(long addr) { super(addr); }
14 |
15 | // internal usage only
16 | public static GrayworldWB __fromPtr__(long addr) { return new GrayworldWB(addr); }
17 |
18 | //
19 | // C++: float cv::xphoto::GrayworldWB::getSaturationThreshold()
20 | //
21 |
22 | //javadoc: GrayworldWB::getSaturationThreshold()
23 | public float getSaturationThreshold()
24 | {
25 |
26 | float retVal = getSaturationThreshold_0(nativeObj);
27 |
28 | return retVal;
29 | }
30 |
31 |
32 | //
33 | // C++: void cv::xphoto::GrayworldWB::setSaturationThreshold(float val)
34 | //
35 |
36 | //javadoc: GrayworldWB::setSaturationThreshold(val)
37 | public void setSaturationThreshold(float val)
38 | {
39 |
40 | setSaturationThreshold_0(nativeObj, val);
41 |
42 | return;
43 | }
44 |
45 |
46 | @Override
47 | protected void finalize() throws Throwable {
48 | delete(nativeObj);
49 | }
50 |
51 |
52 |
53 | // C++: float cv::xphoto::GrayworldWB::getSaturationThreshold()
54 | private static native float getSaturationThreshold_0(long nativeObj);
55 |
56 | // C++: void cv::xphoto::GrayworldWB::setSaturationThreshold(float val)
57 | private static native void setSaturationThreshold_0(long nativeObj, float val);
58 |
59 | // native support for java finalize()
60 | private static native void delete(long nativeObj);
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/java/org/opencv/xphoto/WhiteBalancer.java:
--------------------------------------------------------------------------------
1 | //
2 | // This file is auto-generated. Please don't modify it!
3 | //
4 | package org.opencv.xphoto;
5 |
6 | import org.opencv.core.Algorithm;
7 | import org.opencv.core.Mat;
8 |
9 | // C++: class WhiteBalancer
10 | //javadoc: WhiteBalancer
11 |
12 | public class WhiteBalancer extends Algorithm {
13 |
14 | protected WhiteBalancer(long addr) { super(addr); }
15 |
16 | // internal usage only
17 | public static WhiteBalancer __fromPtr__(long addr) { return new WhiteBalancer(addr); }
18 |
19 | //
20 | // C++: void cv::xphoto::WhiteBalancer::balanceWhite(Mat src, Mat& dst)
21 | //
22 |
23 | //javadoc: WhiteBalancer::balanceWhite(src, dst)
24 | public void balanceWhite(Mat src, Mat dst)
25 | {
26 |
27 | balanceWhite_0(nativeObj, src.nativeObj, dst.nativeObj);
28 |
29 | return;
30 | }
31 |
32 |
33 | @Override
34 | protected void finalize() throws Throwable {
35 | delete(nativeObj);
36 | }
37 |
38 |
39 |
40 | // C++: void cv::xphoto::WhiteBalancer::balanceWhite(Mat src, Mat& dst)
41 | private static native void balanceWhite_0(long nativeObj, long src_nativeObj, long dst_nativeObj);
42 |
43 | // native support for java finalize()
44 | private static native void delete(long nativeObj);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/openCVLibrary342dev/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | include ':openCVLibrary342dev'
3 | include ':cameraModule'
4 |
--------------------------------------------------------------------------------