homa 0.23__tar.gz → 0.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of homa might be problematic. Click here for more details.

Files changed (30) hide show
  1. {homa-0.23 → homa-0.24}/PKG-INFO +20 -1
  2. {homa-0.23 → homa-0.24}/README.md +19 -0
  3. {homa-0.23 → homa-0.24}/homa/helpers/alias.py +2 -2
  4. {homa-0.23 → homa-0.24}/homa/main.py +0 -1
  5. {homa-0.23 → homa-0.24}/homa.egg-info/PKG-INFO +20 -1
  6. {homa-0.23 → homa-0.24}/LICENSE +0 -0
  7. {homa-0.23 → homa-0.24}/homa/__init__.py +0 -0
  8. {homa-0.23 → homa-0.24}/homa/camera.py +0 -0
  9. {homa-0.23 → homa-0.24}/homa/classes/Collection.py +0 -0
  10. {homa-0.23 → homa-0.24}/homa/classes/Logger.py +0 -0
  11. {homa-0.23 → homa-0.24}/homa/classes/Repository.py +0 -0
  12. {homa-0.23 → homa-0.24}/homa/classes/__init__.py +0 -0
  13. {homa-0.23 → homa-0.24}/homa/constants.py +0 -0
  14. {homa-0.23 → homa-0.24}/homa/events.py +0 -0
  15. {homa-0.23 → homa-0.24}/homa/filters.py +0 -0
  16. {homa-0.23 → homa-0.24}/homa/helpers/__init__.py +0 -0
  17. {homa-0.23 → homa-0.24}/homa/helpers/environment.py +0 -0
  18. {homa-0.23 → homa-0.24}/homa/helpers/kernel.py +0 -0
  19. {homa-0.23 → homa-0.24}/homa/helpers.py +0 -0
  20. {homa-0.23 → homa-0.24}/homa/orientation.py +0 -0
  21. {homa-0.23 → homa-0.24}/homa/shapes.py +0 -0
  22. {homa-0.23 → homa-0.24}/homa/spaces.py +0 -0
  23. {homa-0.23 → homa-0.24}/homa.egg-info/SOURCES.txt +0 -0
  24. {homa-0.23 → homa-0.24}/homa.egg-info/dependency_links.txt +0 -0
  25. {homa-0.23 → homa-0.24}/homa.egg-info/requires.txt +0 -0
  26. {homa-0.23 → homa-0.24}/homa.egg-info/top_level.txt +0 -0
  27. {homa-0.23 → homa-0.24}/setup.cfg +0 -0
  28. {homa-0.23 → homa-0.24}/setup.py +0 -0
  29. {homa-0.23 → homa-0.24}/tests/__init__.py +0 -0
  30. {homa-0.23 → homa-0.24}/tests/test_images.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homa
3
- Version: 0.23
3
+ Version: 0.24
4
4
  Maintainer: Taha Shieenavaz
5
5
  Maintainer-email: tahashieenavaz@gmail.com
6
6
  Description-Content-Type: text/markdown
@@ -25,6 +25,10 @@ Images could be loaded with the `image` helper, that accepts the file name and a
25
25
  from homa import *
26
26
 
27
27
  image("horse.jpg", "horse")
28
+ show("horse", wait=True)
29
+
30
+ # or alternatively
31
+ showWait("horse")
28
32
  ```
29
33
 
30
34
  Alternatively, following code will load the file into the repository with a key of everything before the last in the filename.
@@ -33,6 +37,7 @@ Alternatively, following code will load the file into the repository with a key
33
37
  from homa import *
34
38
 
35
39
  image("horse.jpg") # stored as "horse"
40
+ showWait("horse")
36
41
  ```
37
42
 
38
43
  ## Smoothing
@@ -65,6 +70,20 @@ gaussian("horse", 9, "gaussian blurred horse") # as a new key in the repositor
65
70
  showWait("gaussian blurred horse")
