OCR, layout analysis, reading order, table recognition in 90+ languages
69 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | surya/layout/__init__.py | 88 | except Exception as e: |
| LOW | surya/common/s3.py | 61 | except Exception as e: |
| LOW | surya/common/s3.py | 80 | except Exception: |
| LOW | surya/common/s3.py | 168 | except Exception as e: |
| LOW | surya/scripts/screenshot_app.py | 76 | except Exception: |
| LOW | surya/scripts/screenshot_app.py | 141 | except Exception as e: |
| LOW | surya/scripts/screenshot_app.py | 161 | except Exception as e: |
| LOW | surya/scripts/screenshot_app.py | 182 | except Exception as e: |
| LOW | surya/scripts/screenshot_app.py | 216 | except Exception as e: |
| LOW | surya/inference/__init__.py | 40 | except Exception: |
| LOW | surya/inference/__init__.py | 58 | except Exception: |
| LOW | surya/inference/backends/spawn.py | 54 | except Exception: |
| LOW | surya/inference/backends/spawn.py | 79 | except Exception: |
| LOW | surya/inference/backends/spawn.py | 104 | except Exception: |
| LOW | surya/inference/backends/spawn.py | 117 | except Exception: |
| LOW | surya/inference/backends/spawn.py | 137 | except Exception as e: |
| LOW | surya/inference/backends/spawn.py | 157 | except Exception as e: |
| LOW | surya/inference/backends/spawn.py | 168 | except Exception as e: |
| LOW | surya/inference/backends/openai_client.py | 136 | except Exception as e: |
| LOW | surya/recognition/__init__.py | 318 | except Exception as e: |
| LOW | surya/table_rec/__init__.py | 105 | except Exception as e: |
| LOW | surya/debug/draw.py | 56 | except Exception as e: |
| MEDIUM | surya/debug/draw.py | 57 | print(f"Error drawing rectangle at {box_position}: {e}") |
| LOW | tests/conftest.py | 24 | except Exception as exc: # SpawnError, binary missing, port issues, etc. |
| LOW | tests/conftest.py | 29 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | surya/layout/__init__.py | 1 | |
| LOW | surya/ocr_error/model/encoder.py | 1 | |
| LOW | surya/common/blank.py | 14 | |
| LOW | surya/scripts/streamlit_app.py | 4 | |
| LOW | surya/scripts/screenshot_app.py | 10 | |
| LOW | surya/inference/__init__.py | 9 | |
| LOW | surya/inference/parsers.py | 3 | |
| LOW | surya/inference/prompts.py | 4 | |
| LOW | surya/inference/prompts.py | 5 | |
| LOW | surya/inference/prompts.py | 8 | |
| LOW | surya/inference/prompts.py | 9 | |
| LOW | surya/inference/backends/vllm.py | 3 | |
| LOW | surya/inference/backends/__init__.py | 1 | |
| LOW | surya/inference/backends/__init__.py | 2 | |
| LOW | surya/inference/backends/spawn.py | 7 | |
| LOW | surya/inference/backends/openai_client.py | 7 | |
| LOW | surya/inference/backends/base.py | 1 | |
| LOW | surya/inference/backends/llamacpp.py | 8 | |
| LOW | surya/recognition/__init__.py | 7 | |
| LOW | surya/table_rec/__init__.py | 10 | |
| LOW | surya/detection/model/encoderdecoder.py | 12 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | surya/layout/__init__.py | 39 | |
| LOW | surya/ocr_error/tokenizer.py | 342 | |
| LOW | surya/ocr_error/tokenizer.py | 479 | |
| LOW | surya/ocr_error/model/encoder.py | 637 | |
| LOW | surya/ocr_error/model/encoder.py | 839 | |
| LOW | surya/common/polygon.py | 83 | |
| LOW | surya/common/s3.py | 31 | |
| LOW | surya/inference/backends/spawn.py | 172 | |
| LOW | surya/inference/backends/spawn.py | 293 | |
| LOW | surya/inference/backends/openai_client.py | 70 | |
| LOW | surya/table_rec/__init__.py | 70 | |
| LOW | surya/detection/__init__.py | 61 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | surya/ocr_error/__init__.py | 21 | def batch_ocr_error_detection( |
| LOW | surya/ocr_error/tokenizer.py | 185 | def build_inputs_with_special_tokens( |
| LOW | surya/ocr_error/tokenizer.py | 245 | def create_token_type_ids_from_sequences( |
| LOW | surya/ocr_error/model/encoder.py | 40 | def create_sinusoidal_embeddings(n_pos: int, dim: int, out: torch.Tensor): |
| LOW | surya/ocr_error/model/encoder.py | 677 | def resize_position_embeddings(self, new_num_position_embeddings: int): |
| LOW | surya/ocr_error/model/encoder.py | 825 | def resize_position_embeddings(self, new_num_position_embeddings: int): |
| LOW | surya/common/pretrained.py | 9 | def _check_and_adjust_attn_implementation( |
| LOW | surya/inference/backends/llamacpp.py | 33 | def _resolve_llama_server_binary() -> str: |
| LOW | tests/test_layout.py | 1 | def test_layout_returns_blocks(layout_predictor, test_image): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | surya/settings.py | 61 | # (8192) generation + ~2k prompt/chat-template overhead ≈ 12k. Below this |
| LOW | surya/detection/processor.py | 1 | # coding=utf-8 |