codecwang / opencv-python-tutorial Goto Github PK
View Code? Open in Web Editor NEW📖 OpenCV-Python image processing tutorial for beginners
Home Page: https://codec.wang/docs/opencv
📖 OpenCV-Python image processing tutorial for beginners
Home Page: https://codec.wang/docs/opencv
车道检测process_an_image少返回值,需要添加一个“return edges”
作者您好:
我在学习第5节的时候,发现您促代码中给的HSV中蓝色的范围和我的结果对不上。不知道是不是我。
但我在修改成如下范围后,程序结果就正常了。
`
# 蓝色的范围
lower_blue = np.array([0, 43, 46])
upper_blue = np.array([10, 255, 255])
lower_blue2 = np.array([156, 43, 46])
upper_blue2 = np.array([180, 255, 255])
# 绿色的范围
lower_green = np.array([35, 43, 46])
upper_green = np.array([77, 255, 255])
# 红色的范围
lower_red =np.array([100, 43, 46])
upper_red =np.array([130, 255, 255])
img=cv2.imread('Simple.jpg')
img_hsv=cv2.cvtColor(img,cv2.COLOR_RGB2HSV)
mask_blue = cv2.inRange(img_hsv, lower_blue, upper_blue)
mask_blue2 = cv2.inRange(img_hsv, lower_blue2, upper_blue2)
mask_blue = mask_blue + mask_blue2
mask_green = cv2.inRange(img_hsv, lower_green, upper_green)
mask_red = cv2.inRange(img_hsv, lower_red, upper_red)
mask = mask_blue + mask_green + mask_red
`
教程网站是挂了吗?打不开了
Sir, could you please tell me how to display the centroid on the image? Thank you!
学完了,感觉还是有点吃力,大佬能到出点案例实践一下吗?
请求作者添加一个依赖包的版本号文件,方便大家跑例子。
好多番外篇的链接都失效了,打开就是404
了不起!学习了,谢谢
最近也在尝试用pyqt做cv相关的项目,学习了作者的文章十分受益,但是实际做起来还是困难重重,所以想学习一下作者那个软件的代码
首先谢谢作者,分享如此干货
貌似OpenCV 3.X 之后findContours()就返回两个参数了,所以如果出bug,可以尝试改成
contours, hierarchy = cv2.findContours(
thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
后面得改成for cnt in contours:
cv2.drawContours(img, [cnt], 0, (0, 0, 255), 2)
不然会出现,只识别了‘1’或者'3'单个数字轮廓的情况
您好,我们有个图像识别的小项目想请您看看.您可以看下需求,评估个价格么?
具体参考此文档:https://shimo.im/docs/04R3wTt0KeYNVnNA
联系方式: cc_at_fishmindtech.com
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.