Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Output the buffer #5

Open
jmorris644 opened this issue Nov 23, 2021 · 4 comments
Open

Enhancement Request: Output the buffer #5

jmorris644 opened this issue Nov 23, 2021 · 4 comments

Comments

@jmorris644
Copy link

jmorris644 commented Nov 23, 2021

Is it possible to also output the incoming buffer as part of the JSON output string? I need to do some follow-on image manipulation once I have the JSON info. For example, I want to crop the original image to just save the bounding box of the vehicle.

Optionally it would be nice to output the cropped vehicle image. This would be similar to what the current Stream SDK does.

@bartbutenaers
Copy link
Owner

Hi @jmorris644,
I see now that I have not described this on my readme page. The input message is forwarded to the output.
Suppose your image buffer arrives in the input image as msg.payload and your recognition result is stored (via output field also in msg.payload. Then your image in the message will be overwritten by your recognition results. But if you store e.g. your recognition results in msg.myresults, then your msg.payload should still contain your original input image...
Bart

@jmorris644
Copy link
Author

That makes perfect sense.

@bartbutenaers
Copy link
Owner

Optionally it would be nice to output the cropped vehicle image.

Yes indeed that can be useful. But as a separate node, so it can be reused to crop the image output of other nodes also. Will put it on my todo list...

@jmorris644
Copy link
Author

I am currently using node-red-contrib-image-tools to do the cropping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants