Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to solv this problem ? SyntaxError: only named arguments may follow *expression

i am making a project with python but i am new in python3 opencv. i got this error when trying to run. gray = gray.reshape(*gray.shape,1) SyntaxError: only named arguments may follow *expression what is the best way to deal with?

the part the code is gray = rgb2gray(cropped) gray = gray.reshape(gray.shape,1) and when i run i got gray = gray.reshape(gray.shape,1) SyntaxError: only named arguments may follow *expression