Saravanan666/pypi-org huggingface dataset:
Package: pyimageexport
PyImageExportPackage to convert various formats of raster graphics images in a single line of code.A good alternative for image conversion, saving in databases, or image transmission.From main image formats (like PNG and JPEG), to Base64 and BLOB.FormatsFully supported formats:Base64BLOBBPMEPSGIFIMJPEGPNGPPMSGITIFFWEBPExamplesImport and Instance the classimport PyImageExport
img = PyImageExport()Convert PNG image to Base64image = img.export(input_image="./tests/image.png", input_format="png", output_format="base64")Convert JPEG image to BLOBimage = img.export(input_image="./tests/image.jpeg", input_format="jpeg", output_format="blob")Convert GIF image to WEBPimage = img.export(input_image="./tests/image.gif", input_format="gif", output_format="webp", output_name="image", output_path="./tests")ContributeIf you want to propose a new format, please contact me using my social networks below.AuthorAlvaro Azael Rodriguez Rodriguez - (Development Lead) [Gitlab,Twitter]LicenceThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: py-image-feature-extractor
This package provides implementations of different methods to perform image feature extraction. These methods are
though a Python package and a command line interface. Available feature extraction methods are:Convolutional Neural NetworksVGG-19ResNet-50DenseNet-50Custom CNN through .h5 fileLinear Binary Patterns Histograms (LBPH)Bag of Features (bag-of-visual-words)SIFTSURFKAZE
Package: py-image-processing
py_image_processingDescription.
The package py_image_processing is used to:
Processing:
- Histogram matching
- Structural similarity
- Resize Image
Utils:
- Read image
- Save image
- Plot image
- Plot result
- Plot histogramInstallationUse the package managerpipto install package_namepipinstallpy_image_processingAuthorLucas de Souza OliveiraLicenseMIT
Package: pyimagevideo
Python Image and Video Read/Write ExamplesFunctions towrite multipage imagesandmake videosfrom Numpy arrays.
Also includes functions to test Matlab and Python OpenCV codecs.Installpython-mpipinstall-e.ScriptsConvert_HDF5_to_AVI.pyconverts HDF5 video data to AVI.
Typically used in biomedical and science imaging, where they use HDF5 instead of TIFF,
since HDF5 is a very widespread, fast file format that can store arbitrarily large datasets and metadata.
It is recommended to researchers to use HDF5 instead of TIFF, FITS, CDF or proprietary
formats for large data streams, including lossless video.image_write_multipage.pydemonstration of writing multipage TIFF from
Numpy arrays, usingtifffileand freeimage (tifffile is 20x faster and
much more featureful)imageconv.pyconverts large directory of files with same prefix to multipage TIFFsAudioTheaudio_*.pyscripts show several methods for generating audio
output from Python.Python lossless AVI writingYou can write AVI from Python without axes labels (openCV) or with labels/axes (Matplotlib)OpenCV AVI writingDemo_OpenCV_writeAVI.pydemonstrates using
OpenCV to write video, with a lot of codecs to try. This does not insert
any of the axes stuff that Matplotlib does, so it can be useful for
machine vision work. You can optinally overlay dynamic text on the
video.Matplotlib AVI writingmatplotlib_writeavi.pywrites axes labels
AVIs lossless using Matplotlib. Note that file-basedmatplotlib.animation.writers['ffmpeg_file']is used for better
reliability, even though it takes twice as long as the pipe-basedffmpeg. On some computers, pipe-basedmatplotlib.animation.writers['ffmpeg']results in very distorted,
scrambled output for some reason, with Matplotlib 1.5 and 2.0. In that
case, I have empirically foundffmpeg_fileto Just Work.Noteserrors:libfreeimage, how to fix them:https://www.scivision.co/writing-multipage-tiff-with-python/
Package: pyimagine
PyImaginePyImagine is a Python library for AI-powered image manipulation. It provides a simple interface to interact with an
image manipulation service, allowing you to perform various operations on images.FeaturesGenerate inspired images based on predefined prompts and styles.Apply variations to images based on prompts, strengths, and styles.Enhance image resolution and quality using AI-powered upscaling.Generate prompts based on the content of images.Fill in missing or corrupted parts of images.Remix images by applying control prompts, strengths, and styles.Fix and enhance facial features in images.InstallationYou can install PyImagine using pip:pipinstallpyimagineUsageHere's a basic example of how to use PyImagine:frompyimagineimportArtafrompyimagine.constantsimportStyle# Initialize Imaginearta=Arta()arta.signupNewUser()# Generate from inspirationinspired_image=arta.infer(prompt="Create something amazing!",style=Style.REALISTIC_2)# Prompt from imageoriginal_image=open('image.jpg','rb').read()prompt_image=arta.image2text(original_image,language_code='en')# And more...For more information on how to use PyImagine, please refer to
thedocumentation.DisclaimerPyImagine is an unofficial library and is not affiliated with or endorsed by Vyroai or Aiby. The library is provided "as
is" without any warranty, and the usage of this library is at your own risk. Make sure to comply with the terms and
conditions of the Imagine service while using this library.LicenseThis project is licensed under theGPL v3 License.
Package: pyimaging
imaging轻量级 Python 图像处理Introduce轻量级 Python 图像处理pipinstallpyimagingpyimaging--helpUsage图片批量加水印pyimagingwatermark--imagedir"./source/_posts"--mark"yiyun"--space200--color"#b7ffab"--opacity0.3--size20--quality100其它功能待写文档Donateimaging is an Apache-2.0 licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.We accept donations through these channels:爱发电(￥5.00 起)面包多(￥1.00 起)Authorimaging©yiyun, Released under theApache-2.0License.Authored and maintained by yiyun with help from contributors (list).GitHub@yiyungentGitee@yiyungent
Package: py-imagizer
Image Manuplation Library using Open CVFunctionality of the LibraryImage to Sketch ConversionImage to Cartoon ConversionImage to Water Color ConversionImage to Oil Paint ConversionImage to Color Pencil PaintingImage to Dense Pencil SketchImage AdditionImage SubtractionRGB Image to HSV ConversionImage TranslationImage SmootheningImage TranslationImage Bilateral FilterUsageMake sure you have Python 3.10 installed in your system.Run Following command in the CMD.pip install py-imagizerExample# test.pyimportpy-imagizeraspi## Make sure all the images to be used are in assets folder with proper pathimage_path="./assets/demo2.jpg"# If you want to convert image to sketch then use following commandsimage1_path="./assets/demo2.jpg"pi.image_to_sketch(image1_path)Run the following Script.python main.pyScreenshotsis converted toDifferent Functionsimage_to_sketch()image_to_oilPaint()image_to_colorSketch()image_to_darkSketch()image_to_waterColor()image_addition()image_subtraction()bgr_hsv()smooth_image()image_translation()bilateral_filter()
Package: pyIMAPI
Create CD, DVD, DVD Dual Layer, and BluRay ISO images under Windows directly from python.* No physical drives or additonal software required* Light-weight* Free* Open sourcepyIMAPI exposes built-in Windows Image Mastering API functionality.Support has also been added to mount ISO images using PowerShell Mount-DiskImage. Currently, pyIMAPI only uses ISO9660 mode when creating ISOs. Other IMAPI functionality like Joliet format and Redbook Audio is not currently supported, but can be added.Release Notes for v0.4.0b2## What's New* Support for DVD, DVDDL (DVD Dual Layer), and BluRay physical media formats (allows creating larger iso images)* Mount Images using Powershell in Windows 8 and later* "Extract" files from mounted images* Wheel x64 Distribution for Python 3.4, 3.5, 3.6, and 3.7## Fixes* General Misc stability fixes* More testing## Example Usage``` from __future__ import print_functionimport pyIMAPIprint("writing test file")t = open("test.txt", "w")t.write("this test works")t.close()print("creating default iso (\"CD\")")o = pyIMAPI.open("test.iso")o.add("test.txt")o.close()disk_types = ["CD", "DVD", "DVDDL", "BluRay"]for dt in disk_types:specific_physical_media_test_filename = dt+"-test.txt"t = open(specific_physical_media_test_filename, "w")t.write("this "+ dt +" test works")t.close()o = pyIMAPI.open(dt+"-test.iso", disk_type=dt)o.add(specific_physical_media_test_filename)o.close()print("opening created iso")i = pyIMAPI.open("test.iso", "r")print("extracting file")i.extract("test.txt", "./test-extracted.txt")i.close()print("opening source and extracted files")t = open("test.txt")t2 = open("test-extracted.txt")print("comparing files")for line in t:extracted = t2.read()if extracted != line:print("error files don't match")quit()print("extracted file matches original") ```[Source](https://bitbucket.org/ken_long/pyIMAPI2FS)
Package: pyimapq
pyimapqThis package uses any IMAP server as a python queue, allowing processes in
separate domains to communicate over EMAIL.All you need is an IMAP account, and you are good to go.Example usage:frompyimapqimportPyImapQmq=PyImapQ(user='my_user',password='very strong password')assertmq.connecteddefflt(subject):returnsubjectin['a','list','of','subjects','to','accept']msgs=mq.get_unread_emails(flt,mark_as_read=True)# msgs will now hold the email itself. You can use mq.get_body(msg) to get the# body, or msg['Subject'], etc, to access the message meta data
Package: pyimaprotect
pyimaprotect - PythonIMA Protect AlarmUNOFFICIALGet and set alarm status from yourIMA Protect Alarm.You can get and set the status, get the list of contacts and download your images.This work is originally developed for use withHome Assistantand thecustom componentimaprotect.Free software: MIT licenseDocumentation:https://pyimaprotect.readthedocs.io.FeaturesSince the last update of IMAProtect “API” (05/2021), this plugin allows you to:get the statusof your alarm:frompyimaprotectimportIMAProtect,STATUS_NUM_TO_TEXTima=IMAProtect('myusername','mysuperpassword')print("# Get Status")imastatus=ima.statusprint("Current Alarm Status:%d(%s)"%(imastatus,STATUS_NUM_TO_TEXT[imastatus]))set the statusof your alarm:frompyimaprotectimportIMAProtectima=IMAProtect('myusername','mysuperpassword')print("# Set Status")ima.status=0# 0 to OFF, 1 to PARTIAL and 2 to Ongetthe list and information of yourregistered contacts:frompyimaprotectimportIMAProtectima=IMAProtect('myusername','mysuperpassword')print("# Get Contact List")contact_list=ima.get_contact_list()forcontactincontact_list:print(contact)download the images/photostaken with your connected elements:frompyimaprotectimportIMAProtectima=IMAProtect('myusername','mysuperpassword')print("# Download Images")ima.download_images()# Download images to 'Images/' folder. One subfolder per camera.ima.download_images("MyImages/")# Download images to a defined directory 'MyImages/' folder.Parametersusername: Username used to connect tohttps://www.imaprotect.com/password: Password used to connect tohttps://www.imaprotect.com/Methodslogin(): open a session with the IMA Protect Alarm websitelogout(): close the session with the IMA Protect Alarm websitestatus: property to get or set the status of your IMA Protect Alarm. See the next table to understand the values.get_contact_list(): get a JSON with the list and information about your registered contacts.download_images(): download the images/photos taken with your connected elements.List of Alarm status valuesAlarm ValueState-1UNKNOWN0OFF1PARTIAL2ONCreditsThis work was based on the work oflplanckeandchris94440forJeedom.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History3.1.5 (2023-02-18)Update login procedure according to new IMAProtect “API”, thanks to@Thesola103.1.2 (2021-11-05)Update login procedure according to new IMAProtect “API”Update download images procedure according to new IMAProtect “API”3.1.0 (2021-05-22)Add cookie expire usage to reduce the number of loginAdd a logout function3.0.0 (2021-05-22)Add option to change the alarm (set/get)Add function to get the list of contactsAdd function to download the imagesget_statushas been removed,statusis now a property to get/set the alarm.2.0.0 (2021-05-09)Update using new IMAProtect “API”No more other info (name, contract, etc.), only alarm status but faster result.1.0.0 (2021-04-11)First release on PyPI.
Package: pyimaz
pyimaz is a Python3 implementation of the IMAZ model of the auroral Earth's ionosphere D-Region."Reference: McKinnel, L.A. and M. Friedrich, Results from a new lower ionosphere model, Adv. Space Res., 37, #5, 1045-1050, 2006.https://doi.org/10.1016/j.asr.2004.11.008Input:a) geographic Latitude;b) geographic Longitude;c) year;d) day number;e) hour, in universal time (UT);f) the 3-hourly planetary magnetic A index;g) the daily F10.7 solar flux value;h) the altitude (50km-150 km).Output:electron density in [m-3].
Package: pyimc
pyimcLibrary for accessing imaging mass cytometry (IMC) data stored in .mcd files. Access is provided to all channel data, metadata and optical images stored within the file. Additionally, it is possible to generateslide overview imageswhich can be used in whole slide imaging registration workflows.Installationpip install pyimcUsageIMC data in *.mcd files are stored in a spectrum-wise manner, in the order acquired on the instrument. This allows fast access to individual pixel
information, but requires reading in all data from a single acquisition to generate a single channel image. To provide fast access to image data, an optional
means of opening the data is demonstrated below, with the caveat that this generates a temporary binary file in the same location as the .mcd file, the first time
this function is called, which can take a few seconds. The temporary binary file is approximately 33% as big as the original .mcd file.With fast access to imagesimportpyimcdata=pyimc.Mcd.parse("/path/to/data.mcd")Without fast access to imagesimportpyimcdata=pyimc.Mcd.parse("/path/to/data.mcd",False)Access to channel data# Get the first slide (there is usually only one)slide=data.slide(1)# Get list of all acquisition IDs in the dataacquisition_ids=data.acquisition_ids()# Get 3rd acquisitionacquisition=data.acquisition(acquisition_ids[2])# Get the channel list for the current acquisitionchannels=acquisition.channels()# Select for 10th channelchannel=channels[9]print(channel.label())print(channel.name())# Get the image data for the channel as a numpy array from the chosen acquisitionchannel_data=acquisition.channel_data(channel)Access panorama image# Get panorama with ID = 3panorama=data.panorama(3)# Get optical image associated with the panoramaimage=panorama.image()Generateslide overview image# Get the first slide (there is usually only one)slide=data.slide(1)# Get all channels in the slidechannels=slide.channels()# Select the 10th channelchannel=channels[9]# Generate an overview image of the slide with a width of 7500 pixels (height will be# automatically scaled), displaying the selected channel image in the relative location# on the slide where the acquisition was performed, thresholding the intensity at 10overview_image=slide.overview_image(7500,channel,10)Access XMLxml=data.xml()
Package: pyimca
# 用于搭建CMake的基础框架，统一架构。# v0.0.10发布IMCA代码构建器## v0.0.11修复在功能包中创建功能包的BUG修复无法在多层目录下创建功能包的BUG修复功能包无法找到模块的BUG## v0.0.12修复了功能包重名的问题优化了帮助手册## v0.1.0自动化构建VScode环境支持修复部分bug优化了帮助手册## v0.1.1修复了list-pkg的Bug## v0.1.2修复了VScode中clangd无法搜索第三方包的Bug## v0.1.3修复了接口包类名和include中类名重复的问题## v0.1.4修复了interface中头文件#define的错误-联系作者:Thrent:eel39@yahoo.com-Github:https://github.com/Thrent33/IMCA_FRAME.git
Package: pyimclsts
PyIMCLSTSThis tool reads the IMC schema from a XML file, locally creates files containing the messages and connects (imports) the main global machinery.See/exampleto check an example implementation of the Follow Reference maneuver.QuickstartFancying a virtual env? (Not needed. Just in case you want to isolate it from your python setup)$sudoaptinstallpython3.8-venv
$python3-mvenvtutorial_env
$sourcetutorial_env/bin/activateTo use:$pip3installpyimclsts
$# or, if you are cloning the repo, from the folder pyproject.toml is located:$pip3install.
$# If already installed, update it, with (might need to run it more than once):$pip3install-UpyimclstsChoose a folder and have a version of the IMC schema. Otherwise, the following command will fetch the latest IMC version from the LSTS git repository. Extract messages locally, with:$python3-mpyimclsts.extractCheck how to provide a black- or whitelist using:$python3-mpyimclsts.extract--helpThis is unnecessary in most scenarios, but can be useful if you really have constrained resources. Use it with caution, because it may crash if, for example, you receive an inlined message that has been blacklisted.This will locally extract the IMC.xml as python classes. You will see a folder calledpyimc_generatedwhich contains base messages, bitfields and enumerations from the IMC.xml file. They can be locally loaded using, for example:importpyimc_generatedaspgIn the top-level module, you will find some functions to allow you to connect to a vehicle and subscribe to messages, namely, a subscriber class.importpyimclsts.networkasnconn=n.tcp_interface('localhost',6006)sub=n.subscriber(conn)# for example:sub.subscribe_async(myfunction1,msg_id=pg.messages.Temperature,src='lauv-noptilus-1',src_ent='AHRS')sub.subscribe_async(myfunction2,msg_id=pg.messages.EstimatedState,src='lauv-noptilus-1',src_ent=None)In most cases, you can find the embedded documentation (docstrings) by hovering the mouse or usinghelp()on interactive mode.Check/examplefor further details.
Package: pyimdb
Python IMDBA wrapper python for imdb.comQuick start$pipinstallpyimdbUsageWith your key in hand, it's time to authenticate, so run:>>>frompyimdbimportIMDB>>>imdb=IMDB()Popular TV ShowsReturns list of popular tv shows.>>>imdb.popular_tv_shows()or>>>imdb.popular_tv_shows(limit=10)Popular MoviesReturns list of popular movies.>>>imdb.popular_movies()or>>>imdb.popular_movies(limit=10)TOP Rated TV ShowsReturns list of top rated tv shows.>>>imdb.top_rated_tv_shows()or>>>imdb.top_rated_tv_shows(limit=2)TOP Rated MoviesReturns list of top rated movies.>>>imdb.top_rated_movies()or>>>imdb.top_rated_movies(limit=2)DependenciesPython >=3.8LicenseMIT
Package: py-iMessage
py-imessage is a library to send iMessages from your Mac computer (it does not work on Windows/Linux). It was originally used to build an API for iMessages; however, Apple doesn’t support third-parties using iMessage over a few hundred marketing messages per day.InstallationRun the following commands on the terminalpipinstallpy-imessage# Disable system integrity protection in order to allow access to chat.dbcsrutildisableIf runningcsrutil disabledoesn’t work. Trythis stackoverflow postSample Usagefrompy_imessageimportimessageimportsleepphone="1234567890"ifnotimessage.check_compatibility(phone):print("Not an iPhone")guid=imessage.send(phone,"Hello World!")# Let the recipient read the messagesleep(5)resp=imessage.status(guid)print(f'Message was read at{resp.get("date_read")}')DocumentationSending a messageSend a message to a new or an existing contact!.send(phone, message)ArgsPhone| ten-digit phone number of string type format XXXXXXXXXXX i.e. “1234567890”ResponseMessage| The message you plan to send. i.e. “Hi!”Returns astring, the GUIDTypeDescriptionstringGUID unique to the message (used for checking on status)Message statusCheck whether a message you sent has been delivered and read (if read receipts turned on)..status(guid)ArgsGuid| guid returned from sending a messageResponseReturns adict, with following fieldsFieldTypeDescriptionSampleguidstringguid that was passed in to the function“3A146100-D269-4F35-BDB4-EB2FF7DBDF0F”date_submitteddatetimedate message was submitted“Sun, 12 Apr 2020 05:46:48 GMT”date_delivereddatetimedate message was delivered to recipient’s phone“Sun, 12 Apr 2020 05:46:49 GMT”date_readdatetimedate message was read on recipient’s phone“Sun, 12 Apr 2020 05:47:38 GMT”Checking iMessage compatibilityCheck whether a phone number is registered to an iPhone or an Android device. NOTE: This method is exceptionally slow, so you should cache the response..check_compatibility(phone)ArgsPhone| ten-digit phone number of string type format XXXXXXXXXXX i.e. “1234567890”ResponseReturns aboolean, compatibilityTypeDescriptionbooleanWhether number supports receiving iMessagesContributingPlease create an issue. Or feel free to add a PR!
Package: py-imessage-shortcuts
py-imessage-shortcutsSend iMessages using Python through the Shortcuts app.Requires macOS Monterey (macOS 12) or later. Compatible with Apple Silicon including M1, M1 Pro, & M1 Max.InstallationDownloadsend-imessage.shortcutand open it using Finder.Click the blueAdd Shortcutbutton (you can use the 3-dot menu to inspect the steps executed if you desire).Installpy-imessage-shortcutsusingpip:pip install py-imessage-shortcutsUsageimportimessageimessage.send(['+1 555-555-5555'],'Hello World!')FAQsCan I use this on Windows/Linux?Nope!BugsUseIssues. PRs welcome and appreciated 😊LicenseMIT License.CreditsInspired bypy-iMessage.
Package: pyimfit
PyimfitThis is a Python wrapper for the astronomical image-fitting program Imfit.Online documentation:https://pyimfit.readthedocs.io/en/latest/.Sample UsageThe following assumes an interactive Python session (such as an iPython session
or Jupyter notebook):from astropy.io import fits
import pyimfit

