File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
vision/google/cloud/vision Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def _make_entity_from_pb(annotations):
131
131
132
132
:type annotations:
133
133
:class:`~google.cloud.grpc.vision.v1.image_annotator_pb2.EntityAnnotation`
134
- :param annotations: gRPC instance of ``EntityAnnotation``.
134
+ :param annotations: protobuf instance of ``EntityAnnotation``.
135
135
136
136
:rtype: list
137
137
:returns: List of ``EntityAnnotation``.
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def from_api_repr(cls, location_info):
102
102
return cls (latitude , longitude )
103
103
104
104
@classmethod
105
- def from_pb (cls , response ):
105
+ def from_pb (cls , location_info ):
106
106
"""Factory: construct location information from Vision gRPC response.
107
107
108
108
:type response: :class:`~google.cloud.vision.v1.LocationInfo`
@@ -112,7 +112,8 @@ def from_pb(cls, response):
112
112
:returns: ``LocationInformation`` with populated latitude and
113
113
longitude.
114
114
"""
115
- return cls (response .lat_lng .latitude , response .lat_lng .longitude )
115
+ return cls (location_info .lat_lng .latitude ,
116
+ location_info .lat_lng .longitude )
116
117
117
118
@property
118
119
def latitude (self ):
You can’t perform that action at this time.
0 commit comments