public class OpenCvColorDetectionModule extends AColorDetectionModule implements ICameraListener
rcmodule| Constructor and Description |
|---|
OpenCvColorDetectionModule() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getModuleInfo() |
java.lang.String |
getModuleVersion() |
void |
onNewFrame(Frame frame)
Called when a new frame (in jpeg) arrives
|
void |
onNewMat(org.opencv.core.Mat mat)
Called when a new frame (in OpenCV Mat format) arrives
|
void |
pauseDetection()
Pauses the color detection algorithm
|
void |
shutdown() |
void |
startDetection()
Starts or resumes the color detection
|
void |
startup(com.mytechia.robobo.framework.RoboboManager manager) |
notifyColor, 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 startDetection()
IColorDetectionModulestartDetection in interface IColorDetectionModulepublic void pauseDetection()
IColorDetectionModulepauseDetection in interface IColorDetectionModulepublic void onNewFrame(Frame frame)
ICameraListeneronNewFrame in interface ICameraListenerframe - The framepublic void onNewMat(org.opencv.core.Mat mat)
ICameraListeneronNewMat in interface ICameraListenermat - The frame