| | |
| | | @ViewInject(R.id.fragment_surveillance_exit_timer) |
| | | private TextView fragment_surveillance_exit_timer; |
| | | |
| | | static boolean useNative = true; |
| | | static boolean useNative = false; |
| | | |
| | | public static boolean isEmulator() { |
| | | return Build.FINGERPRINT.startsWith("generic") |
| | |
| | | } |
| | | |
| | | static { |
| | | if (isEmulator()) { |
| | | useNative = false; |
| | | } else { |
| | | useNative = true; |
| | | } |
| | | // if (isEmulator()) { |
| | | // useNative = false; |
| | | // } else { |
| | | // useNative = true; |
| | | // } |
| | | if (useNative) { |
| | | System.loadLibrary("cvface_api"); |
| | | System.loadLibrary("opencv_java3"); |
| | |
| | | System.loadLibrary("rtspface"); |
| | | RtspFaceNative.init(); |
| | | // RtspFaceNative.setLocalIP("192.168.1.10"); |
| | | RtspFaceNative.setLocalIP("192.168.1.106");//自己手机ip |
| | | // RtspFaceNative.setLocalIP("192.168.1.106");//自己手机ip |
| | | RtspFaceNative.setLocalIP("192.168.1.203"); |
| | | } |
| | | } |
| | | |