글

라벨이 Image Processing인 게시물 표시

LED-10. Make 256 X 126 size RGB Matrix

이미지
A few days ago I received four P2.5 126x64 RGB LED matrix ordered from AliExpress. In this blog, I will connect four LED Matrixes to create a 256X 128-sized display. Preparations are as follows. Materials Raspberry Pi 4 : 1 P2.5 128X64 RGB LED Matrix : 4 Electrodragon RGB LED Matrix HAT :1 Hub74 cable : 4 LED Power cable:2 5V power supply : 1 <P2.5 128X64 4EA RGB LED Matrix> <hub75 cable    LED power cable  5V Power supply> RGB LED Matrix HAT setup The 126X64 size RGB LED Matrix is ​​mostly 1/32 multiplexed. Be sure to check the manual of the LED matrix you use for exact details. If you're in 1/32 multiplexing mode, you'll need to tweak some of the Electrodragon HAT's jumper settings. <Electrodragon HAT jumper settings for 1/32 multiplexing> And I'm going to use 2 Hub74 sockets at the same time. Therefore, I will connect the HUB 74 sockets P1, P2 of Electro Dragon HAT together to the LED matrix. <Electrodragon HAT HUB 74 socket P1, P2 are connected ...

LED - Manage your LED related python codes using Node-RED

이미지
So far, many Python examples have been created to use the LED matrix. And most of them worked by using ssh remote access or directly connecting a local monitor and keyboard to the Raspberry Pi. However, there is one major drawback to this type of work. There is no scenario management function. Most LED signboards show multiple sentences or images repeatedly in sequence, depending on the conditions. Therefore, we need a tool to properly run the Python files for controlling our LEDs. A suitable tool for this purpose is Node-RED. Node-RED is a flow-based development tool for visual programming developed originally by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things . [2] Node-RED provides a web browser -based flow editor, which can be used to create JavaScript functions. Elements of applications can be saved or shared for re-use. The runtime is built on Node.js . The flows created in Node-RED are stored using JSON . ...

LED - Text Effect

이미지
In a previous post, I showed you how to display a variety of non-English languages ​​on an LED matrix. In this post, I will look at displaying colorful text that has been image-processed on the LED, rather than just displaying simple text. The image processing content introduced in this article is related to the previous post and https://opencvcooking.blogspot.com/2019/12/basic-cooking-2-pil-text.html . Outline Text Outline text is the text extracted from the outline of the font as shown in the following figure. gimp and other image editing tools make it easy to create outline text images. Let's see how to make it using PIL. In the previous OpenCV blog, the results of the processing were output to a computer screen or file, but this time to the LED matrix. <Outline text Example> See the previous post on how to handle fonts in PIL. import argparse import time , os from PIL import Image, ImageDraw, ImageFont from rgbmatrix import RGBMatrix, R...