Download nemotron-ocr/cpp/geometry_api/geometry_api.h from Metausermac13/nemotron-ocr-v2: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/Metausermac13/nemotron-ocr-v2/resolve/main/nemotron-ocr/cpp/geometry_api/geometry_api.h
- Command line
-
hf download hf://Metausermac13/nemotron-ocr-v2/nemotron-ocr/cpp/geometry_api/geometry_api.h
-
curl -L -o geometry_api.h https://huggingface.co/Metausermac13/nemotron-ocr-v2/resolve/main/nemotron-ocr/cpp/geometry_api/geometry_api.h
530 Bytes
| // SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| torch::Tensor rrect_to_quads(torch::Tensor rrects, float cellSize); | |
| torch::Tensor rrect_to_quads_backward(torch::Tensor rrects, torch::Tensor gradOutput); | |
| torch::Tensor calc_poly_min_rrect(torch::Tensor vertices); | |
| float get_rel_continuation_cos(torch::Tensor rrectA, torch::Tensor rrectB); | |
| torch::Tensor get_poly_bounds_quad(torch::Tensor poly); | |