PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

对 cpp infer 中 Permute 的疑惑

Open thsno02 opened this issue 2 years ago • 0 comments

此处代码的意思更改图片通道并将其放入 input 中 https://github.com/PaddlePaddle/PaddleOCR/blob/c29a9e67019e79699e73f0935a9632d4b438efbf/deploy/cpp_infer/src/ocr_det.cpp#L82-L83 但是 permute 函数里似乎没有更改图片的通道,图片的格式依然是 BGR。 https://github.com/PaddlePaddle/PaddleOCR/blob/c29a9e67019e79699e73f0935a9632d4b438efbf/deploy/cpp_infer/src/preprocess_op.cpp#L34-L41

所以,permute 函数在这里是没有作用的吗?

thsno02 avatar Oct 25 '22 09:10 thsno02