Wednesday, 12 September 2012

Using two web cams with Open CV


From the archive Discourse for the Processing (ALPHA) software: "I am trying to use two web cams. In theory, OpenCV allows us to address different cameras. I have two cameras in two USB ports, and Amcap can show either one. The OpenCV capture command can take three args, the last one being the camera index. However, the code below does not seem to work. I'm not sure what indexs to put in the third arg, and chose -1 only because I found this on a java thread about OpenCV." http://processing.org/discourse/beta/num_1237253804.html "It appears to me that the video library in processing currently only supports reading a stream from one camera. Am I correct or does anyone know of a way to read from multiple cameras within the processing environment? " http://www.processing.org/discourse/alpha/board_VideoCamera_action_display_num_1081365206.html from http://forum.processing.org/search/multiple%20cameras Multiple Cameras with JMyron and/or video library: http://forum.processing.org/topic/multiple-cameras-with-jmyron-and-or-video-library key-words: multiple cameras example: Re: 2 Webcams... Individual function 1 year ago I managed to take an image from both camera by mixing some of my own code with some I found from another user. import processing.video.*; Capture cam1; Capture cam2; int currX, currY; int capWidth, capHeight; boolean isCapturing; PFont font; void setup() { size(640,240); String[] devices = Capture.list(); println(devices); currX = 0; currY = 0; capWidth = 320; capHeight = 240; cam1 = new Capture(this, 320, 240, devices[0]); cam2 = new Capture(this, 320, 240, devices[1]); isCapturing = true; } void draw() { image(cam1, currX, currY); image(cam2, 320, currY); } void captureEvent(Capture c) { c.read(); } void keyPressed() { if (key == ' ') { isCapturing = !isCapturing; saveFrame("####.jpg"); } } This creates one image using a capture from both webcams when one button is pressed. Does anyone know how I could make it that each camera has an individual button, and when it is pressed it captures an image from just that webcam?

Tuesday, 11 September 2012

Macro Lens: life-size magnification of the eyes


Welcome to Live Chat at the B&H Professional Photography Department. Please wait while we connect you to an agent who will be able to assist you... You have been connected to Bruce P. Clarissa Ribeiro : I wanna buy macro lens to use with a canon eos 7d to make video of extreme close up of the eye's pupil. Clarissa Ribeiro: I wanna know of this one I found is a good option: Clarissa Ribeiro: http://www.bhphotovideo.com/c/product/341925-USA/Sigma_346101_50mm_f_2_8_EX_DG.html Bruce P: Hello Clarissa Ribeiro. My name is Bruce, and I will be glad to assist you. Please give me a few moments to begin working on your inquiry. Clarissa Ribeiro: Hi Bruce! Clarissa Ribeiro: ok Bruce P: Yes, Clarissa. the Sigma lens will work for you. You can move the lens in as close as 7.4" to get that kind of closeup. Clarissa Ribeiro: Thanks Bruce! Bruce P: Thank you and have a great day. Clarissa Ribeiro: a great day for you too! Your session has ended. Your session has ended. You may now close this window.
http://www.bhphotovideo.com/c/product/341925-USA/Sigma_346101_50mm_f_2_8_EX_DG.html Welcome to Live Chat at the B&H Professional Photography Department. Please wait while we connect you to an agent who will be able to assist you... All agents are currently busy. Please stand by. You have been connected to Manzell L. Clarissa Ribeiro : I wanna buy macro lens to use with a canon eos 7d to make video of extreme close up of the eye's pupil. I wanna know if this one I found is a good option: Canon Lens Macro Autofocus USM f/2.8 100mm Manzell L: Hello Clarissa Ribeiro. My name is Manzell, and I will be glad to assist you. Please give me a few moments to begin working on your inquiry. Manzell L: Yes, the Canon 100mm f/2.8 EF USM Autofocus Macro Lens would be recommended for 1:1 life-size magnification of items, including eyes. Manzell L: Is there anything else I can assist you with today, Clarissa Ribeiro? Manzell L: I apologize, but in order to effectively serve all of our awaiting Live Chat clients, I will have to terminate this Live Chat session. If you require more assistance, you can log back into the Live Chat service, or you can send an e-mail to prophoto@bhphotovideo.com and we will assist you. If you need to view our Live Chat hours, you can view the link I am sending you below. Thank you for shopping at B&H Photo. Have a nice day. http://www.bhphotovideo.com/FrameWork/liveChatOff.html Your session has ended. Your session has ended. You may now close this window. http://www.bhphotovideo.com/c/product/194451-USA/Canon_4657A006_100mm_f_2_8_USM_Macro.html

Wednesday, 8 August 2012

quantum computer + entanglement

