当前位置:网站首页>Image 24 bits de profondeur à 8 bits de profondeur
Image 24 bits de profondeur à 8 bits de profondeur
2022-07-03 17:56:00 【Je suis un petit riz.】
import os
import cv2
import numpy as np
labels_path = 'label_5_class_png_1024_1024'
labels_save_path = 'label_5_class_png_1024_1024_1'
// Obtenir tous les fichiers sous le dossier
label_names = os.listdir(labels_path)
for s in label_names:
label_path = os.path.join(labels_path, s)
label_save_path = os.path.join(labels_save_path, s)
// Lire le fichier
label = cv2.imread(label_path)
// 24Rotation de la profondeur du BIT8Profondeur du BIT
label = cv.cvtColor(label, cv.COLOR_BGR2GRAY)
// Enregistrer le fichier
cv2.imwrite(label_save_path, label)
边栏推荐
- Applet with multiple tabs and Swipers + paging of each tab
- [LINUX]CentOS 7 安装MYSQL时报错“No package mysql-server available“No package zabbix-server-mysql availabl
- As soon as we enter "remote", we will never regret, and several people will be happy and several people will be sad| Community essay solicitation
- PHP MySQL Update
- Redis core technology and practice - learning notes (11): why not just string
- PHP MySQL inserts multiple pieces of data
- Notes on problems -- watching videos on edge will make the screen green
- Leetcode 108 converts an ordered array into a binary search tree -- recursive method
- Codeforces Round #803 (Div. 2) C. 3SUM Closure
- [combinatorics] recursive equation (four cases where the non-homogeneous part of a linear non-homogeneous recursive equation with constant coefficients is the general solution of the combination of po
猜你喜欢

STM32实现74HC595控制
![[set theory] order relation: summary (partial order relation | partial order set | comparable | strictly less than | covering | hasto | total order relation | quasi order relation | partial order rela](/img/df/a034032e203e7935dafaf8a71cb6c8.jpg)
[set theory] order relation: summary (partial order relation | partial order set | comparable | strictly less than | covering | hasto | total order relation | quasi order relation | partial order rela

PHP MySQL inserts multiple pieces of data

How to purchase Google colab members in China

PHP MySQL preprocessing statement

TCP拥塞控制详解 | 3. 设计空间

win32:堆破壞的dump文件分析

Leetcode 108 converts an ordered array into a binary search tree -- recursive method

(8) HS corner detection

互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
随机推荐
AcWing 271. 杨老师的照相排列【多维DP】
Research on Swift
TCP congestion control details | 3 design space
Write a program to process a list container of string type. Find a special value in the container 9.27: and delete it if found. Rewrite the above procedure with deque container.
Line by line explanation of yolox source code of anchor free series network (6) -- mixup data enhancement
PHP MySQL where clause
(8) HS corner detection
Fedora 21 安装 LAMP 主机服务器
PHP MySQL inserts data
Life perception 1
i++与++i的区别:通俗易懂的讲述他们的区别
IntelliJ 2021.3 short command line when running applications
ArrayList分析3 : 删除元素
STM32实现74HC595控制
List of financial products in 2022
Notes on problems -- watching videos on edge will make the screen green
How to read the source code [debug and observe the source code]
PHP returns 500 errors but no error log - PHP return 500 error but no error log
QT learning diary 9 - dialog box
Module 9 operation