{"id":1713,"date":"2022-09-17T18:41:19","date_gmt":"2022-09-17T09:41:19","guid":{"rendered":"https:\/\/extralab.org\/wp\/?p=1713"},"modified":"2022-09-17T18:43:08","modified_gmt":"2022-09-17T09:43:08","slug":"python-opencv2-image-data-show","status":"publish","type":"post","link":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/","title":{"rendered":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)"},"content":{"rendered":"<h1>\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)<\/h1>\n<h2>Python-OpenCV<\/h2>\n<h4>pip install python-opencv<\/h4>\n<p>python\u7248\u306eopencv\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u3002<\/p>\n<h2>\u753b\u50cf<\/h2>\n<p>\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\" title=\"py-opencv2_img_show\">import cv2\r\n\r\n# \u753b\u50cf\u9078\u629e\r\nimg = cv2.imread('sample.jpg')\r\n\r\n# \u753b\u50cf\u8868\u793a\r\ncv2.imshow('OpenCV', img)  # \u8868\u793a\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()  # \u9589\u3058\u308b<\/pre>\n<h2>\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u4e0b\u8a18\u306e\u753b\u50cf(\u6a2a\u00d7\u7e26\uff1a1280\u00d7887)\u3092\u4f7f\u7528\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-1717\" src=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv_sample00-1024x710.jpg\" alt=\"pycv_sample00\" width=\"800\" height=\"555\" srcset=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv_sample00-1024x710.jpg 1024w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv_sample00-300x208.jpg 300w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv_sample00-768x532.jpg 768w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv_sample00.jpg 1280w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001OpenCV\u3067\u753b\u50cf\u3092\u6271\u3046\u5834\u5408\u3001\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u8868\u793a\u306f\u3001\u7e26\u00d7\u6a2a\u306e\u9806\u756a\u3067\u8868\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>\u753b\u50cf\u306e1\u753b\u7d20(pixel)\u306eBGR\u60c5\u5831\u78ba\u8a8d\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u914d\u5217\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u5f62\u3067\u3001\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\" title=\"pyopencv_bgr_data\">print(img[0, 0])  # \u753b\u50cf\u306e\u5de6\u4e0a\r\nprint(img[886, 0])  # \u753b\u50cf\u306e\u5de6\u4e0b\r\nprint(img[0, 1279])  # \u753b\u50cf\u306e\u53f3\u4e0a\r\nprint(img[886, 1279])  # \u753b\u50cf\u306e\u53f3\u4e0b\r\n# --\u51fa\u529b\u7d50\u679c--\r\n# [12 38 68]\r\n# [ 2  2 16]\r\n# [154 153 162]\r\n# [ 6  9 30]<\/pre>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1721\" src=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/image_cv2_001.png\" alt=\"image_cv2_001\" width=\"808\" height=\"574\" srcset=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/image_cv2_001.png 808w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/image_cv2_001-300x213.png 300w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/image_cv2_001-768x546.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/>\n<h2>\u753b\u50cf\u30b5\u30a4\u30ba\u5909\u66f4<\/h2>\n<p>\u307e\u305a\u306f\u3001\u753b\u50cf\u306ewidth\u3068height\u306e\u53d6\u5f97\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\" title=\"pyopencv_shape001\"># \u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\r\nheight, width, channels = img.shape\r\nprint(width, height)\r\n\r\n#--\u51fa\u529b\u7d50\u679c--\r\n# 1280 887<\/pre>\n<p>\u753b\u50cf\u306e\u7e2e\u5c0f\u3068\u62e1\u5927\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<pre class=\"lang:python decode:true \" title=\"pycv2_resize_sample\"># \u753b\u50cf\u306e\u30b5\u30a4\u30ba\u5909\u66f4(pixel\u6570\u5024\u6307\u5b9a)\r\n# \u30b5\u30a4\u30ba\u306e\u5f62\u72b6\u306f\u3001\u7e26\u00d7\u6a2a\u3060\u304c\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u6642\u306f\u3001\u6a2a\u00d7\u7e26\u3067\u6307\u5b9a\u3059\u308b\u5f62\u3068\u306a\u308b\u3002\r\nimg_resized1 = cv2.resize(img, (500, 300))\r\nprint(img_resized1.shape)\r\ncv2.imshow(\"sample001\", img_resized1)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()\r\n\r\n# \u753b\u50cf\u306e\u30b5\u30a4\u30ba\u5909\u66f4(\u500d\u7387\u6307\u5b9a) 1\u500d\u21d21.0\u30001\/10\u500d\u21d20.1\u30001.25\u500d\u21d21.25\r\n# \u30b5\u30a4\u30ba\u306e\u5f62\u72b6\u306f\u3001\u7e26\u00d7\u6a2a\u3060\u304c\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u6642\u306f\u3001\u6a2a\u00d7\u7e26\u3067\u6307\u5b9a\u3059\u308b\u5f62\u3068\u306a\u308b\u3002\r\nimg_resized2 = cv2.resize(img, None, fx=0.1, fy=0.1)  # \u7e2e\u5c0f\r\n# img_resized2 = cv2.resize(img, None, fx=1.25, fy=1.25)  # \u62e1\u5927\r\nprint(img_resized2.shape)\r\ncv2.imshow(\"sample001\", img_resized2)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<h2>\u753b\u50cf\u306e\u56de\u8ee2<\/h2>\n<p>\u753b\u50cf\u3092\u56de\u8ee2\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<pre class=\"lang:python decode:true \" title=\"pycv2_reverse\"># \u753b\u50cf\u306e\u56de\u8ee290\u5ea6\r\nimg_rotated = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)\r\nprint(img_rotated.shape)\r\ncv2.imshow(\"sample004\", img_rotated)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()\r\n\r\n# \u753b\u50cf\u306e45\u5ea6\u56de\u8ee2\r\n# \u753b\u50cf\u306e\u4e2d\u5fc3\u3092\u6c42\u3081\u308b\r\nheight, width = img.shape[:2]\r\ncenter = (int(width\/2), int(height\/2))\r\n# \u753b\u50cf\u309245\u5ea6\u56de\u8ee2\u3055\u305b\u308b\r\nrot = cv2.getRotationMatrix2D(center, 45, 1)\r\nimg_rotated = cv2.warpAffine(img, rot, (width,height))\r\nprint(img_rotated.shape)\r\ncv2.imshow(\"sample005\", img_rotated)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()\r\n\r\n# \u753b\u50cf\u306e\u4e0a\u4e0b\u5de6\u53f3\u53cd\u8ee2\r\n# \u4e0a\u4e0b\u53cd\u8ee2\r\nimg_reverse =cv2.flip(img, 0)\r\nprint(img_reverse.shape)\r\ncv2.imshow(\"sample006\", img_reverse)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()\r\n\r\n# \u5de6\u53f3\u53cd\u8ee2\r\nimg_reverse =cv2.flip(img, 1)\r\nprint(img_reverse.shape)\r\ncv2.imshow(\"sample007\", img_reverse)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()\r\n\r\n# \u4e0a\u4e0b\u5de6\u53f3\u53cd\u8ee2\r\nimg_reverse =cv2.flip(img, -1)\r\nprint(img_reverse.shape)\r\ncv2.imshow(\"sample008\", img_reverse)\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<p>&nbsp;<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1731\" src=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample005-1024x710.png\" alt=\"\" width=\"800\" height=\"555\" srcset=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample005-1024x710.png 1024w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample005-300x208.png 300w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample005-768x532.png 768w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample005.png 1280w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1732\" src=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample007-1024x710.png\" alt=\"\" width=\"800\" height=\"555\" srcset=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample007-1024x710.png 1024w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample007-300x208.png 300w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample007-768x532.png 768w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample007.png 1280w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1733\" src=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample008-1024x710.png\" alt=\"\" width=\"800\" height=\"555\" srcset=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample008-1024x710.png 1024w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample008-300x208.png 300w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample008-768x532.png 768w, https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/sample008.png 1280w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) Python-OpenCV pip install python-opencv python\u7248\u306eopencv\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1730,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[174,44],"tags":[278,365,366,277,367,175],"class_list":["post-1713","post","type-post","status-publish","format-standard","has-post-thumbnail","category-python","category-programing","tag-cv2","tag-img","tag-imgshow","tag-opencv","tag-pixel","tag-python","article cf"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab\" \/>\n<meta property=\"og:description\" content=\"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) Python-OpenCV pip install python-opencv python\u7248\u306eopencv\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/\" \/>\n<meta property=\"og:site_name\" content=\"Extra-Lab\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-17T09:41:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-17T09:43:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png\" \/>\n\t<meta property=\"og:image:width\" content=\"859\" \/>\n\t<meta property=\"og:image:height\" content=\"596\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"extralab_sf\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/s_fuku_s\" \/>\n<meta name=\"twitter:site\" content=\"@s_fuku_s\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"extralab_sf\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/\"},\"author\":{\"name\":\"extralab_sf\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#\\\/schema\\\/person\\\/08765162da76c96842cc20d837e31426\"},\"headline\":\"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)\",\"datePublished\":\"2022-09-17T09:41:19+00:00\",\"dateModified\":\"2022-09-17T09:43:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/\"},\"wordCount\":17,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#\\\/schema\\\/person\\\/08765162da76c96842cc20d837e31426\"},\"image\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/extralab.org\\\/wp\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/pycv2_eye_img001.png\",\"keywords\":[\"cv2\",\"img\",\"imgshow\",\"opencv\",\"pixel\",\"python\"],\"articleSection\":[\"Python\",\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/\",\"url\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/\",\"name\":\"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/extralab.org\\\/wp\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/pycv2_eye_img001.png\",\"datePublished\":\"2022-09-17T09:41:19+00:00\",\"dateModified\":\"2022-09-17T09:43:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#primaryimage\",\"url\":\"https:\\\/\\\/extralab.org\\\/wp\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/pycv2_eye_img001.png\",\"contentUrl\":\"https:\\\/\\\/extralab.org\\\/wp\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/pycv2_eye_img001.png\",\"width\":859,\"height\":596},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/2022\\\/09\\\/17\\\/python-opencv2-image-data-show\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/extralab.org\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/extralab.org\\\/wp\\\/\",\"name\":\"Extra-Lab\",\"description\":\"\u6620\u753b\u9451\u8cde\u3001\u81ea\u4f5cPC\u3001\u81ea\u5df1\u5553\u767a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30ad\u30eb(java,javaFX,C#.NET,SQL,OracleDB,H2DataBase)\u3001\u6295\u8cc7(\u682a\u5f0f\u6295\u8cc7)\u3001\u30a2\u30a4\u30c9\u30eb\u8ffd\u3063\u304b\u3051\u3001\u4ff3\u512a\u632b\u6298\u3001\u597d\u5947\u5fc3\u65fa\u76db\u306a\u30a8\u30f3\u30bf\u30fc\u30c6\u30a4\u30ca\u30fc\",\"publisher\":{\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#\\\/schema\\\/person\\\/08765162da76c96842cc20d837e31426\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/extralab.org\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/extralab.org\\\/wp\\\/#\\\/schema\\\/person\\\/08765162da76c96842cc20d837e31426\",\"name\":\"extralab_sf\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g\",\"caption\":\"extralab_sf\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g\"},\"description\":\"\u7530\u820e\u80b2\u3061\u3001\u6771\u4eac\u306b\u61a7\u308c\u3001\u72ec\u7acb\u5fc3\u3001\u6311\u6226\u3092\u5fc3\u639b\u3051\u308b\u3002 \u597d\u5947\u5fc3\u65fa\u76db\u3067\u597d\u304d\u306a\u4e8b\u3092\u3057\u3066\u751f\u304d\u3066\u3044\u304f\u3002 \u4eba\u751f\u306f\u4e00\u5ea6\u304d\u308a\u3002\u672a\u6765\u306f\u81ea\u5206\u3067\u9078\u629e\u3067\u304d\u308b\u3002\",\"sameAs\":[\"https:\\\/\\\/extralab.org\\\/wp\\\/\",\"https:\\\/\\\/www.instagram.com\\\/satoshi_extralab\\\/?hl=ja\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/s_fuku_s\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCBLYKKfY3A0XHFGuE0YGJdA\"],\"url\":\"https:\\\/\\\/extralab.org\\\/wp\\\/blog\\\/author\\\/extralab_sf\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/","og_locale":"ja_JP","og_type":"article","og_title":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab","og_description":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) Python-OpenCV pip install python-opencv python\u7248\u306eopencv\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057...","og_url":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/","og_site_name":"Extra-Lab","article_published_time":"2022-09-17T09:41:19+00:00","article_modified_time":"2022-09-17T09:43:08+00:00","og_image":[{"width":859,"height":596,"url":"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png","type":"image\/png"}],"author":"extralab_sf","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/s_fuku_s","twitter_site":"@s_fuku_s","twitter_misc":{"\u57f7\u7b46\u8005":"extralab_sf","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#article","isPartOf":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/"},"author":{"name":"extralab_sf","@id":"https:\/\/extralab.org\/wp\/#\/schema\/person\/08765162da76c96842cc20d837e31426"},"headline":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)","datePublished":"2022-09-17T09:41:19+00:00","dateModified":"2022-09-17T09:43:08+00:00","mainEntityOfPage":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/"},"wordCount":17,"commentCount":0,"publisher":{"@id":"https:\/\/extralab.org\/wp\/#\/schema\/person\/08765162da76c96842cc20d837e31426"},"image":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#primaryimage"},"thumbnailUrl":"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png","keywords":["cv2","img","imgshow","opencv","pixel","python"],"articleSection":["Python","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/","url":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/","name":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2) - Extra-Lab","isPartOf":{"@id":"https:\/\/extralab.org\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#primaryimage"},"image":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#primaryimage"},"thumbnailUrl":"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png","datePublished":"2022-09-17T09:41:19+00:00","dateModified":"2022-09-17T09:43:08+00:00","breadcrumb":{"@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#primaryimage","url":"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png","contentUrl":"https:\/\/extralab.org\/wp\/wp-content\/uploads\/2022\/09\/pycv2_eye_img001.png","width":859,"height":596},{"@type":"BreadcrumbList","@id":"https:\/\/extralab.org\/wp\/blog\/2022\/09\/17\/python-opencv2-image-data-show\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extralab.org\/wp\/"},{"@type":"ListItem","position":2,"name":"\u3010python\u3011OpenCV\u753b\u50cf\u51e6\u7406\u65b9\u6cd5(\u753b\u50cf\u8868\u793a\u3001\u30c7\u30fc\u30bf\u683c\u7d0d\u3001\u30b5\u30a4\u30ba\u5909\u66f4\u3001\u56de\u8ee2)"}]},{"@type":"WebSite","@id":"https:\/\/extralab.org\/wp\/#website","url":"https:\/\/extralab.org\/wp\/","name":"Extra-Lab","description":"\u6620\u753b\u9451\u8cde\u3001\u81ea\u4f5cPC\u3001\u81ea\u5df1\u5553\u767a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30ad\u30eb(java,javaFX,C#.NET,SQL,OracleDB,H2DataBase)\u3001\u6295\u8cc7(\u682a\u5f0f\u6295\u8cc7)\u3001\u30a2\u30a4\u30c9\u30eb\u8ffd\u3063\u304b\u3051\u3001\u4ff3\u512a\u632b\u6298\u3001\u597d\u5947\u5fc3\u65fa\u76db\u306a\u30a8\u30f3\u30bf\u30fc\u30c6\u30a4\u30ca\u30fc","publisher":{"@id":"https:\/\/extralab.org\/wp\/#\/schema\/person\/08765162da76c96842cc20d837e31426"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/extralab.org\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/extralab.org\/wp\/#\/schema\/person\/08765162da76c96842cc20d837e31426","name":"extralab_sf","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g","caption":"extralab_sf"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/5e81ff919e25d0bc6f9d6038f4004fdd3cf90f7964dc22474e797e5f18da01b6?s=96&d=mm&r=g"},"description":"\u7530\u820e\u80b2\u3061\u3001\u6771\u4eac\u306b\u61a7\u308c\u3001\u72ec\u7acb\u5fc3\u3001\u6311\u6226\u3092\u5fc3\u639b\u3051\u308b\u3002 \u597d\u5947\u5fc3\u65fa\u76db\u3067\u597d\u304d\u306a\u4e8b\u3092\u3057\u3066\u751f\u304d\u3066\u3044\u304f\u3002 \u4eba\u751f\u306f\u4e00\u5ea6\u304d\u308a\u3002\u672a\u6765\u306f\u81ea\u5206\u3067\u9078\u629e\u3067\u304d\u308b\u3002","sameAs":["https:\/\/extralab.org\/wp\/","https:\/\/www.instagram.com\/satoshi_extralab\/?hl=ja","https:\/\/x.com\/https:\/\/twitter.com\/s_fuku_s","https:\/\/www.youtube.com\/channel\/UCBLYKKfY3A0XHFGuE0YGJdA"],"url":"https:\/\/extralab.org\/wp\/blog\/author\/extralab_sf\/"}]}},"_links":{"self":[{"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/posts\/1713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/comments?post=1713"}],"version-history":[{"count":15,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/posts\/1713\/revisions"}],"predecessor-version":[{"id":1735,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/posts\/1713\/revisions\/1735"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/media\/1730"}],"wp:attachment":[{"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/media?parent=1713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/categories?post=1713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extralab.org\/wp\/wp-json\/wp\/v2\/tags?post=1713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}