pminmin / facereconstruction-kinect-3d Goto Github PK
View Code? Open in Web Editor NEWA demo for face reconstruction using kinect.
A demo for face reconstruction using kinect.
Environment: win10, vs2013, pcl 1.8.0, sfml( download from this project), opengl( also in this github).
Error:
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::String(char const *,class std::locale const &)" (_imp??0String@sf@@qeaa@PEBDAEBVlocale@std@@@z) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::~String(void)" (_imp??1String@sf@@qeaa@XZ) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (_imp??0VideoMode@sf@@qeaa@III@Z) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::Window::Window(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (_imp??0Window@sf@@qeaa@VVideoMode@1@AEBVString@1@IAEBUContextSettings@1@@z) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl sf::Window::~Window(void)" (_imp??1Window@sf@@UEAA@XZ) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::setVerticalSyncEnabled(bool)" (_imp?setVerticalSyncEnabled@Window@sf@@QEAAX_N@Z) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 7 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::display(void)" (_imp?display@Window@sf@@QEAAXXZ) referenced in function main C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 8 error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "public: __cdecl boost::thread_exception::thread_exception(int,char const *)" (??0thread_exception@boost@@qeaa@HPEBD@Z) C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 9 error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) C:\Users\krlab\Desktop\FaceModel\build_new\utils.obj FaceReconstruction
Error 10 error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@@yaxxz) C:\Users\krlab\Desktop\FaceModel\build_new\demo.obj FaceReconstruction
Error 11 error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) C:\Users\krlab\Desktop\FaceModel\build_new\utils.obj FaceReconstruction
Error 12 error LNK2019: unresolved external symbol GetDefaultKinectSensor referenced in function "private: __cdecl kn::Kinect::Kinect(void)" (??0Kinect@kn@@Aeaa@XZ) C:\Users\krlab\Desktop\FaceModel\build_new\kinect.ninja.lib(device.obj) FaceReconstruction
Error 13 error LNK2019: unresolved external symbol CreateFaceFrameSource referenced in function "private: __cdecl kn::FaceDriver::FaceDriver(void)" (??0FaceDriver@kn@@Aeaa@XZ) C:\Users\krlab\Desktop\FaceModel\build_new\kinect.ninja.lib(kface.obj) FaceReconstruction
Error 14 error LNK1120: 11 unresolved externals C:\Users\krlab\Desktop\FaceModel\build_new\Debug\FaceReconstruction.exe FaceReconstruction
原因在于:
FaceReconstruction 工程中:demo.cpp文件中的:
while (true)
{
// 1.get color frame & depth frame & body frame
shared_ptr<IColorFrame> color_frame = device.AcquireLatestColorFrame();
shared_ptr<IDepthFrame> depth_frame = device.AcquireLatestDepthFrame();
shared_ptr<IBodyFrame> body_frame = device.AcquireLatestBodyFrame();
/*
为阅读方便,省去代码。
/*
}
else {
cout << "failed" << endl;
}
}
else {
cout << "get frame failed" << endl;
}
}
return 0;
while (true)且没有跳出的语句,因此不会执行Register工程。而且,Face工程中convertToPCDdata,有声明有定义但没有调用,所以没有得到pcd文件。
problem is in kface.cpp:
FaceDriver::FaceDriver() {
Kinect& device = Kinect::Device();
HRESULT hr;
for (int i = 0; i < kBodyCount; i++) {
hr = CreateFaceFrameSource(device.Sensor(), 0, kFaceFrameFeatures, &face_sources[i]);
hr = face_sources[i]->OpenReader(&face_readers[i]); //here occured the problem. 在这里发生的。
}
//this is face_sources[] data:
this)->face_sources 0x00007ff6be54e1b0 {0x0000000000000000 , 0x0000000000000000 , 0x0000000000000000 , ...} IFaceFrameSource *[6]
[0] 0x0000000000000000 IFaceFrameSource *
[1] 0x0000000000000000 IFaceFrameSource *
[2] 0x0000000000000000 IFaceFrameSource *
[3] 0x0000000000000000 IFaceFrameSource *
[4] 0x0000000000000000 IFaceFrameSource *
[5] 0x0000000000000000 IFaceFrameSource *
//this is face_readers[] data:
(this)->face_readers 0x00007ff6be54e1e0 {0x0000000000000000 , 0x0000000000000000 , 0x0000000000000000 , ...} IFaceFrameReader *[6]
[0] 0x0000000000000000 IFaceFrameReader *
[1] 0x0000000000000000 IFaceFrameReader *
[2] 0x0000000000000000 IFaceFrameReader *
[3] 0x0000000000000000 IFaceFrameReader *
[4] 0x0000000000000000 IFaceFrameReader *
[5] 0x0000000000000000 IFaceFrameReader *
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.