matrix_creator 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,132 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: definitions/protos/vision/vision.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "admobilize_vision.Point" do
8
+ optional :x, :float, 1
9
+ optional :y, :float, 2
10
+ end
11
+ add_message "admobilize_vision.Rectangle" do
12
+ optional :x, :float, 1
13
+ optional :y, :float, 2
14
+ optional :width, :float, 3
15
+ optional :height, :float, 4
16
+ end
17
+ add_message "admobilize_vision.FacialRecognition" do
18
+ optional :tag, :enum, 1, "admobilize_vision.EnumFacialRecognitionTag"
19
+ optional :confidence, :float, 2
20
+ optional :age, :int32, 3
21
+ optional :gender, :enum, 4, "admobilize_vision.FacialRecognition.Gender"
22
+ optional :emotion, :enum, 5, "admobilize_vision.FacialRecognition.Emotion"
23
+ repeated :face_descriptor, :float, 6
24
+ optional :face_id, :string, 7
25
+ optional :pose_yaw, :float, 8
26
+ optional :pose_roll, :float, 9
27
+ optional :pose_pitch, :float, 10
28
+ optional :basic_feature, :message, 11, "admobilize_vision.FacialRecognition.BasicFaceFeature"
29
+ end
30
+ add_message "admobilize_vision.FacialRecognition.BasicFaceFeature" do
31
+ repeated :mouth, :message, 1, "admobilize_vision.Point"
32
+ repeated :left_eye, :message, 2, "admobilize_vision.Point"
33
+ repeated :right_eye, :message, 3, "admobilize_vision.Point"
34
+ repeated :nose, :message, 4, "admobilize_vision.Point"
35
+ end
36
+ add_enum "admobilize_vision.FacialRecognition.Gender" do
37
+ value :MALE, 0
38
+ value :FEMALE, 1
39
+ end
40
+ add_enum "admobilize_vision.FacialRecognition.Emotion" do
41
+ value :ANGRY, 0
42
+ value :DISGUST, 1
43
+ value :CONFUSED, 2
44
+ value :HAPPY, 3
45
+ value :SAD, 4
46
+ value :SURPRISED, 5
47
+ value :CALM, 6
48
+ end
49
+ add_message "admobilize_vision.VisionEvent" do
50
+ optional :tag, :enum, 1, "admobilize_vision.EventTag"
51
+ optional :tracking_id, :uint64, 2
52
+ optional :session_time, :float, 3
53
+ optional :dwell_time, :float, 4
54
+ end
55
+ add_message "admobilize_vision.RectangularDetection" do
56
+ optional :algorithm, :enum, 1, "admobilize_vision.EnumDetectionAlgorithm"
57
+ optional :location, :message, 2, "admobilize_vision.Rectangle"
58
+ optional :tag, :enum, 3, "admobilize_vision.EnumDetectionTag"
59
+ optional :confidence, :float, 4
60
+ repeated :facial_recognition, :message, 5, "admobilize_vision.FacialRecognition"
61
+ optional :image, :bytes, 6
62
+ optional :image_small, :bytes, 7
63
+ optional :tracking_id, :uint64, 8
64
+ end
65
+ add_message "admobilize_vision.ImageList" do
66
+ repeated :image_data, :bytes, 1
67
+ optional :frames_per_second, :int32, 2
68
+ end
69
+ add_message "admobilize_vision.Video" do
70
+ optional :video_data, :bytes, 1
71
+ optional :codec, :enum, 2, "admobilize_vision.EnumVideoCodec"
72
+ repeated :tag, :string, 3
73
+ end
74
+ add_message "admobilize_vision.VisionResult" do
75
+ repeated :rect_detection, :message, 1, "admobilize_vision.RectangularDetection"
76
+ repeated :vision_event, :message, 4, "admobilize_vision.VisionEvent"
77
+ optional :image, :bytes, 2
78
+ optional :image_small, :bytes, 3
79
+ end
80
+ add_enum "admobilize_vision.EnumFacialRecognitionTag" do
81
+ value :AGE, 0
82
+ value :EMOTION, 1
83
+ value :GENDER, 2
84
+ value :FACE_ID, 3
85
+ value :HEAD_POSE, 4
86
+ value :FACE_FEATURES, 5
87
+ value :FACE_DESCRIPTOR, 6
88
+ end
89
+ add_enum "admobilize_vision.EventTag" do
90
+ value :TRACKING_START, 0
91
+ value :TRACKING_END, 1
92
+ end
93
+ add_enum "admobilize_vision.EnumDetectionTag" do
94
+ value :FACE, 0
95
+ value :HAND_THUMB, 1
96
+ value :HAND_PALM, 2
97
+ value :HAND_PINCH, 3
98
+ value :HAND_FIST, 4
99
+ value :PERSON, 5
100
+ end
101
+ add_enum "admobilize_vision.EnumDetectionAlgorithm" do
102
+ value :DEFAULT, 0
103
+ value :FIRST_ALTERNATIVE, 1
104
+ end
105
+ add_enum "admobilize_vision.EnumVideoCodec" do
106
+ value :UNDEFINED_VIDEO_CODEC, 0
107
+ value :H264, 1
108
+ value :MP4V, 2
109
+ value :RV24, 3
110
+ value :VP8, 4
111
+ value :VP9, 5
112
+ end
113
+ end
114
+
115
+ module AdmobilizeVision
116
+ Point = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.Point").msgclass
117
+ Rectangle = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.Rectangle").msgclass
118
+ FacialRecognition = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.FacialRecognition").msgclass
119
+ FacialRecognition::BasicFaceFeature = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.FacialRecognition.BasicFaceFeature").msgclass
120
+ FacialRecognition::Gender = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.FacialRecognition.Gender").enummodule
121
+ FacialRecognition::Emotion = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.FacialRecognition.Emotion").enummodule
122
+ VisionEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.VisionEvent").msgclass
123
+ RectangularDetection = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.RectangularDetection").msgclass
124
+ ImageList = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.ImageList").msgclass
125
+ Video = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.Video").msgclass
126
+ VisionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.VisionResult").msgclass
127
+ EnumFacialRecognitionTag = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.EnumFacialRecognitionTag").enummodule
128
+ EventTag = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.EventTag").enummodule
129
+ EnumDetectionTag = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.EnumDetectionTag").enummodule
130
+ EnumDetectionAlgorithm = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.EnumDetectionAlgorithm").enummodule
131
+ EnumVideoCodec = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.EnumVideoCodec").enummodule
132
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: vision_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'vision_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "admobilize_vision.VisionRequest" do
9
+ optional :image, :bytes, 1
10
+ repeated :detection, :enum, 2, "admobilize_vision.EnumDetectionTag"
11
+ repeated :recognition, :enum, 3, "admobilize_vision.EnumFacialRecognitionTag"
12
+ optional :image_list, :message, 4, "admobilize_vision.ImageList"
13
+ optional :video, :message, 5, "admobilize_vision.Video"
14
+ end
15
+ end
16
+
17
+ module AdmobilizeVision
18
+ VisionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admobilize_vision.VisionRequest").msgclass
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrix_creator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Nava
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-24 00:00:00.000000000 Z
11
+ date: 2017-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,30 +52,109 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: Write a longer description or delete this line.
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.48'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.48'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.14'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.14'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rbczmq
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.7'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.7'
111
+ - !ruby/object:Gem::Dependency
112
+ name: google-protobuf
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ description: |-
126
+ Abstraction level RubyGem for the MATRIX Creator device
127
+ to interact with its sensors and interfaces.
56
128
  email:
