cvlite
Ready-to-run Google Colab code for 8 computer vision topics, with an explanation of every function each one uses.
Install
!pip install cvlite
import cvlite
Installing cvlite also installs everything the code needs: NumPy, OpenCV, Matplotlib, pandas, scikit-image, Pillow, PyTorch, transformers and pyperclip. In Colab these are already present, so only cvlite itself (and pyperclip) is downloaded.
Use
cvlite.labs() # list the 8 labs
cvlite.code(3, "/content/photo.jpg") # copy ready-to-run code for lab 3 (with your image path) to the clipboard
cvlite.print_code(3, "/content/photo.jpg") # print the code instead
cvlite.explain(3) # aim, steps, theory and every function used, explained
cvlite.run(3, "/content/photo.jpg") # run lab 3 straight away
cvlite.get_code(3, "/content/photo.jpg") # the code as a string
cvlite.usage() # this help
In Colab and Jupyter, cvlite.code() shows a Copy code button (browsers only allow copying after a click), then you paste into a new cell. In a terminal or a Python script it copies straight to the system clipboard.
| Lab | Input | Topic |
|---|---|---|
| 1 | image | Colour models: RGB, CMYK, YCbCr, HSV, Grayscale and all their channels |
| 2 | image | Histogram equalization and the equalized histogram |
| 3 | image | Edge detection: Sobel, Laplacian, Canny |
| 4 | image | ROI identification (Otsu, morphology, contours). Change num_rois in the code to pick how many |
| 5 | image | GrabCut segmentation with the entire image as the ROI |
| 6 | image | Region analysis (watershed segmentation): shape, PCA orientation, GLCM texture, description, CSV |
| 7 | video | Object tracking (CSRT, or MIL if CSRT is missing) with trajectory |
| 8 | video or image | Scene caption with BLIP (needs internet; a GPU is optional) |
Lab 6 writes region_measurements.csv and lab 7 writes tracking_output.mp4 into the current folder (/content in Colab).
Metadata
Release files for cvlite 1.1.0
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 | Actions |
|---|---|---|---|---|
| cvlite-1.1.0.tar.gz | 30.0 kB | Without provenance | Details for cvlite-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cvlite-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for cvlite-1.1.0-py3-none-any.whl |
Total release size: 62.3 kB
Release files / cvlite-1.1.0.tar.gz
| Download URL | cvlite-1.1.0.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c90f66d3e7ab01886a20a449fcc1128eeedb57c55132370649abedf8ff33a5e6
|
|
BLAKE2b-256 checksum How to use checksums |
8586837f81a8c12707c1c7c8ec69336264c3c795c04888e37a53b7903443a2f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / cvlite-1.1.0-py3-none-any.whl
| Download URL | cvlite-1.1.0-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3a1af1836ec88886d8b9222aa6c6a67ab80119fcdfb533458894a14f8c5f61e
|
|
BLAKE2b-256 checksum How to use checksums |
3289920243410b86a73422de54bec75bb9ee709410d6d64452af6069951629be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for cvlite 1.1.0
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.