gcloud会显示图像系列选项吗?

时间:2016-07-29 08:54:28

标签: linux cloud google-compute-engine vps gcloud

如何获取image-family选项列表?

--image-family IMAGE_FAMILY
    The family of the image that the boot disk will be initialized with. When a family is specified instead of an image, the latest non-deprecated image associated with that family is used.

    By default, debian-8 is assumed for this flag. 

https://cloud.google.com/sdk/gcloud/reference/compute/instances/create

1 个答案:

答案 0 :(得分:2)

public class MainActivity extends Activity implements CameraBridgeViewBase.CvCameraViewListener2 {

private static boolean openCVStarted = false;
JavaCameraView _javaCameraView;

    static{
        System.loadLibrary("opencv_java3");


        if(!OpenCVLoader.initDebug()) {
            Log.d("ERROR", "Unable to load OpenCV");
            openCVStarted = false;
        } else {
            Log.d("SUCCESS", "OpenCV loaded");
            openCVStarted = true;
        }
    }

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        _javaCameraView = (JavaCameraView)findViewById(R.id.cameraView);
        //_javaCameraView.setMaxFrameSize(size.width, size.height);
        _javaCameraView.setVisibility(SurfaceView.VISIBLE);
        _javaCameraView.setCvCameraViewListener(this);
        _javaCameraView.enableView();
        _javaCameraView.enableFpsMeter();
    }

    @Override
    public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame)
    {
        _imgBgrTemp = inputFrame.rgba();
        // Work with the frame here
        return _imgBgrTemp;
    }

“FAMILY”栏目是您感兴趣的栏目。