57
129
  - viko.nava@gmail.com
58
130
  executables: []
59
131
  extensions: []
60
132
  extra_rdoc_files: []
61
133
  files:
62
- - ".gitignore"
63
- - ".rspec"
64
- - ".travis.yml"
65
- - CODE_OF_CONDUCT.md
66
- - Gemfile
67
- - LICENSE.txt
68
134
  - README.md
69
- - Rakefile
70
- - bin/console
71
- - bin/setup
135
+ - config/matrix_creator.yml
72
136
  - lib/matrix_creator.rb
137
+ - lib/matrix_creator/comm.rb
138
+ - lib/matrix_creator/driver_base.rb
139
+ - lib/matrix_creator/everloop.rb
140
+ - lib/matrix_creator/everloop/animation.rb
141
+ - lib/matrix_creator/everloop/color.rb
142
+ - lib/matrix_creator/everloop/pulse.rb
143
+ - lib/matrix_creator/everloop/spinner.rb
144
+ - lib/matrix_creator/humidity.rb
145
+ - lib/matrix_creator/imu.rb
146
+ - lib/matrix_creator/pressure.rb
147
+ - lib/matrix_creator/uv.rb
73
148
  - lib/matrix_creator/version.rb
74
- - matrix_creator.gemspec
149
+ - lib/matrix_creator/vision.rb
150
+ - lib/protos/malos/driver_pb.rb
151
+ - lib/protos/vision/vision_pb.rb
152
+ - lib/protos/vision/vision_service_pb.rb
75
153
  homepage: https://www.vikonava.com/
76
154
  licenses:
77
- - MIT
78
- metadata: {}
155
+ - AGPL-3.0
156
+ metadata:
157
+ yard.run: yri
79
158
  post_install_message:
80
159
  rdoc_options: []
81
160
  require_paths:
@@ -95,5 +174,5 @@ rubyforge_project:
95
174
  rubygems_version: 2.6.11
96
175
  signing_key:
97
176
  specification_version: 4
98
- summary: Write a short summary, because Rubygems requires one.
177
+ summary: Library to communicate with Matrix Creator
99
178
  test_files: []
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.14.6
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at viko.nava@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in matrix_creator.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Victor Nava
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "matrix_creator"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)