@icecreamcake/autojs6-dts
Version:
TypeScript Declarations for AutoJs6
829 lines (812 loc) • 523 kB
TypeScript
declare module org {
export module opencv {
export class BuildConfig extends java.lang.Object {
public static class: java.lang.Class<org.opencv.BuildConfig>;
public static DEBUG: boolean;
public static LIBRARY_PACKAGE_NAME: string;
public static BUILD_TYPE: string;
public constructor();
}
}
}
declare module org {
export module opencv {
export module android {
export class AsyncServiceHelper extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.AsyncServiceHelper>;
public static TAG: string;
public static MINIMUM_ENGINE_VERSION: number;
public mEngineService: org.opencv.engine.OpenCVEngineInterface;
public mUserAppCallback: org.opencv.android.LoaderCallbackInterface;
public mOpenCVersion: string;
public mAppContext: android.content.Context;
public static mServiceInstallationProgress: boolean;
public static mLibraryInstallationProgress: boolean;
public static OPEN_CV_SERVICE_URL: string;
public mServiceConnection: android.content.ServiceConnection;
public static initOpenCV(Version: string, AppContext: android.content.Context, Callback: org.opencv.android.LoaderCallbackInterface): boolean;
public static InstallService(AppContext: android.content.Context, Callback: org.opencv.android.LoaderCallbackInterface): void;
public constructor(Version: string, AppContext: android.content.Context, Callback: org.opencv.android.LoaderCallbackInterface);
public static InstallServiceQuiet(context: android.content.Context): boolean;
}
}
}
}
declare module org {
export module opencv {
export module android {
export abstract class BaseLoaderCallback extends java.lang.Object implements org.opencv.android.LoaderCallbackInterface {
public static class: java.lang.Class<org.opencv.android.BaseLoaderCallback>;
public mAppContext: android.content.Context;
public onPackageInstall(operation: number, callback: org.opencv.android.InstallCallbackInterface): void;
public constructor(AppContext: android.content.Context);
public onManagerConnected(status: number): void;
public onPackageInstall(param0: number, param1: org.opencv.android.InstallCallbackInterface): void;
public onManagerConnected(param0: number): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class Camera2Renderer extends org.opencv.android.CameraGLRendererBase {
public static class: java.lang.Class<org.opencv.android.Camera2Renderer>;
public LOGTAG: string;
public onSurfaceChanged(gl: javax.microedition.khronos.opengles.GL10, surfaceWidth: number, surfaceHeight: number): void;
public setCameraPreviewSize(param0: number, param1: number): void;
public onFrameAvailable(surfaceTexture: android.graphics.SurfaceTexture): void;
public onSurfaceChanged(param0: javax.microedition.khronos.opengles.GL10, param1: number, param2: number): void;
public openCamera(param0: number): void;
public onDrawFrame(param0: javax.microedition.khronos.opengles.GL10): void;
public closeCamera(): void;
public onFrameAvailable(param0: android.graphics.SurfaceTexture): void;
public openCamera(id: number): void;
public setCameraPreviewSize(width: number, height: number): void;
public doStart(): void;
public onSurfaceCreated(param0: javax.microedition.khronos.opengles.GL10, param1: javax.microedition.khronos.egl.EGLConfig): void;
public onSurfaceCreated(gl: javax.microedition.khronos.opengles.GL10, config: javax.microedition.khronos.egl.EGLConfig): void;
public onDrawFrame(gl: javax.microedition.khronos.opengles.GL10): void;
public doStop(): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class CameraActivity extends android.app.Activity {
public static class: java.lang.Class<org.opencv.android.CameraActivity>;
public getCameraViewList(): java.util.List<any>;
public onActionModeStarted(mode: android.view.ActionMode): void;
public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode;
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public onPanelClosed(featureId: number, menu: android.view.Menu): void;
public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean;
public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View;
public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void;
public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean;
public constructor();
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean;
public onSearchRequested(param0: any): boolean;
public onWindowFocusChanged(hasFocus: boolean): void;
public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View;
public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void;
public onPanelClosed(param0: number, param1: android.view.Menu): void;
public onTrimMemory(param0: number): void;
public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean;
public onMenuOpened(param0: number, param1: android.view.Menu): boolean;
public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View;
public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean;
public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void;
public onActionModeFinished(mode: android.view.ActionMode): void;
public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean;
public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void;
public onCameraPermissionGranted(): void;
public onRequestPermissionsResult(requestCode: number, permissions: string[], grantResults: number[]): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public onContentChanged(): void;
public onMenuOpened(featureId: number, menu: android.view.Menu): boolean;
public onStart(): void;
public dispatchKeyEvent(param0: android.view.KeyEvent): boolean;
public onDetachedFromWindow(): void;
public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean;
public dispatchTouchEvent(param0: android.view.MotionEvent): boolean;
public onSearchRequested(): boolean;
public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean;
public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean;
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public dispatchTouchEvent(ev: android.view.MotionEvent): boolean;
public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme);
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean;
public onTrimMemory(level: number): void;
public onCreatePanelView(featureId: number): android.view.View;
public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean;
public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public dispatchKeyEvent(event: android.view.KeyEvent): boolean;
public onCreatePanelView(param0: number): android.view.View;
public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void;
public onActionModeStarted(param0: android.view.ActionMode): void;
public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode;
public onActionModeFinished(param0: android.view.ActionMode): void;
public constructor(base: android.content.Context);
public constructor(base: android.content.Context, themeResId: number);
public onSearchRequested(searchEvent: any): boolean;
public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean;
public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean;
public onWindowFocusChanged(param0: boolean): void;
public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean;
public onAttachedToWindow(): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export abstract class CameraBridgeViewBase extends android.view.SurfaceView implements android.view.SurfaceHolder.Callback {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase>;
public static MAX_UNSPECIFIED: number;
public mFrameWidth: number;
public mFrameHeight: number;
public mMaxHeight: number;
public mMaxWidth: number;
public mScale: number;
public mPreviewFormat: number;
public mCameraIndex: number;
public mEnabled: boolean;
public mCameraPermissionGranted: boolean;
public mFpsMeter: org.opencv.android.FpsMeter;
public static CAMERA_ID_ANY: number;
public static CAMERA_ID_BACK: number;
public static CAMERA_ID_FRONT: number;
public static RGBA: number;
public static GRAY: number;
public enableView(): void;
public setCvCameraViewListener(listener: org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2): void;
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public surfaceChanged(arg0: android.view.SurfaceHolder, arg1: number, arg2: number, arg3: number): void;
public setCvCameraViewListener(listener: org.opencv.android.CameraBridgeViewBase.CvCameraViewListener): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet);
public surfaceChanged(param0: android.view.SurfaceHolder, param1: number, param2: number, param3: number): void;
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number);
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
public calculateCameraFrameSize(supportedSizes: java.util.List<any>, accessor: org.opencv.android.CameraBridgeViewBase.ListItemAccessor, surfaceWidth: number, surfaceHeight: number): org.opencv.core.Size;
public disableView(): void;
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public surfaceDestroyed(holder: android.view.SurfaceHolder): void;
public surfaceDestroyed(param0: android.view.SurfaceHolder): void;
public surfaceCreated(holder: android.view.SurfaceHolder): void;
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public sendAccessibilityEvent(param0: number): void;
public sendAccessibilityEvent(eventType: number): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void;
public disconnectCamera(): void;
public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public AllocateCache(): void;
public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
public surfaceCreated(param0: android.view.SurfaceHolder): void;
public deliverAndDrawFrame(frame: org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame): void;
public connectCamera(param0: number, param1: number): boolean;
public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
public SetCaptureFormat(format: number): void;
public constructor(context: android.content.Context);
public setCameraPermissionGranted(): void;
public enableFpsMeter(): void;
public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void;
public disableFpsMeter(): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public unscheduleDrawable(who: android.graphics.drawable.Drawable): void;
public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void;
public setCameraIndex(cameraIndex: number): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
public constructor(context: android.content.Context, cameraId: number);
public setMaxFrameSize(maxWidth: number, maxHeight: number): void;
}
export module CameraBridgeViewBase {
export class CvCameraViewFrame extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame>;
/**
* Constructs a new instance of the org.opencv.android.CameraBridgeViewBase$CvCameraViewFrame interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
rgba(): org.opencv.core.Mat;
gray(): org.opencv.core.Mat;
});
public constructor();
public rgba(): org.opencv.core.Mat;
public gray(): org.opencv.core.Mat;
}
export class CvCameraViewListener extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase.CvCameraViewListener>;
/**
* Constructs a new instance of the org.opencv.android.CameraBridgeViewBase$CvCameraViewListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onCameraViewStarted(param0: number, param1: number): void;
onCameraViewStopped(): void;
onCameraFrame(param0: org.opencv.core.Mat): org.opencv.core.Mat;
});
public constructor();
public onCameraViewStopped(): void;
public onCameraViewStarted(param0: number, param1: number): void;
public onCameraFrame(param0: org.opencv.core.Mat): org.opencv.core.Mat;
}
export class CvCameraViewListener2 extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2>;
/**
* Constructs a new instance of the org.opencv.android.CameraBridgeViewBase$CvCameraViewListener2 interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onCameraViewStarted(param0: number, param1: number): void;
onCameraViewStopped(): void;
onCameraFrame(param0: org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame): org.opencv.core.Mat;
});
public constructor();
public onCameraFrame(param0: org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame): org.opencv.core.Mat;
public onCameraViewStopped(): void;
public onCameraViewStarted(param0: number, param1: number): void;
}
export class CvCameraViewListenerAdapter extends java.lang.Object implements org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2 {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase.CvCameraViewListenerAdapter>;
public onCameraFrame(param0: org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame): org.opencv.core.Mat;
public onCameraViewStopped(): void;
public constructor(this$0: org.opencv.android.CameraBridgeViewBase, oldStypeListener: org.opencv.android.CameraBridgeViewBase.CvCameraViewListener);
public onCameraViewStarted(param0: number, param1: number): void;
public onCameraFrame(inputFrame: org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame): org.opencv.core.Mat;
public onCameraViewStarted(width: number, height: number): void;
public setFrameFormat(format: number): void;
}
export class ListItemAccessor extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.CameraBridgeViewBase.ListItemAccessor>;
/**
* Constructs a new instance of the org.opencv.android.CameraBridgeViewBase$ListItemAccessor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
getWidth(param0: any): number;
getHeight(param0: any): number;
});
public constructor();
public getWidth(param0: any): number;
public getHeight(param0: any): number;
}
}
}
}
}
declare module org {
export module opencv {
export module android {
export abstract class CameraGLRendererBase extends java.lang.Object implements android.opengl.GLSurfaceView.Renderer, android.graphics.SurfaceTexture.OnFrameAvailableListener {
public static class: java.lang.Class<org.opencv.android.CameraGLRendererBase>;
public LOGTAG: string;
public mCameraWidth: number;
public mCameraHeight: number;
public mFBOWidth: number;
public mFBOHeight: number;
public mMaxCameraWidth: number;
public mMaxCameraHeight: number;
public mCameraIndex: number;
public mSTexture: android.graphics.SurfaceTexture;
public mHaveSurface: boolean;
public mHaveFBO: boolean;
public mUpdateST: boolean;
public mEnabled: boolean;
public mIsStarted: boolean;
public mView: org.opencv.android.CameraGLSurfaceView;
public onSurfaceChanged(gl: javax.microedition.khronos.opengles.GL10, surfaceWidth: number, surfaceHeight: number): void;
public enableView(): void;
public onResume(): void;
public setCameraPreviewSize(param0: number, param1: number): void;
public onFrameAvailable(surfaceTexture: android.graphics.SurfaceTexture): void;
public onPause(): void;
public onSurfaceChanged(param0: javax.microedition.khronos.opengles.GL10, param1: number, param2: number): void;
public openCamera(param0: number): void;
public disableView(): void;
public onDrawFrame(param0: javax.microedition.khronos.opengles.GL10): void;
public closeCamera(): void;
public setPreviewSize(width: number, height: number): void;
public onFrameAvailable(param0: android.graphics.SurfaceTexture): void;
public doStart(): void;
public setMaxCameraPreviewSize(maxWidth: number, maxHeight: number): void;
public onSurfaceCreated(param0: javax.microedition.khronos.opengles.GL10, param1: javax.microedition.khronos.egl.EGLConfig): void;
public constructor(view: org.opencv.android.CameraGLSurfaceView);
public onSurfaceCreated(gl: javax.microedition.khronos.opengles.GL10, config: javax.microedition.khronos.egl.EGLConfig): void;
public updateState(): void;
public setCameraIndex(cameraIndex: number): void;
public onDrawFrame(gl: javax.microedition.khronos.opengles.GL10): void;
public doStop(): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class CameraGLSurfaceView extends android.opengl.GLSurfaceView {
public static class: java.lang.Class<org.opencv.android.CameraGLSurfaceView>;
public enableView(): void;
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public surfaceRedrawNeeded(holder: android.view.SurfaceHolder): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet);
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number);
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
public onPause(): void;
public disableView(): void;
public setCameraTextureListener(texListener: org.opencv.android.CameraGLSurfaceView.CameraTextureListener): void;
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public surfaceDestroyed(holder: android.view.SurfaceHolder): void;
public surfaceCreated(holder: android.view.SurfaceHolder): void;
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public sendAccessibilityEvent(param0: number): void;
public sendAccessibilityEvent(eventType: number): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void;
public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
public surfaceChanged(holder: android.view.SurfaceHolder, format: number, w: number, h: number): void;
public onResume(): void;
public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
public constructor(context: android.content.Context);
public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public surfaceRedrawNeeded(param0: android.view.SurfaceHolder): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable): void;
public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void;
public setMaxCameraPreviewSize(maxWidth: number, maxHeight: number): void;
public setCameraIndex(cameraIndex: number): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
public getCameraTextureListener(): org.opencv.android.CameraGLSurfaceView.CameraTextureListener;
}
export module CameraGLSurfaceView {
export class CameraTextureListener extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.CameraGLSurfaceView.CameraTextureListener>;
/**
* Constructs a new instance of the org.opencv.android.CameraGLSurfaceView$CameraTextureListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onCameraViewStarted(param0: number, param1: number): void;
onCameraViewStopped(): void;
onCameraTexture(param0: number, param1: number, param2: number, param3: number): boolean;
});
public constructor();
public onCameraViewStopped(): void;
public onCameraViewStarted(param0: number, param1: number): void;
public onCameraTexture(param0: number, param1: number, param2: number, param3: number): boolean;
}
}
}
}
}
declare module org {
export module opencv {
export module android {
export class CameraRenderer extends org.opencv.android.CameraGLRendererBase {
public static class: java.lang.Class<org.opencv.android.CameraRenderer>;
public static LOGTAG: string;
public onSurfaceChanged(gl: javax.microedition.khronos.opengles.GL10, surfaceWidth: number, surfaceHeight: number): void;
public setCameraPreviewSize(param0: number, param1: number): void;
public onFrameAvailable(surfaceTexture: android.graphics.SurfaceTexture): void;
public onSurfaceChanged(param0: javax.microedition.khronos.opengles.GL10, param1: number, param2: number): void;
public openCamera(param0: number): void;
public onDrawFrame(param0: javax.microedition.khronos.opengles.GL10): void;
public closeCamera(): void;
public onFrameAvailable(param0: android.graphics.SurfaceTexture): void;
public openCamera(id: number): void;
public setCameraPreviewSize(width: number, height: number): void;
public onSurfaceCreated(param0: javax.microedition.khronos.opengles.GL10, param1: javax.microedition.khronos.egl.EGLConfig): void;
public onSurfaceCreated(gl: javax.microedition.khronos.opengles.GL10, config: javax.microedition.khronos.egl.EGLConfig): void;
public onDrawFrame(gl: javax.microedition.khronos.opengles.GL10): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class FpsMeter extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.FpsMeter>;
public measure(): void;
public setResolution(width: number, height: number): void;
public draw(canvas: android.graphics.Canvas, offsetx: number, offsety: number): void;
public constructor();
public init(): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class InstallCallbackInterface extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.InstallCallbackInterface>;
/**
* Constructs a new instance of the org.opencv.android.InstallCallbackInterface interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
getPackageName(): string;
install(): void;
cancel(): void;
wait_install(): void;
});
public constructor();
public static NEW_INSTALLATION: number;
public static INSTALLATION_PROGRESS: number;
public wait_install(): void;
public install(): void;
public getPackageName(): string;
public cancel(): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class JavaCamera2View extends org.opencv.android.CameraBridgeViewBase {
public static class: java.lang.Class<org.opencv.android.JavaCamera2View>;
public mImageReader: android.media.ImageReader;
public mPreviewFormat: number;
public mCameraDevice: android.hardware.camera2.CameraDevice;
public mCaptureSession: android.hardware.camera2.CameraCaptureSession;
public mPreviewRequestBuilder: android.hardware.camera2.CaptureRequest.Builder;
public mCameraID: string;
public mPreviewSize: any;
public mBackgroundHandler: android.os.Handler;
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public surfaceChanged(arg0: android.view.SurfaceHolder, arg1: number, arg2: number, arg3: number): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet);
public surfaceChanged(param0: android.view.SurfaceHolder, param1: number, param2: number, param3: number): void;
public initializeCamera(): boolean;
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number);
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public surfaceDestroyed(holder: android.view.SurfaceHolder): void;
public surfaceDestroyed(param0: android.view.SurfaceHolder): void;
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public surfaceCreated(holder: android.view.SurfaceHolder): void;
public sendAccessibilityEvent(param0: number): void;
public sendAccessibilityEvent(eventType: number): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void;
public disconnectCamera(): void;
public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
public surfaceCreated(param0: android.view.SurfaceHolder): void;
public connectCamera(param0: number, param1: number): boolean;
public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
public constructor(context: android.content.Context);
public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public unscheduleDrawable(who: android.graphics.drawable.Drawable): void;
public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void;
public connectCamera(width: number, height: number): boolean;
public constructor(context: android.content.Context, cameraId: number);
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
}
export module JavaCamera2View {
export class JavaCamera2Frame extends java.lang.Object implements org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame {
public static class: java.lang.Class<org.opencv.android.JavaCamera2View.JavaCamera2Frame>;
public constructor(param0: org.opencv.android.JavaCamera2View, image: android.media.Image);
public rgba(): org.opencv.core.Mat;
public gray(): org.opencv.core.Mat;
public release(): void;
}
export class JavaCameraSizeAccessor extends java.lang.Object implements org.opencv.android.CameraBridgeViewBase.ListItemAccessor {
public static class: java.lang.Class<org.opencv.android.JavaCamera2View.JavaCameraSizeAccessor>;
public constructor();
public getWidth(obj: any): number;
public getHeight(obj: any): number;
public getWidth(param0: any): number;
public getHeight(param0: any): number;
}
}
}
}
}
declare module org {
export module opencv {
export module android {
export class JavaCameraView extends org.opencv.android.CameraBridgeViewBase implements android.hardware.Camera.PreviewCallback {
public static class: java.lang.Class<org.opencv.android.JavaCameraView>;
public mCamera: android.hardware.Camera;
public mCameraFrame: org.opencv.android.JavaCameraView.JavaCameraFrame[];
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public surfaceChanged(arg0: android.view.SurfaceHolder, arg1: number, arg2: number, arg3: number): void;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet);
public surfaceChanged(param0: android.view.SurfaceHolder, param1: number, param2: number, param3: number): void;
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number);
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public surfaceDestroyed(holder: android.view.SurfaceHolder): void;
public surfaceDestroyed(param0: android.view.SurfaceHolder): void;
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public surfaceCreated(holder: android.view.SurfaceHolder): void;
public sendAccessibilityEvent(param0: number): void;
public sendAccessibilityEvent(eventType: number): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void;
public disconnectCamera(): void;
public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public onPreviewFrame(param0: number[], param1: android.hardware.Camera): void;
public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
public surfaceCreated(param0: android.view.SurfaceHolder): void;
public connectCamera(param0: number, param1: number): boolean;
public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
public initializeCamera(width: number, height: number): boolean;
public constructor(context: android.content.Context);
public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public releaseCamera(): void;
public onPreviewFrame(frame: number[], arg1: android.hardware.Camera): void;
public unscheduleDrawable(who: android.graphics.drawable.Drawable): void;
public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void;
public connectCamera(width: number, height: number): boolean;
public constructor(context: android.content.Context, cameraId: number);
public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number);
}
export module JavaCameraView {
export class CameraWorker extends java.lang.Object implements java.lang.Runnable {
public static class: java.lang.Class<org.opencv.android.JavaCameraView.CameraWorker>;
public run(): void;
}
export class JavaCameraFrame extends java.lang.Object implements org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame {
public static class: java.lang.Class<org.opencv.android.JavaCameraView.JavaCameraFrame>;
public rgba(): org.opencv.core.Mat;
public gray(): org.opencv.core.Mat;
public release(): void;
public constructor(param0: org.opencv.android.JavaCameraView, Yuv420sp: org.opencv.core.Mat, width: number, height: number);
}
export class JavaCameraSizeAccessor extends java.lang.Object implements org.opencv.android.CameraBridgeViewBase.ListItemAccessor {
public static class: java.lang.Class<org.opencv.android.JavaCameraView.JavaCameraSizeAccessor>;
public constructor();
public getWidth(obj: any): number;
public getHeight(obj: any): number;
public getWidth(param0: any): number;
public getHeight(param0: any): number;
}
}
}
}
}
declare module org {
export module opencv {
export module android {
export class LoaderCallbackInterface extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.LoaderCallbackInterface>;
/**
* Constructs a new instance of the org.opencv.android.LoaderCallbackInterface interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onManagerConnected(param0: number): void;
onPackageInstall(param0: number, param1: org.opencv.android.InstallCallbackInterface): void;
});
public constructor();
public static MARKET_ERROR: number;
public static INCOMPATIBLE_MANAGER_VERSION: number;
public static INIT_FAILED: number;
public static SUCCESS: number;
public static INSTALL_CANCELED: number;
public onPackageInstall(param0: number, param1: org.opencv.android.InstallCallbackInterface): void;
public onManagerConnected(param0: number): void;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class OpenCVLoader extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.OpenCVLoader>;
public static OPENCV_VERSION_2_4_2: string;
public static OPENCV_VERSION_2_4_3: string;
public static OPENCV_VERSION_2_4_4: string;
public static OPENCV_VERSION_2_4_5: string;
public static OPENCV_VERSION_2_4_6: string;
public static OPENCV_VERSION_2_4_7: string;
public static OPENCV_VERSION_2_4_8: string;
public static OPENCV_VERSION_2_4_9: string;
public static OPENCV_VERSION_2_4_10: string;
public static OPENCV_VERSION_2_4_11: string;
public static OPENCV_VERSION_2_4_12: string;
public static OPENCV_VERSION_2_4_13: string;
public static OPENCV_VERSION_3_0_0: string;
public static OPENCV_VERSION_3_1_0: string;
public static OPENCV_VERSION_3_2_0: string;
public static OPENCV_VERSION_3_3_0: string;
public static OPENCV_VERSION_3_4_0: string;
public static OPENCV_VERSION: string;
public static initDebug(InitCuda: boolean): boolean;
public static initDebug(): boolean;
public static initAsync(Version: string, AppContext: android.content.Context, Callback: org.opencv.android.LoaderCallbackInterface): boolean;
public constructor();
}
}
}
}
declare module org {
export module opencv {
export module android {
export class StaticHelper extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.StaticHelper>;
public static initOpenCV(InitCuda: boolean): boolean;
}
}
}
}
declare module org {
export module opencv {
export module android {
export class Utils extends java.lang.Object {
public static class: java.lang.Class<org.opencv.android.Utils>;
public static loadResource(context: android.content.Context, resourceId: number, flags: number): org.opencv.core.Mat;
public static bitmapToMat(bmp: android.graphics.Bitmap, mat: org.opencv.core.Mat): void;
public static matToBitmap(mat: org.opencv.core.Mat, bmp: android.graphics.Bitmap, premultiplyAlpha: boolean): void;
public static matToBitmap(mat: org.opencv.core.Mat, bmp: android.graphics.Bitmap): void;
public static exportResource(context: android.content.Context, resourceId: number): string;
public static exportResource(context: android.content.Context, resourceId: number, dirname: string): string;
public static bitmapToMat(bmp: android.graphics.Bitmap, mat: org.opencv.core.Mat, unPremultiplyAlpha: boolean): void;
public static loadResource(context: android.content.Context, resourceId: number): org.opencv.core.Mat;
public constructor();
}
}
}
}
declare module org {
export module opencv {
export module calib3d {
export class Calib3d extends java.lang.Object {
public static class: java.lang.Class<org.opencv.calib3d.Calib3d>;
public static CV_ITERATIVE: number;
public static CV_EPNP: number;
public static CV_P3P: number;
public static CV_DLS: number;
public static CvLevMarq_DONE: number;
public static CvLevMarq_STARTED: number;
public static CvLevMarq_CALC_J: number;
public static CvLevMarq_CHECK_ERR: number;
public static LMEDS: number;
public static RANSAC: number;
public static RHO: number;
public static USAC_DEFAULT: number;
public static USAC_PARALLEL: number;
public static USAC_FM_8PTS: number;
public static USAC_FAST: number;
public static USAC_ACCURATE: number;
public static USAC_PROSAC: number;
public static USAC_MAGSAC: number;
public static CALIB_CB_ADAPTIVE_THRESH: number;
public static CALIB_CB_NORMALIZE_IMAGE: number;
public static CALIB_CB_FILTER_QUADS: number;
public static CALIB_CB_FAST_CHECK: number;
public static CALIB_CB_EXHAUSTIVE: number;
public static CALIB_CB_ACCURACY: number;
public static CALIB_CB_LARGER: number;
public static CALIB_CB_MARKER: number;
public static CALIB_CB_SYMMETRIC_GRID: number;
public static CALIB_CB_ASYMMETRIC_GRID: number;
public static CALIB_CB_CLUSTERING: number;
public static CALIB_NINTRINSIC: number;
public static CALIB_USE_INTRINSIC_GUESS: number;
public static CALIB_FIX_ASPECT_RATIO: number;
public static CALIB_FIX_PRINCIPAL_POINT: number;
public static CALIB_ZERO_TANGENT_DIST: number;
public static CALIB_FIX_FOCAL_LENGTH: number;
public static CALIB_FIX_K1: number;
public static CALIB_FIX_K2: number;
public static CALIB_FIX_K3: number;
public static CALIB_FIX_K4: number;
public static CALIB_FIX_K5: number;
public static CALIB_FIX_K6: number;
public static CALIB_RATIONAL_MODEL: number;
public static CALIB_THIN_PRISM_MODEL: number;
public static CALIB_FIX_S1_S2_S3_S4: number;
public static CALIB_TILTED_MODEL: number;
public static CALIB_FIX_TAUX_TAUY: number;
public static CALIB_USE_QR: number;
public static CALIB_FIX_TANGENT_DIST: number;
public static CALIB_FIX_INTRINSIC: number;
public static CALIB_SAME_FOCAL_LENGTH: number;
public static CALIB_ZERO_DISPARITY: number;
public static CALIB_USE_LU: number;
public static CALIB_USE_EXTRINSIC_GUESS: number;
public static FM_7POINT: number;
public static FM_8POINT: number;
public static FM_LMEDS: number;
public static FM_RANSAC: number;
public static fisheye_CALIB_USE_INTRINSIC_GUESS: number;
public static fisheye_CALIB_RECOMPUTE_EXTRINSIC: number;
public static fisheye_CALIB_CHECK_COND: number;
public static fisheye_CALIB_FIX_SKEW: number;
public static fisheye_CALIB_FIX_K1: number;
public static fisheye_CALIB_FIX_K2: number;
public static fisheye_CALIB_FIX_K3: number;
public static fisheye_CALIB_FIX_K4: number;
public static fisheye_CALIB_FIX_INTRINSIC: number;
public static fisheye_CALIB_FIX_PRINCIPAL_POINT: number;
public static fisheye_CALIB_ZERO_DISPARITY: number;
public static fisheye_CALIB_FIX_FOCAL_LENGTH: number;
public static CirclesGridFinderParameters_SYMMETRIC_GRID: number;
public static CirclesGridFinderParameters_ASYMMETRIC_GRID: number;
public static CALIB_HAND_EYE_TSAI: number;
public static CALIB_HAND_EYE_PARK: number;
public static CALIB_HAND_EYE_HORAUD: number;
public static CALIB_HAND_EYE_ANDREFF: number;
public static CALIB_HAND_EYE_DANIILIDIS: number;
public static LOCAL_OPTIM_NULL: number;
public static LOCAL_OPTIM_INNER_LO: number;
public static LOCAL_OPTIM_INNER_AND_ITER_LO: number;
public static LOCAL_OPTIM_GC: number;
public static LOCAL_OPTIM_SIGMA: number;
public static NEIGH_FLANN_KNN: number;
public static NEIGH_GRID: number;
public static NEIGH_FLANN_RADIUS: number;
public static NONE_POLISHER: number;
public static LSQ_POLISHER: number;
public static MAGSAC: number;
public static COV_POLISHER: number;
public static CALIB_ROBOT_WORLD_HAND_EYE_SHAH: number;
public static CALIB_ROBOT_WORLD_HAND_EYE_LI: number;
public static SAMPLING_UNIFORM: number;
public static SAMPLING_PROGRESSIVE_NAPSAC: number;
public static SAMPLING_NAPSAC: number;
public static SAMPLING_PROSAC: number;
public static SCORE_METHOD_RANSAC: number;
public static SCORE_METHOD_MSAC: number;
public static SCORE_METHOD_MAGSAC: number;
public static SCORE_METHOD_LMEDS: number;
public static SOLVEPNP_ITERATIVE: number;
public static SOLVEPNP_EPNP: number;
public static SOLVEPNP_P3P: number;
public static SOLVEPNP_DLS: number;
public static SOLVEPNP_UPNP: number;
public static SOLVEPNP_AP3P: number;
public static SOLVEPNP_IPPE: number;
public static SOLVEPNP_IPPE_SQUARE: number;
public static SOLVEPNP_SQPNP: number;
public static SOLVEPNP_MAX_COUNT: number;
public static PROJ_SPHERICAL_ORTHO: number;
public static PROJ_SPHERICAL_EQRECT: number;
public static findEssentialMat(points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, cameraMatrix: org.opencv.core.Mat, method: number): org.opencv.core.Mat;
public static estimateAffinePartial2D(from: org.opencv.core.Mat, to: org.opencv.core.Mat, inliers: org.opencv.core.Mat, method: number, ransacReprojThreshold: number): org.opencv.core.Mat;
public static stereoCalibrate(objectPoints: java.util.List<org.opencv.core.Mat>, imagePoints1: java.util.List<org.opencv.core.Mat>, imagePoints2: java.util.List<org.opencv.core.Mat>, cameraMatrix1: org.opencv.core.Mat, distCoeffs1: org.opencv.core.Mat, cameraMatrix2: org.opencv.core.Mat, distCoeffs2: org.opencv.core.Mat, imageSize: org.opencv.core.Size, R: org.opencv.core.Mat, T: org.opencv.core.Mat, E: org.opencv.core.Mat, F: org.opencv.core.Mat, perViewErrors: org.opencv.core.Mat, flags: number): number;
public static composeRT(rvec1: org.opencv.core.Mat, tvec1: org.opencv.core.Mat, rvec2: org.opencv.core.Mat, tvec2: org.opencv.core.Mat, rvec3: org.opencv.core.Mat, tvec3: org.opencv.core.Mat, dr3dr1: org.opencv.core.Mat, dr3dt1: org.opencv.core.Mat, dr3dr2: org.opencv.core.Mat): void;
public static composeRT(rvec1: org.opencv.core.Mat, tvec1: org.opencv.core.Mat, rvec2: org.opencv.core.Mat, tvec2: org.opencv.core.Mat, rvec3: org.opencv.core.Mat, tvec3: org.opencv.core.Mat): void;
public static findChessboardCornersSB(image: org.opencv.core.Mat, patternSize: org.opencv.core.Size, corners: org.opencv.core.Mat): boolean;
public static fisheye_undistortPoints(distorted: org.opencv.core.Mat, undistorted: org.opencv.core.Mat, K: org.opencv.core.Mat, D: org.opencv.core.Mat, R: org.opencv.core.Mat): void;
public static RQDecomp3x3(src: org.opencv.core.Mat, mtxR: org.opencv.core.Mat, mtxQ: org.opencv.core.Mat, Qx: org.opencv.core.Mat, Qy: org.opencv.core.Mat, Qz: org.opencv.core.Mat): number[];
public static estimateAffinePartial2D(from: org.opencv.core.Mat, to: org.opencv.core.Mat, inliers: org.opencv.core.Mat): org.opencv.core.Mat;
public static recoverPose(points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, cameraMatrix1: org.opencv.core.Mat, distCoeffs1: org.opencv.core.Mat, cameraMatrix2: org.opencv.core.Mat, distCoeffs2: org.opencv.core.Mat, E: org.opencv.core.Mat, R: org.opencv.core.Mat, t: org.opencv.core.Mat, method: number, prob: number, param11: number, threshold: org.opencv.core.Mat): number;
public static recoverPose(E: org.opencv.core.Mat, points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, cameraMatrix: org.opencv.core.Mat, R: org.opencv.core.Mat, t: org.opencv.core.Mat, distanceThresh: number, param7: org.opencv.core.Mat, mask: org.opencv.core.Mat): number;
public static recoverPose(E: org.opencv.core.Mat, points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, R: org.opencv.core.Mat, t: org.opencv.core.Mat): number;
public static solvePnP(objectPoints: org.opencv.core.MatOfPoint3f, imagePoints: org.opencv.core.MatOfPoint2f, cameraMatrix: org.opencv.core.Mat, distCoeffs: org.opencv.core.MatOfDouble, rvec: org.opencv.core.Mat, tvec: org.opencv.core.Mat, useExtrinsicGuess: boolean): boolean;
public static fisheye_undistortPoints(distorted: org.opencv.core.Mat, undistorted: org.opencv.core.Mat, K: org.opencv.core.Mat, D: org.opencv.core.Mat): void;
public static fisheye_estimateNewCameraMatrixForUndistortRectify(K: org.opencv.core.Mat, D: org.opencv.core.Mat, image_size: org.opencv.core.Size, R: org.opencv.core.Mat, P: org.opencv.core.Mat): void;
public static solvePnPRefineVVS(objectPoints: org.opencv.core.Mat, imagePoints: org.opencv.core.Mat, cameraMatrix: org.opencv.core.Mat, distCoeffs: org.opencv.core.Mat, rvec: org.opencv.core.Mat, tvec: org.opencv.core.Mat, criteria: org.opencv.core.TermCriteria): void;
public static recoverPose(points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, cameraMatrix1: org.opencv.core.Mat, distCoeffs1: org.opencv.core.Mat, cameraMatrix2: org.opencv.core.Mat, distCoeffs2: org.opencv.core.Mat, E: org.opencv.core.Mat, R: org.opencv.core.Mat, t: org.opencv.core.Mat, method: number, prob: number): number;
public static filterHomographyDecompByVisibleRefpoints(rotations: java.util.List<org.opencv.core.Mat>, normals: java.util.List<org.opencv.core.Mat>, beforePoints: org.opencv.core.Mat, afterPoints: org.opencv.core.Mat, possibleSolutions: org.opencv.core.Mat): void;
public static recoverPose(E: org.opencv.core.Mat, points1: org.opencv.core.Mat, points2: org.opencv.core.Mat, cameraMatrix: org.opencv.core.Mat, R: org.opencv.core.Mat, t: org.opencv.core.Mat, distanceThresh: number): number;
public static solvePnPRefineVVS(objectPoints: org.opencv.core.Mat, imagePoints: org.opencv.core.Mat, cameraMatrix: org.opencv.core.M