Saravanan666/pypi-org huggingface dataset:
Package: imgtk-python
imgtkInstallationFrom PyPipip install imgtk-pythonFrom sourcepip install git+https://github.com/zigai/imgtk.gitUsageusage: imgtk [--help] [-v] [--mode] MODE [-t] T [actions] [items]

options:
  --help                 show this help message and exit
  --mode                 display kept/discarded items (default: 'kept')
  -t                     number of threads to use (default: 23)
  -v, -verbose           verbose mode (extra log messages and progress bars)

filters:
  -w, --width            Filter by image width
  -h, --height           Filter by image height
  -sz, --size            Filter by file size
  -ar, --aspect-ratio    Filter by aspect ratio
  -fn, --filename        Filter by filename using glob or regex pattern matching
  -txt, --text           Filter by text content using OCR using glob or regex pattern matching

modifiers:
  -rs, --resize          Resize the image to the given size
  -cr, --crop            Crop the image to the given box
  -rot, --rotate         Rotate the image by the given angle
  -sc, --scale           Scale the image by the given factor
  -f, --filter           Apply the given filter to the image. Filters: [blur, contour, detail, edge_enhance, edge_enhance_more, emboss, find_edges, sharpen, smooth, smooth_more]
  -fl, --flip            Flip filter to flip an image horizontally or vertically
  -cnv, --convert        Convert the image to the given mode. Modes: [L, RGB, CMYK, GRAYSACLE]
  -inv, --invert         Invert filter to invert the colors of an image
  -thr, --threshold      Threshold filter to binarize an image
  -cont, --contrast      Adjust the image contrast
  -brgh, --brightness    Adjust the image brightness
  -shrp, --sharpness     Adjust the sharpness of the image
  -sat, --saturation     Adjust the image saturation
  -mb, --median-blur     Median blur filter to reduce noise in an image
  -gb, --gaussian-blur   Gaussian blur filter to reduce noise in an image
  -m, --move             Move the image to the given directory
  -s, --save             Save the image to the given directory

notes:
  filters can be inverted by adding a '!' after the flag
  you can get help for a specific action by running 'imgtk <action> --help'LicenseMIT License
