织梦CMS - 轻松建站从此开始!

abg欧博官网|登陆|游戏|

使用人工智能深度卷積神經網絡(CNN)無損放大圖片

时间:2024-05-23 02:12来源: 作者:admin 点击: 47 次
Bigjpg - 使用人工智能深度卷積神經網絡(CNN)智能無損免費放大圖片,可放大4K級超高清分辨率(4000x4000)圖片,最大32倍放大,效果秒殺PhotoZoom放大。

放大圖片接口 Python Demo

curl -d '{"style": "art", "noise": "3", "x2": "1", "input": "YOUR_IMAGE_URL"}' \ -H 'X-API-KEY:' \ https://bigjpg.com/api/task/

import requests import json data = { 'style': 'art', 'noise': '3', 'x2': '1', 'file_name': 'small.jpg', 'input': 'YOUR_IMAGE_URL' } r = requests.post( url='https://bigjpg.com/api/task/', headers={'X-API-KEY': ''}, data=json.dumps(data) ) print(r.json())

- 參數是JSON 格式 - style 參數有 'art', 'photo' 分別表示 '卡通插畫', '照片' - noise 參數有 '-1', '0', '1 ', '2', '3' 分別表示降噪程度 '無', '低', '中', '>高', '最高' - x2 參數有 '1', '2', ' 3', '4' 分別表示 2x, 4x, 8x, 16x - input 參數是需要放大的圖片鏈接

放大結果查詢接口 Python Demo

curl https://bigjpg.com/api/task/tid1,tid2,tid3,tid100

import requests r = requests.get(url='https://bigjpg.com/api/task/tid1,tid2,tid3,tid100') print(r.json())

- 黃顏色參數是上面放大圖片接口返回的任務id

任務重試接口 Python Demo

curl -X POST https://bigjpg.com/api/task/tid1,tid2,tid3,tid100

import requests r = requests.post(url='https://bigjpg.com/api/task/tid1,tid2,tid3,tid100') print(r.json())

- 黃顏色參數是上面放大圖片接口返回的任務id

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-05-18 12:05 最后登录:2025-05-18 12:05
栏目列表
推荐内容