Open Cycle Time
is a cross-platform video analysis tool for generating cycle times of manufacturing processes. It was made to provide a free and open-source tool that enable engineers to easily analyze their machinery without expensive sensors or software. Just use a video camera and this software instead!
- Git
- C++11
- OpenGL 4.1
- CMake 3.24+
- Make (If using Linux/macOS and the command line)
- xorg-dev (If using Linux and X11)
- OpenCV 4.5+
Note: Many of these requirements come bundled with your operating system and editor.
Open Cycle Time was made to be as portable as possible and easy to install, with only a single outside library dependency, namely OpenCV. All other libraries are fetched and built for you automatically, using CMake.
OpenCV can be installed using a variety of methods. You can build the software from source, use a package manager, or get prebuilt binaries for your system. No matter the method, you just need to make sure that the variable OpenCV_DIR
is set correctly in your environment or path variable, and it contains the files OpenCVConfig-version.cmake
and OpenCVConfig.cmake
. Without these, the software will not find OpenCV or build.
The simplest method to acquire OpenCV is to use a package manager for your operating system:
sudo apt install libopencv-dev
Using this method, you do not need to update the environment variables.
Requires the Homebrew package manager.
brew install opencv
Using this method, you do not need to update the environment variables.
Requires the Chocolatey package manager.
choco install opencv
Using this method, the default installation path is C:\tools\opencv\build
and you should set the environment variable OpenCV_DIR
to it.
With all of the requirements met, you're ready to install and build the software. There are multiple methods to accomplish this, use whichever you prefer.
Note: On Windows, it's recommended to use an editor to get, build, and run the software since it bundles the dependencies and automates these tasks for you. This approach can also be used on Linux and macOS.
For all operating systems, to just get the software you can use Git:
git clone https://github.com/noncog/open-cycle-time.git
After cloning, for Linux and macOS, you can build and run the software using:
cd open-cycle-time
make run
Note: On Windows, if you have Make, either through Chocolatey or MSYS2, you can also use the above method to build and run the software.
Alternatively, for all operating systems you can use one of the following editors to build and run the software.
- Open the folder in Visual Studio.
- Switch to the CMake Targets View in Solution Explorer.
- Right click the target and select
build
.
- Select
Clone a repository
. - Enter:
https://github.com/noncog/open-cycle-time
and hitclone
. - Switch to the CMake Targets View in Solution Explorer.
- Right click the target and select
build
.
- Open the folder in CLion.
- From the
Run
menu selectRun 'open-cycle-time'
.
- From the
File
menu, selectNew
thenProject from Version Control...
. - Enter:
https://github.com/noncog/open-cycle-time
and hitclone
. - From the
Run
menu selectRun 'open-cycle-time'
.
- If you can't run the project, in the
Build
menu selectRebuild Project
until the CMake targets are populated. - If the wrong target is the default, in the Run menu select
Edit Configurations...
underCMake Applications
chooseopen-cycle-time
.