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
{{ message }}
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
I wanted to pass a byte object to my python code but I have no idea with it:
my code:
facedetect:=ImportModule("./hello", "facedetect")
getFaceStr:=facedetect.GetAttrString("getFaceStr") // my python function to get face infowebcam, _:=gocv.OpenVideoCapture(1)
img:=gocv.NewMat()
webcam.Read(&img)
buf:=img.ToBytes() // the object to pass in python functionface_buffer:=python3.PyTuple_New(1)
//buffer = bufpython3.PyTuple_SetItem(face_buffer, 0,buf) // how do I pass a Python bytes objectface_res:=getFaceStr.Call(face_buffer, python3.Py_None)
log.Println(face_res)
thank you so much for your help !
The text was updated successfully, but these errors were encountered:
as this project might get archived any day (so it might not be possible for anyone to respond to your issue anymore soon), I'd like to invite you to also open your issue on this fork.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I wanted to pass a byte object to my python code but I have no idea with it:
my code:
thank you so much for your help !
The text was updated successfully, but these errors were encountered: