Practice questions
Questions 1-4 are based on Figure 10.15, which is a Cloud Vision system to detect unsafe content in input images.
Figure 10.15 – Cloud Vision detection system
We have created three files:
target.json
main.py
requirements.txt
And the following is a snippet of the main.py
file:
def image_checking(data, context): uri = "gs://" + data['bucket'] + "/" + data['name'] image = vision.Image() image.source.image_uri = uri response = vision_client.safe_search_detection(image=image) result = response.safe_search_annotation
1. What is the requirements.txt
file?
A. It includes the required modules to import
B. It can be renamed to requirements
C. It is only for illustration purposes
D. It is needed for GCP Cloud Vision
2. What is the target...