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
0
Question by maxxa05 · Mar 24, 2014 at 09:06 PM · webcamvision

Face detection in Unity

I would need help with a task we need to do for one of our project. We would simply need to detect a face in a webcam image on a PC, so we can cut the face from the image and paste it on another image. It does not need to be realtime, but it could be useful. We don't have much time for this, so it would need to be easy enough to implement.

I know the topic has been talked about a bit here, but we have difficulties finding an easy solution to this task. I've seen some YouTube videos of face tracking plugins in Unity, but all of them seem impossible to find on the internet. Vuforia doesn't have a face tracking solution. The Face Tracking Starter Kit works only with a Kinect. Face API for a commercial project is way too expensive. This leaves us with very few options.

If someone would be kind enough to give us hints for a potential solution, it would be very appreciated.

Comment
Add comment · Show 3
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 Benproductions1 · Mar 25, 2014 at 09:43 AM 0
Share

Face tracking in Unity is no different that in any other environment. Simply find a simple face tracking technique (face tracking is never simple) and implement it. We can't do your work for you.

avatar image maxxa05 · Mar 25, 2014 at 01:27 PM 0
Share

Real-Time shadows are not an easy thing to implement, but it's made easy in Unity. Pathfinding is not an easy thing to implement, but it's made easy in Unity. An extensive UI system is not an easy thing to implement, but it's made easy in Unity and in some Asset Store packages. I could go on with this for a while, but I think you get my point.

Someone could have known a simple way that I didn't find on the internet, paid or not, but I guess such a solution does not exists under 4000$ per app (FaceAPI).

avatar image fafase · Mar 25, 2014 at 01:39 PM 0
Share

It might also depends on how much accuracy you are after. Is it a project for learning or a commercial project? If just for learning then the idea could be "just" to place vertices on points, specific point you define proably based on heightmap of a picture, looking for specific point for example that reflect more like due to their orientation or the edge of the eyes or eyebrows. Those are fairly easy since they have an abrupt change of color. Then join them in triangles to create a mesh.

Then comes the complicated part, comparing the new mesh with existing meshes considering a margin for each vertex...

All in all, this is not an answer since it takes more than that to develop but if you did not know where to start, that could lead somewhere...

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by tanoshimi · Mar 25, 2014 at 01:42 PM

Did you try EmguCV?

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 flamy · Mar 25, 2014 at 01:45 PM 0
Share

EmguCv works better but beware that documentation for it is too bad and would need a lot of exploration. Ins$$anonymous$$d learn the technique from openCV and try to replicate it in EmguCv.

to integrate it in to unity3d you need to do a lot of work.

avatar image maxxa05 · Mar 25, 2014 at 02:20 PM 0
Share

I'm looking at EmguCV at the moment, I will see what I can do with that. I know that it won't be trivial, but if I can make this work in a week or two, it will be good enough for me.

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

23 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

Related Questions

Detect player blinking in real time w/ kinect or webcam? 1 Answer

Webcam Support in Unity (iSight or USB Camera) 8 Answers

iPad Camera Aspect Ratio 2 Answers

How to ask webcam of android phone to autofocus with Unity3D 0 Answers

Adjust the exposure of phone camera manually 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