inRange | inrange opencv
Inthistutorial,wewilllearnaboutpopularcolorspacesusedinComputerVisionanduseitforcolorbasedsegmentation.WewillalsosharedemocodeinC++andPython.In1975,theHungarianPatentHU170062introducedapuzzlewithjustonerightsolutionoutof43,252,003,274,489,856,000(43quintillion)possibilities.ThisinventionnowknownastheRubik’sCubetooktheworldbystormsellingmorethan350millionbyJanuary2009.So,whenafewdaysbackmyfriend,Mark,toldmeabouthisideaofbuildingacomputervisionbasedautomatedRubik’scubesolver,Iwasintrigued.Hewa...
In this tutorial, we will learn about popular colorspaces used in Computer Vision and use it for color based segmentation. We will also share demo code in C++ and Python.
In 1975, the Hungarian Patent HU170062 introduced a puzzle with just one right solution out of 43,252,003,274,489,856,000 (43 quintillion) possibilities. This invention now known as the Rubik’s Cube took the world by storm selling more than 350 million by January 2009.
So, when a few days back my friend, Mark, told me about his idea of building a computer vision based automated Rubik’s cube solver, I was intrigued. He was trying to use color segmentation to find the current state of the cube. While his color segmentation code worked pretty well during evenings in his room, it fell apart during daytime outside his room!
He asked me for help and I immediately understood where he was going wrong. Like many other amateur computer vision enthusiasts, he was not taking into account the effect of ...