Home > Net >  C # call C function pointer
C # call C function pointer

Time:10-21

Hai kang face recognition secondary development, c # call c + + function, return to face the result is a pointer, pointer content includes two parts: the front is a JSON string, followed by a binary image data,

Excuse me each master how to collect the data??/

CodePudding user response:

Don't use the c + + API, the sea in the API. Part of the net, there also have the demo, Suggestions with good sealing

CodePudding user response:

Pointer refers to the structure, he has no before and after the

So find the structure definition and then come over to ask

CodePudding user response:

If can divide a before and after, it is the delegate callback (the first parameter, the second parameter)

CodePudding user response:

Can use IntPtr receive return values
Then read the IntPtr until meet \ 0, json can parse out
Is behind the image data, but the length should be in json or other places to you
  •  Tags:  
  • C #
  • Related