2016年1月4日 星期一

SimpleCV tutorial basics


1.   loading and saving Images


    load image :  logo = Image("simplecv")

   show image : logo.show()

    save image :  logo.save("out.jpg")

    you also would specify the path : logo.save("/path/out.jpg")

    you could get image from camera module

    cam = camera()

    grab an image from camera

    img = cam.getImage()

 2. Image Manipulation 

   image scale   :  thumbnail = img.scale(90,90)
 
   image erode  :  eroded =  img.erode()
                            eroded.show()
   image crop   :  img.crop(100,100,50,50)

                           start coord : (100,100), (width, height) : (50,50)
 

3.  Feature

   


Reference http://tutorial.simplecv.org/en/latest/examples/basics.html

沒有留言:

張貼留言