package uniquelCoordinate
|
|
/*
|
#cgo LDFLAGS: -Wl,-rpath,/opt/vasystem/libs/opencv3.4.8/lib
|
#cgo LDFLAGS: -L/opt/vasystem/libs -luniCoord
|
#include <stdlib.h>
|
#include "h_interface.h"
|
*/
|
import "C"
|
import "unsafe"
|
|
func TransCoord(str string) string {
|
var csp *C.char = C.CString(str)
|
defer C.free(unsafe.Pointer(csp))
|
|
cResult := C.transCoord(csp)
|
defer C.free(unsafe.Pointer(cResult))
|
|
return C.GoString(cResult) //不需要释放
|
}
|