91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 96KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-09
  • 語言: 其他
  • 標簽: 樹莓派??

資源簡介

樹莓派攝像頭資料和例程。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

資源截圖

代碼片段和文件信息

#?Point-and-shoot?camera?for?Raspberry?Pi?w/camera?and?Adafruit?PiTFT.
#?This?must?run?as?root?(sudo?python?cam.py)?due?to?framebuffer?etc.
#
#?Adafruit?invests?time?and?resources?providing?this?open?source?code?
#?please?support?Adafruit?and?open-source?development?by?purchasing?
#?products?from?Adafruit?thanks!
#
#?http://www.adafruit.com/products/998??(Raspberry?Pi?Model?B)
#?http://www.adafruit.com/products/1367?(Raspberry?Pi?Camera?Board)
#?http://www.adafruit.com/products/1601?(PiTFT?Mini?Kit)
#?This?can?also?work?with?the?Model?A?board?and/or?the?Pi?NoIR?camera.
#
#?Prerequisite?tutorials:?aside?from?the?basic?Raspbian?setup?and
#?enabling?the?camera?in?raspi-config?you?should?configure?WiFi?(if
#?using?wireless?with?the?Dropbox?upload?feature)?and?read?these:
#?PiTFT?setup?(the?tactile?switch?buttons?are?not?required?for?this
#?project?but?can?be?installed?if?you?want?them?for?other?things):
#?http://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi
#?Dropbox?setup?(if?using?the?Dropbox?upload?feature):
#?http://raspi.tv/2013/how-to-use-dropbox-with-raspberry-pi
#
#?Written?by?Phil?Burgess?/?Paint?Your?Dragon?for?Adafruit?Industries.
#?BSD?license?all?text?above?must?be?included?in?any?redistribution.

import?atexit
import?cPickle?as?pickle
import?errno
import?fnmatch
import?io
import?os
import?picamera
import?pygame
import?stat
import?threading
import?time
import?yuv2rgb
from?pygame.locals?import?*
from?subprocess?import?call??


#?UI?classes?---------------------------------------------------------------

#?Small?resistive?touchscreen?is?best?suited?to?simple?tap?interactions.
#?Importing?a?big?widget?library?seemed?a?bit?overkill.??Instead?a?couple
#?of?rudimentary?classes?are?sufficient?for?the?UI?elements:

#?Icon?is?a?very?simple?bitmap?class?just?associates?a?name?and?a?pygame
#?image?(PNG?loaded?from?icons?directory)?for?each.
#?There?isn‘t?a?globally-declared?fixed?list?of?Icons.??Instead?the?list
#?is?populated?at?runtime?from?the?contents?of?the?‘icons‘?directory.

class?Icon:

def?__init__(self?name):
??self.name?=?name
??try:
????self.bitmap?=?pygame.image.load(iconPath?+?‘/‘?+?name?+?‘.png‘)
??except:
????pass

#?Button?is?a?simple?tappable?screen?region.??Each?has:
#??-?bounding?rect?((XYWH)?in?pixels)
#??-?optional?background?color?and/or?Icon?(or?None)?always?centered
#??-?optional?foreground?Icon?always?centered
#??-?optional?single?callback?function
#??-?optional?single?value?passed?to?callback
#?Occasionally?Buttons?are?used?as?a?convenience?for?positioning?Icons
#?but?the?taps?are?ignored.??Stacking?order?is?important;?when?Buttons
#?overlap?lowest/first?Button?in?list?takes?precedence?when?processing
#?input?and?highest/last?Button?is?drawn?atop?prior?Button(s).??This?is
#?used?for?example?to?center?an?Icon?by?creating?a?passive?Button?the
#?width?of?the?full?screen?but?with?other?buttons?left?or?right?that
#?may?take?input?precedence?(e.g.?the?Effect?label

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-07?17:44??camera\
?????文件??????????35??2015-03-06?15:28??camera\Camera
?????文件????????1301??2015-03-06?15:28??camera\LICENSE
?????文件?????????376??2015-03-06?15:28??camera\Makefile
?????文件?????????249??2015-03-06?15:28??camera\README.md
?????文件??????????64??2015-03-06?15:28??camera\cam.pkl
?????文件???????23125??2015-03-06?15:28??camera\cam.py
?????目錄???????????0??2017-07-07?17:44??camera\icons\
?????文件????????1324??2015-03-06?15:28??camera\icons\delete.png
?????文件????????1135??2015-03-06?15:28??camera\icons\done.png
?????文件????????6505??2015-03-06?15:28??camera\icons\empty.png
?????文件????????1366??2015-03-06?15:28??camera\icons\fx-blur.png
?????文件????????2023??2015-03-06?15:28??camera\icons\fx-cartoon.png
?????文件????????2438??2015-03-06?15:28??camera\icons\fx-colorswap.png
?????文件????????2076??2015-03-06?15:28??camera\icons\fx-denoise.png
?????文件????????1748??2015-03-06?15:28??camera\icons\fx-emboss.png
?????文件????????2005??2015-03-06?15:28??camera\icons\fx-film.png
?????文件????????2307??2015-03-06?15:28??camera\icons\fx-gpen.png
?????文件????????2171??2015-03-06?15:28??camera\icons\fx-hatch.png
?????文件????????2195??2015-03-06?15:28??camera\icons\fx-negative.png
?????文件????????1658??2015-03-06?15:28??camera\icons\fx-none.png
?????文件????????1921??2015-03-06?15:28??camera\icons\fx-oilpaint.png
?????文件????????1674??2015-03-06?15:28??camera\icons\fx-pastel.png
?????文件????????2026??2015-03-06?15:28??camera\icons\fx-posterise.png
?????文件????????2029??2015-03-06?15:28??camera\icons\fx-posterize.png
?????文件????????1800??2015-03-06?15:28??camera\icons\fx-sketch.png
?????文件????????1996??2015-03-06?15:28??camera\icons\fx-solarize.png
?????文件????????2270??2015-03-06?15:28??camera\icons\fx-washedout.png
?????文件????????2332??2015-03-06?15:28??camera\icons\fx-watercolor.png
?????文件?????????755??2015-03-06?15:28??camera\icons\fx.png
?????文件????????1750??2015-03-06?15:28??camera\icons\gear.png
............此處省略40個文件信息

評論

共有 條評論