Skip to main content

TwitterFacebookInstagramYouTubeWhatsAppWWWPinterestE-Mail


What can you do with Pd2img?

This package allows you to open image files and convert them to a pandas Dataframe After you are done with your work, you can save the dataframe as an Image

how to use it

Everything you need to know

from pd2img import Pd2Img
df = Pd2Img(r"C:\Users\Gamer\Documents\Downloads\WhatsApp Image 2022-04-21 at 5.07.14 PM.jpeg")  # creating an instance
df.to_file_rgb('f:\\testimagefile1.png')  # save the dataframe to an RGB image
df.to_file_rgba('f:\\testimagefile2.png')  # save the dataframe to an RGBA image 
np3 = df.to_numpy_rgb()  # convert the image to an numpy array (RGB, not BGR!)
np4 = df.to_numpy_rgba()  # convert the image to an numpy array (RGBA)

print(df.df)  # printing the dataframe
           y     x  red  green  blue
0          0     0  155    150   144
1          0     1  155    150   144
2          0     2  153    148   142
3          0     3  152    147   141
4          0     4  151    147   138
      ...   ...  ...    ...   ...
1224955  956  1275  189    190   185
1224956  956  1276  189    190   185
1224957  956  1277  189    190   185
1224958  956  1278  189    190   185
1224959  956  1279  189    190   185

Metadata

Release files for pd2img 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pd2img 0.0.3
File Size Uploaded Provenance Actions
pd2img-0.0.3.tar.gz 3.3 kB Without provenance Details for pd2img-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pd2img 0.0.3
File Interpreter ABI Platform Actions
pd2img-0.0.3-py3-none-any.whl Python 3 none any Details for pd2img-0.0.3-py3-none-any.whl

Total release size: 6.3 kB

Release files / pd2img-0.0.3.tar.gz

Download URL pd2img-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
25e903d7d292704266a3647fcec2b752ca8ed998d6372300c0125cde29156bbc
BLAKE2b-256 checksum
How to use checksums
896ed7eab85b38963b86bd7361c0e33f591bd657a3d0e3cb399cf4b8ca980639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pd2img-0.0.3-py3-none-any.whl

Download URL pd2img-0.0.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e09a8603b9bab8b00acca33ee638109b13fdf9c894a47e1d737e5f34b21e4ca
BLAKE2b-256 checksum
How to use checksums
6a61dd0ae19faff6e817de0e0a6ac7ac634566a631ef984289325499f4de7b18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Security for pd2img 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page