jysung / activity_detection Goto Github PK
View Code? Open in Web Editor NEWFeature Extraction for Human Activity Detection from RGBD Images
Home Page: http://pr.cs.cornell.edu/humanactivities/
Feature Extraction for Human Activity Detection from RGBD Images
Home Page: http://pr.cs.cornell.edu/humanactivities/
Can you offer me CAD-120 dataset?Official link is invalid,please leave your google drive when convenient.
In Dataset CAD-60, it offers the joint position (x,y,z) and the unit is mm. Could I convert it to RGB image coordinate likes (x, y) and the unit is pixel?
I am compling the program, however, i have got the following errors:could you please fix the problem? many thanks!
^
/usr/bin/ld: cannot find -lml
/usr/bin/ld: cannot find -lcvaux
/usr/bin/ld: cannot find -lhighgui
/usr/bin/ld: cannot find -lcv
/usr/bin/ld: cannot find -lcxcore
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
could you release demo of feature extraction?or one of sample your dataset?
I've been trying to use these projection formulas: https://github.com/jysung100/activity_detection/blob/master/FeatureExtractor/featuresRGBD.cpp#L26
// Given (x,y,z) coordinates, converts that point into its x pixel number in the 2D image.
int xPixelFromCoords(double x, double y, double z)
{
return (int) (156.8584456124928 + 0.0976862095248 * x - 0.0006444357104 * y + 0.0015715946682 * z);
}
// Given (x,y,z) coordinates, converts that point into its y pixel number in the 2D image.
int yPixelFromCoords(double x, double y, double z)
{
return (int) (125.5357201011431 + 0.0002153447766 * x - 0.1184874093530 * y - 0.0022134485957 * z);
}
These purport to go from the joint's 3d coordinates to 2d coordinates, but they do not seem to work. I visualized the 2d joint locations after this projection, and they are significantly off; furthermore, it seems odd that you could project from 3d to 2d with a linear dot product (since projections should be scaled by z).
The correct formula should be as per OpenNI's formula, which is discussed by a developer here: https://groups.google.com/d/msg/unitykinect/1ZFCHO9PpjA/1KdxUTdq90gJ (Note that there is a minor mistake in the algebra, as I showed here: https://groups.google.com/d/msg/unitykinect/1ZFCHO9PpjA/0B2eHjrywj4J).
I'm however not sure if this function serves a different purpose, so I am not submitting a pull request. Further, this translation from 3d to 2d is not documented in CAD120 anywhere; it would be nice to incorporate the formula from that post into the README for the skeleton format to make 2d visualizations, among other things, easier.
I in the FeatureExtractor I am not able to pass through make
command. I get the following error:
g++ main.cpp HOG.cpp HOGFeaturesOfBlock.cpp -I/usr/include/opencv -lml -lcvaux -lhighgui -lcv -lcxcore -o featureExtractor
main.cpp:1:10: fatal error: cv.h: No such file or directory
#include **"cv.h"**
^~~~~~
compilation terminated.
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
I have tested the code with CAD-60 , it work but i have a problem: i can visualize only 11 frames and the first frame was visualized is the 48th frame.
(when i change the frameNum with a number from [0..10] 0 .But when i run for example:
"visualizeSkeleton('0512164333.txt','13');
I have this error: "visualizeSkeleton('0512164333.txt','13');
visualize skeleton!!
skeleton data: 0512164333.txt
frame number: 49
frame number: 51
Error using ==
Matrix dimensions must agree.
Error in readSkel (line 9)
if fnum == frameNum,
Error in visualizeSkeleton (line 14)
readSkel(dataFile,frameNum);%, figureTitle);"
Can you help me please!!
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.