如何获取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
答案 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”栏目是您感兴趣的栏目。