当前位置:网站首页>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)
边栏推荐
- 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
- [mathematical logic] equivalent calculus and reasoning calculus of predicate logic (individual word | predicate | quantifier | predicate logic formula | two basic formulas | proposition symbolization
- 面试官:值为 nil 为什么不等于 nil ?
- QT adjust win screen brightness and sound size
- Create a new file from templates with bash script - create new file from templates with bash script
- Enterprise custom form engine solution (XI) -- form rule engine 1
- PHP MySQL reads data
- Research Report on investment trends and development planning of China's thermal insulation material industry, 2022-2028
- Redis core technology and practice - learning notes (IX): slicing cluster
- Talk about the design and implementation logic of payment process
猜你喜欢
![网格图中递增路径的数目[dfs逆向路径+记忆dfs]](/img/57/ff494db248171253996dd6c9110715.png)
网格图中递增路径的数目[dfs逆向路径+记忆dfs]

Analysis report on production and marketing demand and investment forecast of China's PVC industry from 2021 to 2026

Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13

模块九作业

QT learning diary 9 - dialog box

PHP MySQL inserts data

Records of long objects and long judgments in the stream of list

聊聊支付流程的设计与实现逻辑

How to install PHP on Ubuntu 20.04

Global and Chinese pediatric palliative care drug market development research and investment planning recommendations report 2022-2028
随机推荐
Leetcode Valentine's Day Special - looking for a single dog
Micro service component sentinel console call
一入“远程”终不悔,几人欢喜几人愁。| 社区征文
Fedora 21 安装 LAMP 主机服务器
[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
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.
A. Berland Poker & 1000 [simple mathematical thinking]
A. Berland Poker &1000【简单数学思维】
QT adjust win screen brightness and sound size
ES6类的继承
Internet hospital his management platform source code, online consultation, appointment registration smart hospital applet source code
AcWing 271. 杨老师的照相排列【多维DP】
[Yu Yue education] family education SPOC class 2 reference materials of Shanghai Normal University
ArrayList分析3 : 删除元素
Classroom attendance system based on face recognition tkinter+openpyxl+face_ recognition
Graduation summary
聊聊支付流程的設計與實現邏輯
Ssl/bio of OpenSSL_ get_ fd
远程办公工具分享|社区征文
PHP returns 500 errors but no error log - PHP return 500 error but no error log