by Jamie Starling | Jul 21, 2022 | The Art of Technology
Let’s take a quick look on how we can use OpenCV2 to capture a single frame from a webcam. The code below uses a web cam to capture a single frame, that stores the results in the image variable. We are using direct show to communicate with the cam and adjust the...
by Jamie Starling | Jun 17, 2022 | The Art of Technology
In the past posts we looked at doing some image conversions using arrays and manual steps. All that is fun, it lets us see what is going on inside the black box. However, deadlines and everything else – we don’t want to have to reinvent the wheel each...
by Jamie Starling | Jun 15, 2022 | The Art of Technology
What is an image histogram – it is a profile of the occurrences of each gray level present in an image. In the visual example below – we are using a bar graph to visualize it. It starts at 0 and goes to 255, each vertical bar represents the number of times...
by Jamie Starling | Jun 8, 2022 | The Art of Technology
In the last post we took a look at averaging the RGB channels to produce a gray scale image. It does require some math division to get the result. If you need a way that is even simpler and faster than averaging – we can extract the values from one of the color...
by Jamie Starling | Jun 8, 2022 | The Art of Technology
Let’s us look at some ways of converting a color image into a black and white or gray scale image. The most straight forward approach is averaging the three color channels, RGB. GrayValue = (Red + Green + Blue) / 3 You do this for every pixel. It is quick and...