how to print what is there is in a variable to the frame.
hi.
please help me. Im doing a project. In that project i will be getting response from the server. I want to print this response on the frame. I tried putting the response object in cv2.putText().
like this.
cv2.putText(frame, response , (0,50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0,0,255), 3, cv2.LINE_AA)
but this statement is giving me the error.
error:
cv2.putText(frame, response , (0,50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0,0,255), 3, cv2.LINE_AA)
TypeError: bad argument type for built-in operation
I googled the function to print what is there in the response. But I didn't get any function.
so pleae help me to solve this.
" this statement is giving me the error." Must we guess this error?
Why do you add a space bteween frame and response?
sorry I forgot to put the comma in between them. but even after putting the comma in between frame and response also im getting the error.
" also im getting the error." Must we guess this error? add error message as text in your post : use edit button