• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by ash_05 · Oct 31, 2015 at 07:59 AM · unity5vuforiaopencv

The type or namespace name `OpenCVForUnity' could not be found

I am working on face traching in unity3D

I have downloaded and imported the sample project on "FaceTracker Sample using OpenCV for Unity".

But when I tried to runned the project,its showing me the error.Below is the screen shot of the erroralt text

What will be the issue?can anybody help out please?

I am using unity(5.0.0f4(64 bit))

opencverror.jpg (64.3 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Oct 31, 2015 at 10:53 AM 0
Share

Can you confirm that the scripts say the following somewhere at their top?

 using OpenCVForUnity;

Usually when you use $$anonymous$$onoDevelop (I don't know Visual Studio), right-clicking on the faulty class should show "Refactor" in the context menu and under there a helper for adding it.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Statement · Oct 31, 2015 at 07:03 PM

I guess it's this asset? https://www.assetstore.unity3d.com/en/#!/content/35284

The error says it can't find the type or namespace. Looking at the examples online one can see that the code uses a namespace. That namespace doesn't exist on your system. The samples depend on other code to be there.

Then there's this note on the assetstore page for the samples:

The execution of this asset is required “OpenCV for Unity”.

Which I guess is broken English for: You need to buy and import OpenCV for Unity to run the samples.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

36 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

4 unity Button click detect different targets 0 Answers

Recognition of the hand of his gesture 0 Answers

where can i download old version of vuforia sample? ,How can i download old version of vuforia sample? 1 Answer

One image target show's it's own as well as other image target's UI button on run time 0 Answers

Foot Recognition and Tracking - Augmanted Reality 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges