Error in displaying the vide stream

Error in displaying the vide stream

i am trying to display the video being captured by the cam. For that purpose i have included face_render.h and face_render.cpp files. but i am getting the following error

1>------ Build started: Project: eyecare7, Configuration: Debug Win32 ------
1>Build started 9/14/2013 9:10:00 PM.
1>InitializeBuildStatus:
1>  Touching "Debug\eyecare7.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  eyecare7.cpp
1>c:\users\hp\documents\visual studio 2010\projects\eyecare7\eyecare7\eyecare7.cpp(292): warning C4244: '=' : conversion from 'pxcF32' to 'int', possible loss of data
1>c:\users\hp\documents\visual studio 2010\projects\eyecare7\eyecare7\eyecare7.cpp(293): warning C4244: '=' : conversion from 'pxcF32' to 'int', possible loss of data
1>c:\users\hp\documents\visual studio 2010\projects\eyecare7\eyecare7\eyecare7.cpp(116): warning C4101: 's' : unreferenced local variable
1>c:\users\hp\documents\visual studio 2010\projects\eyecare7\eyecare7\eyecare7.cpp(59): warning C4101: 'msg' : unreferenced local variable
1>c:\users\hp\documents\visual studio 2010\projects\eyecare7\eyecare7\eyecare7.cpp(164): warning C4101: 't2' : unreferenced local variable
1>  face_render.cpp
1>c:\program files (x86)\intel\pcsdk\sample\common\src\face_render.cpp(13): warning C4627: '#include "face_render.h"': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\program files (x86)\intel\pcsdk\sample\common\src\face_render.cpp(166): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
1>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:05.06
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

kindly help

kin

11 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Did you create the empty win32 console project at the beginning? You also can fixthe problem by opening the project properties and navigate to:Configuration Properties | C/C++ | Precompiled Headers and choose "Not using Precompiled Headers" for the "Precompiled Header" option.

thanx david.I didnt create a blank project but i have made the changes. but now i m getting a new error :-

1>libpxcutils.lib(util_capture.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in face_render.obj

kindly help

Please use release mode if you are using libpxcutils.lib, for debug mode, you need use libpxcutils_d.lib. Thanks!

thanks david. 

but while im using libpxcutils_d.lib im getting following error

1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in libpxcutils_d.lib(util_capture.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_capture.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_capture.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (?_Getpfirst@_Container_base12@std@@QBEPAPAU_Iterator_base12@2@XZ) already defined in libpxcutils_d.lib(util_capture.obj)
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>C:\Users\HP\Documents\Visual Studio 2010\Projects\eyecare7\Debug\eyecare7.exe : fatal error LNK1169: one or more multiply defined symbols found
1>

kindly help

Try to use the property sheets. It will help you to get right development environment. You can find dteails @ http://software.intel.com/sites/landingpage/perceptual_computing/documentation/html/index.html?devguide_property_sheets.html

thanks david.

im in another trouble now. while my app is running the depth image is suddenly getting bad pointers.

please help

You need provide the actual codes before I can help you. 

its a very long piece of code and poorly written. plz tell me whether the following part of the code will help you. im getting error in the lines marked in bold font. the code generates error during runtime. im getting depth images but after running code for a long time im getting this error

sts1=images[0]->AcquireAccess(PXCImage::ACCESS_READ, PXCImage::COLOR_FORMAT_RGB24,&rgbImage);
// find rgbImage stride
int rgbStride = rgbImage.pitches[0] / sizeof(pxcU32);
// keep depth image stride in this scope
int depthStride = 0;
// Process data

//PXCImage::ImageData depthImage;
// grab the depth image
sts2=images[1]->AcquireAccess(PXCImage::ACCESS_READ, PXCImage::COLOR_FORMAT_DEPTH,&depthImage);

// find depth image stride
depthStride = depthImage.pitches[0] / sizeof(pxcU16);

// setup the depth data so we can map it to color data using the projection
for (int y = 0, k = 0; (pxcU32)y < depthStreamInfo.imageInfo.height&&sts1>=PXC_STATUS_NO_ERROR&&sts2>=PXC_STATUS_NO_ERROR; y++)
{
for (int x =0; (pxcU32)x < depthStreamInfo.imageInfo.width; x++,k++)
{
// raw depth data//*********++++++-------
//if((depthImage.planes[0])[y*depthStride + x]!=NULL)
pos2d[k].z = ((short*)depthImage.planes[0])[y*depthStride + x];
}
}
// use the projection to map depth to color with this frame
sts=projection->MapDepthToColorCoordinates(rgbStreamInfo.imageInfo.width*rgbStreamInfo.imageInfo.height, pos2d, posc);

error message is following

First-chance exception at 0x012f1b41 in eyecare7.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x012f1b41 in eyecare7.exe: 0xC0000005: Access violation reading location 0x00000000.
The program '[7540] eyecare7.exe: Native' has exited with code 0 (0x0).

For those of you using VS 2010 to create a "Win32 Console Application" project, if you have the following errors:

msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in libpxcutils_d.lib(util_capture.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (?_Getpfirst@_Container_base12@std@@QBEPAPAU_Iterator_base12@2@XZ) already defined in libpxcutils_d.lib(util_capture.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_capture.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_capture.obj)

You need to go to the Project Properties, select C/C++ > Code Generation, and make sure the Runtime Library field is set to "Multi-threaded Debug (/MTd)".

Leave a Comment

Please sign in to add a comment. Not a member? Join today