|
10精币
{
"images": [ "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAAA22lUWHRwYXJhbWV0ZXJzAAAAAAAxYm95ClN0ZXBzOiA1MCwgU2FtcGxlcjogRXVsZXIsIENGRyBzY2FsZTogNy4wLCBTZWVkOiA0NzA3Mzk3MzAsIFNpemU6IDUxMng1MTIsIE1vZGVsIGhhc2g6IGQyMTE2NjVlYTgsIE1vZGVsOiBsYmNfU2ltcGxlX+eugOe6pl92Mi4wLCBWQUUgaGFzaDogYzZhNTgwYjEzYSwgVkFFOiBhbmltZXZhZS5wdCwgQ2xpcCBza2lwOiAyLCBWZXJzaW9uOiB2MS44LjAjEap2AAEAAElEQVR4nIz9adBtaXYWiK3hffc+5xvukENl1iQVUoFAqJAEAoHUgCTEaBCgpm0c7nBHYDvC/uP+75+OjnDY4f7naI8EHW3ctKCBhmBQg7ol0IBKQ0lVKtWclVVZmVWZlZk37/2Gc87e+11r+cda6937u5klcVS6ee/3nbPP3u+7hmc9a3jx//x/+E9LReZiAAhIRIA4DmOtZRiHcbcjJCIyM1MzA1U1VRXxvyACIiAhACAgmBETICISE5khMwIgAICZmgGAmSEhmBHlr/yz8S4AjB+CASCYxqcAwVSR8Or6+t/92qeXeXnw4D4TqerhcAQ0v38DIAADYCYzAABmIsBxNzDxssyIYAqlkBkgIRgggpntxvGZhw/uP7hnokSwyHJ7fTsvDRCY2MwQgZkBgBBLLQiAZojI5DdvtRRGOjvbD0Npi7Q2mdr9Bw8ePPv=="
],
"parameters": {
"prompt": "1boy",
"negative_prompt": "",
"styles": null,
"seed": -1,
"subseed": -1,
"subseed_strength": 0,
"seed_resize_from_h": -1,
"seed_resize_from_w": -1,
"sampler_name": null,
"batch_size": 1,
"n_iter": 1,
"steps": 50,
"cfg_scale": 7,
"width": 512,
"height": 512,
"restore_faces": null,
"tiling": null,
"do_not_save_samples": false,
"do_not_save_grid": false,
"eta": null,
"denoising_strength": null,
"s_min_uncond": null,
"s_churn": null,
"s_tmax": null,
"s_tmin": null,
"s_noise": null,
"override_settings": null,
"override_settings_restore_afterwards": true,
"refiner_checkpoint": null,
"refiner_switch_at": null,
"disable_extra_networks": false,
"firstpass_image": null,
"comments": null,
"enable_hr": false,
"firstphase_width": 0,
"firstphase_height": 0,
"hr_scale": 2,
"hr_upscaler": null,
"hr_second_pass_steps": 0,
"hr_resize_x": 0,
"hr_resize_y": 0,
"hr_checkpoint_name": null,
"hr_sampler_name": null,
"hr_prompt": "",
"hr_negative_prompt": "",
"force_task_id": null,
"sampler_index": "Euler",
"script_name": null,
"script_args": [],
"send_images": true,
"save_images": false,
"alwayson_scripts": {},
"infotext": null
},
"info": "{\"prompt\": \"1boy\", \"all_prompts\": [\"1boy\"], \"negative_prompt\": \"\", \"all_negative_prompts\": [\"\"], \"seed\": 470739730, \"all_seeds\": [470739730], \"subseed\": 1219467765, \"all_subseeds\": [1219467765], \"subseed_strength\": 0, \"width\": 512, \"height\": 512, \"sampler_name\": \"Euler\", \"cfg_scale\": 7.0, \"steps\": 50, \"batch_size\": 1, \"restore_faces\": false, \"face_restoration_model\": null, \"sd_model_name\": \"lbc_Simple_\\u7b80\\u7ea6_v2.0\", \"sd_model_hash\": \"d211665ea8\", \"sd_vae_name\": \"animevae.pt\", \"sd_vae_hash\": \"c6a580b13a\", \"seed_resize_from_w\": -1, \"seed_resize_from_h\": -1, \"denoising_strength\": null, \"extra_generation_params\": {}, \"index_of_first_image\": 0, \"infotexts\": [\"1boy\\nSteps: 50, Sampler: Euler, CFG scale: 7.0, Seed: 470739730, Size: 512x512, Model hash: d211665ea8, Model: lbc_Simple_\\u7b80\\u7ea6_v2.0, VAE hash: c6a580b13a, VAE: animevae.pt, Clip skip: 2, Version: v1.8.0\"], \"styles\": [], \"job_timestamp\": \"20240522160247\", \"clip_skip\": 2, \"is_using_inpainting_conditioning\": false, \"version\": \"v1.8.0\"}"
}
大概就是这个样子,我省略了大量返回的b64编码数据值,完整的images返回参数是一张,但是是b64编码的。 我使用了论坛模块进行网络访问以及网络访问_对象,都取出不了返回值数据,我想取出json里images里的b64数据,然后转换成易语言可以识别的图像字节集数据,请问怎么实现
|
最佳答案
查看完整内容
换zyjson试试 https://bbs.125.la/forum.php?mod=viewthread&tid=14719783&highlight=zyjson
.版本 2
.支持库 spec
.局部变量 zyjson, zyJsonValue
.局部变量 i, 整数型
zyjson.解析 (#常量1, , , , )
.计次循环首 (zyjson.取成员数 (“images”), i)
调试输出 (zyjson.取文本 (“images[” + 到文本 (i - 1) + “]”))
.计次循环尾 ()
|