christian-korneck

christian-korneck

Member Since 7 years ago

Germany

Experience Points
32
follower
Lessons Completed
23
follow
Lessons Completed
2.9k
stars
Best Reply Awards
61
repos

112 contributions in the last year

Pinned
⚡ script to read the Windows 8.x OEM license key from PC firmware
⚡ "Docker Push Readme" - a Docker CLI plugin to update container repo docs
⚡ script to add new CA certificates to the Firefox trusted certificate store on Windows
⚡ Training material on how to leverage Python and Go together to solve different problems.
⚡ github action to delete artifacts at the end of a workflow run
⚡ github action to update a Docker Hub, Quay or Harbor repository description from a README file
Activity
Dec
6
2 hours ago
Dec
5
1 day ago
Activity icon
fork

christian-korneck forked cedowens/EntitlementCheck

⚡ Shell script for macOS to recursively check /Applications and also check /usr/local/bin, /usr/bin, and /usr/sbin for binaries with problematic/interesting entitlements.
christian-korneck Updated
fork time in 13 hours ago
started
started time in 14 hours ago
started
started time in 14 hours ago
Activity icon
issue

christian-korneck issue comment DataDog/go-python3

christian-korneck
christian-korneck

How do I create a Python bytes object

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 info

	webcam, _ := gocv.OpenVideoCapture(1)
	img := gocv.NewMat()
	webcam.Read(&img)
	buf := img.ToBytes() // the object to pass in python function
	face_buffer := python3.PyTuple_New(1)
	//buffer = buf
	python3.PyTuple_SetItem(face_buffer, 0,buf)  // how do I pass a Python bytes object
	face_res := getFaceStr.Call(face_buffer, python3.Py_None)
	log.Println(face_res)

thank you so much for your help !

christian-korneck
christian-korneck

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.

started
started time in 1 day ago
started
started time in 1 day ago
Dec
4
2 days ago
Dec
3
3 days ago
started
started time in 2 days ago
started
started time in 2 days ago
started
started time in 2 days ago
Dec
2
4 days ago
Previous