# Smile detection

**URL:** https://discourse.processing.org/t/smile-detection/11626
**Category:** Libraries
**Created:** [May 27, 2019, 9:26am UTC](https://discourse.processing.org/t/smile-detection/11626 "2019-05-27T09:26:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ten](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@Ten](https://discourse.processing.org/u/Ten)
#### Post date: [May 27, 2019, 9:26am UTC](https://discourse.processing.org/t/smile-detection/11626/1 "2019-05-27T09:26:17Z")

</div>

Hi everyone i’m new in processing so i don’t know how to fix this problem. At the moment im working on a project which take a photo via webcam. The trigger for the photo is the detection of a smiling person. I tried to work with this “psmile.psmile” library, but i can’t start the sketch. Whenever i try i get the error:  
A library relies on native code that’s not available.  
Or only works properly when the sketch is run as a 32-bit application.  
UnsatisfiedLinkError: C:\Users\PC\Desktop\Smile002\code\PSmile.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform.  
Is there still a way to run this sketch on my laptop?  
I’m thankful for every help and sorry for the bad english.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 31, 2019, 4:43pm UTC](https://discourse.processing.org/t/smile-detection/11626/2 "2019-05-31T16:43:28Z")

</div>

Were you able to resolve this issue?

Where did you get the PSmile library, and how did you install it? What specific version of Processing are you using it with?

---

<div class="post-metadata">

### Author: ![Ten](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@Ten](https://discourse.processing.org/u/Ten)
#### Post date: [June 4, 2019, 11:56pm UTC](https://discourse.processing.org/t/smile-detection/11626/3 "2019-06-04T23:56:05Z")

</div>

I couldn’t resolve this problem and I got the library here: [http://www.magicandlove.com/blog/research/smile-detection-library-for-processing/](http://www.magicandlove.com/blog/research/smile-detection-library-for-processing/).  
The Version i’m using is 3.5.3.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [June 5, 2019, 3:34am UTC](https://discourse.processing.org/t/smile-detection/11626/4 "2019-06-05T03:34:03Z")

</div>

Well, if that is PSmile 1.1.0, then it looks like it was compiled for Processing 2.0b3.

> <https://github.com/chungbwc/PSmile/blob/master/eclipse/PSmile/distribution/PSmile-1.1.0/index.html>

You could try building the library yourself on your platform from source:

> **[chungbwc/PSmile](https://github.com/chungbwc/PSmile/)**
>
> Smile detection library for Processing. Contribute to chungbwc/PSmile development by creating an account on GitHub.

You will probably (?) need to update it to get it working with Processing 3.

> <https://github.com/chungbwc/PSmile/blob/master/eclipse/PSmile/src/pSmile/PSmile.java>

---

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [June 5, 2019, 8:00am UTC](https://discourse.processing.org/t/smile-detection/11626/5 "2019-06-05T08:00:06Z")

</div>

Hi @Ten,

Another solution could be to _train_ your camera to detect a smile.That [thread](https://discourse.processing.org/t/how-do-i-make-my-webcam-detect-a-pose-i-make/990/2) could probably be of interest to you.
