Slashdot Mirror


Real-Time Face Substitution in Javascript

An anonymous reader writes with news of an interesting demo for clmtrackr (a Javascript library for tracking of facial features) that hides your face using 3D masks overlayed on the video from your webcam using WebGL. The effect is kind of neat, and a bit creepy. The demo works in Chromium here, but not in Firefox (Debian unstable). There are a couple other demos; the facial deformation demo is reminiscent of the intro screen to Mario 64.

63 comments

  1. Real time ass fucking in Javascript by slashdot+sucks+cock · · Score: 0, Troll

    Slashdot is the worst site on the internet.

    1. Re:Real time ass fucking in Javascript by Anonymous Coward · · Score: 0

      "Lol ur website is bad and u should feel bad!!~" - Really? Don't worry, I'm not mad or anything, just bemused at the lack of innovation in trolls. It was entertaining when the idea of baiting forums was new (yeah, we've all been there), but now it's just old hat. We know the dialogue of all the actors in every scene as it unfolds and the drama is still cherished, but like a playwright who bows long after the audience has ceased clapping, this kind of trolling is past its time. I'm sort of surprised that the internet hasn't collectively moved on already.

  2. the original facial deformation demo by nimbius · · Score: 5, Funny

    JQuery.

    --
    Good people go to bed earlier.
  3. Umm... by Desler · · Score: 1, Flamebait

    So doing something in Javascript is a front page story? Is the language that crappy that being able to do mundane things with it is now news?

    1. Re:Umm... by Georules · · Score: 1

      "in Javascript" is a classic headline decorator at Slashdot, which it never outgrew, and probably needs to.

    2. Re:Umm... by Anonymous Coward · · Score: 0

      EDWARD SNOWDEN!?!?! There. Is the article exciting now?

    3. Re:Umm... by Guest316 · · Score: 1

      "in Javascript" is a classic headline decorator at Slashdot, which it never outgrew, and probably needs to.

      It really does. Netcraft confirms it.

    4. Re:Umm... by oodaloop · · Score: 4, Funny

      Edward Snowden 3D Prints Bitcoins Using Javascript on iPhone 6 Protoype in Self Driving Car Due to Global Warming

      --
      Tic-Tac-Toe, Global Thermonuclear War, and relationships all have the same winning move.
    5. Re:Umm... by Anonymous Coward · · Score: 0

      It really does. Netcraft confirms it in JavaScript.

      FTFY. HTH.

    6. Re:Umm... by oodaloop · · Score: 1

      Damn, I really want to read that article now!

      --
      Tic-Tac-Toe, Global Thermonuclear War, and relationships all have the same winning move.
    7. Re:Umm... by Anonymous Coward · · Score: 0

      Need to add BITCOIN!

    8. Re:Umm... by zlives · · Score: 1

      needs more BitCoin

    9. Re:Umm... by roman_mir · · Score: 2, Funny

      While driving a pink Tesla.

    10. Re:Umm... by Anonymous Coward · · Score: 0

      > While driving a pink Tesla.

      Onto a SpaceX vehicle.

  4. Re: Javascript blocked by default. by Anonymous Coward · · Score: 1

    I'm sure the Internet will get right on it to please your whims. Should we send all further correspondences to your mom's basement per usual?

  5. How soon before "Mr & Mrs Everywhere"? by david.emery · · Score: 2

    As predicted by John Brunner's "Stand on Zanzibar" (http://en.wikipedia.org/wiki/Stand_on_Zanzibar ): a video system where your face is superimposed on the screen, showing you visiting exotic locations, participating in dramas, etc, etc?

  6. Re:Javascript blocked by default. by bcmm · · Score: 1

    Do real-time video processing server-side? Seriously?

    --
    # cat /dev/mem | strings | grep -i llama
    Damn, my RAM is full of llamas.
  7. Re:Javascript blocked by default. by Anonymous Coward · · Score: 0

    It's a demonstration of a Javascript library, you moron. What's the point of doing it server-side, it wouldn't be good demonstration then.

  8. Was obviously calibrated on white people by Fwipp · · Score: 2

    The demo worked fine for me, but completely failed to find my black partner's face, preferring instead a spot on the wall behind them. Obviously this isn't a professional product, but it's disappointing that simply locating a black person's face is still a missing feature in 2014.

    1. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 0, Troll

      Did you forget to call the devs Waaacist?

    2. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 5, Informative

      Dark faces are challenging unless using projected IR light(a la night vision) due to these things usually relying on contrast to locate the nostrils, eyes and mouth. Basically, the closer the skin tone is to the iris and nostrils, the higher video fidelity and lighting quality needed to differentiate the two. It isn't a racism thing and can be worked around with better lighting or a better camera if IR isn't an option.

    3. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 1

      To expand on this, this behaviour is also seen on some cellphone unlocks and even the Kinect/Natal units had a hard time originally. The new Kinect much less so since it has a variety of other bits of biometric data with which to base itself.

    4. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 0

      People DO have business partners, you know.

    5. Re:Was obviously calibrated on white people by thetoadwarrior · · Score: 1

      It can't fully even do a white person with a beard. It's like it assumes everyone on the net is a 12 year old boy in the suburbs.

    6. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 0

      So it was programmed by clergy members?

    7. Re:Was obviously calibrated on white people by Lord+Kano · · Score: 1

      Did you forget to call the devs Waaacist?

      If by "devs" you mean "devils".

      LK

      --
      "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
    8. Re:Was obviously calibrated on white people by omnichad · · Score: 1

      Maybe they got some help from Veridian Dynamics - http://www.youtube.com/watch?v=CJ1TaYwU394

    9. Re:Was obviously calibrated on white people by istartedi · · Score: 1

      TFA claims it was trained on the MUCT database which includes various ethnicities. Maybe there's not enough contrast in your image.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    10. Re:Was obviously calibrated on white people by Anonymous Coward · · Score: 0

      Good point, 12 year old boys from the suburbs are the only light skinned people without beads.

  9. What a relief by Dishwasha · · Score: 2

    Now when my new internet girlfriend wants to skype for the first time, she won't find out that the pictures I posted on my dating profile were faked from a google image search for hunk.

  10. nt by Anonymous Coward · · Score: 1

    I thought what I'd do was, I'd pretend I was one of those deaf-mutes.

  11. Re:Javascript blocked by default. by tepples · · Score: 0

    OnLive and Gaikai manage to do it.

  12. Node.js by tepples · · Score: 0

    Then do it server-side in Node.js.

    1. Re:Node.js by royallthefourth · · Score: 1

      How will you take a picture and send it to the server without JS in the browser? Not to mention how much bandwidth that would use...

    2. Re:Node.js by MightyYar · · Score: 1

      He wants you to use Flash.

      --
      W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
  13. Clicks vs. drags by tepples · · Score: 1

    So how should the browser send a drag event to the server? The only pointer events I know of that can be sent to the server without JavaScript are click events on server-side image maps, not drag events. How, for example, would you make a browser-based paint program without JS?

    1. Re:Clicks vs. drags by CastrTroy · · Score: 1

      I think the simple answer is, why do you need a browser based paint program? Because you can is a good reason, but are there any other reasons. You could just as easily build a pain program using more traditional methods, and if you need to communicate with a server, you can just send stuff to the server, using HTTP if you like. There's very little reason to actually have the program running in the browser.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    2. Re:Clicks vs. drags by Anonymous Coward · · Score: 0

      Because users don't want to install a program.

    3. Re:Clicks vs. drags by CastrTroy · · Score: 1

      Who has to "install" a program. You can download an EXE and run it without installing it. This part of the reason that Google Chrome got so popular so fast. You didn't have to install anything. It didn't require administrator access. Very few machines are locked down so much that you can't run arbitrary EXEs. Just about any system I've ever used would let you run whichever executable you wanted. Now, if you wanted to write files outside your home directory, or open up listening ports, that's a whole other story, but I don't think I've ever used a system where an arbitrary exe (not counting specific viruses) weren't allowed to run.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    4. Re:Clicks vs. drags by Anonymous Coward · · Score: 0

      Very few machines are locked down so much that you can't run arbitrary EXEs. Just about any system I've ever used would let you run whichever executable you wanted.

      Forgive me if I don't understand why this wouldn't be a huge security risk?

    5. Re:Clicks vs. drags by CastrTroy · · Score: 1

      I don't know, but as far as I've seen, putting scripting abilities, and other programming provisions, in browsers has lead to way more security problems than allowing people to run arbitrary executables. At least when I run arbitrary executables I get to decide which ones to run. They are downloaded to my computer, which can then run virus scans on them. Compare that to browser run code, where a small hole in the sandbox can lead to a users computer running all sorts of things, just from visiting a webpage.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
  14. Poor tracking by loufoque · · Score: 1

    It fails as soon as I move.

    1. Re:Poor tracking by Anomalyst · · Score: 1

      Remaining in Mom's basement doesn't seem to an egregiously burdensome pre-requisite.

      --
      There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
  15. Re:Javascript blocked by default. by davester666 · · Score: 3

    serverside is too late. you DON'T want the server to get your "real" face. the business owning the server has no interest in spending buckets of cash to capture images of your real face, only to screw them up so you can have your precious privacy.

    --
    Sleep your way to a whiter smile...date a dentist!
  16. Re:Javascript blocked by default. by OakDragon · · Score: 3, Funny

    Sorry, got GIFs blocked too. Gimme animated ASCII, or not at all.

  17. This + hasciicam by Rinikusu · · Score: 1

    Would make for more interesting videos, anyway... :D

    --
    If you were me, you'd be good lookin'. - six string samurai
  18. real time my ass by thetoadwarrior · · Score: 1

    Unless you're sitting still it often lags behind and any realistic movement would guarantee you face would not be hidden. Javascript developers have an odd sense of what real time is.

    1. Re:real time my ass by Georules · · Score: 1

      'Real-time' usually seems to mean to a lot of people 'you don't have to do a processing step after saving data to see results, but instead see a stream as the data is collected'. 'Real-time' doesn't require that the system have no lag (impossible), but at least latency should be known. Which, I will grant you, is likely not known in this case.

    2. Re:real time my ass by EmperorArthur · · Score: 1

      Unless you're sitting still it often lags behind and any realistic movement would guarantee you face would not be hidden. Javascript developers have an odd sense of what real time is.

      Javascript and real time should never be used together. For all the improvements by browser vendors javascript is still almost as slow as the US congress.

      --
      So lets pretend that we've just completed writing this code, as opposed to having just completed sabotaging it -Altera
  19. EXEs don't run on non-Windows machines by tepples · · Score: 1

    You can download an EXE and run it without installing it. [...] Very few machines are locked down so much that you can't run arbitrary EXEs. [...] I don't think I've ever used a system where an arbitrary exe (not counting specific viruses) weren't allowed to run.

    You can't download and run an EXE on OS X, X11/Linux, Android, iOS, Windows RT, Windows Phone, Xbox, PlayStation Vita, PlayStation 3, PlayStation 4, Nintendo 3DS, or Wii U. Well you can run some EXEs on X11/Linux if you use Wine, as I do on my Xubuntu laptop, but that's an edge case. Besides, even on (recent) Windows, the operating system's SmartScreen feature will warn the user and encourage the user to delete an EXE if the EXE is "not commonly downloaded".

    1. Re:EXEs don't run on non-Windows machines by CastrTroy · · Score: 1

      Well, it may not have an EXE extension, but in Linux and OSX, you can surely download a file, set the executable bit, and execute the program. There might be Linux and OSX configurations where the user does not have the right to set the executable bit, but again, it's not the norm. IOS, Android, and WinRT all allow programs to be download and run from the appropriate app store, and I can't see why you wouldn't want to just put an app on the apps store but would rather try to coerce a browser to do something it wasn't really meant to do in the first place. Consoles and games systems are much less easy to get your foot in the door in terms of development, but that's hardly a reason to develop a paint program in a browser.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
  20. input type="file" by tepples · · Score: 1

    How will you take a picture and send it to the server without JS in the browser?

    Take a picture with a digital camera or a webcam and save it to a JPEG file. Then upload it through a form with <input type="file">.

    1. Re:input type="file" by omnichad · · Score: 1

      30 times per second. This works with live video.

  21. Re: Javascript blocked by default. by Anonymous Coward · · Score: 0

    Don't feed the troll.

  22. Re:Javascript blocked by default. by master5o1 · · Score: 1

    Do they require you to run some code on your machine?

    If yes, then it's just the same as if it was Javascript.

    --
    signature is pants
  23. Too many things working only on Chrome by Windwraith · · Score: 1

    I don't specially dislike Chrome other than the fact that I don't use it, but whenever something web hits slashdot it's almost always Chrome-only. Any explanation for this?

  24. Works in Firefox by roca · · Score: 1

    It works in Firefox for me. The start button remains grayed out for some reason, but you can click on it.

  25. Would still need to be ported; review guidelines by tepples · · Score: 1

    Well, it may not have an EXE extension, but in Linux and OSX, you can surely download a file, set the executable bit, and execute the program.

    By "EXE" I did not intend to refer to a particular filename suffix. I intended to refer to an executable program in COFF/PE format that uses Windows APIs. An EXE won't run in Linux or OS X. Instead, the application would have to be ported to Linux and ported to OS X.

    IOS, Android, and WinRT all allow programs to be download and run from the appropriate app store

    Apple has a laundry list of application behaviors that it refuses to approve for distribution through its App Store. So does Microsoft. And besides, even if the application does not include one of the forbidden features, the Windows application has to be ported to iOS, ported to Android, ported to Windows RT, and ported to Windows Phone.

    I can't see why you wouldn't want to just put an app on the apps store but would rather try to coerce a browser to do something it wasn't really meant to do in the first place.

    The fact that the app does one of the things on the blacklist, perhaps?

    Consoles and games systems are much less easy to get your foot in the door in terms of development, but that's hardly a reason to develop a paint program in a browser.

    If not in a browser, then in what else?

  26. Here it comes... by Aldenissin · · Score: 1

    real time photo-shopping of celebrities on live television...

    --
    Like a city whose walls are broken down is a man who lacks self-control.