Professional Documents
Culture Documents
com
ScienceDirect
Available online at www.sciencedirect.com
ScienceDirect
Procedia Manufacturing 00 (2019) 000–000
www.elsevier.com/locate/procedia
Abstract
There are many applications on using AR in supporting manufacturing and related areas ranging from designing, simulation, testing, repairing,
and maintenance. The objective of this research is to find the algorithm for measuring the size and find the shape of the room for facility
management using marker-based AR technology. The applications program was designed and developed using the Unity 3D game engine and
OpenCV library. It was designed to be used by many devices running on various operating systems such as Windows, OSX, iOS, and Android.
Test of the concept was done in three situations, i.e., three rooms with different sizes. The first room is the smallest one with the size = 25.245
m3. The second room is the biggest one with the size of 117.35 m3 and the third one with the size = 56.1 m3. The results calculating from the
distances of the markers show that the sizes of the space obtaining from the application are different from the manual measure less than 3%,
which means that the system can provide high accuracy in measurement.
© 2020The
© 2020 TheAuthors.
Authors. Published
Published by Elsevier
by Elsevier B.V.B.V.
This
This isisan
anopen
openaccess
access article
article under
under the CCthe BY-NC-ND
CC BY-NC-ND licenselicense (http://creativecommons.org/licenses/by-nc-nd/4.0/)
(http://creativecommons.org/licenses/by-nc-nd/4.0/)
Peer-review underresponsibility
Peer-review under responsibilityofofthethe scientific
scientific committee
committee of the
of the International
International Conference
Conference on Industry
on Industry 4.0Smart
4.0 and and Smart Manufacturing.
Manufacturing.
within the user’s view. In the case of marker-based AR, the 50% of the time on average in locating the operation
system needs to know where the user is and the position that destinations with the navigation function of their AR-based
the user wants to focus. One solution is to add a detectable fieldwork facilitator than with conventional methods [7].
pre-defined sign or “marker” in the environment and use Research on using AR for space measurement starts to grow
computer vision techniques to detect it, which is called due to the advancement of mobile hardware and application
“tracking.” The marker can be in the form of a 2D picture, QR software. Daponte et al. [8] presented the survey of
code, or 3D object. The function of the marker is to identify applications using the AR as the user interface of the
the position of the virtual objects to be displayed. In the case measurement system. The future trends for researches
of the markerless AR, the user can place the virtual object at oriented on the development of calibration procedures for
any position within the range of the camera view using a tracking systems are also discussed. Bergquist R. et al. [9]
combination of GPS and the compass sensor on the applied the ARKit device to measure surface areas by placing
smartphone as we have seen in the case of Pokémon Go [1]. anchors to mark an area to be measured. Even though the AR
Today, there is a new platform for markerless AR applications tool does not provide the same precision as manual
such as ARKit for iOS device and ARCore for Android measurements, but is still reasonably within boundaries if an
device, which simplify an AR app development. These two estimation is acceptable. Whitlock M. et al. [10] explores AR
platforms use data from a device’s motion sensor and camera interactions at a distance, measuring how applications may
to identify spatial movement across six axes. This allows support fluid, efficient, and intuitive interactive experiences in
virtual objects to remain accurately positioned in the real room-scale augmented reality.
world. With plane detection function, virtual items can be
placed onto surfaces in a realistic way [2]. These two Many software companies also start developing the
platforms seemed to be successful in term of entertainment application program for turning mobile devices into a
perspective but for space measurement, they are still far from measuring system [11, 12].
perfect [3]. The problems lie on the accuracy on determining
where the floor is. Technically the system can detect non- Usually, the research on AR application will emphasis on
uniform color floor but not uniform white floor, so it cannot tracking the marker’s position and then display the virtual
place the virtual model on the spot assigned. Since managing information at the location assigned. Tracking is a technique
the space required the distance from the wall to wall, that assists the camera in finding the orientation and position
anchoring the position on each end is necessary so marker- of the marker concerning the real world. In this research,
based AR is the suitable one. instead of using the information to display virtual objects, the
The AR measuring systems, not only can measure distance information of the markers, i.e., their position (x, y, z) and
but also generate the shape of the full dimension of the room their rotation axis, was used for calculating the space and
or any close space. The system can also measuring and shape of the room or container. With this concept, the facility
generate individual shape object such as parcel or pellet, management is more effective.
quickly and precisely making it perfect for warehouse
management too. In this research, AR measuring technology, 3. Methodologies
which is three-dimensional, non-contact measurement were
used for supporting space management in the manufacturing The objective of this research is to find the algorithm for
and logistic platform. measuring the size and find the shape of the room for facility
management using marker-based AR technology. This
2. Literature review process will involve designing the marker, tracking them, and
use the information acquired from them to calculate and
Various areas of research on using marker-based AR generate the shape and size of the room. Usually, there are
applications in manufacturing had been done in the past few many types of marker available but selecting the suitable
years [4]. Michalos G et al. developed an AR-based marker types depending on the system requirements [13]. In
application to support human-robot interactive cooperation in this case, the ArUco marker was chosen since they are
an automotive environment. Their objectives are to enhance suitable for our requirements in terms of reliability,
human safety and increase their productivity in an industrial robustness, and versatility. Besides that, their recognition is
environment, where robots co-exist with humans. The results speedy, with a low level of ambiguity in indoor environments.
indicate that the approach can significantly enhance the Also, the marker has been included within the last stable
operator’s working conditions and their integration in the version of OpenCV [14]. OpenCV (Open source computer
assembly process [5]. Aziz FA et al. [6] had developed an AR vision) is a library of programming functions mainly aimed at
platform to assist the automotive industry technician in the real-time computer vision. Usually, an ArUco marker is
inspection and maintenance process. After evaluation of the represented by the black and white square pattern of 7×7
effectiveness of the new implementing AR system compared block. The black border has a thickness of 1 block, so the
to traditional manual sheets inspection, the results indicate internal pattern is a sub-matrix is 6×6 blocks. When tracking,
that the AR system can reduce the processing time by 10.72 this pattern will represent the type of the marker. And the
percent. Lee S. and Akin O., who worked on developing AR- arrangement of the inner matrix box will represent the
based equipment Operations and Maintenance (O&M) location and the orientation of the camera in real-time.
fieldwork, reported that O&M field workers could save over
Salin Boonbrahm et al. / Procedia Manufacturing 42 (2020) 337–343 339
Author name / Procedia Manufacturing 00 (2019) 000–000 3
Step in tracking the marker can be divided into three steps: Since we want to find the distance between two positions,
1. Detection of Marker Candidates: In this stage, i.e., two walls of the room or two sides of the same wall, then
information from the camera will be analyzed to check the markers of the two positions must be collected or capture
whether there is a square marker or not using adaptive on the same picture. It will confirm that both positions are in
threshold technique and then filtered other information the same frame of reference. In each capture, data acquired
out except the marker from the picture using contour from the marker such as ID, position, and rotation angle will
filtering. be kept in the database for further analysis. In the case of a
2. Marker Analysis: In this step, the Otsu threshold small room where the two markers from the opposite wall can
technique was used for separating black and white bit. be captured at the same time, then data from both markers can
After calculation, the marker can identify whether its be kept in the database directly without any further
ID is in the database or not. modification. If the room is too big, then we have to place
3. Pose estimation technique: The technique used to another marker in between. In that case, we have to capture
estimate the position of the marker by combining the two times or more. First, capture the first two markers and
coordinate of the maker in the real world and the then capture another two with one marker from the first
virtual world. The process will give the position and capture must be in the frame. The common one will be used
rotation of the marker. as the reference or connector between the two captures.
After finished collecting all the data from the markers, the
Fig. 1 shows the output from the process and Fig. 2 shows system will put them into application database in the form of
the marker with the center of the pivot, which will detach with data set such as:
the marker even though it is moved or rotated.
Room = {{Left, Right}, {Left, Back}, {Left, Front}, {Left,
Floor}, {Floor, Ceiling}}
Each subset means one set of data from one capture. The
dataset from the common marker will be used as a connector
to another set of data.
(1)
Fig. 1. (a) Picture from camera; (b) after adaptive threshold and contour
filtering; (c) pose estimation.
(4)
(5)
where
W = width of the room,
XL = position of the left side marker in x axis, and
XR = position of the right side marker in x axis.
(6)
where
L = length of the room,
Fig. 3. Block diagram of the conceptual framework.
ZF = position of the front side marker in z axis, and
ZB = position of the back side marker in z axis.
4. Experiment setup
(7)
In this research, the applications program was designed
and developed using the Unity 3D game engine and OpenCV
where
library. It was designed to be used by many devices running
H = height of the room,
on various operating systems such as Windows, OSX, iOS,
YC = position of the ceiling side marker in y axis, and
and Android. Unity 3D is a cross-platform game engine which
YFl = position of the floor side marker in y axis.
can be used to create 3D, 2D, VR, and AR, as well as
simulations.
From the width, length and height, then simulation of the
room shape can be done easily.
4.1. Testing the prototype
3.6. Conceptual framework
For the process of testing, we are running the experiment
in three situations, i.e., three rooms with different sizes. The
The conceptual framework of this research is shown in Fig.
first room is the smallest one with the size = 25.245 m 3. The
3. From the conceptual framework, to find the distance
second room is the biggest one with the size of 117.35 m3 and
between two points, the camera must capture at least two
the third one with the size = 56.1 m3.
markers at a time. After checking whether they are markers,
then the system will check whether the pivot points are in the
4.2. Experiment on the real environment
same direction, which means that they are on the opposite side
of the wall. If so, then the system will calculate the angle of
Since the first room is quite small (width is only 1.8
the walls and the distance between the two walls. If the two
metre), the three markers can be captured at the same time
pivot points are perpendicular to each other, then another two
which means that the width of the room can be calculated
markers must be captured, and the distance must be combined
without further modification. Fig. 4 shows that the three can
with the first set to represent the distance between the walls.
be captured at the same time.
For the length, since the room has a long length compared
to the width, so it is impossible to use the mobile devices to
capture the markers on both side. In this case, we have to use
the connected marker as a bridge between two markers on
opposite sides. The example of the connected marker is the
marker on the floor in Fig. 4.
Salin Boonbrahm et al. / Procedia Manufacturing 42 (2020) 337–343 341
Author name / Procedia Manufacturing 00 (2019) 000–000 5
Fig. 4. Markers captured in room #1. With the same process, the shape and size of the second
room and third room can be calculated and simulated as in
After getting the position and the pivot axis of each marker Fig. 6 and Fig.7 respectively. Fig 8 shows the comparison of
as shown in Fig. 5, the width, length, and height of the room the 3D of these three rooms.
can be calculated from the equation (5), (6), and (7). The
model of each side of the room is shown in Fig. 6.