How to change another path at image_meta_test sample?

hi,
for image_meta_test.c sample, how can i change another path which is not locally to store photoes?

thank you

Hi,

You can use the fileNameImg parameter of NvDsObjEncUsrArgs.

https://docs.nvidia.com/metropolis/deepstream/sdk-api/struct__NvDsObjEncUsrArgs.html#ab26397519939c0c2c85ffed422571617

Ex.


NvDsObjEncUsrArgs userData = { 0 };
/* To be set by user */
userData.saveImg = save_img;
userData.attachUsrMeta = attach_user_meta;
userData.fileNameImg = “myfile.jpg”

Thanks.

hi,
when i use this:
/* To be set by user */
userData.saveImg = save_img;
userData.attachUsrMeta = attach_user_meta;
userData.fileNameImg = “myfile.jpg”

it shows error when i make:
deepstream_image_meta_test.c: In function ‘pgie_src_pad_buffer_probe’:
deepstream_image_meta_test.c:253:30: error: assignment to expression with array type

and another error is below when i use dummy_object for full frame save:
WARNING from element nvvideo-renderer: A lot of buffers are being dropped.
Warning: A lot of buffers are being dropped.
WARNING from element nvvideo-renderer: A lot of buffers are being dropped.
Warning: A lot of buffers are being dropped.
WARNING from element nvvideo-renderer: A lot of buffers are being dropped.
Warning: A lot of buffers are being dropped.
WARNING from element nvvideo-renderer: A lot of buffers are being dropped.
Warning: A lot of buffers are being dropped.
^C

thank you very much!

Hi,

Sorry, please use below sample instead:

...
NvDsObjEncUsrArgs userData = { 0 };
/* To be set by user */
userData.saveImg = save_img;
userData.attachUsrMeta = attach_user_meta;
sprintf (userData.fileNameImg,"myfile.jpg");
...

Thanks.

it is good, thank you very much!