Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
avatar image
2
Question by Dover8 · Jan 08, 2014 at 06:30 PM · iosu3dxtar

Is there an example of FaceDetection?

I have just purchased U3DXT mainly to get facedetection working from a camera in the unity scene (Vuforia AR camera). Are there any examples on how to use the high level API for FaceDetection as the documentation isn't available yet.

edit-- I think I am progressing. I'm just reading pixels from the entire screen for now, and here is my code:

 Texture2D newTex = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);
 newTex.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
 newTex.Apply();
 Debug.Log (newTex.width);
 CIDetector det = new CIDetector();
 System.Collections.Generic.Dictionary<object, object> dictionary = new System.Collections.Generic.Dictionary<object, object>();
 dictionary.Add(CIDetector.Accuracy, CIDetector.AccuracyLow);
 det = CIDetector.DetectorOfType (CIDetector.TypeFace,null, dictionary);
 CIImage cimage = new CIImage();
 cimage = CIImage.FromTexture2D(newTex);
 object[] features = det.FeaturesInImage(cimage);
 Debug.Log ("Features: " + features.Length);

It runs fine (though obviously very slow), but features is always of length 0

Comment
Add comment · Show 2
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 ina · Jan 16, 2014 at 06:22 AM 0
Share

is u3dxt going to respond?

avatar image u3dxt · May 24, 2014 at 06:11 AM 0
Share

someone got to the question before us :(. Please see our response below. please help us mark answers closed if it answers your question. Thanks!

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by u3dxt · May 24, 2014 at 06:09 AM

Hi Dover, we just released 1.7.1.0 with an example for face detection. This is a complex one to get working properly. It was a bit of work trying to support older versions of Unity since many of the newer APIs for webcam didn't exist. Anyway, to improve speed, you can try decreasing the resolution of the input image. One of our customers sent us a video using face detection for head tracking inside the 3D world. It looked pretty neat. Hope you'll have fun with this one.

Comment
Add comment · Show 1 · 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
avatar image DeveshPandey · Aug 23, 2018 at 06:43 PM 0
Share

See this, it may help you http://unitydevelopers.blogspot.com/2018/03/open-cv-plugin-for-unity.html?m=1

avatar image
0

Answer by Gruffy · Jan 08, 2014 at 09:29 PM

Unity FaceTracking Plugin Forum page

A link to the actual Asset Store, for the plugin, is on this linked page above.

Cheers bud Gruffy

Comment
Add comment · Show 2 · 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
avatar image Dover8 · Jan 09, 2014 at 09:35 AM 0
Share

I am already using the U3DXT plug in and need it for iOS, as per the tags.

avatar image ina · Jan 16, 2014 at 06:20 AM 0
Share

also that one requires the kinect..

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.

Follow this Question

Answers Answers and Comments

22 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

Related Questions

U3DXT AVAudioPlayer 0 Answers

U3DXT Social FacebookPost not Working? 1 Answer

HTTP Live Streaming from Kii Cloud Storage? 1 Answer

Save and show image in iPhone Gallery 0 Answers

iOS 8 location services not working 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges