mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
expose FS
This commit is contained in:
parent
c546a27de7
commit
dd9262c318
@ -38,6 +38,10 @@
|
||||
// the use of this software, even if advised of the possibility of such damage.
|
||||
//
|
||||
|
||||
if (typeof Module.FS === 'undefined' && typeof FS !== 'undefined') {
|
||||
Module.FS = FS;
|
||||
}
|
||||
|
||||
Module['imread'] = function(imageSource) {
|
||||
var img = null;
|
||||
if (typeof imageSource === 'string') {
|
||||
|
Loading…
Reference in New Issue
Block a user