mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #280 from dropfen/master
Allow UTF8 Filenames in readImage
This commit is contained in:
commit
d376062737
@ -41,7 +41,7 @@ NAN_METHOD(OpenCV::ReadImage) {
|
||||
|
||||
} else if (args[0]->IsString()) {
|
||||
|
||||
std::string filename = std::string(*NanAsciiString(args[0]->ToString()));
|
||||
std::string filename = std::string(*NanUtf8String(args[0]->ToString()));
|
||||
mat = cv::imread(filename);
|
||||
|
||||
} else if (Buffer::HasInstance(args[0])){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user