public class OpenCVCameraModule extends ACameraModule implements org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2
| Constructor and Description |
|---|
OpenCVCameraModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeCamera()
Changes between front and back camera
|
java.lang.String |
getModuleInfo() |
java.lang.String |
getModuleVersion() |
org.opencv.core.Mat |
onCameraFrame(org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame inputFrame) |
void |
onCameraViewStarted(int width,
int height) |
void |
onCameraViewStopped() |
void |
passOCVthings(org.opencv.android.CameraBridgeViewBase bridgebase)
Pass the camerabridge for capturing images with opencv
|
void |
passSurfaceView(android.view.SurfaceView view)
Pass a surface view to draw the images into
|
void |
shutdown() |
void |
signalInit()
Starts the image capture
|
void |
startup(com.mytechia.robobo.framework.RoboboManager manager) |
notifyFrame, notifyMat, suscribe, unsuscribepublic void startup(com.mytechia.robobo.framework.RoboboManager manager)
throws com.mytechia.commons.framework.exception.InternalErrorException
startup in interface com.mytechia.robobo.framework.IModulecom.mytechia.commons.framework.exception.InternalErrorExceptionpublic void shutdown()
throws com.mytechia.commons.framework.exception.InternalErrorException
shutdown in interface com.mytechia.robobo.framework.IModulecom.mytechia.commons.framework.exception.InternalErrorExceptionpublic java.lang.String getModuleInfo()
getModuleInfo in interface com.mytechia.robobo.framework.IModulepublic java.lang.String getModuleVersion()
getModuleVersion in interface com.mytechia.robobo.framework.IModulepublic void signalInit()
ICameraModulesignalInit in interface ICameraModulepublic void passSurfaceView(android.view.SurfaceView view)
ICameraModulepassSurfaceView in interface ICameraModuleview - The surfaceviewpublic void passOCVthings(org.opencv.android.CameraBridgeViewBase bridgebase)
ICameraModulepassOCVthings in interface ICameraModulebridgebase - the OpenCV CameraBridgeBasepublic void changeCamera()
ICameraModulechangeCamera in interface ICameraModulepublic org.opencv.core.Mat onCameraFrame(org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame inputFrame)
onCameraFrame in interface org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2public void onCameraViewStarted(int width,
int height)
onCameraViewStarted in interface org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2public void onCameraViewStopped()
onCameraViewStopped in interface org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2