NvJpeg - Python
Require
- nvjpeg
- cuda >= 10.2
- numpy >= 1.7
- python >= 3.6
- gcc >= 7.5
- make >= 4.1
Install
pip install pynvjpeg
Usage
#!/usr/bin/env python3
from nvjpeg import NvJpeg
# read file
fp = open("input-image.jpg", "rb")
jpegData = fp.read()
fp.close()
# decode
nj = NvJpeg()
img_np = nj.decode(jpegData)
# use opencv show numpy image data
cv2.imshow("Demo", img_np)
cv2.waitKey(0)
# encode numpy image data
jpg = nj.encode(img_np)
# write file
fp = open("output-image.jpg", "wb")
fp.write(jpg)
fp.close()
Metadata
Release files for pynvjpeg 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pynvjpeg-0.0.6.tar.gz | 5.0 kB | Without provenance | Details |
Release files / pynvjpeg-0.0.6.tar.gz
| Download URL | pynvjpeg-0.0.6.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c48c8ff8d4270fe00b39479448bad063a35895369a423594ed27123e311a53b
|
|
BLAKE2b-256 checksum How to use checksums |
e2e5ab383e862f8cd3a3add91a7096986ccd1653e9340523e1891a0d1610d13d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9
|
Security for pynvjpeg 0.0.6
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.