cancel
Showing results for 
Search instead for 
Did you mean: 

How to view an image (stored in an array of 40kB) by node-red-contrib-image-output

Daniel N
Associate II

Is it possible to use node-red-contrib-image-output to view an image located in RAM in an array of 40kB (40960 bytes)?

Issue #1: In "variables" node only [9999:0] elements can be selected.

Issue #2: It is a need to group them into format of what node-red-contrib-image-output can consume.

1 ACCEPTED SOLUTION

Accepted Solutions
Richard.Chvr
ST Employee

Hello @Daniel N​ 

Even if I've never tried such a use case, it should be possible to get the image data after a while because of the buffer size. 

A challenging tip, would be to replace the write variable node by a function or a template node that would give the write parameters

Richard

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Richard.Chvr
ST Employee

Hello @Daniel N​ 

Even if I've never tried such a use case, it should be possible to get the image data after a while because of the buffer size. 

A challenging tip, would be to replace the write variable node by a function or a template node that would give the write parameters

Richard

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Daniel N
Associate II

.

Hello @Richard.Chvr (ST Employee)​ 

If I understand you correctly, by using a function or a template node I could point to all elements of my image array in RAM - not only to that [9999:0] elements fixed somehow in a variable node?

I can propagate the RAM address further to get a whole array, is that correct?

Yes that should work even if we've never tested it. note that it may take a while.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.