Package: imgtoascii
image to ascii.Convert images to ascii.Installation:pip install imgtoascii==0.0.2Usage:fromimgtoasciiimportimgtoasciiimgtoascii("<IMAGE_PATH>","<OPTION>").view()Examples:fromimgtoasciiimportimgtoascii# Example:1imgtoascii("test.png").view()# Example:2p1=imgtoascii("test.png",False).view()foriinrange(len(p1)):print(p1[i])Changelog:## 0.0.2
- Fix Bugs.
## 0.0.1
- First public release.BTC : 16mUJYXdNh9VkjN3MQawA8wvYJqL9F5CKZ
Package: imgtobase64
===
CONVERT IMAGE TO BASE64IMGTOBASE64 convert your image url from web or your image field from database to base64Detailed documentation is in the "docs" directory.Quick startInstall the module:pip install imgtobase64CASE OF IMAGE FROM WEB URLfrom imgtobase64.job import png_to_base64web_url = "https://sb.kaleidousercontent.com/67418/800x533/a5ddfb21a6/persons3-nobg.png"image_base4 = png_to_base64(web_url)CASE OF IMAGE FROM FIELD OF A TABLE ON YOUR DB`We have a table namedBannerwith attributename image and descriptionso :
So if we want tranform image to base64 to print blog on pdf,we will do this:importimgtobase64image_base4 = imgtobase64(banner.image)`
Package: imgtoch
Imgtoch一个帮你将图片转为字符图片的模块。用法：# coding: utf-8fromimgtochimportmakeImagemakeImage("源图片路径","生成的图片保存路径",chars=None,# 用于图像的字符表，字符数应大于 1，无需手动按等效灰度值排序scale=1,# 缩放比例，0 < scale <= 1，可省略quality=80,# 图片保存质量，大于 0 小于等于 100fontPath="字体路径",# 可省略fontSize=14,# 字体大小，仅指定字体路径时生效，可省略horzSep=2,# 字符横向间隔，可省略vertSep=2,# 字符纵向间隔，可省略keepRatio=True,# 是否保持原比例。因字体高宽不一定相等，生成的图片高宽会变形，此项为 True 则抵消变形，可省略keepSize=False,# 一个字符对应一个像素点，因字符有大小，所以生成的图片尺寸会变化，此项为 True 会将生成的图片缩放至原图尺寸，可省略)实例 1：# coding: utf-8fromimgtochimportmakeImage# 大图片尽量将 scale 设置的小些，否则生成的图片会比较大# 字体大小 fontSize 也是影响最终生成的图片大小的因素之一makeImage("1.jpg","new.jpg",scale=0.2)# 图片 1.jpg 已在当前目录中实例 2：# coding: utf-8fromimgtochimport*# 获取字符'#'的等效灰度值print(grayscaleOf("#"))# ('#', 170)# 将给定字符串按等效灰度值排序print(sortByGrayscale("H oa.:sjv@%^a'"))# 结果：['H', '@', 'a', '%', 'a', 's', 'j', 'o', 'v', '^', ':', "'", '.', ' ']# 其中'a'和'%'的等效灰度值应该是相等的所以出现了'%'被夹在两个'a'中间的问题# 更具体的参数可以看 IDE 提示或者使用 help 函数
Package: imgtohttps
AboutMicroservice for uploading all insecure images to Imgur by url.Use Redis as cache backend and metadata storage.InstallationInstall uwsgi and python3 plugin:sudo apt-get install uwsgi uwsgi-plugin-python3Make virtualenv:cd /opt
pyvenv-3.4 img_service
source img_service/bin/activateInstall from PyPI:pip install imgtohttpsCreate config file for app:[uwsgi]
plugins = python34
master = true
enable-threads = true
processes = 4
module = imgtohttps.application:app
virtualenv = /opt/img_service
chdir = /opt/img_service
touch-reload = /opt/img_service/reload
env=APP_SETTINGS=settings.ProductionConnect to nginx:server {
    listen          127.0.0.1:2100;
    access_log off;
    location / {
        uwsgi_pass  unix:/run/uwsgi/app/img_service/socket;
        include             uwsgi_params;
    }
}UsageRequest:curl -X POST -H "Content-Type: application/json" -d '{"url": "http://example.com/image.png"}' http://localhost:2100Response:{"url": "https://i.imgur.com/AxQwu0h.png"}Error:{"error": "Some error message"}
Package: imgtools
A bit of Python code to resize and combine images in svg or png format.See also these blog posts: *resizing and combining multiple png
images*resizing and combining multiple svg
imagesMake svg images the same sizeI wrote a script called “same_size_svg” to make svg images the same
side for a given dimension.INSTALLATION:pip install imgtoolsUSAGEsame_size_svg [-h] -i files [files …] [–dimension {width,height}]
[–direction {largest,smallest}]Make svg images the same size in one dimension.optional arguments: -h, –help show this help message and exitGeneral options: -i/–images files images to change size of. –dimension
Which dimension to use: width (default) or heightContributions welcome!
Package: imgtools-cli
Image Tools CLI 🖼️Command line interface for pre-processing images for model training.FeaturesDownload all images from a urlConvert images to PNGResize and crop imagesChunk large images into smaller squaresRemove images with more than one personInstallationcreate a virtual environment and imgtools-cli through pip:python3-mvenvvenvsourcevenv/bin/activate

