0

can anyone tell me why i am getting this error? enter image description here

because of that I'm getting this error too enter image description here

Trying to integrate opencv with artoolkit

karlphillip
  • 92,053
  • 36
  • 243
  • 426
Ruben Veiga
  • 343
  • 3
  • 15

1 Answers1

1

Ruben, we've talked about this on Tweeter. This is a compiling error that is telling you that it doesn't know what colorHSV is.

Looking at your code and the error message, I can tell that colorHSV is a class that should be defined in your code or in one of the 3rd party libraries you are using.

I've done some research and I found a code very similar to yours. Apparently, colorHSV is a custom data type that the developer uses, but the page doesn't provide the entire source code of the application, just a few snippets here and there to give directions. In other words, there's a lot of code missing in that post.

However, they do mention using a technology for Augmented Reality named Occlusion. A little bit more of research showed me ait-occlusion, which implements a colorHSV. This seems to be the same type you are using in your code.

If you still haven't figured it out, you need to:

  • download/compile/install Occlusion on your system,
  • add the proper #include for ColorHSV.h,
  • and finally adjust your project properties to link your application with this library.

If you have any doubts on any of these procedures, Google it.

karlphillip
  • 92,053
  • 36
  • 243
  • 426
  • uhm right @Karl thanks i thought colorHSV was a opencv class, but i have to implemented, know its make sense, yes i use that tutorial to integrate opencv and artoolkit, tell me see it better thanks again – Ruben Veiga May 24 '12 at 15:44
  • hi Karl if i copy the coloHSV.h and paste it I'm my opencv framework folder will it work? – Ruben Veiga May 24 '12 at 16:04
  • How about you try that and come back to us later with the result? – karlphillip May 24 '12 at 17:24
  • uhm i still got the problem maybe the problem its here class ColorHSV2 Class it a c++ code? still have the erro but in colorHSV.h that strange because here is there there declared colorHSV :( – Ruben Veiga May 26 '12 at 13:13
  • Is it the same error msg? You are probably missing something obvious. I wont be able to help you further without looking at the code. – karlphillip May 26 '12 at 14:23
  • i guess i must had a lot of header but the code its for C++ and I'm coding in C :(( try to use the code without the colorHSV but i get a flipped image after i put the marker to be detected – Ruben Veiga May 26 '12 at 17:52
  • uhm the colorhsv need a lot of other headers but the code its for C++ and i am coding in C – Ruben Veiga May 26 '12 at 21:08
  • 1
    Sounds like you have to make a decision: either drop the code you found and start writing your own, or start using a C++ compiler :) – karlphillip May 26 '12 at 22:58