Posts

Showing posts from August, 2020

OOPs Concepts in C++

  Object oriented programming is a way of solving complex problems by breaking them into smaller problems using objects. Before Object Oriented Programming (commonly referred as OOP), programs were written in procedural language, they were nothing but a long list of instructions. On the other hand, the OOP is all about creating objects that can interact with each other, this makes it easier to develop programs in OOP as we can understand the relationship between them. Object Oriented Programming(OOP) In Object oriented programming we write programs using classes and objects utilising features of OOPs such as  abstraction ,  encapsulation ,  inheritance  and  polymorphism Class and Objects A class is like a blueprint of data member and functions and object is an instance of class. For example, lets say we have a class  Car  which has data members (variables) such as speed, weight, price and functions such as gearChange(), slowDown(), brake() etc. N...

Installing OpenCV 2.4.3 in Visual C++ 2010 Express [closed]

Image
1. Installing OpenCV 2.4.3 First, get  OpenCV 2.4.3  from sourceforge.net. Its a self-extracting so just double click to start the installation. Install it in a directory, say  C:\ . Wait until all files get extracted. It will create a new directory  C:\opencv  which contains OpenCV header files, libraries, code samples, etc. Now you need to add the directory  C:\opencv\build\x86\vc10\bin  to your system PATH. This directory contains OpenCV DLLs required for running your code. Open  Control Panel  →  System  →  Advanced system settings  →  Advanced  Tab →  Environment variables... On the System Variables section, select  Path  (1),  Edit  (2), and type  C:\opencv\build\x86\vc10\bin;  (3), then click  Ok . On some computers, you may need to restart your computer for the system to recognize the environment path variables. This will completes the OpenCV 2.4.3 installation on y...