修复 所有脚本在Android 4.4都不能正常运行的问题
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
module.exports = function (runtime, scope) {
|
||||
function images(){
|
||||
}
|
||||
util.__assignFunctions__(runtime.images, images, ['requestScreenCapture', 'captureScreen', 'read', 'copy', 'load', 'clip', 'pixel'])
|
||||
if(android.os.Build.VERSION.SDK_INT >= 21){
|
||||
util.__assignFunctions__(runtime.images, images, ['requestScreenCapture', 'captureScreen', 'read', 'copy', 'load', 'clip', 'pixel'])
|
||||
}
|
||||
images.opencvImporter = JavaImporter(
|
||||
org.opencv.core.Point,
|
||||
org.opencv.core.Point3,
|
||||
|
||||
Reference in New Issue
Block a user