oaid / facerecognition Goto Github PK
View Code? Open in Web Editor NEWThis is an implematation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenenCNN algorithm.
This is an implematation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenenCNN algorithm.
I installed opencv3.3.0 on my ubuntu(14.04),and caffe without CUDA.
I followed the installtation instuction. When I use the command "make",it appears some problems on my terminal,like this:
/usr/bin/ld: 当搜索用于 /usr/local/AID/Caffe-HRT/lib/libcaffe.so 时跳过不兼容的 -lcaffe
/usr/bin/ld: 当搜索用于 /usr/local/AID/Caffe-HRT/lib/libcaffe.a 时跳过不兼容的 -lcaffe
/usr/bin/ld: 找不到 -lcaffe
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute.so 时跳过不兼容的 -larm_compute
/usr/bin/ld: 找不到 -larm_compute
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute_core.so 时跳过不兼容的 -larm_compute_core
/usr/bin/ld: 找不到 -larm_compute_core
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute_graph.so 时跳过不兼容的 -larm_compute_graph
/usr/bin/ld: 找不到 -larm_compute_graph
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_dnn.so 时跳过不兼容的 -lopencv_dnn
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_ml.so 时跳过不兼容的 -lopencv_ml
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_objdetect.so 时跳过不兼容的 -lopencv_objdetect
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_shape.so 时跳过不兼容的 -lopencv_shape
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_stitching.so 时跳过不兼容的 -lopencv_stitching
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_superres.so 时跳过不兼容的 -lopencv_superres
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_videostab.so 时跳过不兼容的 -lopencv_videostab
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_calib3d.so 时跳过不兼容的 -lopencv_calib3d
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_features2d.so 时跳过不兼容的 -lopencv_features2d
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_highgui.so 时跳过不兼容的 -lopencv_highgui
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_videoio.so 时跳过不兼容的 -lopencv_videoio
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so 时跳过不兼容的 -lopencv_imgcodecs
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_video.so 时跳过不兼容的 -lopencv_video
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_photo.so 时跳过不兼容的 -lopencv_photo
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_imgproc.so 时跳过不兼容的 -lopencv_imgproc
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_flann.so 时跳过不兼容的 -lopencv_flann
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_core.so 时跳过不兼容的 -lopencv_core
collect2: error: ld returned 1 exit status
make: *** [build/bin/camera] 错误 1
what's the matter?
I don't have ideas.
I have configured mxnet on and caffe off in config.mk:
CONFIG_CAFFE_MTCNN=n
CONFIG_TENSORFLOW_MTCNN=n
CONFIG_MXNET_MTCNN=y
But compilation needs header file from caffe and generate error below. Can you check?
g++ -std=c++11 -I/home/firefly/2TB/src/firefly/mxnetOnACL/include -I/home/firefly/2TB/src/firefly/mxnetOnACL/dmlc-core/include -I/home/firefly/2TB/src/firefly/mxnetOnACL/nnvm/include -Wno-sign-compare -Wall -g -I./include -DMODEL_DIR="/home/firefly/2TB/src/firefly/face-demo/models" -I/usr/local/include/opencv -I/usr/local/include -c extract/lightened_cnn.cpp -o build/extract/lightened_cnn.o
In file included from extract/lightened_cnn.cpp:2:0:
./include/lightened_cnn.hpp:4:27: fatal error: caffe/caffe.hpp: No such file or directory
Thanks for your sharing!
I run the ./build/bin/face_demo. When I input reg -i 1 -name admin, tell me that cant't find the face!
how to fix the problem?
Thanks
WE FOLLOWED THE GIVEN INSTRUCTIONS AND GOT STUCK DURING COMPILATION. THE FOLLOWING ERROR IS GIVEN BELOW. PLEASE HELP IF POSSIBLE. THANK YOU. :)
root@hikey960:~/Desktop/FaceRecognition-master# make
make: Warning: File 'build/bin/camera.o' has modification time 35214 s in the future
g++ build/bin/camera.o ./build/detect/mtcnn.o ./build/detect/comm_lib.o ./build/detect/caffe_mtcnn.o ./build/align/face_align.o ./build/align/svd.o ./build/align/scale_angle.o ./build/lib/utils.o ./build/lib/network_shell.o ./build/lib/telnet_buf.o ./build/lib/json.o ./build/lib/log.o ./build/lib/perf.o ./build/extract/feature_extractor.o ./build/extract/lightened_cnn.o ./build/verify/face_verify.o ./build/verify/simple_verifier.o ./build/store/face_mem_store.o -o build/bin/camera pkg-config caffe-hrt --libs
pkg-config computelibrary --libs
pkg-config --libs opencv
-lprotobuf -lboost_system -lglog -lreadline -lpthread
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by /usr/local/AID/Caffe-HRT/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.58.0, needed by /usr/local/AID/Caffe-HRT/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libhdf5_serial_hl.so.10, needed by /usr/local/AID/Caffe-HRT/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libhdf5_serial.so.10, needed by /usr/local/AID/Caffe-HRT/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libjpeg.so.8, needed by /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpng12.so.0, needed by /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_alloc_huff_table@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Fclose@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_interlace_handling@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::start_thread_noexcept()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_create_write_struct@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_finish_decompress@LIBJPEG_8.0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_start_compress@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::detach()'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to boost::detail::thread_data_base::~thread_data_base()' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_write_end@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_bgr@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_simple_progression@LIBJPEG_8.0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_quality_scaling@LIBJPEG_8.0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_compression_level@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_get_IHDR@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5LTread_dataset_double@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_finish_compress@LIBJPEG_8.0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_resync_to_restart@LIBJPEG_8.0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_defaults@LIBJPEG_8.0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_get_tRNS@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_read_image@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_palette_to_rgb@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_read_scanlines@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::native_handle()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_write_image@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_read_end@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_write_info@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_destroy_compress@LIBJPEG_8.0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_read_update_info@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_compression_strategy@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_start_decompress@LIBJPEG_8.0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_write_fn@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_filter@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_strip_16@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_quality@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::interrupt()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_packing@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::this_thread::interruption_point()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_create_info_struct@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Gclose@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_std_error@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::detail::set_tss_data(void const*, boost::shared_ptrboost::detail::tss_cleanup_function, void*, bool)'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_default_qtables@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::interruption_requested() const'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5Fopen@HDF5_SERIAL_1.8.7' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5LTmake_dataset_double@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_get_io_ptr@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5check_version@HDF5_SERIAL_1.8.7'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTread_dataset_float@HDF5_SERIAL_1.8.7' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
vtable for boost::detail::thread_data_base'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_expand_gray_1_2_4_to_8@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Gopen2@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_write_scanlines@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::detail::get_current_thread_data()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_destroy_write_struct@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::joinable() const'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTget_dataset_ndims@HDF5_SERIAL_1.8.7' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_read_header@LIBJPEG_8.0'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTread_dataset_int@HDF5_SERIAL_1.8.7' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_destroy_decompress@LIBJPEG_8.0'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTfind_dataset@HDF5_SERIAL_1.8.7' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_strip_alpha@PNG12_0'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTmake_dataset_string@HDF5_SERIAL_1.8.7' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5LTread_dataset_string@HDF5_SERIAL_1.8.7'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5Fis_hdf5@HDF5_SERIAL_1.8.7' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5LTget_dataset_info@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_CreateDecompress@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5LTmake_dataset_float@HDF5_SERIAL_1.8.7'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5Gcreate2@HDF5_SERIAL_1.8.7' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_destroy_read_struct@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_create_read_struct@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Gget_info@HDF5_SERIAL_1.8.7'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_read_fn@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_init_io@PNG12_0'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to typeinfo for boost::detail::thread_data_base' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
jpeg_stdio_src@LIBJPEG_8.0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_stdio_dest@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::detail::get_tss_data(void const*)'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_error@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_swap@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_CreateCompress@LIBJPEG_8.0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_rgb_to_gray@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_set_tRNS_to_alpha@PNG12_0' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_gray_to_rgb@PNG12_0'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5Lexists@HDF5_SERIAL_1.8.7' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
boost::thread::join_noexcept()'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to jpeg_calc_output_dimensions@LIBJPEG_8.0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Fcreate@HDF5_SERIAL_1.8.7'
/usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to H5LTmake_dataset_int@HDF5_SERIAL_1.8.7' /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to
png_set_IHDR@PNG12_0'
/usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so: undefined reference to png_read_info@PNG12_0' /usr/local/AID/Caffe-HRT/lib/libcaffe.so: undefined reference to
H5Lget_name_by_idx@HDF5_SERIAL_1.8.7'
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target 'build/bin/camera' failed
make: *** [build/bin/camera] Error 1
Hello, I can't download the AID tools by: wget ftp://ftp.openailab.net/tools/package/AID-tools.tar.gz
Is this link still available? Or is there another link to get it ?Thanks,waiting for reply.
Trying your installation steps, but got stuck at first line:
wget ftp://ftp.openailab.net/tools/package/AID-tools.tar.gz --2021-01-13 07:45:22-- ftp://ftp.openailab.net/tools/package/AID-tools.tar.gz => ‘AID-tools.tar.gz’ Resolving ftp.openailab.net (ftp.openailab.net)... failed: Name or service not known. wget: unable to resolve host address ‘ftp.openailab.net’
Can you plz help me to run this?
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.