Skip to content

Python Photo's library has a photo with video and still take screenshots. Supports Python 3.8 to Python 3.12. You need to install Pillow, opencv-python, pyscreenshot, pyautogui, Numpy

License

Notifications You must be signed in to change notification settings

istoriya-islama/PythonPhoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonPhoto

Python License

PythonPhoto is a Python library for capturing screenshots, processing images, and basic video tasks. It supports Python 3.8–3.12 and provides an easy way to work with images and video from your desktop.


Features

  • Open and edit images
  • Crop, resize, blur, sharpen, and rotate images
  • Add text and counters to images
  • Convert image formats (JPG <-> PNG)
  • Black & White and edge enhancement filters
  • Capture full screen or selected region screenshots
  • Video recording
  • Remove image backgrounds

Installation

git clone https://github.com/istoriya-islama/PythonPhoto.git
cd PythonPhoto
pip install -r requirements.txt

Usage Examples

1. Image Operations

from photo import photographs

# Open image
foto = photographs.imageOpen("image.jpeg")

# Crop image
photographs.imageCrop("image.jpeg", 0, 0, 100, 200, "imageCrop.jpg")

# Add text
photographs.imageFont("image.jpeg", "PythonPhoto", "arial.ttf", 15, "imagefont.jpg")

# Blur
photographs.imageBlur("image.jpeg", "imageBlur.jpg")

# Convert JPG to PNG
photographs.imageJpgInPng("image.jpeg", "imageJpgInPng.png")

Image examples


2. Screenshots

from photo import screenshotImage

# Full screen screenshot
screenshotImage.screenshotalle("screenshot.png")

# Screenshot selected size
screenshotImage.screenshotSize("PythonPhoto.png", 720, 720, 1280, 820)

Screenshot examples


3. Video

from photo import video

# Record video
video.video("PythonPhoto", 720, 720, 30.0, 'w')

Video example


4. Remove Background

from photo import remove

# Remove background
inp = remove.fotoRemove("input.jpeg")
inp.save("out.png")

Remove background example


Requirements

  • Python 3.8–3.12
  • Pillow
  • OpenCV (opencv-python)
  • PyAutoGUI
  • PyScreenshot
  • NumPy

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
You are free to use, modify, and distribute this library under the terms of the license.

For more details, see the GNU GPL v3.0.

About

Python Photo's library has a photo with video and still take screenshots. Supports Python 3.8 to Python 3.12. You need to install Pillow, opencv-python, pyscreenshot, pyautogui, Numpy

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages