Posts

Showing posts from May, 2020

Creating Plots with Matplotlib

Image
Today I was working with Heart Data with Matplotlib. I was learning how to develop multiple row plots and then change the style of the plots. The first plot uses the "default" Matplotlib style. The second plot uses the "fivethirtyeight" style.  I also changed the cmap colors to "winter". There is a big debate about whether it is easier to make figures, charts, plots in R than in Python.  I think that both programs require a lot of work. However, once you get the basics down, it is just about copying code.

Working with Color Detection using OpenCV

Image
I have been working with color detection using OpenCV. The color detection appears to work well with colors like orange; however, it doesn't work well with white.  Below are two images that show this fact. The first is a photo of an organ lamborghini.  As we can we the color detection picks up the orange well.  Using color detection was pretty simple with this photo. Here is a photo of a panda using color detection. With this photo, detecting white was not that easy. We can see that the color detection around the stomach of the panda is not clear.  I also had some problems around the panda's mouth.  I will have to use more photos to see if the problems are related to the photo or the color.

Working with OpenCV with Python

Image
I started working with OpenCV with Python.  At first, I was interested in learning how use OpenCV with C++ . However,  after seeing how I had to manage the OpenCV files with each project, I decided to go with Python. Here are some initial work with images. The first photo shows the original image and a blurred images. The second photo shows the original image eroded and dilated.  The last image shows the original image plus the original image resized and cropped.