towise 0.1.6 → 0.1.8
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +24 -0
- data/README.md +30 -30
- data/lib/constants.rb +13 -0
- data/lib/towise/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2a287b59dba266c2cd615b294d27712138066e4742d8c47def4f27a20deffa1
|
|
4
|
+
data.tar.gz: d0eafb3cb825203670397b2ad59ad4e6d84a1832ee1356c6b0da5f6cc647f1cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db86da6920957cd0a821cc660ccc489e38cc0906cb7d4e1113d9d12799dbce238d575cdd9b7ea6e8dc12b230eb83bce40991d45be4111177168e79e7abae81c0
|
|
7
|
+
data.tar.gz: 5e04bf59a81ab3f48d46379e1f8cf430e5e2f27d8e03f3bdf482fe5dfe05b02a0cba4e42f63a5ee07aebcf131ef94d1d83e9e54f4cf461a3357c0634ec65791f
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
towise (0.1.8)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
faraday (0.15.4)
|
|
10
|
+
multipart-post (>= 1.2, < 3)
|
|
11
|
+
multipart-post (2.0.0)
|
|
12
|
+
rake (10.5.0)
|
|
13
|
+
|
|
14
|
+
PLATFORMS
|
|
15
|
+
ruby
|
|
16
|
+
|
|
17
|
+
DEPENDENCIES
|
|
18
|
+
bundler (~> 2.0)
|
|
19
|
+
faraday (~> 0.15.4)
|
|
20
|
+
rake (~> 10.0)
|
|
21
|
+
towise!
|
|
22
|
+
|
|
23
|
+
BUNDLED WITH
|
|
24
|
+
2.0.1
|
data/README.md
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
# Towise
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
# TOWISE RUBY API
|
|
3
|
+
Towise assists you to detect human faces and bodies with using the latest and reliable technology.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
## Getting Started
|
|
6
|
+
### Prerequisites
|
|
7
|
+
```
|
|
8
|
+
ruby 2.6.3
|
|
9
|
+
gem 3.0.3
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```
|
|
12
|
+
### Installing
|
|
13
|
+
To install the package
|
|
10
14
|
|
|
15
|
+
```sh
|
|
16
|
+
gem install towise
|
|
17
|
+
```
|
|
18
|
+
To import your project
|
|
11
19
|
```ruby
|
|
12
|
-
|
|
20
|
+
require "towise"
|
|
13
21
|
```
|
|
22
|
+
### Using Towise
|
|
23
|
+
You must enter appKey and appId
|
|
14
24
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Or install it yourself as:
|
|
20
|
-
|
|
21
|
-
$ gem install towise
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
TODO: Write usage instructions here
|
|
26
|
-
|
|
27
|
-
## Development
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
25
|
+
For Example:
|
|
26
|
+
```ruby
|
|
27
|
+
require "towise"
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
image_url = "https://cdn.onebauer.media/one/media/5c6e/80bc/d007/9656/5f0a/6c12/dua-lipa-brits.jpg"
|
|
30
|
+
t = Towise::API.new({"appid"=>"your appId","appkey"=>"your appKey"})
|
|
31
|
+
puts t.faceDetect(image_url)
|
|
32
|
+
```
|
|
32
33
|
|
|
33
|
-
##
|
|
34
|
+
## Versioning
|
|
35
|
+
For the versions available, see the https://github.com/argedor/TowiseNodeJSAPI/tags
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
## Authors
|
|
38
|
+
* **Harun Keleşoğlu** - *Developer* - [Github](https://github.com/harunkelesoglu)
|
|
39
|
+
See also the list of [contributers](https://github.com/argedor/TowiseNodeJSAPI/graphs/contributors)
|
|
36
40
|
|
|
37
41
|
## License
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## Code of Conduct
|
|
42
|
-
|
|
43
|
-
Everyone interacting in the Towise project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/towise/blob/master/CODE_OF_CONDUCT.md).
|
|
43
|
+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
data/lib/constants.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Constants
|
|
2
|
+
BASE_URL = "https://api.towise.io"
|
|
3
|
+
DETECT = {
|
|
4
|
+
"face" => "/detect/face",
|
|
5
|
+
"body" => "/detect/person",
|
|
6
|
+
"emotion" => "/detect/emotion"
|
|
7
|
+
}
|
|
8
|
+
RECOGNIZE = {
|
|
9
|
+
"face" => "/recognize/face"
|
|
10
|
+
}
|
|
11
|
+
PERSONS = "/persons/"
|
|
12
|
+
FACES = "/faces/"
|
|
13
|
+
end
|
data/lib/towise/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: towise
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- harunkelesoglu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -64,11 +64,13 @@ files:
|
|
|
64
64
|
- ".gitignore"
|
|
65
65
|
- CODE_OF_CONDUCT.md
|
|
66
66
|
- Gemfile
|
|
67
|
+
- Gemfile.lock
|
|
67
68
|
- LICENSE.txt
|
|
68
69
|
- README.md
|
|
69
70
|
- Rakefile
|
|
70
71
|
- bin/console
|
|
71
72
|
- bin/setup
|
|
73
|
+
- lib/constants.rb
|
|
72
74
|
- lib/towise.rb
|
|
73
75
|
- lib/towise/version.rb
|
|
74
76
|
- towise.gemspec
|