# Deep learning result in json format

**URL:** <https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560>\
**Category:** General\
**Created:** [19 July 2021 03:32 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560 "2021-07-19T03:32:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MK1992](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@MK1992](https://discourse.nodered.org/u/MK1992)\
**Post date:** [19 July 2021 03:32 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/1 "2021-07-19T03:32:05Z")

</div>

```auto
[{"id":"22700825.3f9d38","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"98922031.33529","type":"cocossd","z":"22700825.3f9d38","name":"","x":390,"y":200,"wires":[["f13b7b29.1af548","54a7b73a.b97128"]]},{"id":"d442ac3a.97611","type":"debug","z":"22700825.3f9d38","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":180,"wires":[]},{"id":"705149ce.c18248","type":"fileinject","z":"22700825.3f9d38","name":"","x":130,"y":200,"wires":[["98922031.33529","d26ab02d.79838"]]},{"id":"d26ab02d.79838","type":"image","z":"22700825.3f9d38","name":"","width":160,"data":"annotatedinput","dataType":"msg","thumbnail":false,"active":true,"pass":false,"outputs":0,"x":340,"y":300,"wires":[]},{"id":"f13b7b29.1af548","type":"image","z":"22700825.3f9d38","name":"","width":160,"data":"annotatedinput","dataType":"msg","thumbnail":false,"active":true,"pass":false,"outputs":0,"x":600,"y":300,"wires":[]},{"id":"54a7b73a.b97128","type":"json","z":"22700825.3f9d38","name":"","property":"payload","action":"","pretty":false,"x":650,"y":180,"wires":[["d442ac3a.97611"]]}]

```

 ![Screenshot from 2021-07-19 11-28-59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b5d3ab5b08a12c94a156e630de79c5b83448fd8d.png)

So as you can see from there, I want to get object detection output result in json format, but I don't know how to do that as there is sth missing I guess.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [19 July 2021 05:53 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/2 "2021-07-19T05:53:59Z")

</div>

Can you show the debug output of the "cocossd" node ? It is not a string that can be converted to json.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [19 July 2021 06:13 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/3 "2021-07-19T06:13:55Z")

</div>

@MK1992 Perhaps it is the image (or lack thereof based on your screenshot) that is throwing the error.

The JSON node works as expected for me, but I am using a different contrib of tf coco.

```auto
[
	{
		"bbox": [
			189.49939727783204,
			170.23276805877686,
			1080.4227828979493,
			540.3283023834229
		],
		"class": "car",
		"score": 0.5844805836677551
	}
]

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad7b6de73151f6e525b404a8daf7806c9b36cd43.jpeg)

---

<div class="post-metadata">

**Author:** ![MK1992](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@MK1992](https://discourse.nodered.org/u/MK1992)\
**Post date:** [19 July 2021 06:52 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/4 "2021-07-19T06:52:29Z")

</div>

Hi Gunner, yeah I try to install tf.model but I have some installation errors. Could you help me check? I just want to load my model.json into node that supports my issue.(laoding json model) .

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [19 July 2021 06:57 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/5 "2021-07-19T06:57:18Z")

</div>

I just started here... But as I understand it, you shouldn't have more than one TF contrib installed due conflicts?

> **[node-red-contrib-tfjs-coco-ssd](https://flows.nodered.org/node/node-red-contrib-tfjs-coco-ssd)**
>
> A Node-RED node that uses tensorflowjs for object detection.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [19 July 2021 07:04 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/6 "2021-07-19T07:04:03Z")

</div>

To try to keep all of the threads from @MK1992 together, here is the one regarding the install problem: [Tf.model node error - #3 by knolleary](https://discourse.nodered.org/t/tf-model-node-error/48558/3)

The issue being he has installed things in the wrong location.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 August 2021 07:04 UTC](https://discourse.nodered.org/t/deep-learning-result-in-json-format/48560/7 "2021-08-02T07:04:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
