Integrate Oracle Analytics with Oracle Cloud Infrastructure Vision
Integrate Oracle Analytics with Oracle Cloud Infrastructure (OCI) Vision to perform object detection, image classification, and text detection without needing machine learning or artificial intelligence expertise. For example, you might want to identify cars in photographs.
Overview to Integrating Oracle Analytics with Vision
Vision is one of several artificial intelligence (AI) services provided by Oracle Cloud Infrastructure. It gives you the power to apply machine learning and artificial intelligence without needing data science expertise.
Integrating Oracle Analytics Cloud with Vision enables object detection, image classification, and text detection from within Oracle Analytics Cloud. You perform this AI analysis by invoking the Vision service from a data flow in Oracle Analytics Cloud.
Vision includes pre-trained models and custom-trained models.
Pre-trained models
Pre-trained models allow users to perform image analysis tasks on generic datasets.
- Face Detection - Identify the existence of faces in images. For example, you might want to hide the identity of people in images by adding a blur to the image using face location information returned by this model.
-
Image Classification - Use a fixed category set to assign labels to images.
-
Object Detection - Finds instance of real-world objects or specific patterns in images or videos, for example, cats, dogs, bicycles, or aircraft.
-
Text Detection - Convert printed or handwritten text into a digital format.
Custom-trained model
Custom-trained models are calibrated and fine-tuned to detect images and patterns for specific purposes. For example, whereas a pre-trained model might identify electric circuits, you can design a custom-trained model to identify the electric components that make up an electric circuit, for example, resistors, LEDs, diodes, and capacitors. See Vision Tutorials.
Policies Required to Integrate OCI Vision with Oracle Analytics
To integrate Oracle Analytics with OCI Vision, make sure that you have the required security policies.
The OCI user that you specify in the connection between Oracle Analytics Cloud and your OCI tenancy must have read, write, and delete permissions on the compartment containing the OCI resources you want to use. Ensure that the OCI user belongs to a user group with the following minimum OCI security policies. When you connect to an OCI tenancy from Oracle Analytics, you can use either an OCI API key or resource principal.
Note:
Oracle Cloud IDs (OCIDs) are resource identifiers used in OCI.Note:
For resource principal, to include all Analytics instances under a compartment, specify{request.principal.type='analyticsinstance', request.principal.compartment.id='<compartmentA_ocid>'}
instead of {request.principal.id='<analytics_instance_ocid>'}
.
API Key Policies | Resource Principal Policies |
---|---|
Allow group <group_name> to manage ai-service-vision-family in tenancy |
Allow any-user to manage ai-service-vision-family in tenancy where all {request.principal.id='<analytics_instance_ocid>'} |
Allow group <group_name> to read buckets in compartment <compartment_name> |
Allow any-user to read buckets in compartment <compartment_name> where all {request.principal.id='<analytics_instance_ocid>'} |
Allow group <group_name> to manage objects in compartment <compartment_name> where target.bucket.name='<staging_bucket_name>' |
Allow any-user to manage objects in compartment <compartment_name> where all {request.principal.id='<analytics_instance_ocid>', target.bucket.name='<staging_bucket_name>'} |
Allow group <group_name> to read objects in compartment <compartment_name> where target.bucket.name='<images_bucket_name>' |
Allow any-user to read objects in compartment <compartment_name> where all {request.principal.id='<analytics_instance_ocid>', target.bucket.name='<images_bucket_name>'} |
Allow group <group_name> to read objectstorage-namespaces in tenancy |
Allow any-user to read objectstorage-namespaces in tenancy where all {request.principal.id='<analytics_instance_ocid>'} |
Typical Workflow to Integrate Oracle Analytics with Vision
Perform these tasks required to integrate Oracle Analytics with Vision and perform object detection, image classification, or text detection.
Task | Description | More Information |
---|---|---|
Review prerequisites | Make sure that the user connecting from Oracle Analytics to the OCI tenancy has the required security policies. | Policies Required to Integrate OCI Vision with Oracle Analytics |
Connect to OCI Vision | Create a reusable connection to your Vision service. | Create a Connection to Your Oracle Cloud Infrastructure Tenancy |
Prepare images to analyze | Create a dataset for the source images that you want to analyze, and upload it to Oracle Analytics. | Prepare Images for Analysis With an Vision Model |
Make a model available in Oracle Analytics | Register a Vision model in Oracle Analytics to make it available to data flows. | Make a Vision Model Available in Oracle Analytics |
Process your images | Use a data flow to perform object detection, image classification, or text detection. | Use Oracle Cloud Infrastructure Vision Models in Oracle Analytics |
Analyze the results | Use the dataset generated by your data flow to analyze the results. | Output Data Generated for Face Detection, Object Detection, Image Classification, and Text Detection Analysis Models |
Prepare Images for Analysis With an Vision Model
You use buckets in OCI Object Storage to store the images that you want to analyze, then create a dataset to access these images in Oracle Analytics.
In most cases, input images and Vision models are stored in the same Oracle Cloud account (tenancy). If your input images and Vision model are stored on different tenancies, you must ensure that the visibility of the storage bucket containing your input images is public and the input dataset for the data flow contains individual image URLs (as described in step 4). To learn how to make a bucket public, see Change the visibility of a bucket.
Make a Vision Model Available in Oracle Analytics
Make a Vision model available in Oracle Analytics so that you can perform object detection, image classification, or text detection using data flows.