error #27
Replies: 2 comments
-
Somewhere you have missed the argument: def function(): // I don't have any variable to recieve the argument while(vid.isOpened()): Hope you would find the mistake in your code after this. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks...... Resolved!!!
…On Wed, 13 Oct 2021, 6:17 am Rajeev Nayan Agrawal, ***@***.***> wrote:
error: OpenCV(4.5.3) 👎 error: (-5:Bad argument) in function 'inRange'
Overload resolution failed:
- src is not a numpy array, neither a scalar
- Expected Ptrcv::UMat for argument 'src'
Resolve it please!!!!!!!!!!!!!!!
Somewhere you have missed the argument:
For example:
def function(): // I don't have any variable to recieve the argument
cap.set(7, 200)
cap.set(5, 600)
while(vid.isOpened()):
_, frame = vid.read()
resized_image = function(cap) //Here I am passing the argument to the
function
final_image = cv.Canny(frame, 0, 255) //The real input should be the
"resized_image" instead of that i have passed the "frame" itself
Hope you would find the mistake in your code after this.
Otherwise please share your code with us, so that we can resolve your
issue more specifically!
Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATP2IQFK5PEEK6BJ5K54XB3UGTM4FANCNFSM5F3JAT3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
error: OpenCV(4.5.3) 👎 error: (-5:Bad argument) in function 'inRange'
Resolve it please!!!!!!!!!!!!!!!
Beta Was this translation helpful? Give feedback.
All reactions