如何利用 Python 建立點陣圖 (廣東話)
Channel:
Subscribers:
5,680
Published on ● Video Link: https://www.youtube.com/watch?v=eHNpl6BUbBI
Requirements:
Install Python, PyCharm
In PyCharm, install the modules opencv-python and numpy
Source codes:
# create a bitmap image with Python
import cv2
import numpy as np
# image height 300, width 400
img = np.zeros((300, 400, 3), np.uint8) # unsigned integer 8 bit (0-255)
print(img)
for row in img:
for pixel in row:
pixel[0] = 32 # blue
pixel[1] = 32 # green
pixel[2] = 32 # red
cv2.imshow("Image", img)
cv2.waitKey(0)
Other Videos By 夏sir網上教室
2021-11-06 | 如何在 Python 程式中使用 Google Teachable Machine 建立的 model |
2021-11-04 | Python Face Recognition Demo |
2021-11-03 | Python Face Recognition |
2021-11-02 | Python 五行 codes下載 YouTube 影片 |
2021-10-25 | 詩歌 - Love was when |
2021-10-23 | 詩歌 - Let us send the light |
2021-10-22 | 詩歌 - Come Holy Spirit |
2021-10-22 | 詩歌 - The Lord is my shepherd |
2021-10-22 | 詩歌 - 恩賜 (絕版) |
2021-10-18 | Python Google Voice Assistance Setup on MacOS - with trouble-shooting on installing pyaudio (廣東話) |
2021-10-13 | 如何利用 Python 建立點陣圖 (廣東話) |
2021-10-12 | Sqlite Studio export table as CSV format |
2021-09-26 | Two's complement representation (4 bit) with CoSpaces EDU |
2021-09-24 | Instant OCR (Live Text) in iOS 15 |
2021-09-21 | ICT in supermarkets (self-service check out/kiosk) |
2021-09-16 | 3B@2014 Doreme Heat |
2021-09-16 | 1A@2014 Doreme Heat |
2021-09-16 | 1C@2014 Doreme Heat |
2021-09-16 | 5C@2014 Doreme Heat |
2021-09-16 | 1A@2014 Doreme Heat |
2021-09-16 | 4A@2014 Doreme Heat |