pipinstallimgtools-cliUsageℹ️ Helppython-mimgtools_cli-h⏬ Download all images from a website-D {url}, {output directory}python-mimgtools_cli-Dhttps://www.gutenberg.org/cache/epub/67098/pg67098-images.html/Users/ootie/images✨ Convert images to PNG files-I {input directory}python-mimgtools_cli-I/Users/ootie/image_files✂️ Resize / Crop images-r {input directory}, {width}, {height}, {crop_focal_point}, {dnn_model_path}Using crop focal point:python-mimgtools_cli-r/Users/ootie/images512512TrueNonePassing in a haar xml to focal crop faces:python-mimgtools_cli-r/Users/ootie/images512512True/Users/ootie/models/haarcascade_frontalface_default.xml➗ Chunk large images into squaresEasily take large images and split them into smaller squares for training.Example:You may want to train on this image but need to split it into smaller squares for training.Put it through the chunker and you get this:chunk 1chunk 2chunk 3-C {dimensions}, {input_directory}, {output_directory}python-mimgtools_cli-C512/Users/ootie/input/Users/ootie/output🫂 Hassan People RemoverUses face detection to remove images with more than one person. Helpful for cleaning source images to be used for Stable Diffusion training.Example:If your input images have more than one person, the image will be deleted:Sample images to test with:https://github.com/hassan-sd/people-remover/tree/main/images-R {input_directory}, {path_to_cascade_xml}python-mimgtools_cli-R/Users/ootie/image-tools/images//Users/ootie/image-tools/examples/haarcascade_frontalface_default.xmlPorted from:https://github.com/hassan-sd/people-remover
Package: imgtopdfeasy
Img2pdfThis is command line utility to convert images in a directory to  PDF file.This is very simple CLI to convert images in a directory to a PDF file. This use Pillow( PIL ), to achieve this.Using pip VersionType the below command to install img2pdf.pipinstallimgtopdfeasyTypingimg2pdfin your terminal would give the options available and the Parameters required like below.usage:img2pdf[-h]-iINPUT-oOUTPUT-extEXTENSION[--border][--border_sizeBORDER_SIZE][--border_colorBORDER_COLOR]ConvertsImagesToPdf

optionalarguments:-h,--helpshowthishelpmessageandexit-iINPUT,--inputINPUTInputfilefolderfullpath.Realtiveorabosolute-oOUTPUT,--outputOUTPUTOutputfilename,Nopdfrequired-extEXTENSION,--extensionEXTENSIONFileextensionofimagetoadd.--borderAddbordertoImages--border_sizeBORDER_SIZESizeofborderofImages--border_colorBORDER_COLORColourofBorderofImages

Madewith❤ByNaveenIts that simple. Typingimg2pdf-i<Path-to-folder>-o<Path-to-output-file>-ext<extension-of-image-to-add>would simply create you required file.Note: Path to output file doesn't require.pdfto be added at last. Also, border feature would be documented soon.Using Development VersionTo use this go to the directory where you have images. Then type the commands below.gitclonehttps://github.com/naveen521kk/img2pdf.gitThis create a folder calledimg2pdf. Then go into the folder bycdimg2pdfAfter that typingpoetryinstallwould install necessary Requirements for it to run. The above command requirespython-poetryinstalled.After that typingpythonimgtopdfeasy/img2pdf.py-hin your terminal would run the program and show the necessary arguments required like below.usage:img2pdf[-h]-iINPUT-oOUTPUT-extEXTENSION[--border][--border_sizeBORDER_SIZE][--border_colorBORDER_COLOR]ConvertsImagesToPdf

optionalarguments:-h,--helpshowthishelpmessageandexit-iINPUT,--inputINPUTInputfilefolderfullpath.Realtiveorabosolute-oOUTPUT,--outputOUTPUTOutputfilename,Nopdfrequired-extEXTENSION,--extensionEXTENSIONFileextensionofimagetoadd.--borderAddbordertoImages--border_sizeBORDER_SIZESizeofborderofImages--border_colorBORDER_COLORColourofBorderofImages

