Skip to content

Commit ab39804

Browse files
committed
update
1 parent 97833ef commit ab39804

File tree

11 files changed

+3640
-3783
lines changed

11 files changed

+3640
-3783
lines changed

001_bodypix-worker-js/.eslintrc.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
es2021: true,
5-
node: true,
6-
},
7-
extends: [
8-
"eslint:recommended",
9-
"plugin:react/recommended",
10-
"plugin:@typescript-eslint/recommended",
11-
],
12-
parser: "@typescript-eslint/parser",
13-
parserOptions: {
14-
ecmaFeatures: {
15-
jsx: true,
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
166
},
17-
ecmaVersion: 13,
18-
sourceType: "module",
19-
},
20-
plugins: ["react", "@typescript-eslint"],
21-
rules: {},
7+
extends: ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
8+
parser: "@typescript-eslint/parser",
9+
parserOptions: {
10+
ecmaFeatures: {
11+
jsx: true,
12+
},
13+
ecmaVersion: 13,
14+
sourceType: "module",
15+
},
16+
plugins: ["react", "@typescript-eslint"],
17+
rules: {},
2218
};

001_bodypix-worker-js/.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"tabWidth": 4,
33
"useTabs": false,
4-
"semi": true
4+
"semi": true,
5+
"printWidth": 360
56
}

001_bodypix-worker-js/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
This is webworker module for [Bodypix](https://github.com/tensorflow/tfjs-models/tree/master/body-pix).
22

33
# bodypix
4-
![image](https://user-images.githubusercontent.com/48346627/95987700-be773780-0e62-11eb-9645-40b7c0adb826.png)
54

5+
![image](https://user-images.githubusercontent.com/48346627/95987700-be773780-0e62-11eb-9645-40b7c0adb826.png)
66

77
## Install
8+
89
```
910
$ npm install \@dannadori/bodypix-worker-js
1011
```
12+
1113
## API
1214

1315
```
@@ -48,18 +50,22 @@ export declare enum BodypixFunctionType {
4850
```
4951

5052
## Step by step
53+
5154
### Create environment and install package
55+
5256
```
5357
$ npx create-react-app demo --template typescript
5458
$ cd demo/
5559
$ npm install
5660
$ npm install @dannadori/bodypix-worker-js
5761
```
5862

59-
### Add source image to public.
63+
### Add source image to public.
64+
6065
In this time, the name is "srcImage.jpg"
6166

6267
### Edit src/App.tsx
68+
6369
Sample code is here.
6470

6571
```
@@ -71,7 +77,7 @@ import {
7177
} from '@dannadori/bodypix-worker-js'
7278
7379
class App extends React.Component{
74-
80+
7581
manager = new BodypixWorkerManager()
7682
config = generateBodyPixDefaultConfig()
7783
params = generateDefaultBodyPixParams()
@@ -114,8 +120,3 @@ export default App;
114120
```
115121
$ npm run start
116122
```
117-
118-
119-
120-
121-

0 commit comments

Comments
 (0)