Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6502 Discussions

multiple channel for ov_preprocess_preprocess_steps_mean

Enlin
New Contributor I
1,152 Views

Hi,

in C++ version

ppp.input().preprocess()
    .convert_element_type(ov::element::f32)
    .convert_layout("NCHW")
    .mean({ 123.675f,116.28f,103.53f })
    .scale({ 58.359f, 57.12f, 57.375f });
    ;

in C version, the header is:

OPENVINO_C_API(ov_status_e)
ov_preprocess_preprocess_steps_mean(ov_preprocess_preprocess_steps_t* preprocess_input_process_steps, float value);

the is only 1 channel for second parameter, how can I deal with multiple channel input?

 

thanks

 

Enlin Jiang.

0 Kudos
1 Solution
Megat_Intel
Moderator
985 Views

Hi Enlin Jiang,

We apologize for the delay.

 

For your information, our engineering team confirmed that the C API does not support multiple channels of preprocess mean/scale and they are working to add this feature soon.

 

The request for the addition of this feature will be implemented in the upcoming releases, Thank you for your support.

 

 

Regards,

Megat


View solution in original post

0 Kudos
6 Replies
Megat_Intel
Moderator
1,123 Views

Hi Enlin Jiang,

Thank you for reaching out to us.

 

We are checking with the relevant team regarding multiple channel input for the Preprocessing step in C API. In the meantime, you can check out the Preprocessing guide for OpenVINO™ Toolkit C API for more information.

 

 

Regards,

Megat


0 Kudos
Enlin
New Contributor I
1,095 Views

Hi Megat,

thanks for reply.

I had studied all of document regarding Precrocessing, I guess the API could be something like this

 

ov_preprocess_preprocess_steps_mean(ov_preprocess_preprocess_steps_t* preprocess_input_process_steps, float []value, int value_count);

function ov_preprocess_preprocess_steps_scale() has same issue, please check with relevant team.

 

thanks.

 

 

Enlin Jiang.

0 Kudos
Megat_Intel
Moderator
986 Views

Hi Enlin Jiang,

We apologize for the delay.

 

For your information, our engineering team confirmed that the C API does not support multiple channels of preprocess mean/scale and they are working to add this feature soon.

 

The request for the addition of this feature will be implemented in the upcoming releases, Thank you for your support.

 

 

Regards,

Megat


0 Kudos
Megat_Intel
Moderator
887 Views

Hi Enlin Jiang,

Thank you for your question. This thread will no longer be monitored since this issue has been resolved. If you need additional information from Intel, please submit a new question.

 

 

Regards,

Megat


0 Kudos
Megat_Intel
Moderator
751 Views

Hi Enlin Jiang,

For your information, the feature request has now been implemented via the pull request: https://github.com/openvinotoolkit/openvino/pull/23718

 

This pull request has been merged into the OpenVINO™ master branch. You can build OpenVINO™ from source (master branch) or wait for the upcoming OpenVINO™ toolkit release package.

 

 

Regards,

Megat


0 Kudos
Megat_Intel
Moderator
587 Views

Hi Enlin Jiang,

Thank you for your question. This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Megat


0 Kudos
Reply