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
If you print (in Smalltalk), the variable `img` you should see `a ndarray (Proxy)`. OpenCV handle the picture as a numpy structure. Within Smalltalk, we only see a proxy as the image is living within the Python World. Note that we are using the `sendAndWait:` instruction as we wait for the completion of the Python import.
92
+
If you print (in Smalltalk), the variable `img` you should see `a ndarray (Proxy)`. OpenCV handles the picture as a numpy structure. Within Smalltalk, we only see a proxy since the image is living within the Python World. Note that we are using the `sendAndWait:` instruction as we wait for the completion of the Python import.
93
93
94
94
We can now open the image using:
95
95
@@ -106,7 +106,7 @@ We can now close the Python connection:
106
106
PBApplication stop.
107
107
```
108
108
109
-
In theory, there should not be a need to shutdown the Python VM, however, due to a limitation of OpenCV in the way it handles the windows, it is simpler to do so.
109
+
In theory, we should not need to shutdown the Python VM, however, due to a limitation of OpenCV in the way it handles the windows, it is simpler to do so.
110
110
111
111
## Applying transformation to an image
112
112
@@ -130,7 +130,7 @@ PBApplication stop.
130
130
131
131
## Turning your script into an application
132
132
133
-
Obviously, you do not wish to directly face the Python scripting instruction. You can easily turn the script into a small class, titled `ImageViewer`:
133
+
Obviously, you do not wish to directly face the Python scripting instruction. You can easily turn the script into a small class, titled `ImageViewer`, to completely hide the Python instructions:
0 commit comments