pyscreenshot

ภาพหน้าจอของซอฟแวร์:
pyscreenshot
รายละเอียดซอฟแวร์:
รุ่น: 0.2.2
วันที่อัพโหลด: 15 Apr 15
ผู้พัฒนา: ponty
การอนุญาต: ฟรี
ความนิยม: 2

Rating: nan/5 (Total Votes: 0)

pyscreenshot เป็นโมดูลหลามที่สามารถใช้ในการคัดลอกเนื้อหาของหน้าจอเพื่อหน่วยความจำภาพ PIL หรือแฟ้ม & nbsp;. แทน ImageGrab โมดูลซึ่งทำงานบน Windows เท่านั้น
การใช้
ตัวอย่าง:
นำเข้า pyscreenshot เป็น ImageGrab
เต็มจอ #
im = ImageGrab.grab ()
im.show ()
ส่วนหนึ่งของหน้าจอ #
im = ImageGrab.grab (BBOX = (10,10,500,500))
im.show ()
# จะยื่น
ImageGrab.grab_to_file ('im.png')
การติดตั้ง
ทั่วไป
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; ติดตั้ง setuptools หรือจุดเล็ก ๆ
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; ติดตั้ง PIL
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; ติดตั้งอย่างน้อยหนึ่งแบ็กเอนด์
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; ติดตั้งโปรแกรม:
ถ้าคุณมีการติดตั้ง setuptools:
# เป็นราก
easy_install pyscreenshot
ถ้าคุณได้ติดตั้งจุด:
# เป็นราก
PIP ติดตั้ง pyscreenshot
อูบุนตู
# หนึ่งหรือมากกว่า
sudo apt-get install scrot
sudo apt-get install ImageMagick
sudo apt-get install หลาม gtk2
sudo apt-get ติดตั้งหลาม qt4
sudo apt-get install หลาม wxversion
# หลาม Imaging ห้องสมุด (จำเป็น)
sudo apt-get install หลามถ่ายภาพ
sudo apt-get install หลาม setuptools
sudo easy_install pyscreenshot
ถอนการติดตั้ง
# เป็นราก
ถอนการติดตั้งจุด pyscreenshot

คุณสมบัติ

  • เสื้อคลุม crossplatform
  • จับสก์ท็อปทั้ง
  • จับพื้นที่
  • ประหยัดไปยังแฟ้มหรือ PIL หน่วยความจำภาพ
  • แบ็กเอนด์บางอย่างจะขึ้นอยู่กับการอภิปราย: http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux

  • ปลั๊กอินที่ใช้ก็มีห่อสำหรับแบ็ก​​เอนด์ต่างๆ:
  • scrot
  • ImageMagick
  • PyGTK
  • PIL (เฉพาะ Windows)
  • PyQt4
  • wxPython

ต้องการ

  • หลาม

ข้อ จำกัด

  • ไม่ได้ดำเนินการ: จับหน้าต่างที่ใช้งาน
  • แบ็กเอนด์ที่แตกต่างกันสร้างภาพที่แตกต่างกันเล็กน้อยจากเดสก์ทอปเดียวกันนี้ควรได้รับการตรวจสอบ
  • ImageMagick สร้าง Blackbox ในบางระบบ
  • แบ็กเอนด์ PyGTK ไม่ได้ตรวจสอบ $ DISPLAY - & gt; ไม่ได้ทำงานกับ Xvfb
  • ช้า: 0.2s - 0.7s

ซอฟแวร์อื่น ๆ ของนักพัฒนา ponty

ความคิดเห็นที่ pyscreenshot

ความคิดเห็นที่ไม่พบ
เพิ่มความคิดเห็น
เปิดภาพ!