Git Product home page Git Product logo

add-christmas-hat's People

Contributors

liuxiaolong19920720 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

add-christmas-hat's Issues

关于cv.split

r, g, b, a = cv.split(img)

ValueError: not enough values to unpack (expected 4, got 3)

请问是opencv的版本问题么?我的是3.4.0

add_hat

add_hat中的 predictor_path = "shape_predictor_5_face_landmarks.dat"是什么意思,shape_predictor_5_face_landmarks.dat是什么

很有意思,但是帽子边缘看起来像被腐蚀了一样

你好,你最后处理得到的添加帽子之后的图中帽子边缘看起来像被腐蚀了一样,对您的代码做了稍微调整:
hat=cv2.bitwise_and(resized_hat,resized_hat,mask=mask)改为hat=cv2.bitwise_and(resized_hat,cv2.bitwise_not(mask_inv))
结果图upload失败,您可以试下

请问如何在mac上安装Opencv2?

我运行的结果如下。安装了opencv,按时问题仍然在。谢谢。

Add-Christmas-Hat-master xxxx$ python add_hat.py
Traceback (most recent call last):
File "add_hat.py", line 2, in
import cv2
ImportError: No module named cv2

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.