Saravanan666/pypi-org huggingface dataset:
Package: photonpy
A C++/CUDA toolbox with python bindings for doing single molecule microscopy image processing.Features include:Super fast spot detection and extraction on tiff files (~1k frames/s on my dell xps laptop)Max-Likelihood fitting of various 2D Gaussian models(XY with or without fixed sigma, 3D using astigmatism)SIMFLUX (https://www.nature.com/articles/s41592-019-0657-7)Easy rendering of results: Piccaso Render compatible HDF5 export (https://github.com/jungmannlab/picasso)Phasor-based SMLM (https://aip.scitation.org/doi/full/10.1063/1.5005899)A C++ templated approach to quickly implement new PSF models as long as the first derivative can be computed.Drift correction in 2D and 3DLocalization using cubic spline PSFs fromhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC6009849/Currently compiled for CUDA 11.2 for Windows 10Credits to Willem Melching (@pd0wm) for general debugging and implementation of astigmatic Gaussian PSF models, as well as yet unpublished code.
Package: photons-interactor
DeprecatedThis project has been deprecated in favour ofhttps://photons.delfick.com/apps/interactor/index.htmlPhotons InteractorAPhotonspowered server for
interacting with LIFX lights over the lan.The server allows us to do continuous discovery and information gathering so that
all commands are super fast.You can find documentation athttps://photons-interactor.readthedocs.ioInstallation and useMake sure you have a version of python greater than python3.6 and do:$ python -m venv .interactor
$ source .interactor/bin/activate
$ pip install photons-interactor
$ photons-interactor serve
# go to http://localhost:6100Running from a docker containerIf you’re not on a mac and want to run via a docker container, you can say:$ docker run --name=photons \
    --detach \
    --restart=always \
    --net=host \
    -e TZ=Australia/Melbourne \
    delfick/photons-interactor:0.6.2ReplaceAustralia/Melbournewith the correctTZ database namefor your timezone.If you want custom options then I suggest having a folder that looks like:custominteractor/
    interactor.yml
    DockerfileWhere the docker file says:FROM delfick/photons-interactor:0.6.2
ADD interactor.yml /project/interactor.ymlThen run:$ cd custominteractor
$ docker build . -t custominteractor

# Run the docker command mentioned above but say "custominteractor"
# instead of "delfick/photons-interactor:0.6.2"Also, with many thanks to @Djelibeybi this docker image will work on many
architectures, including a Raspberry Pi!Running from the codeYou can find the code athttps://github.com/delfick/photons-interactorOnce you’ve checked it out you can start the server by installing python3.6 or
above and running:$ pip3 install venvstarter
$ ./interact serverYou can also find a handy script for running commands against the server in
this repository calledcommand.For example:$ ./command query '{"pkt_type": "GetColor"}'
{
    "results": {
        "d073d5001337": {
            "payload": {
                "brightness": 1.0,
                "hue": 0.0,
                "kelvin": 3500,
                "label": "",
                "power": 65535,
                "saturation": 0.0
            },
            "pkt_name": "LightState",
            "pkt_type": 107
        }
    }
}The LicenseThis work is licensed under NonCommercial-ShareAlike 4.0 International
(CC BY-NC-SA 4.0). The ‘LIFX Colour Wheel’ patented design as intellectual
property is used in this repository.LIFX has granted permission to use the ‘LIFX Colour Wheel’ design conditional
on use of the (CC BY-NC-SA 4.0) license.Commercial use the ‘LIFX Colour Wheel’ requires written consent from LIFX.
Submit enquiries tobusiness@lifx.comReferences:https://creativecommons.org/licenses/by-nc-sa/4.0/https://www.lifx.com/pages/legalshttps://www.lifx.com/pages/developer-terms-of-use
Package: photontorch
PhotontorchPhotontorch is a photonic simulator for highly parallel simulation and
optimization of photonic circuits in time and frequency domain.
Photontorch features CUDA enabled simulation and optimization of
photonic circuits. It leverages the deep learning framework PyTorch to
view the photonic circuit as essentially a recurrent neural network.
This enables the use of native PyTorch optimizers to optimize the
(physical) parameters of the circuit.Floris Laporte [floris.laporte@ugent.be]Website:photontorch.comInstallationStable versionPhotontorch can be installed with pip:pip install photontorchDevelopment versionDuring development or to use the most recent Photontorch version,
clone the repository and link with pip:git clone https://git.photontorch.com/photontorch.git
./install-git-hooks.sh # Unix [Linux/Mac/BSD/...]
install-git-hooks.bat  # Windows
pip install -e photontorchDuring development, use pytest to run the tests from within the root
of the git-repository:pytest testsDocumentationRead the full documentation here:https://docs.photontorch.comDependenciesRequired dependenciesPython 2.7 (Linux only) or 3.6+. It's recommended to use theAnacondadistribution.pytorch>=1.5.0:conda install pytorch(seepytorch.orgfor more installation options for your CUDA version)numpy:conda install numpyscipy:conda install scipyOptional (but recommended) dependenciestqdm:conda install tqdm[progress bars]networkx:conda install networkx[network visualization]matplotlib:conda install matplotlib[visualization]pytest:conda install pytest[to run tests]pandoc:conda install pandoc[to generate docs]sphinx:pip install sphinx nbsphinx[to generate docs]torch-lfilter:pip install torch-lfilter[faster lfilter for detectors]ReferenceIf you're using Photontorch in your work or feel in any way inspired by it,
we ask you to cite us in your work:Floris Laporte, Joni Dambre, and Peter Bienstman."Highly parallel simulation
and optimization of photonic circuits in time and frequency domain based on the
deep-learning framework PyTorch."Scientific reports 9.1 (2019): 5918.Known issuesComplex tensor support. Complex tensors are not supported in
PyTorch/Photontorch. Wherever complex tensors would be applicable,
Photontorch expects a real-valued tensor with the real and imag part
stacked in the first dimension. The Photontorch issue can be
followedhereand
the PyTorch issuehere.Sparse tensor support. A lot of memory usage can probably be avoided
when transitioning to a sparse tensor representation for the connection matrices and
scatter matrices. The Photontorch issue can be followedhereLicensePhotontorch used to be available under a custom Academic License, but Since October
2020, Photontorch is now fully open source and available under theAGPLv3.Copyright © 2020, Floris Laporte - UGent -AGPLv3
Package: photo-org
Image SorterOver the past year's, I've ended up with a collection of images scattered around a few folders in my file system.
This became a problem when I wanted to start organising these photos which could have similar names due to the way the
cameras format the image names when it captures a photo. This could overwrite images if I were to copy the images to
one folder.An image sorting function that can be used to consolidate photos to a specific folder format <year/month/day_of_month>.
This also preserves the name of the image that the image was given.This uses the EXIF data found in the file and if the EXIF data is not available then it will revert to the created date.Command to callFind and move all images in a folderphoto_sorter -f <folder> -o <outputfolder>Find and move all images in a folder and its sub foldersphoto_sorter -f <folder> -o <outputfolder> -rFile types supported:jpeg
Package: photopea
PhotopeaPhotoandVideoConvertor.InstructionsInstall:pip install photopeaAge and Gender determination:fromphotopeaimportgetfacefromgetfaceimportpredict_age_and_gender# Input photo filephoto="/home/uzbpromax/Pictures/photo.png"# Output photo fileoutput="/home/uzbpromax/Pictures/output.png"# Check Age and Genderr=predict_age_and_gender(photo,output)
Package: photopipe
PhotoPipe is a pipeline for automated reduction, photometry and
astrometry, written in Python (2.7), and designed to process imaging
data from the following instruments:RATIR: the Reionization and Transients Infrared/Optical Project.RIMAS: the Rapid infrared IMAger Spectrometer.This project is based on the previous versions of the pipeline bycenkoandvickitoy.Built at the NASA Goddard Space Flight Center, in collaboration with
the University of Maryland.Full DocumentationSee theWikifor full documentation, examples, operational details
and other information.PrerequisitesThe pipeline can be installed with very little additional software.
However, depending on the installation, different libraries and software
may be required. Please see theInstallationsection below, and the
dedicatedwiki pagefor a full list of prerequisites.InstallationThe easiest way to get up and running with the pipeline is to download
the ready-to-usevirtual machinebox and run it with Vagrant.Alternatively, it can be installed on Linux or macOS either withpip, or with the provided installation scripts.WARNING:compiling the dependencies can take more than 6
hours.1) Download a pre-configured Virtual Machine (PhotoPipe-VM)Please refer to the virtual machinerepository.2) Install on your machine from PyPI or gitRunsudo-Hpip install photopipeto install the latest stable
version fromPyPI.Or, clone fromgit:$ git clone git@github.com:maxperry/photometrypipeline.git  $ cd photometrypipeline  $ sudo python setup.py installNOTE (macOS): If the installation fails withsudo: port: command not foundmake sure thatMacPortsis
installed and/opt/local/binis in the $PATH (e.g.exportPATH=/opt/local/bin:/opt/local/sbin:$PATH).3) Manual InstallationIf you to run the pipeline from the Python enviroment rather than using
thephotopipecommand as described in theUsagesection, please
follow the step by step instructions in the wiki pages below to install
all the dependencies manually.Instructions for macOSInstructions for Linux-DebianUsageView README onGitHub.Bugs and FeedbackFor bugs, questions and discussions please use theGithub Issues.LicenseThis project is licensed under the GNU GPLv3 License - see theLICENSEfile for details.
Package: photorectify
PhoToRectifyNotice:Only tested forHasselblad L1D-20candPentax K-1 with HD Pentax-D FA 28-105mm f/3.5-5.6 ED DC WR.Undistort images with theLensfunlibrary andOpenCV.
Multiprocessing is supported to speed up the rectification.Allowed input file formats: BMP, JPEG, JPEG 2000, PNG, PIF, SUN RASTERS, TIFFOutput file formats: JPEG, TIFFCurrently supported and used compressions:JPEG with Quality 97TIFF with JPEG-CompressionCustom meta data (optional arguments, use quotes if they contain spaces)InstallationInstallation into a virtual environment is recommended,
because PhoToRectify depends on some other packages.Install with:pip install photorectifyUpdate with:pip install --upgrade photorectifyRequirementsPython 3.7+exiftool 10.38+ (older versions not tested; install it with your distribution’s package manager)PyExifToolhas been modified and is shipped with photorectify’s source code (removed-noptional argument for proper lens detection with Lensfun + added methodcopy_tags())For development:poetry(do not skip the installation of the development dependencies!)Alternative remapping method for undistort()Instead of using Pillow, you can also use OpenCV for remapping.self.img_bgr_undist = lensfunpy.util.remap(
    self.img_blob_bgr,
    undistorted_coords)ExamplesRectify one photo in a directory (rectifed photo are stored in the same directory as the input file):photorectify Sampledata/DJI_0051.JPGRectify all photos in a directory:photorectify Sampledata/Rectify into a custom output directory:photorectify Sampledata/ -o Sampledata/RectifiedAppend custom suffix to rectified photos (automatically adds an underscore):photorectify Sampledata/ -s rectSpecify meta data if photo hasn’t any EXIF tags:photorectify Sampledata/DJI_0051.JPG \
    --model L1D-20c \
    --make Hasselblad \
    --FLength 10.26 \
    --FNumber 4.5Get version:photorectify --versionDevelopmentMore cameras and lenses can be supported by
