no matter which preset i try, the mustache is off by the same distance.<br>could you show me how it's showing up on your mac?<br>or even better, could you add a layer over each eye and mouth, with a bit of color and alpha, like matt's original gist?<br>
<br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 6:37 PM, Alan Skipp <span dir="ltr"><<a href="mailto:al_skipp@fastmail.fm">al_skipp@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>The only thing that I can think of which could account for the wrong positioning is the resolution of your webcam/isight. A resolution of 640x480 is assumed in the code, if your webcam is higher resolution then that could explain the discrepancy.</div>
<div><br></div><div>Try adding the following line (after initialising the AVCaptureSession).</div><div><br></div><div><div>session.sessionPreset = AVCaptureSessionPreset640x480</div></div><div><br></div><div>Al</div><div>
<div class="h5"><div><br></div><div><br></div><div><div>On 19 Dec 2011, at 15:58, Pavlos Vinieratos wrote:</div><br><blockquote type="cite">this is what i mean.<br><a href="http://dl.dropbox.com/u/349788/Screen%20Shot%202011-12-19%20at%2017.56.35.JPG" target="_blank">http://dl.dropbox.com/u/349788/Screen%20Shot%202011-12-19%20at%2017.56.35.JPG</a><br>
<br><div class="gmail_quote">
On Mon, Dec 19, 2011 at 5:34 PM, Alan Skipp <span dir="ltr"><<a href="mailto:al_skipp@fastmail.fm" target="_blank">al_skipp@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hmm… curious. <div>The positioning code could certainly do with some refinement, but from my testing it's close enough for rock 'n' roll, as they say. Perhaps you added the code to an existing project which set-up the window/view/layer slightly differently? If not, then I'm confused also…</div>
<div><br></div><div>Al</div><div><div><div><br><div><div>On 19 Dec 2011, at 14:56, Pavlos Vinieratos wrote:</div><br><blockquote type="cite">the mustache is off even in your original gist. am i right? or is this some kind of weird setup where its works on your mac and not on mine..<br>
<br><div class="gmail_quote">On Mon, Dec 19, 2011 at 4:22 PM, Alan Skipp <span dir="ltr"><<a href="mailto:al_skipp@fastmail.fm" target="_blank">al_skipp@fastmail.fm</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div>Could you create a new gist with your additions and post a link to it. I'll then take a look and see if I can discover the problem. It could be something to do with setting the anchorPoint on the CALayer, but that's just a wild guess at the minute.</div>
<div><br></div><div>Al</div><div><div><div><br></div><div><br><div><div>On 19 Dec 2011, at 13:42, Pavlos Vinieratos wrote:</div><br><blockquote type="cite">hello alan. i was playing around with your gist, but the glasses and all the extra layers are off. i positioned the layers over the face, but they always stay to the right of the face, and the distance they are to the right, is not even fixed. it comes closer to the face when i move to the left.<br>
<br>i'm confused..<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 2:07 AM, Alan Skipp <span dir="ltr"><<a href="mailto:al_skipp@fastmail.fm" target="_blank">al_skipp@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A bit late to the moustachioed party. But here is an attempt at the live moustachification problem. The effect is perhaps more like being pursued by a persistent tache, rather than wearing a tache. Those with more powerful hardware (or less inclination to move around in front of the camera) may have more convincing results.<br>
I have stolen the moustache and moustache positioning method from the previous submissions - I hope that's OK. With any luck there'll be something worth stealing back from my submission.<br>
No attempts as yet at recording the effect (AVFoundation is a scary labyrinth).<br>
<br>
<a href="https://gist.github.com/1469659" target="_blank">https://gist.github.com/1469659</a><br>
<br>
Al<br>
<div><div><br>
On 8 Dec 2011, at 09:23, Sean Mateus wrote:<br>
<br>
> Hi Pavlos,<br>
> as we talked yesterday on twitter; I hope we can use this code <a href="https://gist.github.com/1427886" target="_blank">https://gist.github.com/1427886</a> as basis for the video version your mustachification-script!<br>
><br>
> you can ping me on twitter @seanlilmateus<br>
><br>
><br>
> --<br>
> Sean Mateus<br>
</div></div><div><div>> _______________________________________________<br>
> MacRuby-devel mailing list<br>
> <a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br>
> <a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
<br>
_______________________________________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pavlos Vinieratos<br>
_______________________________________________<br>MacRuby-devel mailing list<br><a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br><a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pavlos Vinieratos<br>
_______________________________________________<br>MacRuby-devel mailing list<br><a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br><a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pavlos Vinieratos<br>
_______________________________________________<br>MacRuby-devel mailing list<br><a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.macosforge.org</a><br><a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
</blockquote></div><br></div></div></div><br>_______________________________________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pavlos Vinieratos<br>