You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
Hope you all are doing fine.
Getting this below error:
frame = cv2. cvtColor(file,cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'cvtColor'
Overload resolution failed:
src is not a numpy array, neither a scalar
Expected Ptrcv::UMat for argument 'src'.
Find the code below:
file = st.file_uploader("Please upload an image", type=["jpg", "png"])
frame = cv2. cvtColor(file,cv2.COLOR_BGR2RGB)
Please help me resolving this error, Awaiting the response.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
Hope you all are doing fine.
Getting this below error:
frame = cv2. cvtColor(file,cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'cvtColor'
Find the code below:
file = st.file_uploader("Please upload an image", type=["jpg", "png"])
frame = cv2. cvtColor(file,cv2.COLOR_BGR2RGB)
Please help me resolving this error, Awaiting the response.
Regards,
Shrina
Beta Was this translation helpful? Give feedback.
All reactions