Madewith❤ByNaveenEach of it are self explanatory.Crafted with 💓 by Naveen.
Package: imgtotxt
ImgToTxtNative python OCR app running locally to extract text from your images. It provides a native look and feel, and downloads the models for recognition of text to use without any remote connection.Made with great libraries:EasyOCR(OCR Models and Code)Toga(User Interface)InstallationMust have Python, Pip, and Git installed.Clone and enter directory:gitclone--depth=1https://github.com/ahmeddots/imgtotxt&&cdimgtotxtInstall all requirements:pipinstall-rrequirements.txtRun the app (only need to repeat this step next time):python-mimgtotxtUsageYou will be greeted with three actions, and three sections for preview.By clicking on "Languages", you will be presented with a window to select languages in. Note that the selection element works a bit strangely - any time you select an item, it'll be added to the list, and if you select it again it will be removed from the list. Sadly, there doesn't seem to be a multi-select element in Toga.After selecting the desired languages, click on "Load languages", but be patient since loading languages might take some time at first as they'll be downloaded.Next, you must click on "Open Image" to select an image from your storage. The image path will display under the "Current Image" section.Finally and obviously, click on "Extract Text", and after some waiting (depending on your specs) the text will display under the "Extracted Text" section.
Package: imgui
pyimguiPython bindings for the amazingdear imguiC++ library - a Bloat-free
Immediate Mode Graphical User Interface.Documentation:pyimgui.readthedocs.ioInstallationpyimguiis available on PyPI so you can easily install it withpip:pip install imgui[full]Above command will installimguipackage with additional dependencies for all
built-in rendering backend integrations (pygame, cocos2d, etc.). If you don't
want to install all additional dependencies you can always use barepip install imguicommand or select a specific set of extra requirements:for pygame backend usepip install imgui[pygame]for GLFW3 backend usepip install imgui[glfw]for SDL2 backend usepip install imgui[sdl2]for Cocos2d backend usepip install imgui[cocos2d]for pyglet backend usepip install imgui[pyglet]Package is distributed in form ofbuilt wheelsso it does not require
compilation on most operating systems. For more details about compatibility
with diffferent OSes and Python versions see theProject ditributionsection of this documentation page.Project statusTheimguipackage provides support for the majority of core DearImGui 1.82 widgets and
functionalities. Some low-level API elements and complex widgets (like plots)
may be missing. We are working hard to provide 100% feature mapping of the core
ImGui library. Thecompletion badgeshows up-to-date status of that goal.Project distributionThis project has a working build pipeline on Appveyor. It builds
succesfully for all major operating systems with different architectures:Windows (32bit & 64bit)Linux (32bit & 64bit)OS X (universal build)Right now we are ready shipping the built wheels for these three systems
(even for Linux usingmanylinux1wheels). The build pipeline covers multiple
Python versions:py36py37, pp37py38, pp38py39, pp39py310py311Note:We dropped support for py27, py33, py34, and py35 starting from release 2.0.
Those were supported until release1.4.0.
Pypy is only supported since release 2.0.If none of these wheels work in your environment you can install theimguipackage by compiling it directly from sdist distribution using one of following
commands:# will install Cython as extra dependency and compile from Cython sources
pip install imgui[Cython] --no-binary imgui

# will compile from pre-generated C++ sources
pip install imgui --no-binary imguipyimguiprovides documentation with multiple visual examples.
Thanks to custom Sphinx extensions, we are able to render GUI examples off-screen directly from docstring
snippets. These examples work also as automated functional tests. Documentation is hosted onpyimgui.readthedocs.io.ContributingContributions are welcomed. If you want to help us by fixing bugs, mapping functions, or adding new features,
please feel free to do so and propose a pull request.Development tips and information for developers are given inHACKING.md.
Package: imgui-datascience
A set of utilities for data science using python, imgui, numpy and opencvFeaturesView the full demo (1’50”) on youtube:https://www.youtube.com/watch?v=qstEZyLGsTQ&feature=youtu.beRun it after install:python -m imgui_datascience –exampleDisplay numpy.ndarray (aka opencv image)The following types are supported : RGB, RGBA, GRAY, float32, float64Display matplotlib figuresInspect imagesshow pixels color (or float values)adjust visibility for float imagessave imageszoom & pan (with possible sync between 2 images)
Package: imgur-dl
imgur-downloaderCLI for downloading imgur photos and videosTo Downloadpip install imgur-dlUsageimgur-dl [-s][-v][-o OUTPUT][-e][-f FORMAT][IMGUR LINK]ArgumentsOptional arguments:-s 	--stat					outputs the statistics of the file  
-v 	--verbose 				outputs more download options
-o 	--output 		[OUTPUT]	Creates a directory and saves every photo/video into the directory
-e 	--rename-all				For every image downloaded, open the file and allows you to rename the file
-f 	--format 		[FORMAT]	Converts all the image files into the givern formatPositional Arguments:IMGUR LINK 						A valid imgur link, could be an image or a galleryLicenseMITCreditsinspired by@alexgisbyWhy don't I create a binary for the fileCurrently the compiler I'm using does not work fine with tqdm , and the program creates a memory leak
After the problem is fixed, a binary would be releasedimgur-dl© 2020 Matthew Lam
Package: imgurpoi
### imgurpoiSimple python imgur uploader with API and CLI.Based on Imgur API v3.## Requirements- click - For CLI- requests - For functioning- pyperclip - For copy to clipboard support## QuickstartGetting Imgur API credentialsGo to https://api.imgur.com/oauth2/addclient and register a new Imgur API client.You will need an Imgur account to do this.You can put it any valid URL for the callback URL - we won’t be using it.First, create a file called ~/.config/imgur_uploader.cfg, with the following contents (substitute your credentials):```[imgur]id = 9354da9ecdcfae3secret = 8387eca75687ecad9876ead47786edac0875dc0d```$ pip install imgurpoi### License-------imgurpoi is distributed under the terms of both- `MIT License <https://choosealicense.com/licenses/mit>`_
Package: imgur-python
imgur-pythonA Python client for the Imgur API.The original imgurpython project is no longer supported, so, I decided to create my own python client for theImgur API.Disclaimer:This is a work in progress. In this first version, I'm not gonna implement all the API calls, only the necessary ones to interact with imgur and be able to create albums, upload images and share them on the site.For more information, check theAPI client documentationRequirementsPython 3.5requestsfleepLinksimgur API documentationAPI client documentationInstall$ python setup.py installwith pip$ pip install imgur-pythonHow to publish something and share it with the community?upload a bunch of imagesadd them to an albumshare itfrom os import path
from imgur_python import Imgur

