Giter Site home page Giter Site logo

facereconstruction-kinect-3d's People

Contributors

pminmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facereconstruction-kinect-3d's Issues

dllimport error, 编译时,报动态链接库等错误。

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

Debug Release 都成功了,但不像视频中一样运行。

原因在于:

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文件

Debugger Access violation reading location 0x0000000000000000.

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 *

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.