Upgrade to Pro — share decks privately, control downloads, hide ads and more …

openCVで顔をごにょごにょする#TechLunch

 openCVで顔をごにょごにょする#TechLunch

openCVで顔をごにょごにょする
2013/02/26 (水) 12:00-13:00 @ Livesense TechLunch
発表者:植村 健太

Livesense Inc.

April 21, 2014
Tweet

More Decks by Livesense Inc.

Other Decks in Technology

Transcript

  1. Կ͕ग़དྷΔʁ ը૾ॲཧ (Image Processing) ߏ଄ղੳ (Structural Analysis) Ϟʔγϣϯղੳͱ෺ମ௥੻ (Motion Analysis

    and Object Tracking) ύλʔϯೝࣝ (Pattern Recognition) ΧϝϥΩϟϦϒϨʔγϣϯͱ3࣍ݩ࠶ߏ੒ (Camera Calibration and 3D Reconstruction) ػցֶश ϢʔβΠϯλϑΣʔε 14೥2݄26೔ਫ༵೔
  2. void testApp::draw(){ ofSetColor(255,255,255); vidGrabber.draw(0,0); gray.draw(CAM_WIDTH, 0, CAM_WIDTH, CAM_HEIGHT); //ofNoFill(); ofSetColor(255,

    255, 0); int numFace = finder.blobs.size(); float x[numFace], y[numFace], w[numFace], h[numFace]; for(int i = 0; i < numFace; i++) { ofRect( finder.blobs[i].boundingRect ); } } 14೥2݄26೔ਫ༵೔
  3. PGY#PYEͬ͘͟Γ ʮ෺ཧΤϯδϯʯ ॏྗ΍িಥɺຎࡲͱ͍ͬͨ෺ཧܭࢉΛෳࡶͳܭࢉΛ͢Δ͜ͱͳ͘ར༻Ͱ͖Δ //Box2Dॳظઃఆ box2d.init(); //Box2DͷੈքΛॳظԽ box2d.setGravity(xํ޲΁ͷॏྗ, yํ޲΁ͷॏྗ); box2d.createBounds(0, 0,ɹը໘ͷ෯,ɹը໘ͷߴ͞);

    //ը໘ΛนͰғΉ box2d.setFPS(30); //30fpsͰදࣔ box2d.checkBounds(true); Person yuji; yuji.setPhysics(ॏ͞,൓ൃྗ,ຎࡲྗ); yuji.setup(box2d.getWorld(), x࠲ඪ, y࠲ඪ (, r)); yuji.draw(); #include "ofxBox2d.h" ofxBox2d box2d; vector <ofxBox2dCircle> Person;ɹ//ಈత഑ྻΛ࢖༻͢ΔɻϜμͳϝϞϦফඅΛ๷͙ ઃఆྫϔομϑΝΠϧଆ ઃఆྫιʔεϑΝΠϧଆ ϝϞɿϓϩάϥϜಈ͔͢ 14೥2݄26೔ਫ༵೔