adding them tolensfun-db.xml.
See theLensfun database.Running tests:poetry run pytest -q tests/test_rectification.pyContributionTo help improving this python package,
open an issue or create a merge request.
Package: photoREPL
photoREPLis an experimental UI build around therawkit(docs) raw photo
editing library for Python.photoREPL drops you at a Python prompt, with a few custom functions and a copy
of rawkit imported, and spawns a preview window for any photos you edit. As you
make changes to your photos, the image in the preview window is updated to
reflect those changes, giving you near real time editing directly from Python
without a lot of extra update calls!To run try:make runor run it directly:python -i -m photorepl [some_raw_photos]you can also install it via pip:pip install photorepl
Package: photoResizer
Image resizerResize images with face centering and cropping, export images into a directory.InstallationWithout face detectionWith pip, from sources$python3-mpip--userinstallgit+https://gitlab.com/frague59/resize.gitWith pip, from PyPi$python3-mpip--userinstallphotoResizerWith pipx$pipxinstallphotoResizerWith face detection (opencv)With pip$python3-mpip--userinstallphotoResizer[opencv]With pipx$pipxinstallphotoResizer[opencv]Usage$photoResizer--help
Usage:python-mphotoResizer[OPTIONS]IMAGES...OUTPUT_DIRResizeimagestoagivenwidthandheight.