imgur_client = Imgur({'client_id': 'cf8c57ca8......'})
image = imgur_client.image_upload(path.realpath('./image.png'), 'Untitled', 'My first image upload')
image_id = image['response']['data']['id']
album =  imgur_client.album_create([image_id], 'My first album', 'Something funny', 'public')
album_id = album['response']['data']['id']
response = imgur_client.gallery_album(album_id, 'This is going down on the sub', 0, 'funny,midly_interesting')
print(response)RoadmapGalleryGallery AlbumGallery ImageAlbum / Image ReportingAlbum / Image VotesAlbum / Image VotingAlbum / Image CommentsAlbum / Image CommentAlbum / Image Comment Creation
Package: imgur-scraper
Imgur ScraperRetrieve years of imgur.com's data. No authentication required. Implemented using their frontend API.UsageFeaturesReturns close to 500 data points for each date.{'title':'I said no, my fiancé said yes. Meet Zeta','url':'https://imgur.com/gallery/H5Xw4dh','points':'5,996','tags':'aww,kitten,kitty','type':'image','views':'4,363''date':'2015-05-06'}New Features- Username
- Comment_Count
- Downs 
- Ups 
- Points
- Score
- Timestamp
- Views
- Favorite_Count
- Hot_datetime
- NSFW
- Platform
- ViralityMore attributes to be added soon, any suggestions orfeature requestsare welcome.Installation$ pip install imgur-scraperSupport The Projectbitcoin: bc1qhlwkhjplnrhzpy8lu034a0nkccldnlr6wygvrk0nyjld0y8yv7eskp78j4
Package: imgurscrot
# imgurscrot
imgur/scrot screengrabber/uploader## What?
Simple utility that takes a screenshot of your entire screen and pushes it to Imgur using the Imgur API.## API
Get an API key from [api.imgur.com][api.imgur.com] and set the client_id variable to the client_id you get. Just pick one of the anonymous tokens as I was not arsed linking screenshots
to accounts.## Requirements
Its all stdlib except [pyscreenshot][pyscreenshot] and [requests][requests] which you can easily install.` pip install pyscreenshot requests `Note: Thanks to the fine work of [Juan Pablo][juanpablo] you should be able to just pip install imgurscrot :)## Use
Put it somewhere in $PATH as an executable (chmod +x) file named “imgurscrot” and just do “imgurscrot” to screeenshot your full screen and automatically upload it.## Licence
[Licenced under the WTFPL][wtfpl]## Beer
Beer can be sent to 16MtQtgCVgZvqXoYFzi1L85cKDQAxLGY4A :)## Bugs
If it fucks up leave an issue in the tracker please.## Notes
I had meant to use the actual imgur library but it kept fucking up so I just used requests instead.[api.imgur.com]:https://api.imgur.com[pyscreenshot]:https://pypi.python.org/pypi/pyscreenshot[requests]:https://pypi.python.org/pypi/requests[wtfpl]:http://wtfpl.net[juanpablo]:https://github.com/juanpabloaj
Package: imgur-shot
A simple app made for rapid screenshots sharing.imgur-shottakes a screenshot using scrot anduploadsit to
imgur.Requirementsscrotlibnotify-devlibgtk-3-devpython-gobjectDebian Quickstartapt-get install scrot libnotify-dev libgtk-3-dev python-gobjectRunningTo take a screenshotof whole screenexecute:imgur-shotuse flag–selectto select a window or an areaimgur-shot --selectUseESCto cancel.MoreFor more information check out the project’s website.
Package: imgurt
Imgurt is a wallpaper downloader which scores wallpapers and selects the best based on resolution, aspect ratio, and number of views.  It remembers which wallpapers were selected previously so you  never see the same image twice.Install the systemd units to run the script every two hours.Usagepython3imgurt.pyInstallationInstall dependenciespip3installrequestsAlso installfehusing your distribution’s package manager.Install systemd user unit (optional)editsystemd/imgurt.serviceto point toimgurt.pycopy unit files# copy service filescp-usystemd/*~/.config/systemd/user/# enable and start systemd timersystemctl--userenableimgurt.timersystemctl--userstartimgurt.timer# the service can be triggered manually as wellsystemctl--userstartimgurt
Package: imgurup
Upload to imgur using its API(v3).
Support CLI, KDE, Zenity(GTK) and Mac dialog upload.FeatureSupport upload images(anonymously/account)Support CLI, KDE, Zenity(GTK) and Mac dialog uploadSupport Python 3Installation$sudopythonsetup.pyinstallor$sudopipinstallimgurupUsageimg[-h][-f[<image path> [<image path>...]]][-d[<albumid>]][-g][-n][-q]You can just typeimgwithout any argument, the program will ask you for another infomation.But add-fargument with your image file would be easier to use, ex:img-fxx.jpgAfter the authentication, the access_token and refresh_token will be saved in~/.imgurup.confOptional arguments:-h, --help       show this help message and exit
-f [<image path> [<image path> ...]] The images you want to upload
-d [<album id>]  The album id you want your image to be uploaded to
-g               GUI mode
-n               Anonymous upload
-s               Add command in the context menu of file manager(Support Gnome and KDE)
-q               Choose album with each file
-t               Use image name as the titlePackcage DependencyNoneCustomize examplefromimgurupimportImgurclassMyImgur(Imgur):defget_error_dialog_args(self,msg='Error'):args=['zenity','--error','--text={text}'.format(text=msg),]returnargsdefget_auth_msg_dialog_args(self,auth_msg,auth_url):args=['zenity','--entry','--text={msg}'.format(msg=auth_msg),'--entry-text={link}'.format(link=auth_url),]returnargsdefget_enter_pin_dialog_args(self,token_msg):args=['zenity','--entry','--text={msg}'.format(msg=token_msg),]returnargsdefget_ask_image_path_dialog_args(self):args=['zenity','--file-selection',]returnargsdefget_ask_album_id_dialog_args(self,albums,no_album_msg):i=1arg=['zenity','--list','--text="Choose the album"','--column=No.','--column=Album name','--column=Privacy',]foralbuminalbums:arg.append(str(i))arg.append('{album[title]}'.format(album=album))arg.append('{album[privacy]}'.format(album=album))i+=1arg.append(str(i))arg.append(no_album_msg)arg.append('public')defget_show_link_dialog_args(self,links):args=['zenity','--info','--text={links}'.format(links=links),]returnargsLicenseTheimguruppackage is written by Chien-Wei Huang. It’s MIT licensed and freely available.Feel free to improve this package and send a pull request to GitHub.