Build computer vision pipelines with OpenCV on a Google Cloud C4A Axion VM
Introduction
Understand OpenCV on Google Axion C4A
Create a firewall rule for OpenCV browser visualization
Create a Google Axion C4A Arm virtual machine
Build OpenCV pipelines on Google Axion
Use machine learning models with OpenCV on Google Axion
Next Steps
Build computer vision pipelines with OpenCV on a Google Cloud C4A Axion VM
Provision a Google Axion C4A Arm-based VM
In this section, you’ll create a Google Axion C4A Arm-based virtual machine (VM) on Google Cloud Platform (GCP). You’ll use the c4a-standard-4 machine type with four vCPUs and 16 GB of memory. This VM will host your OpenCV application.
For help with GCP setup, see the Learning Path Getting started with Google Cloud Platform .
Provision a Google Axion C4A Arm VM in Google Cloud Console
To create a virtual machine based on the C4A instance type:
- Navigate to the Google Cloud Console .
- Go to Compute Engine > VM Instances and select Create Instance.
- Under Machine configuration:
- Populate fields such as Instance name, Region, and Zone.
- Set Series to
C4A. - Select
c4a-standard-4for Machine type.
Configuring machine type to C4A in Google Cloud Console
- Under OS and storage, select Change, and then choose an Arm64-based operating system image. For this Learning Path, select SUSE Linux Enterprise Server.
- For the license type, choose Pay as you go.
- Increase Size (GB) from 10 to 100 to allocate sufficient disk space.
- Select Choose to apply the changes.
- Expand the Networking section and enter
allow-opencvin the Network tags field. This tag links the VM to the firewall rule you created earlier, so your browser can access the OpenCV output. - Select Create to launch the virtual machine.
After the instance starts, select SSH next to the VM in the instance list to open a browser-based terminal session.
Connecting to a running C4A VM using SSH
A new browser window opens with a terminal connected to your VM.
Terminal session connected to the VM
What you’ve accomplished and what’s next
You’ve now provisioned a Google Axion C4A Arm VM and connected to it using SSH. You’ll use this VM to run your OpenCV application.
Next, you’ll install OpenCV and the required dependencies on your VM.