Giter VIP home page Giter VIP logo

Comments (2)

Howlclat avatar Howlclat commented on July 19, 2024

你好,过奖了。

  1. 我的代码中opencv版本是3.4,而你用的opencv应该是4.x以上的,cv2.findContours()在4.x后将返回值改为了2个,删掉第一个返回值是正确的。

  2. 对于correction.py的137行中的问题,centroids中正常情况下应该是网格的100个交点(10*10)的 (x,y) 坐标,因此一共200个值,而你的报错是:Cannot reshape array of size 206 into shape (100,2)。有206个值,这说明找到的点的数量多了,有103个点。

你可以在上一步的结果图像 dots 中,查看是否有多余的点。这一步将找到的质心都在img_dots中通过绿点标出来了。我忘了显示这个图,之后我会commit一次加上这句话。
另外 if cv2.contourArea(cnt) > 20: 这一句通过统计像素数排除了过小的轮廓,如果你观察到上一步有过小的点没有被排除,可以适当调整20这个值。

from sudoku_opencv_py.

tianzhipengfei avatar tianzhipengfei commented on July 19, 2024

好的,谢谢,方便加个微信吗?八六99O9五四1

from sudoku_opencv_py.

Related Issues (2)

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.