1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00
ruby-opencv/lib/opencv.rb
2013-05-05 00:03:37 +09:00

12 lines
269 B
Ruby
Executable file

require (File.dirname(__FILE__) + '/opencv/version')
if RUBY_PLATFORM =~ /mingw|mswin/
major, minor, subminor = RUBY_VERSION.split('.')
begin
require "#{major}.#{minor}/opencv.so"
rescue LoadError
require 'opencv.so'
end
else
require 'opencv.so'
end