66
71
  ```
67
72
 
73
+ ### Median Blur
74
+
75
+ ```python
76
+ from homa import *
77
+
78
+ image("horse.jpg")
79
+
80
+ median("horse", 7) # rewrites "horse" key
81
+ median("horse", (7, 19)) # rewrites "horse" key
82
+ median("horse", 9, "median blurred horse") # as a new key in the repository
83
+
84
+ showWait("median blurred horse")
85
+ ```
86
+
68
87
  ## Stacking
69
88
 
70
89
  ```python
@@ -17,6 +17,10 @@ Images could be loaded with the `image` helper, that accepts the file name and a
17
17
  from homa import *
18
18
 
19
19
  image("horse.jpg", "horse")
20
+ show("horse", wait=True)
21
+
22
+ # or alternatively
23
+ showWait("horse")
20
24
  ```
21
25
 
22
26
  Alternatively, following code will load the file into the repository with a key of everything before the last in the filename.
@@ -25,6 +29,7 @@ Alternatively, following code will load the file into the repository with a key
25
29
  from homa import *
26
30
 
27
31
  image("horse.jpg") # stored as "horse"
32
+ showWait("horse")
28
33
  ```
29
34
 
30
35
  ## Smoothing
@@ -57,6 +62,20 @@ gaussian("horse", 9, "gaussian blurred horse") # as a new key in the repositor
57
62
  showWait("gaussian blurred horse")
58
63
  ```
59
64
 
65
+ ### Median Blur
66
+
67
+ ```python
68
+ from homa import *
69
+
70
+ image("horse.jpg")
71
+
72
+ median("horse", 7) # rewrites "horse" key
73
+ median("horse", (7, 19)) # rewrites "horse" key
74
+ median("horse", 9, "median blurred horse") # as a new key in the repository
75
+
76
+ showWait("median blurred horse")
77
+ ```
78
+
60
79
  ## Stacking
61
80
 
62
81
  ```python
@@ -1,9 +1,9 @@
1
1
  from ..classes.Repository import Repository
2
- from ..classes import Collection
2
+ from ..classes.Collection import Collection
3
3
  from typing import List
4
4
 
5
5
 
6
- def repo(key: str|None = None):
6
+ def repo(key: str | None = None):
7
7
  if key is None:
8
8
  return Repository.images
9
9
 
@@ -53,7 +53,6 @@ def show(key: any = None, wait: bool = False, window: str = "Homa Window") -> No
53
53
 
54
54
  if key is not None and not isinstance(key, str):
55
55
  Repository.imshow(window, key)
56
- Repository.windows[key] = window
57
56
 
58
57
  elif key is None:
59
58
  for key, image in Repository.images.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homa
3
- Version: 0.23
3
+ Version: 0.24
4
4
  Maintainer: Taha Shieenavaz
5
5
  Maintainer-email: tahashieenavaz@gmail.com
6
6
  Description-Content-Type: text/markdown
@@ -25,6 +25,10 @@ Images could be loaded with the `image` helper, that accepts the file name and a
25
25
  from homa import *
26
26
 
27
27
  image("horse.jpg", "horse")
28
+ show("horse", wait=True)
29
+
30
+ # or alternatively
31
+ showWait("horse")
28
32
  ```
29
33
 
30
34
  Alternatively, following code will load the file into the repository with a key of everything before the last in the filename.
@@ -33,6 +37,7 @@ Alternatively, following code will load the file into the repository with a key
33
37
  from homa import *
34
38
 
35
39
  image("horse.jpg") # stored as "horse"
40
+ showWait("horse")
36
41
  ```
37
42
 
38
43
  ## Smoothing
@@ -65,6 +70,20 @@ gaussian("horse", 9, "gaussian blurred horse") # as a new key in the repositor
65
70
  showWait("gaussian blurred horse")
66
71
  ```
67
72
 
73
+ ### Median Blur
74
+
75
+ ```python
76
+ from homa import *
77
+
78
+ image("horse.jpg")
79
+
80
+ median("horse", 7) # rewrites "horse" key
81
+ median("horse", (7, 19)) # rewrites "horse" key
82
+ median("horse", 9, "median blurred horse") # as a new key in the repository
83
+
84
+ showWait("median blurred horse")
85
+ ```
86
+
68
87
  ## Stacking
69
88
 
70
89
  ```python
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes