Tagged articles
16 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Sep 7, 2024 · Fundamentals

One‑Line Python Tricks and Reading CT Images with NumPy

This article demonstrates how to load a stack of CT scan images into a NumPy array with a single line of Python code and shares several creative one‑liner Python snippets—including multiplication tables, mazes, love patterns, and a turtle graphics Christmas tree—illustrating the expressive power of Python for quick data processing and visual fun.

One-linerPIL
0 likes · 6 min read
One‑Line Python Tricks and Reading CT Images with NumPy
MaGe Linux Operations
MaGe Linux Operations
Mar 3, 2022 · Fundamentals

Create Stunning Chinese Spring Couplets with Python in 70 Lines

Learn how to generate traditional Chinese spring couplets as decorative images using a concise Python script—covering required modules, character image retrieval, background handling, layout generation, and sample outputs—with clear code snippets and usage examples.

Chinese CalligraphyPILPython
0 likes · 6 min read
Create Stunning Chinese Spring Couplets with Python in 70 Lines
MaGe Linux Operations
MaGe Linux Operations
Oct 21, 2021 · Fundamentals

How to Hide Secret Messages in Photos with Python and OpenCV

This tutorial shows how to embed hidden text into an image using Python's OpenCV and PIL libraries, detailing the step‑by‑step process, complete code, customization tips, and visual results, enabling messages that appear only when the picture is enlarged.

Hidden MessageImage ProcessingOpenCV
0 likes · 4 min read
How to Hide Secret Messages in Photos with Python and OpenCV
21CTO
21CTO
Mar 22, 2020 · Fundamentals

How a Wuhan Student Used Python to Paint a Blooming Cherry Blossom from Pixels

A Wuhan University student turned the phrase “武汉加油” into thousands of colored pixels using Python, creating a time‑lapse cherry blossom animation that celebrates spring and supports the city, with step‑by‑step code for image generation, video assembly, and pixel‑level color handling.

Image ProcessingOpenCVPIL
0 likes · 6 min read
How a Wuhan Student Used Python to Paint a Blooming Cherry Blossom from Pixels