You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ pip install otary
51
51
Let me illustrate the usage of Otary with a simple example. Imagine you need to:
52
52
53
53
1. read an image from a pdf file
54
-
2. draw an ellipse on it
54
+
2. draw an rectangle on it, shift and rotate the rectangle
55
55
3. crop a part of the image
56
56
4. rotate the cropped image
57
57
5. apply a threshold
@@ -60,20 +60,21 @@ Let me illustrate the usage of Otary with a simple example. Imagine you need to:
60
60
In order to compare the use of Otary versus other libraries, I will use the same example but with different libraries. Try it yourself on your favorite LLM (like [ChatGPT](https://chatgpt.com/)) by copying the query:
61
61
62
62
```text
63
-
Generate a python code to read an image from a pdf, draw an ellipse on it, crop a part of the image, rotate the cropped image, apply a threshold on the image.
63
+
Generate a python code to read an image from a pdf, draw an rectangle on it, shift and rotate the rectangle, crop a part of the image, rotate the cropped image, apply a threshold on the image.
64
64
```
65
65
66
66
Using Otary you can do it with few lines of code:
67
67
68
68
```python
69
69
import otary as ot
70
70
71
-
im = ot.Image.from_pdf("path/to/your/file.pdf", page_nb=0)
71
+
im = ot.Image.from_pdf("path/to/you/file.pdf", page_nb=0)
- Much more **readable** and hence **maintainable**
88
89
- Much more **interactive**
89
90
- Much simpler, simplifying **libraries management** by only using one library and not manipulating multiple libraries like Pillow, OpenCV, Scikit-Image, PyMuPDF etc.
90
91
@@ -94,7 +95,7 @@ In a Jupyter notebook, you can easily test and iterate on transformations by sim
Let me illustrate the usage of Otary with a simple example. Imagine you need to:
44
44
45
45
1. read an image from a pdf file
46
-
2. draw an ellipse on it
46
+
2. draw an rectangle on it, shift and rotate the rectangle
47
47
3. crop a part of the image
48
48
4. rotate the cropped image
49
49
5. apply a threshold
@@ -52,7 +52,7 @@ Let me illustrate the usage of Otary with a simple example. Imagine you need to:
52
52
In order to compare the use of Otary versus other libraries, I will use the same example but with different libraries. Try it yourself on your favorite LLM (like [ChatGPT](https://chatgpt.com/)) by copying the query:
53
53
54
54
```text
55
-
Generate a python code to read an image from a pdf, draw an ellipse on it, crop a part of the image, rotate the cropped image, apply a threshold on the image.
55
+
Generate a python code to read an image from a pdf, draw an rectangle on it, shift and rotate the rectangle, crop a part of the image, rotate the cropped image, apply a threshold on the image.
56
56
```
57
57
58
58
Using Otary you can do it with few lines of code:
@@ -62,12 +62,13 @@ Using Otary you can do it with few lines of code:
62
62
```Python
63
63
import otary as ot
64
64
65
-
im = ot.Image.from_pdf("path/to/your/file.pdf", page_nb=0)
65
+
im = ot.Image.from_pdf("path/to/you/file.pdf", page_nb=0)
ChatGPT proposes to re-invent the wheel and over-complicates everything.
164
290
165
291
Using Otary makes the code:
166
292
167
-
- Much more **readable** and hence maintainable
293
+
- Much more **readable** and hence **maintainable**
168
294
- Much more **interactive**
169
295
- Much simpler, simplifying **libraries management** by only using one library and not manipulating multiple libraries like Pillow, OpenCV, Scikit-Image, PyMuPDF etc.
0 commit comments