| | |
| | | import android.view.SurfaceHolder; |
| | | import android.view.SurfaceView; |
| | | import android.view.View; |
| | | import android.widget.LinearLayout; |
| | | import android.widget.ProgressBar; |
| | | import android.widget.RadioButton; |
| | | import android.widget.RadioGroup; |
| | |
| | | private RelativeLayout fragment_supervisory_exit_camera_relative_layout; |
| | | @ViewInject(R.id.fragment_supervisory_enter_camera_relative_layout) |
| | | private RelativeLayout fragment_supervisory_enter_camera_relative_layout; |
| | | @ViewInject(R.id.fragment_surveillance_bottom_linear_layout) |
| | | private LinearLayout fragment_surveillance_bottom_linear_layout; |
| | | |
| | | |
| | | static boolean useNative = false; |
| | | |
| | |
| | | useNative = false; |
| | | } |
| | | //useNative = false; |
| | | if (CommonVariables.EMULATOR) { |
| | | useNative = false; |
| | | } |
| | | if (useNative) { |
| | | System.loadLibrary("cvface_api"); |
| | | System.loadLibrary("opencv_java3"); |
| | |
| | | if (CommonVariables.FACE_SERVER) { |
| | | fragment_supervisory_enter_camera_relative_layout.addView(MainActivity.getInstance().mPreview); |
| | | fragment_supervisory_enter_camera_relative_layout.addView(MainActivity.getInstance().mDraw); |
| | | |
| | | //fragment_supervisory_exit_camera_relative_layout.setVisibility(View.GONE); |
| | | //fragment_surveillance_bottom_linear_layout.setVisibility(View.GONE); |
| | | } |
| | | fragment_supervisory_enter_camera.getHolder().addCallback(new SurfaceHolder.Callback() { |
| | | public void surfaceCreated(SurfaceHolder holder) { |