Git Product home page Git Product logo

Comments (3)

mrgloom avatar mrgloom commented on August 19, 2024

Also

python facemorpher/averager.py --images=/home/user/Downloads/face_morpher/imgs --out=average.png

OpenCV Error: Assertion failed (points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S)) in boundingRect, file /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp, line 1895
Traceback (most recent call last):
  File "facemorpher/averager.py", line 94, in <module>
    args['--out'], args['--plot'])
  File "facemorpher/averager.py", line 61, in averager
    img, points = load_image_points(path, size)
  File "facemorpher/averager.py", line 47, in load_image_points
    points = locator.face_points(path)
  File "/home/user/Downloads/face_morpher/facemorpher/locator.py", line 41, in face_points
    points = np.vstack([points, boundary_points(points)])
  File "/home/user/Downloads/face_morpher/facemorpher/locator.py", line 16, in boundary_points
    x, y, w, h = cv2.boundingRect(np.array([points], np.int32))
cv2.error: /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp:1895: error: (-215) points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S) in function boundingRect

from face_morpher.

mrgloom avatar mrgloom commented on August 19, 2024

False alarm, it works.

from face_morpher.

edent avatar edent commented on August 19, 2024

How did you get this to work?

from face_morpher.

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.