Scientists at Stanford University have shown an open-source digital camera that promises to give programmers around the world the chance to create software that will teach cameras new tricks.