Home > Mobile >  SetCvCameraViewListener (this) this is not available
SetCvCameraViewListener (this) this is not available

Time:12-06

Want to do a camera on the Internet, according to the tutorial code away again, the result just call setCvCameraViewListener function results in this, not with what is the situation? For help!

CodePudding user response:

See what kind of parameters and the method takes in and see what type is this

CodePudding user response:

To understand what this means: this represents the current object itself,
Put the mouse up not have prompted
For example:

CodePudding user response:

Well, you are to understand the meaning of this

CodePudding user response:

Now answer you might be a little late, but suffered might encounter this problem, behind someone development setCvCameraViewListener (this) this will be an error here, if you use Alt + enter to a a try and you will find an error, so you can stop this.
in new wayUse.
Xx. SetCvCameraViewListener (new CameraBridgeViewBase. CvCameraViewListener () {
@ Override
Public void onCameraViewStarted (int width, int height) {

}

@ Override
Public void onCameraViewStopped () {

}

@ Override
Public Mat onCameraFrame (Mat inputFrame) {
return null;
}
});
  • Related