Skip to content

A cross-platform video analysis tool for generating cycle times of manufacturing processes.

License

Notifications You must be signed in to change notification settings

noncog/open-cycle-time

Repository files navigation

Open Cycle Time

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!

Requirements

  • 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.

Getting OpenCV

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:

Debian and Ubuntu

sudo apt install libopencv-dev

Using this method, you do not need to update the environment variables.

macOS

Requires the Homebrew package manager.

brew install opencv

Using this method, you do not need to update the environment variables.

Windows 10+

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.

Getting Started

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.

Using the Command Line

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.

Using Visual Studio

If you've already cloned the repository:

  1. Open the folder in Visual Studio.
  2. Switch to the CMake Targets View in Solution Explorer.
  3. Right click the target and select build.

If you want Visual Studio to clone the repository:

  1. Select Clone a repository.
  2. Enter: https://github.com/noncog/open-cycle-time and hit clone.
  3. Switch to the CMake Targets View in Solution Explorer.
  4. Right click the target and select build.

Additional Resources:

Using CLion

If you've already cloned the repository:

  1. Open the folder in CLion.
  2. From the Run menu select Run 'open-cycle-time'.

If you want CLion to clone the repository:

  1. From the File menu, select New then Project from Version Control....
  2. Enter: https://github.com/noncog/open-cycle-time and hit clone.
  3. From the Run menu select Run 'open-cycle-time'.

Troubleshooting:

  • If you can't run the project, in the Build menu select Rebuild Project until the CMake targets are populated.
  • If the wrong target is the default, in the Run menu select Edit Configurations... under CMake Applications choose open-cycle-time.

About

A cross-platform video analysis tool for generating cycle times of manufacturing processes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published