1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

update README

This commit is contained in:
ser1zw 2016-07-17 09:36:12 +09:00
parent b7892c80e3
commit 76a076d8a3

View file

@ -3,7 +3,7 @@
An OpenCV wrapper for Ruby.
* Web site: <https://github.com/ruby-opencv/ruby-opencv>
* Ruby 1.9.3, 2.x and OpenCV 2.4.12 are supported.
* Ruby 2.x and OpenCV 2.4.13 are supported.
## Requirement
@ -23,16 +23,9 @@ $ gem install ruby-opencv -- --with-opencv-dir=/path/to/opencvdir
Note: **/path/to/opencvdir** is the directory where you installed OpenCV.
### Windows
You can use pre-build binary for Windows (mswin32).
### Windows (RubyInstaller)
1. Install [OpenCV](http://sourceforge.net/projects/opencvlibrary/files/opencv-win/)
2. Set path to OpenCV libraries. When you installed OpenCV to **C:\opencv**, add **C:\opencv\build\x86\vc10\bin** to the systems path.
3. Install ruby-opencv
```
$ gem install ruby-opencv
```
See [install-ruby-opencv-with-rubyinstaller-on-windows.md](install-ruby-opencv-with-rubyinstaller-on-windows.md).
## Sample code
### Load and Display an Image