New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Argument 'alpha' can not be treated as a double" #35
Comments
Hi, I have met the same question. Have you solved it? |
I have met the same problem, when i try to reduce the version of opencv-python to 3 and reinstall ffmpeg, this probem did not recur |
The "alpha" argument is the second argument in
Since I cannot reproduce this issue, you can set a breakpoint there and see if the value of Also, it may be caused by the incompatibility of |
have you solved the problem yet? plz help |
Might be a bit late but did you make sure that alpha was the correct data type? For example, if alpha was supposed to be an integer, did you use the int() method or ensure that the value that would replace alpha is an integer? |
Same problem. transparency = max(0, min(1, kp_scores[n])).item()
# ...
transparency = max(0, min(1, 0.5 * (kp_scores[start_p] + kp_scores[end_p]))).item() |
It works,really thanks |
I encountered a similar issue with the function 'AddWeighted'. However, I was able to address the problem by developing a custom function, which works well. The problem arose when I attempted to pass an array as an alpha parameter, resulting in the error 'Argument alpha cannot be treated as a double'. Consequently, I sought to investigate the underlying issue and, as a solution, introduced a new function named 'customAddWeighted'. To see the full code: https://github.com/javadasoodeh/CV/blob/main/opencv_basic/alpha_blending.py Please note that the provided link may be subject to change. To access the relevant information, kindly navigate to the 'https://github.com/javadasoodeh/CV' section and search for the file name 'alpha_blending.py'.
|
When I try to run python videopose.py with the demo video, I get the message "Argument 'alpha' can not be treated as a double:
The script seems to continue, though I'm not sure if it eventually finishes, since I had to interrupt.
The text was updated successfully, but these errors were encountered: