pntt3011 / mediapipe_face_iris_cpp

Real-time Face and Iris Landmarks Detection using C++
GNU General Public License v3.0
80 stars 15 forks source link

can this project be compiled to a .dll ? #6

Closed LebronJames0423 closed 2 years ago

LebronJames0423 commented 2 years ago

This project is really good, but can you tell me how can i use the code in another project? in a dll way or other way? thank you very much

pntt3011 commented 2 years ago

Thank you for your question. In case your project is written in c++, you can copy all the .cpp, .h files to your working directory and use the classes provided like normal. I just use cmake because it helps linking the libraries (opencv, tflite) easier. Visual studio IDE can do it too (opencv tutortial). As long as the necessary libraries are linked when you compile, you can use the .cpp .h everywhere you want. If you really need the .dll, i will try to find some ways. Cmake supports building .dll instead of .exe so I think it's not that hard.

LebronJames0423 commented 2 years ago

it works! thank you!