{"id":11753,"date":"2023-06-24T07:00:16","date_gmt":"2023-06-23T22:00:16","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11753"},"modified":"2023-06-01T18:15:35","modified_gmt":"2023-06-01T09:15:35","slug":"leaflet%e5%9c%b0%e5%9b%b3%e3%80%81%e9%ae%ae%e6%98%8e%e3%81%ab%e7%94%9f%e3%81%be%e3%82%8c%e5%a4%89%e3%82%8f%e3%82%8b%ef%bc%9alaravel-fast-api%e3%82%92%e6%b4%bb%e7%94%a8%e3%81%97%e3%81%9f%e9%ab%98","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11753","title":{"rendered":"Leaflet\u5730\u56f3\u3001\u9bae\u660e\u306b\u751f\u307e\u308c\u5909\u308f\u308b\uff1aLaravel + Fast API\u3092\u6d3b\u7528\u3057\u305f\u9ad8\u753b\u8cea\u5316"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5b8c\u5168\u306b\u500b\u4eba\u7684\u306a\u8da3\u5473\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u79c1\u306f\u30de\u30c3\u30d7\u3067\u3044\u308d\u3044\u308d\u306a\u3068\u3053\u308d\u3092\u300c\u5730\u56f3\u65c5\u884c\u300d\u3059\u308b\u306e\u304c\u597d\u304d\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u56fd\u571f\u5730\u7406\u9662\u304c\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u904e\u53bb\u306e\u822a\u7a7a\u5199\u771f\uff081960\u5e74\u4ee3\u3068\u304b\uff09\u306e\u300c\u6642\u9593\u65c5\u884c\uff06\u5730\u56f3\u65c5\u884c\u300d\u304c\u6700\u9ad8\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u308c\u306b\u306f\u3072\u3068\u3064\u554f\u984c\u304c\u3042\u3063\u3066\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u753b\u8cea\u304c\u8352\u3044<\/strong><\/p>\n<p>\u3093\u3067\u3059\u3088\u306d\u2026\uff08\u3082\u3061\u308d\u3093\u3001\u5f53\u6642\u3068\u3057\u3066\u306f\u3059\u3054\u3044\u306e\u3067\u3059\u304c\ud83d\ude05\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u300c<strong>\u3046\u30fc\u3093\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u62e1\u5927\u3057\u3066\u898b\u3066\u307f\u305f\u3044<\/strong>\u300d\u3068\u4f55\u5ea6\u3082\u601d\u3063\u3066\u305f\u3089\uff11\u3064\u30a2\u30a4\u30c7\u30a2\u304c\u6d6e\u304b\u3093\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><strong style=\"font-size: 35px;\">\u5730\u56f3\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308c\u3070\u3044\u3044\u3058\u3083\u306a\u3044\u304b\u2757<\/strong><\/p>\n<p>\u3068\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u3084\u306f\u308a\u79d1\u5b66\u306f\u3059\u3054\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u306a\u3093\u3068\u3001<strong><a href=\"https:\/\/github.com\/xinntao\/Real-ESRGAN\" target=\"_blank\" rel=\"noopener\">Real-ESRGAN<\/a><\/strong> \u3068\u3044\u3046\u6280\u8853\u3092\u4f7f\u3046\u3068<code>Python<\/code>\u3067\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3093\u3067\u3059\u306d\u3002\uff08\u3057\u304b\u3082\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\uff12\u5e74\u3050\u3089\u3044\u524d\u306e\u3082\u306e\u3067\u3059\uff09<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>Laravel + Fast API + Real-ESRGAN<\/strong>\u300d\u3067\u300c<strong>\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b<\/strong>\u300d\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b<code>Fast API<\/code>\u306f\u79c1\u304c\u4f7f\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002<code>PHP<\/code>\u304b\u3089\u3067\u3082\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3067\u304d\u308b\u306a\u3089\u3044\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9809 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9.png\" alt=\"\" width=\"370\" height=\"220\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/11\/no_9-300x178.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u590f\u306e\u30b5\u30a4\u30af\u30ea\u30f3\u30b0\u7528\u306b<br \/>\n\u53d6\u308a\u4ed8\u3051\u5f0f\u306e\u7a7a\u8abf\u30d5\u30a1\u30f3<br \/>\n\u3092\u8cfc\u5165\u2757\u4eca\u5e74\u3082\u884c\u304f\u305e \ud83d\udeb2\u2728\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x\u3001Fast API<\/p>\n<h1>\u5168\u4f53\u306e\u69cb\u6210<\/h1>\n<p>\u4eca\u56de\u306f\u3001<code>Laravel<\/code>\uff08<code>PHP<\/code>\uff09\u3060\u3051\u3067\u306a\u304f\u3001<code>Python<\/code>\u3082\u4f7f\u3046\u306e\u3067\u5168\u4f53\u50cf\u3092\u5148\u306b\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><code>Laravel\uff08PHP\uff09<\/code> \u2194 <code>Fast API\uff08Python\uff09<\/code>\u2194 <code>Real-ESRGAN\uff08Python\uff09<\/code><\/p>\n<p>\u3064\u307e\u308a\u3001\u624b\u9806\u3068\u3057\u3066\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30d6\u30e9\u30a6\u30b6\u3067\u5730\u56f3\u3092\u8868\u793a\u3059\u308b<\/li>\n<li>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068 Fast API \u306b\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/li>\n<li>Fast API \u304b\u3089 Real ESRGAN \u3092\u5b9f\u884c\u3057\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316<\/li>\n<li>\u4fdd\u5b58\u3055\u308c\u305f\u753b\u50cf\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9<\/li>\n<\/ol>\n<p>\u3067\u306f\u3001\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>Real-ESRGAN \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b\u90e8\u5206<code>Real-ESRGAN<\/code>\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u304a\u305d\u3089\u304f<code>GPU<\/code>\u306f\u306a\u304f\u3066\u3082OK\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u304b\u3082\u3067\u3059\u3002\u4e8b\u524d\u306b <a href=\"https:\/\/github.com\/xinntao\/Real-ESRGAN\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a> \u304b\u3089\u78ba\u8a8d\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\uff08\u304a\u597d\u304d\u306a\uff09<code>Python<\/code>\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u79fb\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>git clone https:\/\/github.com\/xinntao\/Real-ESRGAN.git\r\n<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>Real-ESRGAN<\/code>\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u305d\u306e\u4e2d\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>cd Real-ESRGAN\r\n<\/strong><\/pre>\n<p>\u3042\u3068\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u305d\u308c\u305e\u308c\u5b9f\u884c\u3059\u308c\u3070\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>pip install basicsr\r\npip install facexlib\r\npip install gfpgan\r\npip install -r requirements.txt\r\npython setup.py develop\r\n<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30b5\u30f3\u30d7\u30eb\u306e\u753b\u50cf\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs\r\n<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>results<\/code>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u9ad8\u753b\u8cea\u5316\u3055\u308c\u305f\u753b\u50cf\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305c\u3072\u3054\u81ea\u8eab\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>Fast API \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001<code>Python<\/code>\u3067\u7c21\u5358\u306b<code>API<\/code>\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<code>Fast API<\/code>\u3092\u4f7f\u3063\u3066\u300c<strong>\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\uff06\u9ad8\u753b\u8cea\u5316<\/strong>\u300d\u3059\u308b\u90e8\u5206\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>pip install fastapi\r\npip install uvicorn\r\n<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306f\u300c<strong>high_resolution_map<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u3064\u304f\u308a\u3001\u305d\u306e\u4e2d\u3078\u30b3\u30fc\u30c9\u3092\u3064\u304f\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11755\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_1.png\" alt=\"\" width=\"537\" height=\"243\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_1.png 537w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_1-300x136.png 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/p>\n<p>\u3067\u306f\u3001\u300c<strong>high_resolution_map<\/strong>\u300d\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u3078\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>high_resolution_map\/api.py<\/strong><\/p>\n<pre><strong>from fastapi import FastAPI, File, UploadFile\r\nfrom fastapi.middleware.cors import CORSMiddleware\r\nimport os, uuid\r\n\r\n\r\napp = FastAPI()\r\norigins = [\r\n    \"http:\/\/\uff08Laravel\u5074\u306e\u30c9\u30e1\u30a4\u30f3\uff09\",\r\n\r\n    # \u5fc5\u8981\u306a\u3060\u3051\u8ffd\u52a0\u3067\u304d\u307e\u3059\r\n]\r\n\r\napp.add_middleware(\r\n    CORSMiddleware, # \u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u5bfe\u7b56\r\n    allow_origins=origins,\r\n)\r\n\r\n@app.post(\"\/high_resolution\")\r\nasync def create_upload_file(map_image: UploadFile = File(...)):\r\n    content = await map_image.read()\r\n\r\n    # \u753b\u50cf\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\r\n    random_filename = uuid.uuid4().hex\r\n    save_dir = \".\/uploaded_images\"\r\n    save_filename = random_filename + \".jpg\"\r\n    os.makedirs(save_dir, exist_ok=True)\r\n\r\n    with open(os.path.join(save_dir, save_filename), \"wb\") as f:\r\n        f.write(content)\r\n\r\n    # \u9ad8\u753b\u8cea\u5316\r\n    original_image_dir = os.getcwd() + \"\/uploaded_images\"\r\n    generated_image_dir = \"\uff08Laravel \u307e\u3067\u306e\u30d1\u30b9\uff09\/public\/images\/high_resolution_map\" # Laravel \u306e\u516c\u958b\u30d5\u30a9\u30eb\u30c0\r\n    result = os.system(\r\n        \"python \/\uff08Python \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u307e\u3067\u306e\u30d1\u30b9\uff09\/python\/Real-ESRGAN\/inference_realesrgan.py \"+\r\n        \"-n RealESRGAN_x4plus \"+\r\n        \"-i  \"+ original_image_dir +\" \"+\r\n        \"-o \"+ generated_image_dir\r\n    )\r\n    os.remove(original_image_dir + \"\/\" + save_filename) # \u5143\u753b\u50cf\u306f\u524a\u9664\u3059\u308b\r\n    \r\n    result_value = True if result == 0 else False\r\n    generated_filename = random_filename + \"_out.jpg\"\r\n\r\n    return {\r\n        \"result\": result_value,\r\n        \"filename\": generated_filename,\r\n    }\r\n<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u753b\u50cf\u3092\u4e00\u65e6\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u3001\u305d\u306e\u753b\u50cf\u3092<code>Real-ESRGAN<\/code>\u3067\u9ad8\u753b\u8cea\u5316\u3057\u3001\u3055\u3089\u306b\u305d\u306e\u753b\u50cf\u3092<strong><code>Laravel<\/code>\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n<p>\u307e\u305f\u3001\u91cd\u8981\u306a\u3068\u3053\u308d\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<h2>\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u5bfe\u7b56<\/h2>\n<p>\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306b\u8a00\u3046\u3068\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u304b\u3089\u300c<strong>http:\/\/example.com<\/strong>\u300d\u304b\u3089<code>Ajax<\/code>\u3067\u300c<strong>http:\/\/example.net<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3082\u3001\u3053\u308c\u3060\u3068\u81ea\u5206\u306e\u5225\u30b5\u30a4\u30c8\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u56de\u907f\u3059\u308b\u65b9\u6cd5\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u304c\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>app.add_middleware(\r\n    CORSMiddleware,\r\n    <strong>allow_origins=origins, # \u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u5bfe\u7b56<\/strong>\r\n)\r\n<\/pre>\n<p>\u3064\u307e\u308a\u3001\u300c<strong>\u3053\u306e<code>origins<\/code>\u306e\u4e2d\u306b\u5165\u3063\u3066\u3044\u308b<code>URL<\/code>\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306f\u8a31\u53ef\u3059\u308b\u3088\ud83d\ude09<\/strong>\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u9ad8\u753b\u8cea\u5316<\/h2>\n<p>\u5148\u307b\u3069<code>Real-ESRGAN<\/code>\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306f\u76f8\u5bfe\u30d1\u30b9\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u30b3\u30de\u30f3\u30c9\u304c\u77ed\u304b\u3063\u305f\u3067\u3059\u304c\u3001<code>Fast API<\/code>\u3068\u306f\u307e\u305f\u5225\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u7d76\u5bfe\u30d1\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30b3\u30fc\u30c9\u5185\u306e\u4ee5\u4e0b\uff12\u3064\u306f\u3054\u81ea\u8eab\u306e\u30d1\u30b9\u306e\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n<ul>\n<li>\uff08Laravel \u307e\u3067\u306e\u30d1\u30b9\uff09<\/li>\n<li>\uff08Python \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u307e\u3067\u306e\u30d1\u30b9\uff09<\/li>\n<\/ul>\n<p><strong>\u4f8b\uff1a<\/strong> \/home\/*******\/pytyhon<\/p>\n<h1>Laravel \u3067\u5730\u56f3\u3092\u8868\u793a\u3057\u3001\u9ad8\u753b\u8cea\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3084\u3063\u3068<code>Laravel<\/code>\u306b\u305f\u3069\u308a\u7740\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u5730\u56f3\u306e\u5834\u6240\u306f\u30011960\u5e74\u3054\u308d\u306e\u6771\u4eac\u30b9\u30ab\u30a4\u30c4\u30ea\u30fc\u306e\u5834\u6240\u3067\u3059\u3002<br \/>\n\u203b <code>CDN<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3059<\/p>\n<p><strong>resources\/views\/high_resolution_map\/index.blade.php<\/strong><\/p>\n<pre><strong>&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;title&gt;\u5730\u56f3\u306e\u9ad8\u89e3\u50cf\u5ea6\u5316\u30c6\u30b9\u30c8&lt;\/title&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.7.1\/dist\/leaflet.css\" \/&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/bootstrap@5.2.3\/dist\/css\/bootstrap.min.css\" \/&gt;\r\n    &lt;style&gt;\r\n\r\n        .loader {\r\n            border: 6px solid #f3f3f3;\r\n            border-top: 6px solid #3498db;\r\n            border-radius: 50%;\r\n            width: 50px;\r\n            height: 50px;\r\n            animation: spin 2s linear infinite;\r\n        }\r\n\r\n        @keyframes spin {\r\n            0% { transform: rotate(0deg); }\r\n            100% { transform: rotate(360deg); }\r\n        }\r\n\r\n    &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body class=\"p-4\"&gt;\r\n    &lt;h3 class=\"mb-3\"&gt;\u5730\u56f3\u306e\u9ad8\u89e3\u50cf\u5ea6\u5316\u30c6\u30b9\u30c8&lt;\/h3&gt;\r\n\r\n    &lt;div class=\"row\"&gt;\r\n        &lt;div class=\"col-6\"&gt;\r\n            &lt;div id=\"map\" class=\"mb-3\" style=\"width:500px;height:500px;\"&gt;&lt;\/div&gt;\r\n            &lt;button id=\"button\" type=\"button\" class=\"btn btn-primary btn-sm\"&gt;\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308b&lt;\/button&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"col-6\"&gt;\r\n            &lt;!-- \u9ad8\u89e3\u50cf\u5ea6\u5316\u3057\u305f\u753b\u50cf\u3092\u8868\u793a\u3059\u308b --&gt;\r\n            &lt;img id=\"generate-image\" src=\"\" class=\"d-none w-100\"&gt;\r\n            &lt;div id=\"loader\" class=\"loader d-none\"&gt;&lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;script src=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet-src.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/unpkg.com\/leaflet-simple-map-screenshoter@0.5.0\/dist\/leaflet-simple-map-screenshoter.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/unpkg.com\/axios@1.4.0\/dist\/axios.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n\r\n        \/\/ \u30de\u30c3\u30d7\r\n        const initialLocation = [35.70990329289358, 139.81077267654356]; \/\/ \u6771\u4eac\u30b9\u30ab\u30a4\u30c4\u30ea\u30fc\r\n        const map = L.map('map').setView(initialLocation, 17);\r\n\r\n        L.tileLayer('https:\/\/cyberjapandata.gsi.go.jp\/xyz\/ort_old10\/{z}\/{x}\/{y}.png', {\r\n            minZoom: 10,\r\n            maxZoom: 17,\r\n            attribution: '&lt;a href=\"https:\/\/www.gsi.go.jp\/kikakuchousei\/kikakuchousei40182.html\"&gt;\u56fd\u571f\u5730\u7406\u9662&lt;\/a&gt;'\r\n        })\r\n        .addTo(map);\r\n\r\n        \/\/ \u30d7\u30e9\u30b0\u30a4\u30f3\r\n        const pluginOptions = { hidden: true }; \/\/ \u30dc\u30bf\u30f3\u306f\u8868\u793a\u3057\u306a\u3044\r\n        const screenShot = L.simpleMapScreenshoter(pluginOptions).addTo(map);\r\n        const screenShotOptions = { mimeType: 'image\/jpeg' };\r\n\r\n        \/\/ \u9ad8\u89e3\u50cf\u5ea6\u5316\r\n        const button = document.getElementById('button');\r\n        button.addEventListener('click', () =&gt; {\r\n\r\n            screenShot.takeScreen('blob', screenShotOptions)\r\n                .then(blob =&gt; {\r\n\r\n                    const loaderEl = document.getElementById('loader');\r\n                    const imageEl = document.getElementById('generate-image');\r\n                    loaderEl.classList.remove('d-none');\r\n                    imageEl.classList.add('d-none');\r\n\r\n                    const file = new File([blob], 'map.jpg', { type: 'image\/jpeg' });\r\n                    const url = '\uff08Fast API \u306eURL\uff09\/high_resolution'; \/\/ Fast API \u306e URL\r\n                    const headers = { 'Content-Type': 'multipart\/form-data' };\r\n                    const formData = new FormData();\r\n                    formData.append('map_image', file);\r\n\r\n                    axios.post(url, formData, { headers })\r\n                        .then(response =&gt; {\r\n\r\n                            if(response.data.result === true) {\r\n\r\n                                const filename = response.data.filename;\r\n\r\n                                imageEl.src = `\/images\/high_resolution_map\/${filename}`;\r\n                                imageEl.classList.remove('d-none');\r\n\r\n                            } else {\r\n\r\n                                console.log('\u9ad8\u89e3\u50cf\u5ea6\u5316\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002');\r\n\r\n                            }\r\n\r\n                        })\r\n                        .finally(() =&gt; {\r\n\r\n                            loaderEl.classList.add('d-none');\r\n\r\n                        })\r\n\r\n                });\r\n\r\n        });\r\n\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u304c\u300c<strong>\u5730\u56f3\uff08\u822a\u7a7a\u5199\u771f\uff09\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u5316<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3042\u308a\u304c\u305f\u3044\u3053\u3068\u306b\u5730\u56f3\u30e9\u30a4\u30d6\u30e9\u30ea<code>Leaflet<\/code>\u306b\u306f <a href=\"https:\/\/github.com\/grinat\/leaflet-simple-map-screenshoter\" target=\"_blank\" rel=\"noopener\">simple-map-screenshoter<\/a> \u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3046\u3068\u81ea\u5206\u3067\u5b9f\u88c5\u305b\u305a\u306b\u753b\u50cf\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u5834\u6240\u304c\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre><strong>screenShot.takeScreen('blob', screenShotOptions)\r\n    .then(blob =&gt; {\r\n    \r\n        \/\/ \u7701\u7565\r\n    \r\n    });\r\n<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u53d6\u5f97\u3055\u308c\u305f<code>blob<\/code>\u30c7\u30fc\u30bf\u3092<code>File<\/code>\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u3053\u306e<code>File<\/code>\u30c7\u30fc\u30bf\u306f\u3001<code>&lt;input type=\"file\"&gt;<\/code>\u3067\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u3055\u308c\u305f\u3068\u304d\u306e\u3082\u306e\u3068\u540c\u3058\u3067\u3059\uff09<\/p>\n<pre><strong>const file = new File([blob], 'map.jpg', { type: 'image\/jpeg' });\r\n<\/strong><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066<code>Fast API<\/code>\u306e<code>URL<\/code>\u3078\u9001\u4fe1\u3057\u3001\u9ad8\u753b\u50cf\u5316\u304c\u5b8c\u4e86\u3057\u305f\u3089\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<strong>\uff08Fast API \u306eURL\uff09<\/strong>\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u306f\u3001<code>Fast API<\/code>\u3092\u8d77\u52d5\u3057\u305f\u3068\u304d\u306b\u8868\u793a\u3055\u308c\u308bURL\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff08\u30dd\u30fc\u30c8\u306e\u5909\u66f4\u306f\u300c\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u3067\u306f\u3001\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude04\u2728<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u306f\u3001<code>high_resolution_map<\/code>\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30de\u30f3\u30c9\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>uvicorn api:app --reload<\/strong><\/pre>\n<p>\u203b <code>api<\/code>\u3068\u3044\u3046\u90e8\u5206\u306f<code>api.py<\/code>\u304b\u3089\u6765\u3066\u3044\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u5225\u306e\u5834\u5408\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3060\u3068<code>127.0.0.1:8000<\/code>\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bURL\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u79c1\u306e\u5834\u5408\u306f\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5b9f\u884c\u4e2d\u3067\u3057\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30dd\u30fc\u30c8\u756a\u53f7<code>4989<\/code>\uff08\u56db\u82e6\u516b\u82e6\ud83d\ude02\uff09\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre><strong>uvicorn api:app --port 4989 --reload<\/strong><\/pre>\n<p>\u306a\u304a\u3001<code>--reload<\/code>\u306f\u4fbf\u5229\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001\u3082\u3057\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u3089\u81ea\u52d5\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u308c\u308b\uff08\u3064\u307e\u308a\u3001\u3044\u3061\u3044\u3061\u30b9\u30c8\u30c3\u30d7\uff06\u30b9\u30bf\u30fc\u30c8\u3057\u306a\u304f\u3066\u3044\u3044\uff09\u3068\u3044\u3046\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Fast API<\/code>\u304c\u8d77\u52d5\u3057\u305f\u3089\u6b21\u306f\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>http:\/\/******\/high_resolution_map<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b \u30a2\u30af\u30bb\u30b9\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u306f\u300c<strong>\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u5bfe\u7b56<\/strong>\u300d\u3067\u8a31\u53ef\u3057\u305f\u30c9\u30e1\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11759\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_2.png\" alt=\"\" width=\"541\" height=\"628\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_2.png 541w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_2-258x300.png 258w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p>\u306f\u3044\u2757\u4e88\u5b9a\u901a\u308a\u5730\u56f3\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001\u300c<strong>\u9ad8\u89e3\u50cf\u5ea6\u5316\u3059\u308b<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11758\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_3.png\" alt=\"\" width=\"640\" height=\"493\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_3-300x231.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u51e6\u7406\u4e2d\u306e\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11757\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_4.png\" alt=\"\" width=\"640\" height=\"358\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_4-300x168.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u9ad8\u89e3\u50cf\u5ea6\u5316\u3055\u308c\u305f\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<p>\u3061\u306a\u307f\u306b\u4ee5\u4e0b\u304c\u5143\u753b\u50cf\u3068\u9ad8\u89e3\u50cf\u5ea6\u5316\u3057\u305f\u753b\u50cf\uff08\u7e2e\u5c0f\u3057\u3066\u307e\u3059\u304c\u3001\u305d\u306e\u4ed6\u306e\u52a0\u5de5\u306f\u3057\u3066\u307e\u305b\u3093\uff09<\/p>\n<p><strong>\u3010\u5143\u753b\u50cf\u3011<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11760\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_6.png\" alt=\"\" width=\"498\" height=\"497\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_6.png 498w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_6-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_6-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_6-100x100.png 100w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/p>\n<p><strong>\u3010\u9ad8\u753b\u8cea\u5316\u3057\u305f\u753b\u50cf\u3011<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11756\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_5.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/05\/laravel_fast_api_high_resolution_map_5-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u203b \u3053\u306e\u753b\u50cf\u306f\u56fd\u571f\u5730\u7406\u9662\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3059<\/p>\n<p>\u3060\u3044\u3076\u304f\u3063\u304d\u308a\u306f\u3063\u304d\u308a\u3057\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u306a\u3093\u3068\u753b\u50cf\u30b5\u30a4\u30ba\u306f\u300c<strong>500px\u21921980px<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p><code>Real-ESRGAN<\/code>\u3059\u3054\u3044\u3067\u3059\u306d\u2757<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306f\u5730\u56f3\uff08\u822a\u7a7a\u5199\u771f\uff09\u306e\u9ad8\u753b\u8cea\u5316\u3067\u3057\u305f\u304c\u3001\u3082\u3061\u308d\u3093\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u3082\u5229\u7528\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u904e\u53bb\u306e\u5199\u771f\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b<\/li>\n<li>\u5c0f\u3055\u306a\u96c6\u5408\u5199\u771f\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b<\/li>\n<li>\u901a\u5e38\u306e\u7d20\u6750\u5199\u771f\u3092\u9ad8\u753b\u8cea\u5316\u3057\u3066\u5927\u304d\u304f\u3059\u308b<\/li>\n<li>\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u307c\u3051\u305f\u5199\u771f\u3092\u9ad8\u753b\u8cea\u5316\u3059\u308b<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069\u3002<\/p>\n<p>\u3082\u3057\u3053\u3046\u3044\u3063\u305f\u6a5f\u80fd\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>Laravel + Fast API + Real-ESRGAN<\/strong>\u300d\u3067\u5730\u56f3\u753b\u50cf\u306e\u9ad8\u753b\u8cea\u5316\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u81ea\u4f53\u306f\u3042\u307e\u308a\u5b9f\u7528\u7684\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u9762\u767d\u3044\u3053\u3068\u304c\u3067\u304d\u305f\u308a\u3059\u308b\u3053\u3068\u3092\u4f53\u9a13\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u3057\u3066\u3082<code>Fast API<\/code>\u306f\u521d\u3081\u3066\u4f7f\u3044\u307e\u3057\u305f\u304c\u30db\u30f3\u30c8\u306b\u300c<strong>Fast<\/strong>\u300d\u3067\u3057\u305f\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u95a2\u6570\u3092\u3064\u304f\u308b\u3060\u3051\u3067<code>OK<\/code>\u3067\u3059\u304b\u3089\u306d\ud83d\udc4d<\/p>\n<p>\u4eca\u5f8c\u3001<code>Python<\/code>\u3068\u306e\u9023\u643a\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f<code>Fast API<\/code>\u3092\u4f7f\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff08\u597d\u307f\u3067\u3057\u3087\u3046\u304c\u3001<code>django<\/code>\u306f\u30af\u30bb\u304c\u3042\u307e\u308a\u306b\u5f37\u3044\u306e\u3067\u2026\ud83d\ude2b\uff09<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/>\u300c\u5408\u4f53\u5f0f\u30de\u30c3\u30c8\u3092\u7acb\u4f53\u306b\u3057\u3066<br \/>\n\u982d\u3092\u56f2\u307f\u3001<br \/>\n\u8cea\u306e\u3044\u3044\u7761\u7720\u3092\u30b2\u30c3\u30c8\u2757\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5b8c\u5168\u306b\u500b\u4eba\u7684\u306a\u8da3\u5473\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u79c1\u306f\u30de\u30c3\u30d7\u3067\u3044\u308d\u3044\u308d\u306a\u3068\u3053\u308d\u3092\u300c\u5730\u56f3\u65c5\u884c\u300d\u3059\u308b\u306e\u304c\u597d\u304d\u3067\u3059\u3002 \u7279\u306b\u56fd\u571f\u5730\u7406\u9662\u304c\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u904e\u53bb\u306e\u822a\u7a7a\u5199\u771f\uff08196 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11753\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Leaflet\u5730\u56f3\u3001\u9bae\u660e\u306b\u751f\u307e\u308c\u5909\u308f\u308b\uff1aLaravel + Fast API\u3092\u6d3b\u7528\u3057\u305f\u9ad8\u753b\u8cea\u5316&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11761,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,39],"tags":[],"class_list":["post-11753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-python"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11753"}],"version-history":[{"count":4,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11753\/revisions"}],"predecessor-version":[{"id":11764,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11753\/revisions\/11764"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11761"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}