Skip to main content

Posts

Showing posts with the label opencv

Featured Post

Product Design of a 4 wheel differential drive robot

Reading and showing images using opencv

Here is a sample code to read and show an image after converting it into grey scale. Program reads a picture file called boy.jpg in the current folder and displays it. After 1 second it will change to grey scale. Use this command to compile the program. g++ first.cpp `pkg-config --cflags opencv` `pkg-config --libs opencv` where first.cpp is the file name.