Want to turn any image into ASCII art? It's not magic, just simple brightness processing.
It's tedious and stupid to do it manually
img = [
[255, 0, 0],
[0, 255, 0]
]
# Now we need to pick a symbol for each pixel...
# What a hassle.Problem:
Manually selecting symbols by brightness is a pain. We need to automate the conversion of grayscale to symbols.
from PIL import Image
def image_to_ascii(path, width=100):
img = Image.open(path)
aspect = img.height / img.width
height = int(width * aspect * 0.55)
img = img.resize((width, height)).convert('L')
ascii_chars = '@%#*+=-:. '
pixels = img.getdata()
ascii_art = '\n'.join(
ascii_chars[pixel * (len(ascii_chars) - 1) // 255]
for pixel in pixels
)
lines = [ascii_art[i:i+width] for i in range(0, len(ascii_art), width)]
return '\n'.join(lines)
print(image_to_ascii('cat.jpg'))
How it works:
convert('L') converts the image to grayscale
Each pixel (0-255) is assigned a symbol from the set
The darker the pixel, the "denser" the symbol (e.g., '@'), the lighter - the "weaker" (space)
Let's write a converter with customizable palette:
class AsciiConverter:
PALETTES = {
'default': '@%#*+=-:. ',
'blocks': 'βrayed ',
'detailed': '$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\\|()1{}[]?-_+~<>i!lI;:,"^`\'. '
}
def __init__(self, palette_name='default'):
if palette_name not in self.PALETTES:
raise ValueError(f'ΠΠ΅Ρ ΡΠ°ΠΊΠΎΠΉ ΠΏΠ°Π»ΠΈΡΡΡ, ΠΈΠ΄ΠΈΠΎΡ. ΠΡΠ±Π΅ΡΠΈ ΠΈΠ·: {list(self.PALETTES.keys())}')
self.chars = self.PALETTES[palette_name]
def convert(self, image_path, width=80):
# ... code to convert using self.chars ...
return ascii_result
Try specifying a non-existent palette - you'll get a clear error.
Key parameters:
π΅ Width - determines the size of the final ASCII artπ΅ Character palette - affects the detail and styleπ΅ Aspect ratio - important for correct displayπ΅ Inversion - you can invert the brightness for a dark background
Important:
ASCII art isn't just a fun thing. It's used to visualize data in the console, create creative logs, and even "hide" information in plain sight.
Please open Telegram to view this post
VIEW IN TELEGRAM
β€9π3π2
Numpy_Cheat_Sheet.pdf
4.8 MB
NumPy Cheat Sheet: Data Analysis in Python
This #Python cheat sheet is a quick reference for #NumPy beginners.
Learn more:
https://www.datacamp.com/cheat-sheet/numpy-cheat-sheet-data-analysis-in-python
https://t.iss.one/DataAnalyticsX
This #Python cheat sheet is a quick reference for #NumPy beginners.
Learn more:
https://www.datacamp.com/cheat-sheet/numpy-cheat-sheet-data-analysis-in-python
https://t.iss.one/DataAnalyticsX
β€9π1π₯1π1
nature papers: 1200$
Q1 and Q2 papers 700$
Q3 and Q4 papers 400$
Doctoral thesis (complete) 600$
M.S thesis 300$
paper simulation 200$
Contact @Omidyzd62
Q1 and Q2 papers 700$
Q3 and Q4 papers 400$
Doctoral thesis (complete) 600$
M.S thesis 300$
paper simulation 200$
Contact @Omidyzd62
β€5π1
Please open Telegram to view this post
VIEW IN TELEGRAM
β€13π2π―2
AI Developers β finally something serious.
A German company π©πͺ (Brainlancer GmbH) is launching a curated B2B platform on April 1st, 2026.
Not a freelance marketplace.
Not an agency network.
A verified AI builder network.
Only a few spots are still open.
If you can actually ship outcomes like:
β’ RAG / Agents in production
β’ Automations + API integrations
β’ FastAPI tools, internal apps, backend systems
β apply now (free + anonymous).
https://assesment.brainlancer.com/?src=telegram
Step 1: 5 min form
Step 2: 15β20 min AI interview
Step 3: short call β early access
π Brainlancer.com (Landingpage)
π https://www.linkedin.com/in/soner-catakli/ (CEO)
A German company π©πͺ (Brainlancer GmbH) is launching a curated B2B platform on April 1st, 2026.
Not a freelance marketplace.
Not an agency network.
A verified AI builder network.
Only a few spots are still open.
If you can actually ship outcomes like:
β’ RAG / Agents in production
β’ Automations + API integrations
β’ FastAPI tools, internal apps, backend systems
β apply now (free + anonymous).
https://assesment.brainlancer.com/?src=telegram
Step 1: 5 min form
Step 2: 15β20 min AI interview
Step 3: short call β early access
π Brainlancer.com (Landingpage)
π https://www.linkedin.com/in/soner-catakli/ (CEO)
β€14π1π₯1
Forwarded from Learn Python Hub
This channels is for Programmers, Coders, Software Engineers.
0οΈβ£ Python
1οΈβ£ Data Science
2οΈβ£ Machine Learning
3οΈβ£ Data Visualization
4οΈβ£ Artificial Intelligence
5οΈβ£ Data Analysis
6οΈβ£ Statistics
7οΈβ£ Deep Learning
8οΈβ£ programming Languages
β
https://t.iss.one/addlist/8_rRW2scgfRhOTc0
β
https://t.iss.one/Codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
β€9π₯1
Forwarded from Learn Python Hub
Media is too big
VIEW IN TELEGRAM
9 key concepts of artificial intelligence, explained in 7 minutes
- Tokenization
- #TextDecoding
- #PromptEngineering
- Multi Step #AI Agents
- #RAGs
- #RLHF
- #VAE
- #DiffusionModels
- #LoRA
π @Python53
- Tokenization
- #TextDecoding
- #PromptEngineering
- Multi Step #AI Agents
- #RAGs
- #RLHF
- #VAE
- #DiffusionModels
- #LoRA
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π3
https://t.iss.one/RAICompass
Ω Ψ¨Ψ§Ψ―Ψ±Ψ© Ψ¬Ω ΩΩΨ© ΩΨ±Ψ¬Ω Ψ§ΩΨ§ΩΨΆΩ Ψ§Ω Ψ§ΩΩΩΨ§ - ΩΩΨ³ΩΨ±ΩΩΩ (Ω Ψ¨Ψ§Ψ―Ψ±Ψ© ΩΨ§Ω Ψ©)πΈπΎ
Ω Ψ¨Ψ§Ψ―Ψ±Ψ© Ψ¬Ω ΩΩΨ© ΩΨ±Ψ¬Ω Ψ§ΩΨ§ΩΨΆΩ Ψ§Ω Ψ§ΩΩΩΨ§ - ΩΩΨ³ΩΨ±ΩΩΩ (Ω Ψ¨Ψ§Ψ―Ψ±Ψ© ΩΨ§Ω Ψ©)
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
Ω
Ψ¨Ψ§Ψ―Ψ±Ψ© "Ψ¨ΩΨ΅ΩΨ© Ψ§ΩΨ°ΩΨ§Ψ‘ Ψ§ΩΨ΅ΩΨΉΩ Ψ§ΩΩ
Ψ³Ψ€ΩΩ"
RAI.Compass
Ψ°ΩΨ§Ψ‘Ω ΩΩΩΨ―Ω Ψ§ΩΨΆΩ ΩΨ±... ΩΩΩΨΆΨ¨Ψ· Ψ¨Ψ§ΩΩ ΨΉΩΨ§Ψ± ...ΩΩΨ΅ΩΨΉ Ψ§ΩΩ Ψ³ΨͺΩΨ¨Ω Ψ§ΩΩ Ψ³Ψ€ΩΩ
Ω Ψ€Ψ³Ψ³ Ψ§ΩΩ Ψ¨Ψ§Ψ―Ψ±Ψ©: Ψ―. Ψ³ΩΨ³Ω Ψ§Ψ³Ψ¬ΩΨΉ
Ψ°ΩΨ§Ψ‘Ω ΩΩΩΨ―Ω Ψ§ΩΨΆΩ ΩΨ±... ΩΩΩΨΆΨ¨Ψ· Ψ¨Ψ§ΩΩ ΨΉΩΨ§Ψ± ...ΩΩΨ΅ΩΨΉ Ψ§ΩΩ Ψ³ΨͺΩΨ¨Ω Ψ§ΩΩ Ψ³Ψ€ΩΩ
Ω Ψ€Ψ³Ψ³ Ψ§ΩΩ Ψ¨Ψ§Ψ―Ψ±Ψ©: Ψ―. Ψ³ΩΨ³Ω Ψ§Ψ³Ψ¬ΩΨΉ
π₯2
This media is not supported in your browser
VIEW IN TELEGRAM
β€15π₯3π1
Master Python together with the University of Helsinki
β’ get an official certificate after completion
β’ go from complete beginner to confident level
β’ 14 intensive modules with practical tasks
The course is waiting for you here
https://programming-25.mooc.fi/
β’ get an official certificate after completion
β’ go from complete beginner to confident level
β’ 14 intensive modules with practical tasks
The course is waiting for you here
https://programming-25.mooc.fi/
β€12π1
π¨π»βπ» When I was just starting out and trying to get into the "data" field, I had no one to guide me, nor did I know what exactly I should study. To be honest, I was confused for months and felt lost.
Please open Telegram to view this post
VIEW IN TELEGRAM
β€14π3
Forwarded from Data Analytics
These 9 lectures from Stanford are a pure goldmine for anyone wanting to learn and understand LLMs in depth
Lecture 1 - Transformer: https://lnkd.in/dGnQW39t
Lecture 2 - Transformer-Based Models & Tricks: https://lnkd.in/dT_VEpVH
Lecture 3 - Tranformers & Large Language Models: https://lnkd.in/dwjjpjaP
Lecture 4 - LLM Training: https://lnkd.in/dSi_xCEN
Lecture 5 - LLM tuning: https://lnkd.in/dUK5djpB
Lecture 6 - LLM Reasoning: https://lnkd.in/dAGQTNAM
Lecture 7 - Agentic LLMs: https://lnkd.in/dWD4j7vm
Lecture 8 - LLM Evaluation: https://lnkd.in/ddxE5zvb
Lecture 9 - Recap & Current Trends: https://lnkd.in/dGsTd8jN
Start understanding #LLMs in depth from the experts. Go through each step-by-step video.
https://t.iss.one/DataAnalyticsXπ
Lecture 1 - Transformer: https://lnkd.in/dGnQW39t
Lecture 2 - Transformer-Based Models & Tricks: https://lnkd.in/dT_VEpVH
Lecture 3 - Tranformers & Large Language Models: https://lnkd.in/dwjjpjaP
Lecture 4 - LLM Training: https://lnkd.in/dSi_xCEN
Lecture 5 - LLM tuning: https://lnkd.in/dUK5djpB
Lecture 6 - LLM Reasoning: https://lnkd.in/dAGQTNAM
Lecture 7 - Agentic LLMs: https://lnkd.in/dWD4j7vm
Lecture 8 - LLM Evaluation: https://lnkd.in/ddxE5zvb
Lecture 9 - Recap & Current Trends: https://lnkd.in/dGsTd8jN
Start understanding #LLMs in depth from the experts. Go through each step-by-step video.
https://t.iss.one/DataAnalyticsX
Please open Telegram to view this post
VIEW IN TELEGRAM
β€7π3π3
Design patterns are proven solutions to common problems in development. If you've ever found yourself constantly writing the same thing when creating objects or struggling with managing different types of objects, then the factory pattern might be exactly what you need.
In this tutorial:
https://www.freecodecamp.org/news/how-to-use-the-factory-pattern-in-python-a-practical-guide/
you'll learn what a factory is, why it's useful, and how to implement it in #Python. We'll gather practical examples that will show when and how to apply this pattern in real tasks.
The code can be found on #GitHub
https://github.com/balapriyac/python-basics/tree/main/design-patterns/factory
https://t.iss.one/CodeProgrammer
In this tutorial:
https://www.freecodecamp.org/news/how-to-use-the-factory-pattern-in-python-a-practical-guide/
you'll learn what a factory is, why it's useful, and how to implement it in #Python. We'll gather practical examples that will show when and how to apply this pattern in real tasks.
The code can be found on #GitHub
https://github.com/balapriyac/python-basics/tree/main/design-patterns/factory
https://t.iss.one/CodeProgrammer
β€6π1
Forwarded from Machine Learning
π Your First 90 Days as a Data Scientist
π Category: DATA SCIENCE
π Date: 2026-02-14 | β±οΈ Read time: 8 min read
A practical onboarding checklist for building trust, business fluency, and data intuition
#DataScience #AI #Python
π Category: DATA SCIENCE
π Date: 2026-02-14 | β±οΈ Read time: 8 min read
A practical onboarding checklist for building trust, business fluency, and data intuition
#DataScience #AI #Python
β€3
A full-fledged educational course has been published on the university's website: 24 lectures, practical tasks, homework assignments, and a collection of materials for self-study.
The program includes modern neural network architectures, generative models, transformers, inference, and other key topics.
A great opportunity to study deep learning based on the structure of a top university, free of charge and without simplifications β let's learn here.
https://ocw.mit.edu/courses/6-7960-deep-learning-fall-2024/resources/lecture-videos/
tags: #python #deeplearning
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π1π1
This media is not supported in your browser
VIEW IN TELEGRAM
We're sharing a cool resource for learning about neural networks, offering clear, step-by-step instruction with dynamic visualizations and easy-to-understand explanations.
In addition, you'll find many other useful materials on machine learning on the site.
Find and use it β https://mlu-explain.github.io/neural-networks/
tags: #AI #ML #PYTHON
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π₯2π1
Forwarded from Learn Python Hub
Media is too big
VIEW IN TELEGRAM
Data scientists are in high demand right now: there's just too much data to analyze.
In this course, Tatev and Vae teach #Python for #DataScience.
You'll be doing projects and exploring EDA, A/B testing, BI, and more.
https://t.iss.one/Python53π
In this course, Tatev and Vae teach #Python for #DataScience.
You'll be doing projects and exploring EDA, A/B testing, BI, and more.
https://t.iss.one/Python53
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6
The biggest surprise for our valued audience: we are offering 40 paid courses completely free.
30 Enrollment Left:
Enroll Here and request
https://lve.to/jwxfnss0yi
We use a spam/flood protection system to ensure that all registered users are real people.
30 Enrollment Left:
Enroll Here and request
https://lve.to/jwxfnss0yi
We use a spam/flood protection system to ensure that all registered users are real people.
β€3