by Jamie Starling | Jul 21, 2022 | The Art of Technology
Capture Image From Webcam – Using Python and OpenCV. 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...
by Jamie Starling | Jun 17, 2022 | The Art of Technology
Using OpenCV – Convert Image to Gray Scale in Python. 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 –...
by Jamie Starling | Jun 15, 2022 | The Art of Technology
Histogram for a Gray Scale Image – Using Python. 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...
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...
by Jamie Starling | Jun 6, 2022 | The Art of Technology
There are a tons of image already – instead of going though the pain staking process of creating by hand our own images, I am going to use an image I already captured. And yes, it is of my three cats. I am also adding to the collection of cat images on the...
by Jamie Starling | Jun 6, 2022 | The Art of Technology
Color Image Arrays for image processing. Up to this point we have been dealing with Black and White images or Gray Scale images – that can be represented by a 2d array. Array(height, width) In which each element in the array represents one pixel and the level of...
by Jamie Starling | Jun 2, 2022 | The Art of Technology
Image Processing: Understanding Memory Usage When processing images, it’s essential to consider the memory usage, especially for high-performance applications. Here’s an in-depth look at how image size and type affect memory consumption and processing...
by Jamie Starling | Jun 2, 2022 | The Art of Technology
Here is a little fun. Some Python code that will take a text file and turn it into an image. When I say, turn it into an image – I don’t mean it will read the text file and make some image from it that we could look at and say… oh the ocean. What it does...
by Jamie Starling | Jun 2, 2022 | The Art of Technology
As you recall – a black and white image can be represented by a 2d array. The below Python code takes a 2 x 5 array (checker board pattern) and using matplot converts it into an image we can see. #%% import matplotlib.pyplot as plt import numpy as np # 2d Image...
by Jamie Starling | Jun 1, 2022 | The Art of Technology
High level it is a binary representation (numbers) of visual information. And how is it represented? It depends on the format, we will get into that later, but it is nothing more than an array of numbers. For example – lets just take a 256 level black and white...
by Jamie Starling | Jun 1, 2022 | The Art of Technology
Image Processing in C and Python : Introduction My idea is to put together a collection of image processing code – that didn’t heavily use external pre-written libraries as a way to better understand the code and image processing itself. In other words, to...