Professional Documents
Culture Documents
Demonstrative Project 1: 1.1 Requirements
Demonstrative Project 1: 1.1 Requirements
000
001
002
Demonstrative Project 1
003
004 Arthur Reichert Costa - 16/0024277 Departamento de Ciência da
005 arreico@gmail.com Comptutação
006
Universidade de Brasília
007
Campus Darcy Ribeiro, Asa Norte
Brasília-DF, CEP 70910-900, Brazil,
008
009
010
011
Abstract
012
013 In this project a software tool capable of marking all pixels in an image, video frames
014 or video stream from a camera less than 13 shades apart from another pixel chosen by
015 the user in the color space was developed, according to four requirements stipulated.
016
017
018 1 Introduction
019
020 The work here presented aims to demonstrate the possibilities of image manipulation soft-
021 ware and the developments already accomplished by others to make the writing process of
022 such software as straightforward as possible. In order to attain this, there were four require-
023 ments specifying the behaviour of the software that was implemented, aiming to demonstrate
024 basic operations often performed while working with image processing and machine vision.
025 At last but not least, it is important to mention OpenCV, and open source software library
026 heavily used in the present work to achieve the goals set by the requirements.
027
028
029
1.1 Requirements
030 The software was required to:
031
032 • 1) Be capable of opening an image file and allow the user to click on any pixel of
033 the image and be informed of its coordinates and RGB values (or intensity, if it is a
034 grayscale image) on the console.
035
036 • 2) Upon selection of a pixel by the user, the software must check the image and mark
037 red all pixels which are less than 13 shades apart from the selected pixel in the color
038 space.
039
040 • 3) Display a video and do the same operations described in requirements 1 and 2 to all
041 of its frames.
042
043 • 4) perform the same operations required on item 3 to the stream of a webcam.
044
c 2018. The copyright of this document resides with its authors.
045 It may be distributed unchanged freely in print or electronic forms.
2 STUDENT ARTHUR R. COSTA: COMPUTER VISION ASSIGNMENT – SEPTEMBER 5, 2018
092
093
094
095
096
097
098
099
100
101
102
103 Figure 1: Program marking wih red all pixels within a range of 13 from a selected pixel in
104 color space
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Figure 2: Program marking wih red all pixels within a range of 13 from a selected pixel in
119
color space from a video
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134 Figure 3: Program marking wih red all pixels within a range of 13 from a selected pixel in
135 color space
136
137
4 STUDENT ARTHUR R. COSTA: COMPUTER VISION ASSIGNMENT – SEPTEMBER 5, 2018
4 Conclusions 138
139
The implementation of the software to comply with the requirements proposed was pretty 140
straightforward, using the classes and methods provided by the OpenCV library, since the 141
tasks were very simple. However, even using such a simple software as a tool and playing 142
with many images in it, one can notice a few interesting things. The author itself, for ex- 143
ample, tested many pictures with areas seemingly uniform in color, however, due to light 144
conditions and the very tight range adopted (13 out of 255 shades for each coordinate), the 145
software showed that such areas were not as uniform as previously thought, marking only a
146
small section of the area that the author thought was uniform.
147
148
References 149
150
1. https://docs.opencv.org/3.0-beta/doc/tutorials/core/how_to_151
scan_images/how_to_scan_images.html#howtoscanimagesopencv, 152
accessed at August 31st , 2018, by opencv.org 153
154
2. urlhttps://www.opencv-srf.com/2017/12/play-video-from-file-or-camera.html, accessed
155
at August 31st , 2018, by Shermal Fernando
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183