Update README.markdown

This commit is contained in:
julien Lengrand-Lambert
2011-10-27 17:02:52 +03:00
parent 2a9bccdc3e
commit 008ee53f30

View File

@@ -12,7 +12,7 @@ This project aims at magnifying the power of OpenCV in using the power of Python
Here is a simple example. Let's imagine we have an RGB image, and we want to display it in HSV space.
The Python OpenCV code would be:
`
```Python
import cv
img = cv.LoadImage('test.jpg')
imgHSV = cv.CreateImage( cv.GetSize(img), img.depth, img.nChannels)
@@ -20,17 +20,17 @@ cv.CvtColor(img, imgHSV, cv.CV_RGB2HSV)
cv.NamedWindow("HSV display")
cv.ShowImage("HSV display", imgHSV)
cv.WaitKey(0)
`
```
The same code using Tippy would give :
`
```Python
import cv
import tippy as tp
img = cv.LoadImage('test.jpg')
imgHSV = tp.RGB2HSV(img)
tp.DisplayWait("HSV display", imgHSV, 0)
`
```
Hence, the main objective is to keep the best of OpenCV while reducing the amount of code needed to get things working smoothly. Tippy contains templates in which you simply have to fill the parts corresponding to your precise needs.