()
| 230 | }; |
| 231 | |
| 232 | const getOutputTensorWidth = () => { |
| 233 | // On iOS landscape mode, switch width and height of the output tensor to |
| 234 | // get better result. Without this, the image stored in the output tensor |
| 235 | // would be stretched too much. |
| 236 | // |
| 237 | // Same for getOutputTensorHeight below. |
| 238 | return isPortrait() || IS_ANDROID |
| 239 | ? OUTPUT_TENSOR_WIDTH |
| 240 | : OUTPUT_TENSOR_HEIGHT; |
| 241 | }; |
| 242 | |
| 243 | const getOutputTensorHeight = () => { |
| 244 | return isPortrait() || IS_ANDROID |
no test coverage detected