imageFile = "<path-to-FITS-file-directory>/ic3478rss_256.fits"
imfitConfigFile = "<path-to-config-file-directory>/config_exponential_ic3478_256.dat"

# read in image data, convert to proper double-precisions, little-endian format
image_data = fits.getdata(imageFile)

# construct model from config file; construct new Imfit fitter based on model,;
model_desc = pyimfit.ModelDescription.load(configFile)

# create an Imfit object, using the previously loaded model configuration
imfit_fitter = pyimfit.Imfit(model_desc)

# load the image data and image characteristics and do a standard fit
# (using default chi^2 statistics and Levenberg-Marquardt solver)
result = imfit_fitter.fit(image_data, gain=4.725, read_noise=4.3, original_sky=130.14)

# check the fit and print the resulting best-fit parameter values
if result.fitConverged is True:
    print("Fit converged: chi^2 = {0}, reduced chi^2 = {1}".format(imfit_fitter.fitStatistic,
        result.reducedFitStat))
    bestfit_params = result.params
    print("Best-fit parameter values:", bestfit_params)
Package: pyimg4
PyIMG4A Python library/CLI tool for parsing Apple'sImage4 format.UsageUsage: pyimg4 [OPTIONS] COMMAND [ARGS]...

  A Python CLI tool for parsing Apple's Image4 format.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  im4m  Image4 manifest commands.
  im4p  Image4 payload commands.
  im4r  Image4 restore info commands.
  img4  Image4 commands.RequirementsPython 3.8 or higherPython development headers (python3-devon Debian-based OSes)InstallationInstall fromPyPI:python3 -m pip install pyimg4If you would like to use the compression features of PyIMG4, install the required libraries:python3 -m pip install pyimg4[compression]Local installation:./install.shRequiresPoetryTODOWrite documentationAdd loggingSupportFor any questions/issues you have,open an issueor join myDiscord.