Skip to content
Discussion options

You must be logged in to vote

Hi, @Nic-Ma ,
Ok, the current solution, I have to use opencv to read in the image, convert it to grayscale and store it, and then use the same (except ConvertGray) transforms, everything works fine, I still don't know where the problem is.

import cv2 as cv
img = cv.imread('img.png')
img_gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
cv.imwrite('img.png', img_gray)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Nic-Ma
Comment options

Answer selected by Minxiangliu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants