Skip to content

Commit f754f84

Browse files
committed
fix: rm old README
1 parent 29580c5 commit f754f84

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

README.md

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,4 @@
22

33
This library has been freely inspired from [imgaug](https://github.com/aleju/imgaug)
44

5-
It is made to work with [hasard](https://www.npmjs.com/package/hasard)
6-
7-
## Simple Example
8-
9-
```javascript
10-
const ia = require('image-augment');
11-
12-
// random example images
13-
const images = new Array(50).fill(1).map( () => {
14-
return new ia.RandomImage({
15-
width: 128
16-
height: 128
17-
});
18-
};
19-
20-
const sometimes = ((aug) => ia.sometimes({p : 0.5, augmenter: aug}))
21-
22-
const seq = new ia.Sequential({
23-
sequence : [
24-
new ia.Fliplr({p: 0.5}),
25-
new ia.Flipud({p: 0.5}),
26-
sometimes(new ia.CropAndPad(
27-
p:[-0.05, 0.1],
28-
padMode:ia.ALL,
29-
padCval: [0, 255]
30-
)),
31-
sometimes(new ia.Affine({
32-
scale:{"x": [0.8, 1.2], "y": [0.8, 1.2]},// scale images to 80-120% of their size, individually per axis
33-
translate_percent:{"x": [-0.2, 0.2], "y": [-0.2, 0.2]}, // translate by -20 to +20 percent (per axis)
34-
rotate:[-45, 45], // rotate by -45 to +45 degrees
35-
shear:[-16, 16], // shear by -16 to +16 degrees
36-
order:[0, 1], // use nearest neighbour or bilinear interpolation (fast)
37-
cval:[0, 255], // if mode is constant, use a cval between 0 and 255
38-
mode:ia.ALL // use any of scikit-image's warping modes (see 2nd image from the top for examples)
39-
))
40-
],
41-
randomOrder : true
42-
})
43-
44-
augmented = seq.augmentImagesAsync(images)
45-
```
5+
It is made to work with [hasard](https://www.npmjs.com/package/hasard) and [opencv4nodejs](https://github.com/justadudewhohacks/opencv4nodejs)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "image-augment",
33
"version": "0.0.1",
4-
"description": "Image augmentation using opencv4nodejs",
4+
"description": "Image augmentation library for machine learning in javascript.",
55
"main": "index.js",
66
"scripts": {
77
"lint": "xo",

0 commit comments

Comments
 (0)