Code Monkey home page Code Monkey logo

pretesttask1's Introduction

Pretest task #1

Create a C++ program to blur an image using OpenCV

  1. Clone this project and move into the pretestTask1 directory cd pretextTask1
  2. Make sure opencv and g++ complier are installed.
    Complile the file opencvmini.cpp using the following command g++ -std=c++14 opencvminicpp.cpp -o opencvmini pkg-config opencv4 --cflags --libs
  3. Execute the compliled file ./opencvmini

TIL(Journal)

  • Finding the appropriate header file that needs to be added (opencv.hpp). Why not core.hpp? Todo: research a lil about the header files arch.
  • Finding the location of the header file to be included in the cpp program. In my case, OpenCV was downloaded using homebrew and the header files were at opt/homebrew/Cellar/opencv/4.8.1_5/include/opencv4/opencv2. Todo : research a lil about the unix file systems to comprehend the purpose of the opt folder. To the best of my knowlege, opt is used to store library files by package managers like pip, Anaconda, and Homebrew.
  • Compiling the program using the right flags (throws error when u don't spefify the c++ std using this flag -std=c++14).Todo: learn more about the Cpp stds.
  • Throws the following error:fatal error: 'opencv2/opencv_modules.hpp' file not found #include "opencv2/opencv_modules.hpp" when this is not used while compiling pkg-config opencv4 --cflags --libs.
  • There were conflicts with the anaconda package when I was trying to build wasedge from source using ninja. To remedy the error I deleted anaconda and I could successfully build wasmedge from source without errors.

pretesttask1's People

Contributors

rum1887 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.