Street View Image Processing and Solar Loaction Library
Github: https://github.com/GIStudio/StreetSolarTrack
This library provides a Photo class to handle basic street view image processing tasks, including reading images, displaying them, and retrieving image file details.
Features
- Read and display images
- Get image dimensions (width and height)
- Get image file size
TODO
Installation
- Ensure you have Python installed.
- Download or clone this repository.
- Include the street_view directory in your project.
Install on Colab or Kaggle
run this (you may need restart the session):
!pip install hatchling
!pip install git+https://github.com/GIStudio/StreetSolarTrack.git
Usage
Here is a basic example of how to use the Photo class:
from StreetSolarTrack.utils.photo import Photo
# Create a Photo instance and read an image
photo = Photo('path_to_your_image.jpg')
# Display the object's string representation
print(photo)
# Show the image
# photo.show_image()
# Get and print the image dimensions
print(f"Image size (width, height): {photo.get_image_size()}")
# Get and print the file size
print(f"File size (bytes): {photo.get_file_size()}")
API Documentation
API Documentation
Photo
__init__(self, file_path=None)
Initialize a Photo instance.
file_path(str, optional): The path to the image file. If provided, the image will be read during initialization.
read_image(self, file_path)
Read an image from a file path.
file_path(str): The path to the image file.
Raises:
FileNotFoundError: If the file does not exist.
show_image(self)
Display the image using the default image viewer.
get_image_size(self)
Get the size (width, height) of the image.
Returns:
- Tuple (int, int): The width and height of the image.
Raises:
ValueError: If no image is loaded.
get_file_size(self)
Get the file size of the image in bytes.
Returns:
- int: The file size in bytes.
Raises:
ValueError: If no file path is provided.
__repr__(self)
Return a string representation of the Photo instance.
Dev
This lib is build under the guide of :
Metadata
Release files for StreetSolarTrack 0.0.10
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 | |
|---|---|---|---|---|
| streetsolartrack-0.0.10.tar.gz | 4.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streetsolartrack-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 MB
Release files / streetsolartrack-0.0.10.tar.gz
| Download URL | streetsolartrack-0.0.10.tar.gz |
|---|---|
| Size | 4.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c55798b7332ba48cb36d35a9171ff209ad1f6a434409d4d0e4dcb59b44a16dfb
|
|
BLAKE2b-256 checksum How to use checksums |
613882a1f260233c61253b257025099155ac47954de821ed06c313e4b22215f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / streetsolartrack-0.0.10-py3-none-any.whl
| Download URL | streetsolartrack-0.0.10-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50a58433e0791eba40ed565b3d01ab221e6fad5d7cb24feec9b0112af1e92f84
|
|
BLAKE2b-256 checksum How to use checksums |
9ee670591944abd73dfbf594eb525082a356220e17608eca289fba70d581c155
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for StreetSolarTrack 0.0.10
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.