Options:--version-W,--widthINTEGERWidthoftheoutputimage,default:600.-H,--heightINTEGERHeightoftheoutputimage,default:800.-Q,--qualityINTEGERQualityoftheoutputimage(JPEGoutput,default:90).-f,--format[jpeg|png|tiff|webp]Typeoftheoutputimage,default:jpeg.-p,--multiprocessingUsemultiprocessingforimageresizing,default:False.-F,--face-detectionUsefacedetectionforimageresizing(OpenCVrequired,default:False).--helpShowthismessageandexit.IMAGEScan be a list of image paths or a directory. In case of a directory, the pattern*.[Jj][Pp][Ee]?[Gg]is applied to the files.
Package: photoscanner
PhotoScannerA simple tool to digitalize printed photos using a greenscreen and a DSLR.InstallThere are two ways to install the tool.PipRunpip install photoscanner --userto download and install.From sourceInstall the poetry package manager and run the following commands.git clone git@github.com:Flova/PhotoScanner.git
cd PhotoScanner
poetry installUsageTo start the PhotoScanner runphotoscanner -h.If you installed PhotoScanner from source runpoetry run photoscanner -h.SetupThe setup should roughly look like this:A even lighting without reflections on the glossy surface of the photo results in the best quality. The printed image should be captured from the top on a green background.
Package: photoshop-connection
Python package to remotely executeExtendScriptin Adobe Photoshop.PrerequisitesPhotoshop must be configured to accept remote connection.Open the plug-ins dialog from thePreferences>Plug-ins…menu in
Photoshop, and checkEnable Remote Connectionsoption. Enter password to the
given field, and clickOKbutton and restart Photoshop.Photoshop must be launched and running for the package to work.Installpipinstallphotoshop-connectionUsageExample:fromphotoshopimportPhotoshopConnectionwithPhotoshopConnection(password='secret')asconn:conn.execute('alert("hello")')jpeg_binary=conn.get_document_thumbnail()Check outdocumentationfor details.
Package: photoshop-object-model
This package is designed to provide autocompletion, access to docstrings, and accurate type hints in your preferred IDE.All classes have been written based on Photoshop's VBS documentation, which can be found athttps://github.com/Adobe-CEP/CEP-Resources/blob/master/Documentation/Product%20specific%20Documentation/Photoshop%20Scripting/photoshop-vbs-ref-2020.pdf.
As such, the code you'll find here isn't very pythonic, because it is based on the Visual Basic syntax.
Please note that this package may contain inconsistencies, missing return types, and typos. Unfortunately, most of these issues stem from faithfully transcribing Adobes's flawed documentation.
Package: photoshop-object-model-session
This package is designed to interact with Photoshop using its Component Object Model using python.
the class PhotoshopSession be used as a context, who handles errors while providing autocompletion, access to docstrings, and accurate type hints in your preferred IDE.Usage :
'''python
from photoshop_object_model_session import PhotoshopSessionwith PhotoshopSession() as ps:
print(ps.Application.Version)
new_layer = ps.Application.ActiveDocument.ArtLayers.Add()
new_layer.Name = "Hello World"
'''All classes have been written based on Photoshop's VBS documentation, which can be found athttps://github.com/Adobe-CEP/CEP-Resources/blob/master/Documentation/Product%20specific%20Documentation/Photoshop%20Scripting/photoshop-vbs-ref-2020.pdf.
As such, the code you'll find here isn't very pythonic, because it is based on the Visual Basic syntax.
Please note that this package may contain inconsistencies, missing return types, and typos. Unfortunately, most of these issues stem from faithfully transcribing Adobes's flawed documentation.
Package: photoshow
Another python photo slideshow module. This one was originally designed to run on a spare Raspberry Pi I had available.
With a copy of our photo library on a mounted USB stick,
the Raspberry Pi was plugged into one of the spare HDMI sockets the back of the main family TV, photoshow running continuously.
During the ads or while waiting for a programme to start, we can flick the TV source and get a few random photos to reminisce for a moment or two.That’s how this slideshow module came to be, but it can show any photos. Just point it at a folder and it can slideshow all the photos under it.The slideshow uses the tkinter fullscreen option. To fill the display space nicely, as images have differing ratios,
a white saturated abstract image is first created from the photo.
This fills the background, with the main photo placed front and centre.
An optional caption can be added based on the Exif data, filename, or folder name to complete each slide.View the documentation for options and examples
Package: photo-slideshow
Photo SlideShowOverviewDescriptionMain featuresInstallationUsagePossible errorsAboutDescriptionIt's simple and easy tool to make a slideshow on your computer with your photos.Main features:Read all photos / images from current directory and from all subdirectoriesPossibility to choose what file types should be presentedFullscreen optionPossibility to run the slideshow in a random orderIt's python based so it should run everywhere where python is presentInstallationThe fastest and easiest way is to install it viapip.pipis a command line program provided withpython.pip install photo-slideshowInstalling from the source. Download this project. Unpack it. Go to the folder with source files. Open the main folder. Execute that command:pip3 install .UsageRun the application with command:photo-slideshowApplication window will show up.Browse the folder where your pictures are stored. In the settings you may configure:background color if the picture doesn't fit to your screenthe time for showing current picture before switching to next oneturn on/off random orderselect file types to be readSelect the fullscreen checkbox if you want that mode and push the start button. If you want to stop, simply push the stop button. In the fullscreen mode, push the  button.Possible errorsIf you get error:ModuleNotFoundError: No module named 'tkinter'It tells that you have to install pythong GUI framework (Tcl/Tk). Depends on the operating systems the instruction may differ, for example:In windows openpython installer -> modify -> select tcl/tk and IDLE, go next and finalize installation.Ubuntu / debian:sudo apt-get install python3-tkFedora:sudo dnf install python3-tkinterCentOS:sudo yum install python3-tkinterMacOS:brew install python-tk@3.10For other, just check hot to install.When tkinter is installed you can run photo-slideshow.LicenseMIT License.AboutAuthor: Mateusz Poślednik. Experienced data engineer, but also photographer. I was missing an easy, light software to make a slideshow on my photos. Most of the applications can make the slideshow only for current directory, but my photos are organized in many subdirectories.My other projects:https://github.com/matiposandhttps://github.com/matipos2Contact:https://matpos.pythonanywhere.com/
Package: photoslocator
photos_locatorphotos_locatoris a simple tool to rename your photos using datetime and gps metadata. Given a folder, it scrolls through all the photos and if they contain GPS metadata it renames them using the datetime and position in which they were taken. In detail:If the photo contains date and time of shooting and place, rename it inYYYY-MM-DDThh:mm:ss-locationIf the photo contains only the date, rename it toYYYY-MM-DDThh:mm:ss-original nameIf the photo does not contain the date, do not rename itInstallationRun:$pipinstallphotoslocatorto install application with pip. If you want to install photos_locator from sources, after you have downloaded it,
position yourself in the project root and install requirments using:$pip3install-rrequirements.txtUsage$photoslocator<path_to_photos_directory>
Package: photosorter
PhotoSorter is a small script in Python and Python 3 which can organize your photos. For example we have some directory:last_summer/
    IMG_0001.jpg
    IMG_0002.jpg
cafe/
    IMG_0042.jpg
Camera_2015-01-01-19-30.jpgScript will read EXIF data from all images or file creation date(if no EXIF provided) and move them into human readable directory strucure:Year/Year_Month/Year_Month_Day/. For example:2014/
    2014_08/
        2014_08_16/
            IMG_0001.jpg
            IMG_0002.jpg
        2014_08_20/
            IMG_0042.jpg
2015/
    2015_01/
        2015_01_01/
            Camera_2015-01-01-19-30.jpgIf names of files are identical script will not overwrite them. File will be renamed fromfilename.jpgtofilename(1).jpg.InstallingFor first you must installlibjpeg-devto enable .JPEG file support for Pillow. In Debian/Ubuntu just type:sudo apt-get install libjpeg-devFor RPM based distros it would be:sudo yum install libjpeg-turbo-develInstalling appRun in your console:pip install photosorterManual installingSavephotosorter.pyfrom GIT repository and install required python libs. For Debian/Ubuntu:sudo apt-get install python-six python-pilalso you can install them from pypi.RuningRun:photosorter –helpto see script paramsContributeWelcome tohttps://github.com/iamtio/photosorter