1銆佸叕鍙告。鍙h淇?/h3>
鍏徃妗e彛瑁呬慨鎸囧崡
1. 纭畾瑁呬慨鐩爣鍜岄绠?/p>
鏄庣‘妗e彛鐨勭洰鐨勫拰鐩爣鍙椾紬銆?/p>
鏍规嵁鍏徃鐨勫搧鐗屽舰璞″拰涓氬姟闇?姹傜‘瀹氳淇鏍笺??/p>
鍒跺畾涓?涓幇瀹炵殑棰勭畻锛屽寘鎷潗鏂欍?佷汉宸ュ拰鏉傝垂銆?/p>
2. 璁捐鍜岃鍒?/p>
閫夋嫨鍔熻兘鎬у拰缇庤鐨勫竷灞?锛屽厖鍒嗗埄鐢ㄧ┖闂淬??/p>
鑰冭檻鐓ф槑銆侀?氶鍜岄煶鍝嶇瓑鐜鍥犵礌銆?/p>
鍒涘缓涓?涓瑙夊惛寮曞姏鐨勮璁★紝绐佸嚭鍏徃鐨勫搧鐗屽拰浜у搧銆?/p>
3. 鏉愭枡閫夋嫨
閫夋嫨鑰愮敤銆佹槗浜庣淮鎶や笖绗﹀悎鍝佺墝褰㈣薄鐨勬潗鏂欍??/p>
鑰冭檻浣跨敤鍙寔缁拰鐜繚鐨勬潗鏂欍??/p>
鎺㈢储涓嶅悓鏉愭枡鐨勭汗鐞嗐?侀鑹插拰楗伴潰銆?/p>
4. 鏂藉伐
鑱樿鍚堟牸鐨勬壙鍖呭晢锛岀‘淇濅笓涓氭柦宸ャ??/p>
瀹氭湡鐩戞帶鏂藉伐杩涘害锛屽強鏃惰В鍐充换浣曢棶棰樸??/p>
閬靛惊鎵?鏈夊畨鍏ㄦ硶瑙勫拰寤虹瓚瑙勮寖銆?/p>
5. 闄堝垪鍜屽睍绀?/p>
绮惧績璁捐浜у搧闄堝垪锛岀獊鍑轰紭鍔垮苟鍚稿紩瀹㈡埛銆?/p>
浣跨敤閫傚綋鐨勭収鏄庡拰灞曠ず鎶?鏈紝澧炲己瑙嗚鍚稿紩鍔涖??/p>
鎻愪緵娓呮櫚鐨勪骇鍝佷俊鎭拰瀹氫环銆?/p>
6. 鍟嗘爣鍜屾爣璇?/p>
绐佸嚭鍏徃鐨勬爣璇嗗拰鍟嗘爣鍦ㄦ。鍙g殑鏄剧溂浣嶇疆銆?/p>
浣跨敤瀹氬埗鐨勬爣璇嗙墝銆佹捣鎶ユ垨澧欓潰瑁呴グ鏉ユ彁鍗囧搧鐗岃鐭ュ害銆?/p>
淇濇寔鍟嗘爣鍜屾爣璇嗙殑涓?鑷存?э紝绗﹀悎鍏徃鍝佺墝鎸囧崡銆?/p>
7. 鍏朵粬鑰冭檻鍥犵礌
鑰冭檻鍦ㄦ。鍙e唴瀹夎浼戞伅鍖烘垨鎺ュ緟鍖?銆?/p>
鎻愪緵鏂逛究鐨勬敮浠樻柟寮忓拰瀹㈡埛鏈嶅姟銆?/p>
纭繚妗e彛鏁存磥銆佺粍缁囪壇濂斤紝钀ラ?犵Н鏋佺殑瀹㈡埛浣撻獙銆?/p>
8. 缁存姢鍜屼繚鍏?/p>
瀹氭湡娓呮磥鍜岀淮鎶ゆ。鍙o紝浠ヤ繚鎸佸叾缇庤鍜屽姛鑳芥?с??/p>
鍙婃椂杩涜蹇呰鐨勭淮淇紝闃叉灏忛棶棰樻伓鍖栥??/p>
鐩戞帶瓒嬪娍鍜屽鎴峰弽棣堬紝鏍规嵁闇?瑕佹洿鏂拌淇??/p>
閫氳繃閬靛惊杩欎簺鎸囧崡锛屽叕鍙告。鍙e彲浠ユ垚涓轰竴涓珮鏁堛?佸惛寮曚汉鍜屽弽鏄犲叕鍙稿搧鐗屽舰璞$殑绌洪棿銆?/p>
2銆佹。鍙h淇?庝箞鍙戞湅鍙嬪湀
馃帀瑁呬慨澶у悏锛屾。鍙g剷鏂伴馃帀
浜茬埍鐨勬湅鍙嬩滑锛岀粡杩囦竴娈垫椂闂寸殑绮惧績绛瑰锛屾垜浠殑妗e彛鍗庝附鍗囩骇鍟︼紒
馃専宕柊鐨勯棬澶达紝绠?绾︽椂灏氾紝褰版樉涓??/p>
馃専鏄庝寒鐨勭伅鍏夛紝钀ラ?犺垝閫傛俯棣ㄧ殑璐墿鐜
馃専绮捐嚧鐨勯檲鍒楋紝璁╂瘡浠跺晢鍝侀兘榄呭姏鍥涘皠
鎴戜滑鍊炬敞浜嗘棤鏁板績琛?鍜屽姫鍔涳紝鍙负缁欐偍甯︽潵鏇村ソ鐨勮喘鐗╀綋楠屻?傛杩庡ぇ瀹跺墠鏉ュ弬瑙傞?夎喘锛屼竴璧疯璇佹。鍙g殑鍗庝附铚曞彉锛?/p>
馃搷鍦板潃锛歺x甯倄x璺痻x鍙?/p>
馃摓鑱旂郴鏂瑰紡锛歺xxxxxx xxxx
妗e彛瑁呬慨 鐒曠劧涓?鏂?鎯婂枩涓嶆柇 濂藉簵鎺ㄨ崘 璐墿濂藉幓澶?/p>
3銆佹湇瑁呮。鍙h淇晥鏋滃浘鐗?/h3>
from google.cloud import vision
from google.cloud.vision import types
path = "path/to/image/file.jpg"
client = vision.ImageAnnotatorClient()
with io.open(path, 'rb') as image_file:
= image_file.read()
image = types.Image(=)
response = client.object_localization(
image=image).localized_object_annotations
print('Number of objects found: {}'.format(len(response)))
for object_ in response:
print('\n{} (confidence: {})'.format(object_.name, object_.score))
print('Normalized bounding polygon vertices: ')
for vertex in object_.bounding_poly.normalized_vertices:
print(' ({}, {})'.format(vertex.x, vertex.y))
4銆佹槑妗f。鍙h淇晥鏋滃浘
M12 鏄庢。妗e彛瑁呬慨鏁堟灉鍥?/p>
![鏄庢。妗e彛瑁呬慨鏁堟灉鍥綸()
M13 鏄庢。妗e彛瑁呬慨鏁堟灉鍥?/p>
![鏄庢。妗e彛瑁呬慨鏁堟灉鍥綸()
M14 鏄庢。妗e彛瑁呬慨鏁堟灉鍥?/p>
![鏄庢。妗e彛瑁呬慨鏁堟灉鍥綸()
M15 鏄庢。妗e彛瑁呬慨鏁堟灉鍥?/p>
![鏄庢。妗e彛瑁呬慨鏁堟灉鍥綸()
M16 鏄庢。妗e彛瑁呬慨鏁堟灉鍥?/p>
![鏄庢。妗e彛瑁呬慨鏁堟灉鍥綸()