Giter Club home page Giter Club logo

cloudcvbackend's Issues

When selecting a local image, the preview does not work

When I run the local app provided in cloudCV(https://github.com/BloodAxe/CloudCV), and try to get properties of an image(app.js), it is not able to show the preview.
The problem that I feel is , that there are two extra "=" sign being pushed into the base64 encoding of the image,because I tried removing the "==" sign at the end and it workedm i.e able to see the preview.
// Extra padding
for (size_t i = 0; i < mod_table[input_length % 3]; i++)
{
encoded_data << '=';
}
"./node_modules/cloudcv-backend/src/framework/Image.cpp" 458 lines --26%--

Can you please verify if this is the issue or this non-preview is due to something else.

I've got error on mac

After I enter npm install, it prints out:

> [email protected] preinstall /Users/lijung/Documents/school/CloudCVBackend
> node-gyp clean rebuild

  CXX(target) Release/obj.target/cloudcv/main.o
In file included from ../main.cpp:7:
../src/modules/faceRec/faceRecBinding.hpp:8:31: warning: no newline at end of file [-Wnewline-eof]
bool initializeFaceDetector();
                              ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/node/node_helpers.o
../src/node/node_helpers.cpp:18:14: warning: unused variable 'decoding_table' [-Wunused-variable]
static char *decoding_table = NULL;
             ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/node/Marshal.o
In file included from ../src/modules/node/Marshal.cpp:1:
../src/modules/node/Marshal.hpp:105:3: warning: no newline at end of file [-Wnewline-eof]
};
  ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/common/Numeric.o
../src/modules/common/Numeric.cpp:56:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/common/ImageUtils.o
../src/modules/common/ImageUtils.cpp:34:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/analyze/analyze.o
  CXX(target) Release/obj.target/cloudcv/src/modules/analyze/binding.o
In file included from ../src/modules/analyze/binding.cpp:3:
../src/modules/node/Marshal.hpp:105:3: warning: no newline at end of file [-Wnewline-eof]
};
  ^
../src/modules/analyze/binding.cpp:148:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
2 warnings generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/analyze/dominantColors.o
../src/modules/analyze/dominantColors.cpp:99:6: warning: unused variable 'd' [-Wunused-variable]
        int d = 0;
            ^
1 warning generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/faceRec/faceRec.o
  CXX(target) Release/obj.target/cloudcv/src/modules/faceRec/faceRecBinding.o
In file included from ../src/modules/faceRec/faceRecBinding.cpp:1:
../src/modules/faceRec/faceRecBinding.hpp:8:31: warning: no newline at end of file [-Wnewline-eof]
bool initializeFaceDetector();
                              ^
In file included from ../src/modules/faceRec/faceRecBinding.cpp:3:
../src/modules/node/Marshal.hpp:105:3: warning: no newline at end of file [-Wnewline-eof]
};
  ^
../src/modules/faceRec/faceRecBinding.cpp:153:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
3 warnings generated.
  CXX(target) Release/obj.target/cloudcv/src/modules/buildInformation/buildInformation.o
../src/modules/buildInformation/buildInformation.cpp:14:2: warning: no newline at end of file [-Wnewline-eof]
}
 ^
1 warning generated.
  SOLINK_MODULE(target) Release/cloudcv.node
clang: error: no such file or directory: '/usr/local/lib/libopencv_contrib.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_stitching.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_nonfree.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_videostab.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_gpu.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_legacy.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_ml.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_objdetect.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_calib3d.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_photo.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_video.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_features2d.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_highgui.a'
clang: error: no such file or directory: '/usr/local/share/OpenCV/3rdparty/lib/liblibjasper.a'
clang: error: no such file or directory: '/usr/local/share/OpenCV/3rdparty/lib/liblibtiff.a'
clang: error: no such file or directory: '/usr/local/share/OpenCV/3rdparty/lib/liblibpng.a'
clang: error: no such file or directory: '/usr/local/share/OpenCV/3rdparty/lib/liblibjpeg.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_flann.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_imgproc.a'
clang: error: no such file or directory: '/usr/local/lib/libopencv_core.a'
clang: error: no such file or directory: '/usr/local/share/OpenCV/3rdparty/lib/libzlib.a'
make: *** [Release/cloudcv.node] Error 1

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.