Face Detection with HTML5 & JavaScript

Via ReadWriteHack:

Hack of the Day: Face Detection with HTML5 & JavaScript.

It’s a pretty cool idea. Taking a quick look at the source code (particularly the ccv.js file), it seems like it’s using something along the lines of the Viola-Jones boosted cascade of simple features algorithm. I’m guessing the actual cascade values (found in the face.js file) were trained in a non-javascript program.

It’s really too bad that no browsers support the HTML5 <device> tag yet, as it isn’t yet finalized. I’ve seen Flash apps which do some processing on camera input in the past, but having computer vision algorithms written in Java/Javascript/HTML5, running on the browser and integrated in web applications could be quite powerful. There’s of course all manner of games and toys one could come up with, but there’s also possibilities for things like authentication, changing the view when a face is no longer detected nearby, etc.

Posted in Computer Vision | Leave a comment

(Very) rough PhD thesis draft: Table of Contents

I’ve decided to work on and post one (very) rough draft of each subchapter of my PhD thesis at a time, so that I can focus on just one part at a time without being distracted by the rest of it. I also find that I write best when writing for an immediate audience. Please feel free to ask any questions and give comments as I go along. I’ll start with the Table of Contents. As you can see, I’m experimenting with a Socratic/question-based approach to chapter organization:

Tentative title: Reactivation of Visual Representations With Transcranial Magnetic Stimulation

  1. Introduction:
    1. What is this thesis about?
    2. What are the contributions of this work?
    3. How is this thesis structured?
  2. Background: TMS and visual cortex
    1. What do we already know about how information is represented in visual cortex?
    2. What is transcranial magnetic stimulation (TMS)?
    3. What does TMS offer us that other techniques do not?
    4. What is already known about how TMS interacts with representations in visual cortex?
    5. What can we learn from TMS reactivation of visual representations?
  3. Related work: Prior experiments with reactivation and related effects
    1. What related experiments were previously performed by Daw-An Wu and Juha Silvanto?
    2. How does the work described in this thesis build upon earlier work?
  4. Chapter: Replay of natural images
    1. How do you invoke the TMS-based visual replay effect?
    2. What was the methodology used for the natural image replay experiments?
    3. What do subjects report seeing when the replay effect is elicited?
    4. What are the implications of the figure-ground segregation reported by many subjects during replay?
    5. What is the timecourse of the visual replay effect?
    6. What do the effects of switching current direction in the coil tell us about the nature of the replay effect?
    7. What can we determine about what regions of cortex are being stimulated during visual replay?
  5. Chapter: Replaying visual masks
    1. What is visual masking?
    2. What can the replay of visual masks tell us about what is happening during replay?
    3. How did we replay visual masks?
    4. What happened when we replayed visual masks?
    5. What does the interaction between replay and visual masking tell us about the representation which gets reactivated?
  6. Chapter: entrainment effect and masking paradigm
    1. What is the entrainment effect?
  7. Chapter: retrieval?
  8. Chapter: Contributions and future work
    1. Contributions
    2. Future work
Posted in Neil's PhD thesis | 2 Comments

Culture wires the brain: A cognitive neuroscience perspective

Don’t have access to the full details to determine how solid the results are, but it seems like an intriguing cognitive neuroscience study of cross-cultural differences:

There is evidence that the collectivist nature of East Asian cultures versus individualistic Western cultures affects both brain and behavior. East Asians tend to process information in a global manner whereas Westerners tend to focus on individual objects. There are differences between East Asians and Westerners with respect to attention, categorization, and reasoning. For example, in one study, after viewing pictures of fish swimming, Japanese volunteers were more likely to remember contextual details of the image than were American volunteers. Experiments tracking participants eye movements revealed that Westerners spend more time looking at focal objects while Chinese volunteers look more at the background. In addition, our culture may play a role in the way we process facial information. Research has indicated that when viewing faces, East Asians focus on the central region of faces while Westerners look more broadly, focusing on both the eyes and mouth.

Examining changes in cognitive processes — how we think — over time can provide information about the aging process as well as any culture-related changes that may occur. When it comes to free recall, working memory, and processing speed, aging has a greater impact than does culture — the decline in these functions is a result of aging and not cultural experience. Park and Huang note that, “with age, both cultures would move towards a more balanced representation of self and others, leading Westerners to become less oriented to self and East Asians to conceivably become more self-focused.”

While numerous studies suggest that culture may affect neural function, there is also limited evidence for the effect of cultural experiences on brain structure. A recent study conducted by Park and Michael Chee of Duke/National University of Singapore showed evidence for thicker frontal cortex areas involved in reasoning in Westerners compared to East Asians, whereas East Asians had thicker cortex in perceptual areas. Park and Huang observe that using neuroimaging to study the impact of culture on neuroanatomy faces many challenges. They write, “The data are collected from two groups of participants who typically differ in many systematic ways besides their cultural values, rendering interpretation of any differences found quite difficult.”

via Culture wires the brain: A cognitive neuroscience perspective.

Posted in Neuroscience | 1 Comment

Map: Where Americans Are Moving – Forbes.com

More than 10 million Americans moved from one county to another during 2008. The map below visualizes those moves. Click on any county to see comings and goings: black lines indicate net inward movement, red lines net outward movement.

via Map: Where Americans Are Moving – Forbes.com.

This is a really interesting visualization showing from where to where people are moving around the country, based on IRS data.

Posted in Visualization | Leave a comment

Mouse-drawing boxes in gwt-phys2d; Google Code repository

I’ve added in support for drawing your own boxes (as many as you want!) into gwt-phys2d. It’s fun to try to do things like create a long see-saw shape and try to balance boxes on both sides. Check it out: http://gwt-phys2d.appspot.com/

If you try drawing enough boxes, you’ll find that performance doesn’t scale all too well (or at least it doesn’t on my netbook). I watched memory in the task manager and saw it repeatedly spike and fall back down, suggesting that it’s definitely the garbage collector which is eating up much of the time. I still haven’t had a chance to rewrite the phys2d code to stop creating so many new objects (esp. collision Arbiters) every frame, but I imagine that’ll improve performance considerably.

I’ve also created a Google Code and subversion repository for the project:  http://code.google.com/p/gwt-phys2d/

If you’re interested in contributing let me know, and I’ll be happy to add you. Here’s a screen capture of the current version:

Posted in Uncategorized, gwt-phys2d | Tagged | 7 Comments