SHARE
TWEET

piano

pabloducato Dec 1st, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kamera_start %vid
  2. klaw = PrzygotujKlawiature();
  3. skala = WyliczSkale(vid, klaw);
  4. tlo = PobierzTlo(vid, skala);
  5. % probka_koloru = PobierzObrazModeluKoloru(vid);
  6. % wzorzec_koloru = GenerujModel(probka_koloru);
  7. for i=1:300
  8.     obraz = PobierzBiezacyObraz(vid);
  9.     obraz = imresize(obraz, skala);
  10.     obr_klaw = NalozKlawiature(obraz, klaw, 1);
  11.     figure(2);
  12.     imshow(obr_klaw);
  13.     szer_wsk = -1;
  14.     dzwiek = ZnajdzKlawisz13tlo(obraz, tlo, szer_wsk)
  15.     if strcmp(dzwiek, '   ')~=1
  16.         Graj(dzwiek, 0.5)
  17.     end
  18. end
  19. kamera_stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top