
Bounding rectangles in Python OpenCV
Posted 20th July 2021
No comments
There are two methods in OpenCV to derive a bounding rectangle and extract the relevant values of an object or series of objects in an image.

Use selective criteria to count files in PowerShell
Posted 1st July 2021
No comments
Use Windows PowerShell to easily return some key statistics about the files contained on your computer or network drives using selective criteria.

Changing date formats in R
Posted 21st June 2021
No comments
Dates come in all sorts of formats, but R generally prefers dates in the format YYYY-MM-DD. Here’s a quick method to convert date formats in R.

Cumulative totals by group in R
Posted 4th June 2021
No comments
Use Tidyverse’s dplyr package in R to add cumulative totals to a table based on group.

Tips for cleaning-up an R session
Posted 29th May 2021
No comments
Sometimes one just needs a “clean slate” in R, particularly when using R Studio. Here are my quick tips for cleaning up an R session in R Studio:

Managing RAW photos with Python
Posted 23rd April 2021
No comments
Use Python to recursively scan directories and remove unused and redundant CR2 files.

Convert RGB to CMYK in Python
Posted 26th March 2021
1 comment
Efficient Python code for taking a RGB image and converting it to CMYK before splitting the relevant channels out.

SFTP via the Command Line
Posted 3rd March 2021
No comments
Simple instructions for uploading or downloading files and directories using Secure File Transfer Protocol (sFTP) in Linux.

Structural Similarity Index (SSIM) in Python
Posted 19th February 2021
No comments
Quantitatively check the quality of a compressed image using a simple Python code for calculating the Structural Similarity Index (SSIM) and Mean Square Errors (MSE) between two images.

Multi-line gradient hyperlinks
Posted 18th February 2021
No comments
Use cascading style sheets to create a gradient underline link that will span multiple lines.