Skip to content

Commit

Permalink
Readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
archit120 committed May 22, 2020
1 parent af51c67 commit f8862b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ $ cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules -D BUILD_opencv_<r

- **xphoto**: Extra Computational Photography -- Additional photo processing algorithms: Color balance / Denoising / Inpainting.

- **Julia**: Julia Interface -- OpenCV Julia wrapping code with some basic functionality and samples.
- **julia**: Julia language wrappers with samples and tests.
13 changes: 8 additions & 5 deletions modules/julia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ Run
---

In order to use the bindings, simply type
```Julia
using OpenCV
```
$ julia
...
julia> using OpenCV
```
in your Julia REPL or script. The Julia package does not export any symbols so all functions/structs/constants must be prefixed with OpenCV


```Julia
using OpenCV
img = OpenCV.imread('cameraman.tif');
const cv = OpenCV
img = cv.imread('cameraman.tif');

OpenCV.imshow("window name", img)
cv.imshow("window name", img)

OpenCV.waitKey(Int32(0))
cv.waitKey(Int32(0))
```

Finally, because Julia does not support OOP paradigm some changes had to be made. To access functions like `obj.function(ARGS)` you should instead use `function(obj, ARGS)`. The below example of reading frames from a VideoCapture should make it more clear.
Expand Down

0 comments on commit f8862b5

Please sign in to comment.