- 博客(3)
- 收藏
- 关注
原创 333
import cv2 as cv src = cv.imread("3.png", cv.IMREAD_UNCHANGED) cv.imshow("src", src) B, G, R, Alpha = cv.split(src) cv.imshow("B", B) cv.imshow("G", G) cv.imshow("R", R) cv.imshow("Alpha", Alpha) Alpha_Canny = cv.Canny(Alpha, 50, 100) cv.imshow("canny",.
2020-05-19 09:10:58
127
原创 222
import cv2 as cv src = cv.imread("test.png", cv.IMREAD_COLOR) cv.imshow("src", src) gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY) cv.imshow("gray", gray) ret, thres = cv.threshold(gray, 20, 255, cv.THRESH_BINARY | cv.THRESH_TRIANGLE) cv.imshow("thres", thre.
2020-05-15 11:04:58
185
原创 111
#include <opencv2/opencv.hpp> #include <iostream> int main() { cv::Mat src = cv::imread("test.png", cv::IMREAD_COLOR); cv::imshow("src", src); /*for (int i = 0; i < src.rows; i++) { for (int j = 0; j < src.cols; j++) { std::.
2020-05-15 10:34:32
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人