Serovvans commited on
Commit
768ce5a
1 Parent(s): d83150d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -24,8 +24,21 @@ generated_ids = hf_model.generate(pixel_values)
24
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
25
  print(generated_text)
26
  ```
27
- ## Usage for recognizing the book
 
 
 
 
 
 
28
  ```python
 
 
 
 
 
 
 
29
  ```
30
 
31
  ## Metrics on test
 
24
  generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
25
  print(generated_text)
26
  ```
27
+ ## Usage for recognizing the page
28
+ 1. Download the following files from the repository: recognize_page.py, requirements_page.txt
29
+ 2. Install dependencies:
30
+ ```bash
31
+ pip install -r requirements_page.txt
32
+ ```
33
+ 3. Use this code
34
  ```python
35
+ from recognize_page import recognize_page
36
+
37
+ page_path = "cleaned_pages/C2V10/page11.png"
38
+ text = recognize_page(page_path)
39
+
40
+ print(f"Текст страницы:\n")
41
+ print(text)
42
  ```
43
 
44
  ## Metrics on test