openvino/samples/c
River Li ce5b2c6a45
Refine ov_partial_shape for OV API 2.0 C interface (#11891)
* Refine ov_partial_shape for OV 2.0 C interface

To avoid potential string security problem, remove string pointer from ov_partial_shape structure.

* Remove redundant code

* fix typo issue

* fix shape test issue

* fix some minor issues

* Address reviewing comments

Use Dimension to represent rank of parital shape.

* Appy safer method to parse partialShape string

1. adopt ov::Dimension::value_type to construct ov::Dimension
2. safter method to convert string to dimension value
3. apply std::vector<std::string> to replace std::vector<char *> during pasrsing partialShape string

Change-Id: I0e0b70a915fc5c5fefad51de51f167798854f55e
2022-06-20 08:22:39 +08:00
..
common/opencv_c_wrapper Build with system TBB (#11244) 2022-03-31 18:05:59 +03:00
hello_classification DOCS: ported changes from 2022.1 release branch (#11206) 2022-03-24 22:27:29 +03:00
hello_classification_ov Refine ov_partial_shape for OV API 2.0 C interface (#11891) 2022-06-20 08:22:39 +08:00
hello_nv12_input_classification DOCS: ported changes from 2022.1 release branch (#11206) 2022-03-24 22:27:29 +03:00
.clang-format [Samples] Move C samples to the new samples directory (#8021) 2021-11-01 12:59:09 +03:00
CMakeLists.txt Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00