python_developer
رفتن به کانال در Telegram
کانال اموزش پایتون @Real_developer تبلیغات پذیرفته میشود.
نمایش بیشتر1 524
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-17 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
1 524
Downloading a Audio file from YouTube Video
Free Code: https://www.clcoding.com/2024/06/downloading-audio-file-from-youtube.html
1 524
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)
1 524
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
1 524
🖥 چگونه با استفاده از پایتون متن مخفی را در داخل یک عکس پنهان کنیم؟
هیچ چیز پیچیده ای نیست، فقط به کتابخانه Stegano نیاز دارید
# pip install stegano
from stegano import lsb
secret = lsb.hide('image.png', 'очень секретный текст')
secret.save('secret_image.png')
print(lsb.reveal('secret_image.png'))
1 524
+2
🖥 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.
