File Exchange

image thumbnail

Senz3D Acquisition interface

version 1.2 (9.94 KB) by

Creative Senz3D, Intel Interactive Gesture Camera (Time of Flight), Acquisition interface.

8 Downloads

Updated

View License

Senz3D a cheap 3D time of flight (TOF) camera is produced by Creative. The software provided by Intel® Perceptual Computing SDK 2013. The actual hardware is the "DepthSense 325" from SoftKinect®.
This "0" version can:
- read the Depth stream
- read the Video stream
- convert depth/video to world coordinates.

Is tested on:
- Windows 7, x64
- Visual Studio 2010 x64 compiler
- Matlab x64 2013a
- Intel Perceptual SDK
- Hardware, Intel Developer kit (150$)

First run compile_cpp_files.m, before running the example.

Comments and Ratings (24)

OK, I tried with my camera connected and working (it's recognized by the computer and I can see the rgb & depth streams from DepthSense Viewer) but I still got the same error.
I looked at what pxcOpenCamera.cpp does, but it works fine until the last part, when utilPipeline.Init() is called. For some reason the camera fails to initialize. I'm using DepthSense 525 on Windows 7, by the way.

I can't find much info on UtilPipeline::Init (other than https://software.intel.com/sites/landingpage/perceptual_computing/documentation/html/index.html?init_utilpipeline.html, which doesn't really say anything), I can't access its source code, and support for the Perceptual Computing SDK has already been discontinued, so I don't hope to get much further than this, unless someone here has a solution.

In the meantime, I'll try using OpenCV with Visual Studio.

Sorry for the delay. I tried the steps on the roombanator link Jorge Zafra shared. There were a couple of additional steps involved, but it worked!

The additional steps were:
1. memset not declared in \Intel\PCSDK\sample\common\src\util_capture.cpp --> Include <cstring> in \Intel\PCSDK\sample\common\src\util_capture.h
2. "\Intel\PCSDK\sample\common\src\util_capture_file.cpp:130:37: error: '>>' should be '> >' within a nested template
argument list" --> Put a space between the ">"s.

I am getting "no valid camera handle" as well, but my camera is not connected right now. Seems trivial but maybe that's why? Or your camera is not recognized somehow?
I'll try it with my camera and let you know how it goes.

jorge zafra

look it yoriko
MEX completed successfully.
>> example
Failed to initialize the pipeline with rgb and depth stream input

Error using example (line 7)
no valid camera handle
this is my error if you know ho to fix it tell me please

jorge zafra

hiii yoriko Yamamura i already know how to fix this problem you have to replace the mex with the mex that its in the next link or just follow the steps that said in this page.
https://github.com/seansliu/roombanator
but i have one problem more when all this of mex its fixed i run the compile and it works but when i run the example an error happen some with the pxcOpenCamera i dont know how to fix if someone can help me it would be fantastic

