🖥 zarr - Python library for implementing compressed N-dimensional arrays
- pip install zarr
Zarr provides classes and functions for working with N-dimensional arrays, which behave like #NumPy arrays, but the data is divided into chunks and each chunk is compressed. If anyone is familiar with HDF5, Zarr arrays provide similar functionality, but they are more convenient.
Also, unlike HDF5, Zarr has better multithreading support.
- pip install zarr
Zarr provides classes and functions for working with N-dimensional arrays, which behave like #NumPy arrays, but the data is divided into chunks and each chunk is compressed. If anyone is familiar with HDF5, Zarr arrays provide similar functionality, but they are more convenient.
Also, unlike HDF5, Zarr has better multithreading support.
learneverythingai .pdf
3.8 MB
آموزش کتابخانه pandas در پایتون با مثال
🖥 چگونه با استفاده از پایتون متن مخفی را در داخل یک عکس پنهان کنیم؟
هیچ چیز پیچیده ای نیست، فقط به کتابخانه Stegano نیاز دارید
# pip install stegano
from stegano import lsb
secret = lsb.hide('image.png', 'очень секретный текст')
secret.save('secret_image.png')
print(lsb.reveal('secret_image.png'))
هیچ چیز پیچیده ای نیست، فقط به کتابخانه Stegano نیاز دارید
# pip install stegano
from stegano import lsb
secret = lsb.hide('image.png', 'очень секретный текст')
secret.save('secret_image.png')
print(lsb.reveal('secret_image.png'))
How to easily blur any image using PIL
from PIL import Image, ImageFilter
def blur_image(image_path, output_path, radius):
image = Image.open(image_path)
blurred_image = image.filter(ImageFilter.GaussianBlur(radius))
blurred_image.save(output_path)
blur_image('cat.jpg', 'cat_out.jpg', 3)
Image.open('cat_out.jpg')
🟡 In general, the PIL library has a lot of features and excellent documentation
from PIL import Image, ImageFilter
def blur_image(image_path, output_path, radius):
image = Image.open(image_path)
blurred_image = image.filter(ImageFilter.GaussianBlur(radius))
blurred_image.save(output_path)
blur_image('cat.jpg', 'cat_out.jpg', 3)
Image.open('cat_out.jpg')
🟡 In general, the PIL library has a lot of features and excellent documentation
Convert Image to text
import pytesseract as t
from PIL import Image
img = Image.open("photo.jpg")
text = t.image_to_string(img)
print(text)
import pytesseract as t
from PIL import Image
img = Image.open("photo.jpg")
text = t.image_to_string(img)
print(text)
Downloading a Audio file from YouTube Video
Free Code: https://www.clcoding.com/2024/06/downloading-audio-file-from-youtube.html
Free Code: https://www.clcoding.com/2024/06/downloading-audio-file-from-youtube.html