Giter Site home page Giter Site logo

Comments (8)

k-okada avatar k-okada commented on June 22, 2024

from opencv_apps.

knorth55 avatar knorth55 commented on June 22, 2024

f662a1b
This commit fix this issue

from opencv_apps.

tongtybj avatar tongtybj commented on June 22, 2024

sorry, I pasted the wrong error log. The path had been fixed by myself in local pc.
The true error log belonging to the face_recognition is as follows:

nishio@nishio-desktop:/opt/ros/kinetic/share/opencv_apps/launch$ roslaunch opencv_apps face_recognition.launch use_opencv3:=true  image:=/zed/left/image_raw_color use_opencv3_3:=true
... logging to /home/nishio/.ros/log/8f8e5f22-624f-11e9-989d-88d7f6d5c690/roslaunch-nishio-desktop-20379.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://nishio-desktop:38085/

SUMMARY
========

PARAMETERS
 * /face_detection/debug_view: True
 * /face_detection/eyes_cascade_name: /opt/ros/kinetic/...
 * /face_detection/face_cascade_name: /opt/ros/kinetic/...
 * /face_detection/use_camera_info: False
 * /face_recognition/data_dir: ~/.ros/opencv_app...
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    debug_image_viewer_nishio_desktop_20379_402860772321071504 (image_view/image_view)
    face_detection (opencv_apps/face_detection)
    face_recognition (opencv_apps/face_recognition)
    face_recognition_trainer (opencv_apps/face_recognition_trainer.py)

ROS_MASTER_URI=http://localhost:11311

process[face_detection-1]: started with pid [20396]
process[face_recognition-2]: started with pid [20397]
process[face_recognition_trainer-3]: started with pid [20399]
process[debug_image_viewer_nishio_desktop_20379_402860772321071504-4]: started with pid [20401]
[ INFO] [1555647572.644758471]: Initializing nodelet with 1 worker threads.
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.478618348]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.581168695]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.685594093]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.785534746]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.885539787]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647573.985925666]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647574.085516911]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117
[ERROR] [1555647574.184622094]: error at image processing: This Eigenfaces model is not computed yet. Did you call Eigenfaces::train? predict /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp 117
OpenCV Error: Unspecified error (This Eigenfaces model is not computed yet. Did you call Eigenfaces::train?) in predict, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/opencv_contrib/face/src/eigen_faces.cpp, line 117

Screenshot from 2019-04-19 13-19-48

from opencv_apps.

k-okada avatar k-okada commented on June 22, 2024

okay....

  1. please do not edit files with sudo. you can use sudo only for apt command. if someone told you to change the code or run command by sudo emacs or sudo vi, that's is a very bad person.
  2. if you ask someone, please provide how to reproduce your problem in other's computer. for example, you can run test-face_recognition.test with bag file http://download.ros.org/data/face_detector/face_detector_withface_test_diamondback.bag or you can provide your bag file
  3. please add expected behavior and why you think you have a problem

from opencv_apps.

k-okada avatar k-okada commented on June 22, 2024

please check contents of ~/.ros/opencv_apps/face_data/, is there is no image file, you need to take pictures of your face from face_recognition_trainer.py window

from opencv_apps.

tongtybj avatar tongtybj commented on June 22, 2024

@k-okada

Thank you for the important advice and instruction.
I was the bad guy being reformed, and have checked the expected behaviour by test-face_recognition.test.

Right now I know the the pasted error log is from here, caused because of no trained data.
So it always occurs in the taking pictures phase.

Finally, the expected result is also confirmed with my face.

Suggestion:
Maybe, it is better to add a line here, to check the size of the label_mapper_. If it is empty, then just return from this callback, avoiding the confusion.
Screenshot from 2019-04-19 14-28-12

from opencv_apps.

k-okada avatar k-okada commented on June 22, 2024

from opencv_apps.

tongtybj avatar tongtybj commented on June 22, 2024

Please check #91 .

from opencv_apps.

Related Issues (20)

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.