What to do if i have shapes that overlap, or intersect?
@lbirkert3 жыл бұрын
Very helpful!
@xitheindianpooh Жыл бұрын
only detecting rectangle or circle(circle because of if else). Can not understand what is going wrong! Update: if i put only single shape pictures, then it is working, I think there is some problem with bordering the individual shapes.
@tnt_popcorn__ Жыл бұрын
How to make detection different for square and rectangle ?
@Minecraft6728Vn3 ай бұрын
in line : x, y, w, h= cv2.boundingRect(approx) (x,y) , (x+w,y) (x,y+h) , (x+w,y+h) is 4 corner => use mathematics to check it
@aksimaksi27892 жыл бұрын
Thank you!
@karanmishra32352 жыл бұрын
Can i get coordinates of this shape??
@MrRobotLong Жыл бұрын
Can I use this code as a template for a commercial project? I don't want to get into legal stuffs so that is why I want to ask. Thank you!
@CreepyD246 Жыл бұрын
Of course, it is a tutorial after all. You'd have to check what OpenCV's rules and policies are on using their software though. I believe OpenCV allows commercial use, but do some more research on it. Hope all goes well
@MrRobotLong Жыл бұрын
Thank you so much!
@sevindaherath3 жыл бұрын
It's been awhile 😌
@CreepyD2463 жыл бұрын
It has been yeah, but thanks for sticking around :D More videos ready, as well as entertainment-based videos.
@piotrek69482 жыл бұрын
Can I define own shape?
@CreepyD2462 жыл бұрын
You could try using haar-cascades. They're basically files that you train for detecting special objects. You could train one to search for the special shape you want. It's a bit complex though and can't be explained over a comment, so I suggest watching some tutorials on setting up haar cascades. I used a tool called Cascade Trainer which worked pretty well. Hope this helps.