OpenCV Image Browser

Contributors: Abelson Abueg and Brandon Miranda

Instructions for Windows with Microsoft Visual Studio 2019

For our group assignment, we used Microsoft Visual Studio 2019 for working with Windows. To compile our code, you will need to open 'browser.sln' and follow these instruction on how to get OpenCV working on Visual Studio on your Windows machine before building the solution:

After you have configured OpenCV in your machine and in Microsoft Visual Studio, you'll then need to build the solution. Again, make sure you are building in x64 Release.

After building the solution, you will find the executable (.exe) file in "*\browser\x64\release" so you will be able to run the code on your machine.

To run the program, open Powershell and use the 'cd' command to "*\browser\x64\release", which is where the executable file is located. Below are the basic arguments you can use for the program. Although there are different variations of each command you can use, but in these instructions, we'll use the shortest form of each argument.

  • Open help:
    • .\browser.exe -h
  • Run program without image preview window size limit (will adjust to display size on Windows):
    • .\browser.exe Your-Directory-Path
    • Example: .\browser.exe "C:\Users_Some User_\Desktop\directory-to-browse-images
  • Run program with image preview window size limit:
    • .\browser.exe -r=Max-INT-Height-Limit-in-Pixels -c=INT-Max-Width-Limit-Pixels STRING-Your-Directory-Path
    • Example: .\browser.exe -r=720 -c=1280 'C:\Users_Some User_\Desktop\directory-to-browse-images-from'

Instructions for MacOS with Xcode

The instructions for running our application on MacOS are very similar to the Windows counterpart. The biggest exception being having to work through Xcode rather than Visual Studio 2019. To begin open 'browser.sln' and follow the instructions on how to install OpenCV on Mac with the following link: https://www.youtube.com/watch?v=HxNZEa7Slyk&t=571s

The steps are mostly the same as above with Windows except for having to switch to a release mode rather than a debug one. Creating the build for the browser defaulty will do.

After building the solution, you will find the executable (.dmg) file in "*\browser\x64\release" so you will be able to run the code on your machine.

To run the program, open Terminal from the Launchpad menu and use the 'cd' command to "*\browser\x64\release", which is where the executable file is located. Below are the basic arguments you can use for the program. Although there are different variations of each command you can use, but in these instructions, we'll use the shortest form of each argument.

  • Open help:
    • .\browser.dmg -h
  • Run program without image preview window size limit:
    • .\browser.dmg Your-Directory-Path
    • Example: .\browser.dmg "C:\Users_Some User_\Desktop\directory-to-browse-images
  • Run program with image preview window size limit:
    • .\browser.dmg -r=Max-INT-Height-Limit-in-Pixels -c=INT-Max-Width-Limit-Pixels STRING-Your-Directory-Path
    • Example: .\browser.dmg -r=720 -c=1280 'C:\Users_Some User_\Desktop\directory-to-browse-images-from'