This repository contains the necessary modifications to make the Problem Set compatible with Google Colab.
Install OpenCV from source. Here's how you can set up OpenCV:
sudo apt update && sudo apt install -y g++ cmake make git libgtk2.0-dev pkg-config
git clone https://github.com/opencv/opencv.git
mkdir -p build && cd build
cmake ../opencv -DBUILD_LIST=core,imgproc,imgcodecs
make -j$(nproc)
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Prior to building the application, ensure that you have implemented all necessary functionality within student_func.cu.
Use the provided Makefile to compile the problem set:
make
./HW1 {input image path}
Example:
./HW1 cinque_terre_small.jpg
- The Makefile has been updated to use correct paths and libraires.
- Removed dependencies on OpenCV's GUI modules since Google Colab runs on a headless server.
- OpenCV syntax in the codebase has been updated to comply with the latest API standards in OpenCV 4.x.
- Build with cmake