First time here? Check out the FAQ!

Ask Your Question
1

Implements CvViewFrameListener2 not found

asked May 30 '13

Vaska gravatar image

Hello, I need help i want add implements to my activity -> CvViewFrameListener2 - not found what is problem?

Preview: (hide)

4 answers

Sort by » oldest newest most voted
2

answered Jun 26 '13

berak gravatar image

you also have to add the opencv library to your project.

Properties / Android / library

add the OpenCV library 2.4.5 there


CvViewFrameListener2 is defined inside org.opencv.android.CameraBridgeViewBase

Preview: (hide)
1

answered Jun 26 '13

advdk gravatar image

Thank you for your answer, berak. Solved it. Seems like the interface name is misspelled in the tutorial. Instead of CvViewFrameListener2 (which really doesn't exist) I used CvCameraViewListener2 and everything works like a charm.

Preview: (hide)

Comments

ah, right . but please use comments, not answers !

berak gravatar imageberak (Jun 26 '13)edit
0

answered Jun 26 '13

advdk gravatar image

The same problem here. I tried to folllow this tutorial, but I got stuck at

11 Defines that your activity implements CvViewFrameListener2 interface (...)

It seems like the interface CvViewFrameListener2 doesn't exist in OpenCV library. Has anybody any idea?

Preview: (hide)
0

answered May 30 '13

Awkman gravatar image

Do you have the "OpenCV Library - 2.x.x" Project "imported" and "open" in eclipse ?

If you don't I think you get errors like that on every reference to an opencv class.

Preview: (hide)

Comments

I have the same error......... and yes, i have OpenCV library 2.4.5 imported and opened.... but if I write "[...] implements CvViewFrameListener2" in my class I cannot compile because it cause an error

hghg gravatar imagehghg (Jun 24 '13)edit

Question Tools

Stats

Asked: May 30 '13

Seen: 5,199 times

Last updated: Jun 26 '13