Follow these steps to set up and run the project:
- 1. Download and Extract
- 2. Open a Terminal in the Project Folder
- 3. Launch the OpenCV Singularity Environment
- 4. Build the Project with CMake
- 5. Run the Executable
- Download the ZIP file.
- Extract it to your desired folder.
-
GUI method:
Right-click inside the extracted folder and select "Open in Terminal". -
Terminal command:
cd /path/to/yourrepo-mainMake sure you're in the folder where you extracted the project before running any commands.
-
On the VM, run the following command to enter the Singularity container:
start_opencv
Note: If this is your first time using the container, you might need to configure the Singularity container before running this command. Please refer to the setup documentation for the container configuration if necessary.
-
cmake .
This step generates the Makefile, which contains the rules for building your project.
-
make
This command compiles the project using the generated Makefile. If you encounter errors during this step, ensure you have the necessary dependencies and that the environment is correctly set up.
-
Execute the compiled program:
./IntermediateProjectCV
Note: The executable will be located in the build folder if you used an out-of-source build, or directly in the project folder if you did an in-source build.