What is a quantum computer? http://curiosity.discovery.com/question/what-is-a-quantum-computer "A quantum computer, however, computes on an atom and not silicone -- in theory, as we're still a long way from seeing an actual quantum computer. The idea is that a quantum computer creates a quantum state in which quantum bits, or qubits, can exist." How is quantum entanglement useful in computing? http://curiosity.discovery.com/question/quantum-entanglement-useful-computing "...quantum particles cannot be observed without being altered -- so how do you read the value of a qubit without changing it? Scientists use their knowledge of entanglement to indirectly observe the value of a qubit. When two subatomic particles become entangled, one particle adopts the properties of the other. Without looking at the qubit itself, scientists can read its value by observing the behavior of a particle with which it is entangled."

Sunday, 25 March 2012

Language and Affect

http://pacific.socsci.uva.nl/besnier/pub/Language_and_Affect.pdf

Language and Affect
a article by Niko Besnier, Yale University, around the role of affect in language.

Wednesday, 21 March 2012

polygraph and


Voight Kampff Machine
from: http://thecreatorsproject.com/pt-br/blog/um-breve-passeio-pelos-bastidores-de-blade-runner

http://en.wikipedia.org/wiki/Polygraph

A polygraph (popularly referred to as a lie detector) measures and records several physiological indices such as blood pressure, pulse, respiration, and skin conductivity while the subject is asked and answers a series of questions. The belief is that deceptive answers will produce physiological responses that can be differentiated from those associated with non-deceptive answers.
The polygraph was invented in 1921 by John Augustus Larson, a medical student at the University of California at Berkeley and a police officer of the Berkeley Police Department in Berkeley, California.[1] According to Encyclopædia Britannica, the polygraph was on its 2003 list of greatest inventions, described by the company as inventions that "have had profound effects on human life for better or worse."[2]
Many members of the scientific community consider polygraphy to be pseudoscience.[3] Nonetheless, in some countries polygraphs are used as an interrogation tool with criminal suspects or candidates for sensitive public or private sector employment. US federal government agencies such as the FBI and the CIA and many police departments such as the LAPD use polygraph examinations to interrogate suspects and screen new employees. Within the US federal government, a polygraph examination is also referred to as a psychophysiological detection of deception (PDD) examination.


Sunday, 26 February 2012

MIT quantum

http://web.mit.edu/newsoffice/2008/quantum-detect-0911.html

"The new findings, being reported this week in the journal Science, are purely theoretical, but Lloyd says that laboratory experiments have already proven the feasibility of both the light sources and the detectors needed for such a quantum-based photodetection system, so he anticipates that within a year it should be possible to build a laboratory-scale system to demonstrate the new concept.

"It should be possible to have at least a proof-of-principle demonstration within six months to a year," Lloyd said.

For example, military applications could include improved night-vision systems, which send out beams of infrared light--invisible to the naked eye--to sweep across a scene, and then use an infrared detector to reconstruct an image from the light that is reflected back. A more efficient system, using the quantum-entanglement effect, would make it much more difficult for an adversary to detect the fact that such a system was being used, because there would be so much less infrared light needed to provide the illumination."


http://www.scientificamerican.com/article.cfm?id=human-eyes-entanglement
Spooky Eyes: Using Human Volunteers to Witness Quantum Entanglement
Quantum physicists have a novel plan for an experiment that uses the human eye to detect "spooky action at a distance"

love-in-idleness

Discussing the paper 'Love-in-idleness' for the CR Greece with Milena Szafir and Ralf Flores. And here a list of shared references...

Andy warhol's experimental film



Andy Warhol's original Screen Tests were originally filmed from early 1964 - November 1966 (GM25). Factory visitors who had potential "star" quality would be seated in front of a tripod mounted camera, asked to be as still as possible, and told not to blink while the camera was running. These film portraits were some of the earliest examples of Warhol's Screen Test series. It is interesting to note that they were filmed in Edey's apartment prior to Warhol's move to the silver Factory where most, but not all, of the other Screen Tests were made. More than 500 Screen Tests were made. In addition to The 13 Most Beautiful Boys, some of the footage was incorporated into other compilation reels such as The 13 Most Beautiful Women (1964) and 50 Fantastics and 50 Personalities (1964). Malanga also used some reels in his multimedia poetry readings called Screen Test Poems in 1965. In 1966 Andy and Gerard also prepared a book together of Screen Test stills from 54 subjects (17 women and 37 men) and Gerard's poetry called Screen Tests/A Diary (NY: Kulchur Press, 1967).


Based on the Voight-Kampff empathy test which tests whether someone is a human or a replicant in "Do Androids Dream of Electric Sheep?" by Philip K Dick

a polygraph-like machine used in the film Blade Runner (re-creation in SL)


Eye Tracking in Video Game Player Experience

Researchers at the Blekinge Institute of Technology conducted an eye tracking experiment on players’ experience with Half Life 2. A specially modified Half Life 2 game was built using the game’s software development kit to correspond with the players’ eye tracking gaze. In the experiment, players do not completely control the game through eye tracking. Instead, a keyboard controls each player’s movement and eye tracking is used to control the first person camera view. The researchers measured the players’ ability to navigate through the game environment using gaze as a steering method. To help contrast the differences, players were allowed to switch between gaze and mouse navigation.