I'm having the same problem as jorge zafra as well. Any help would be appreciated!
--Begin error message--
Error using mex
In file included from C:/Program Files
(x86)/Intel/PCSDK/sample/common/include/util_pipeline_stackable.h:12:0,
from C:/Program Files
(x86)/Intel/PCSDK/sample/common/include/util_pipeline_face.h:11,
from C:/Program Files
(x86)/Intel/PCSDK/sample/common/include/util_pipeline.h:11,
from
C:\Users\OIST\Downloads\IntelCreative3D_version0c\Mex\pxcAcquireFrame.cpp:1:
C:/Program Files
(x86)/Intel/PCSDK/sample/common/include/util_capture.h: In
member function 'virtual void UtilCapture::SetFilter(pxcCHAR*)':
C:/Program Files (x86)/Intel/PCSDK/sample/common/include/util_capture.h:29:49:
error: 'wcscpy_s' was not declared in this scope
virtual void SetFilter(pxcCHAR *name) {
wcscpy_s<sizeof(m_device_filter.name)/sizeof(pxcCHAR)>(m_device_filter.name,name);
}
^
Error in compile_cpp_files (line 17)
mex('-v','-largeArrayDims', ...
--End error message--

jorge zafra

hi bro one question you kknow why does this problem appear????
C:/Program Files (x86)/Intel/PCSDK/sample/common/include/util_capture.h:29:49: error: 'wcscpy_s' was not declared in this
scope
virtual void SetFilter(pxcCHAR *name) {
wcscpy_s<sizeof(m_device_filter.name)/sizeof(pxcCHAR)>(m_device_filter.name,name); }

Selva Karna

hi bro, Normal RGB camera possible to detect human hand ... [without use kinect camera]..
can you reply me

woo jin

'no valid camera handle' error was solved by using Window 8.1. At Window 10, it doesn't recognize the depth camera of SENZ3D. (I used the PCSDK that the author recommended)

It worked well, thank you.

m s

m s (view profile)

I also get no valid camera handle when I run the example file. Any ideas?

Yongxiang Fan

The compile error would not exist if we use the PCSDK that the author recommended.

The problem for me is: when running example, the program shows no valid camera handle. Anybody knows how to handle this?

Thanks!

Marcus Low

Seems like everyone is having the same compile problems. The pxcColorImage::MapColorCoordinatesToDepth function does not take 3 arguments. It seems that the arguments are more likely suited for passing into the pxcColorImage::MapDepthToColorCoordinates function instead.

Would sure be great to have author response with regards to this particular issue. Seems like everyone commenting on this has this problem that is not yet fixed.

Marcus Low

I am having the exact same compile errors as everyone else as well. Using MATLAB2014b with Win SDK 7.1

Vincent

Hello, I seem to be having the same compile errors as the others here. Can anyone provide any insight as to how they managed to fix these? Any help is greatly appreciated

Hwathanie

While compiling I too get the following error. Any answers please? Thank you.

pxcColorImage.cpp
pxcColorImage.cpp(110) : error C2660: 'PXCProjection::MapColorCoordinatesToDepth' : function does not take 3 arguments

C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Compile of 'pxcColorImage.cpp' failed.

Error using mex (line 206)
Unable to complete successfully.

Error in compile_cpp_files (line 17)
mex('-v','-largeArrayDims', ...

Wu

Wu (view profile)

I received the same compile errors:

pxcColorImage.cpp(110) : error C2660: 'PXCProjection::MapColorCoordinatesToDepth' : function does not take 3 arguments

PS: Senz3D is not a TOF but a structured light camera.

Scott

Scott (view profile)

I received the same compile errors:

pxcColorImage.cpp(110) : error C2660: 'PXCProjection::MapColorCoordinatesToDepth' : function does not take 3 arguments

Has anyone figured out how to fix this?

thanks

-scott

georgios

I receive the same error too.
Seems that in pxcColorImage.cpp MapColorCoordinatesToDepth()
is called as follows:

MapColorCoordinatesToDepth(npoints,posc,posd)

although in the SDK's pxcprojection.h the function is defined as:

MapColorCoordinatesToDepth( PXCImage *d_image, PXCPointF32 *uvInv, pxcU32 uvInvPitch, PXCSizeU32 uvInvRoi )

Receive the same error Bryan mentioned.

Bryan

Bryan (view profile)

Thank you for the code.
I've been trying to get it to run on my computer, but receive the following error:

pxcColorImage.cpp(110) : error C2660: 'PXCProjection::MapColorCoordinatesToDepth' : function does not take 3 arguments

C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'pxcColorImage.cpp' failed.

Error using mex (line 206)
Unable to complete successfully.

Error in compile_cpp_files (line 17)
mex('-v','-largeArrayDims', ...

Error in run (line 64)
evalin('caller', [script ';']);

Also is tested on:
- Windows 7, x64
- Visual Studio 2010 x64 compiler
- Matlab x64 2013a
- Intel Perceptual SDK
- Hardware, Intel Developer kit (150$)

Adrian

Adrian (view profile)

Never mind, got it to work. Works flawlessly. Thanks.

MALLURI

HI Dirk-Jan Kroon,

while running compile_cpp_files.m the following error occurs can you please help me.
>> compile_cpp_files
Error: Could not detect a compiler on local system which can compile the specified input file(s)
Error using mex (line 206)
Unable to complete successfully.

Error in compile_cpp_files (line 17)
mex('-v','-largeArrayDims', ...

thank you

Chuck Hayden

Excellent interface to the Intel/SoftKinect camera.

Do you plan to provide another routine to project the data to world coordinates?

Hae-Jong

Updates

1.2

Added conversion to world coordinates

1.1

Intel Perceptual SDK no longer beta. Therefore added 'util_pipeline_segmentation.cpp' to compile_cpp_files

MATLAB Release
MATLAB 8.1 (R2013a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today