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

How can i access object and save to jpg file in deepstream-test5-app #12

Closed
phonPtan opened this issue Nov 18, 2020 · 7 comments
Closed

Comments

@phonPtan
Copy link

phonPtan commented Nov 18, 2020

in deepstream-test5-app i can't find tiler_src_pad_buffer_probe() so in bbox_generated_probe_after_analytics() can do it

@marcoslucianops
Copy link
Owner

marcoslucianops commented Nov 19, 2020

deepstream-test5-app uses deepstream-app code. It's different from the others test-apps (it's harder than the others to implement). Your code need be implemented in deepstream-app code.

@phonPtan
Copy link
Author

hi, in deepstream-app code how can i save frame has object detection in analytics_done_buf_prob() function

@marcoslucianops
Copy link
Owner

deepstream-app doesn't have analytics_done_buf_prob(). You need add your function after image processing with metadata calls.

If you only want to save images, you better use dsexample.

@phonPtan
Copy link
Author

i want to save image in deepstream-app, and put path of this image to label metada, in deepstream test5app i will custom event metadata for build json message kalka

@phonPtan
Copy link
Author

i have seen analytics_done_buf_prob() in deepstream_app.c

@phonPtan
Copy link
Author

deepstream-app doesn't have analytics_done_buf_prob(). You need add your function after image processing with metadata calls.

If you only want to save images, you better use dsexample.

are you give me an example, thank so much

@marcoslucianops
Copy link
Owner

marcoslucianops commented Nov 23, 2020

i have seen analytics_done_buf_prob() in deepstream_app.c

I think you can't get image in deeepstream_app.c because it doesn't have an image return function.

are you give me an example, thank so much

dsexample can be used in deepstream-app. You need edit and compile it, and add in deepstream_config.txt.
dsexample uses opencv to convert image, and, in this function, you can add save image function.

/opt/nvidia/deepstream/deepstream-5.0/sources/gst-plugins/gst-dsexample/gstdsexample.cpp (you can use gstdsexample_optimized.cpp too)

...
cv::cvtColor (in_mat, *dsexample->cvmat, cv::COLOR_RGBA2BGR);
...

Add function to save image, compile and add to deepstream_config.txt

[ds-example]
enable=1
processing-width=640
processing-height=480
full-frame=0
batch-size=1
unique-id=15
gpu-id=0

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