Está en la página 1de 7

LECTURA CON DRONES DEL MARCAJE EN CONTENEDORES

Autor: Valdelvira Isla, Ignacio


Directores: Pina Barrios, Rafael y Pina Muñoz, Álvaro
Entidad Colaboradora: Air Drone Logistics

RESUMEN DEL PROYECTO


extraer el marcaje, para posteriormente
I. Introducción transferirlo a la base de datos.

Los contenedores de mercancías son recipientes Con este proyecto, se pretende mejorar la
de carga para el transporte marítimo y terrestre eficiencia de los Centros de Logística, realizando
que pueden utilizarse para transportar objetos una tarea repetitiva de forma mucho más rápida
voluminosos o pesados: motores, maquinaria, y económica.
pequeños vehículos, etc.
Estos contenedores, antes de ser transportados a Para ello, se hace uso de dos tecnologías: la
sus lugares de destino, son almacenados en los visión artificial y los drones.
llamados Centros de Logística. En estos centros,
se guardan y se dan órdenes de salida para su
La visión artificial se define como la disciplina
distribución.
científica que incluye métodos de análisis y
captación de imágenes, con el fin de extraer
Los Centros de Logística presentan una continua información que un ordenador pueda interpretar.
entrada y salida de productos. Para su eficiente La visión artificial es una tecnología
funcionamiento, es necesario poseer información relativamente reciente que, debido su gran
en todo momento del flujo de movimiento y del abanico de aplicaciones en prácticamente
tiempo de estancia de los mismos. cualquier ámbito de la vida, se ha desarrollado
muy rápidamente generando un gran impacto en
Actualmente, en los Centros donde se destinan la sociedad.
los contenedores de mercancías esta actividad de
logística se realiza de forma manual. Un operario Otra nueva tecnología que, de igual manera, ha
anota, a mano, cada uno de los contenedores conseguido tener un gran impacto en diversos
presentes en el Centro de Logística en ese sectores de la sociedad ha sido el dron. Los
momento. A continuación, los transfiere a una drones domésticos y profesionales permiten
base de datos a partir de la cual se realizan las desplazarse a zonas inaccesibles por el ser
correspondientes tareas de distribución. humano, e incluso grabar o fotografiar esas zonas
Esta actividad puede resultar larga y tediosa, si se les añade una cámara.
además de poder conllevar a error, pues el ojo
humano acaba por fatigarse ante largas
Por lo tanto, un dron tendrá la posibilidad de
actividades repetitivas.
alcanzar grandes alturas, en las que un operario
requeriría de una herramienta para su elevación,
Este proyecto, pretende transformar el método de forma rápida y precisa, tomando fotografías a
para la realización de la actividad anterior una gran velocidad. Gracias a la estabilidad que
haciendo uso de la tecnología. Así pues, el proporcionan los drones actuales, las imágenes
objetivo de este proyecto consiste en la lectura pueden ser tan nítidas como las que realizaría una
con drones del marcaje en contenedores. cámara estable.

La actividad propuesta se realizará mediante un El marcaje de los contenedores de mercancías


dron teledirigido, que se desplazará por todos los está formado por los siguientes elementos:
contenedores disponibles en el Centro de Código BIC: Empresa propietaria del
Logística, realizando fotografías del marcaje que contenedor de mercancías.
los identifica. Una vez se ha obtenido un
Identificación: Conjunto de seis dígitos que
conjunto de imágenes, el algoritmo que se
define el contenedor.
desarrollará en este proyecto permitirá analizar y
Código de control: Dígito que se obtiene a partir ➢ Obtención de propiedades de los objetos:
de una serie de operaciones realizadas con el Se trata de propiedades de tipo morfológico,
Código BIC y la Identificación. El dígito tales como área, perímetro…
obtenido sirve a modo de verificación, siendo el
marcaje correcto si coincide con el Código de
➢ Reconocimiento: Se decide si es el
Control leído en la imagen.
elemento que realmente se buscaba, a partir
Medidas y Características: Irrelevantes para la de una serie de comprobaciones.
logística y no se leerán.

Basándose en este procedimiento, la metodología


para la consecución de los objetivos será la
siguiente:

➢ Familiarización con el lenguaje de


programación MATLAB y las Toolboxes de
Figura 1: Ejemplo de marcaje de contenedor
Image Processing y Computer Vision que
presentan funciones relacionadas con el
análisis de imágenes
Así pues, el objetivo de este proyecto será la ➢ Estudio de las técnicas de pre-procesado y
lectura del marcaje en contenedores, y este se búsqueda de texto en la imagen.
dividirá en varios subobjetivos que consistirán en Discriminación de zonas susceptibles de no
la lectura de cada uno de los elementos ser texto (Segmentación y propiedades)
anteriormente mencionados. o Técnica MSER [1]
Los objetivos perseguidos en este proyecto son o Técnica SWT [2]
los siguientes:
➢ Estudio de las técnicas para la lectura de
➢ Lectura de Código BIC texto
➢ Lectura de Identificación o OCR [3]
➢ Lectura de Código de Control ➢ Aplicación de las técnicas anteriores,
➢ Comparación Código de Control añadiendo algoritmos para la obtención de
obtenido a partir de Código BIC e cada elemento (Reconocimiento)
Identificación con el Código de Control o Lectura Código BIC
obtenido en la imagen
o Lectura de Identificación
➢ Exportación a base de datos
o Lectura de Código Control
o Unión de las partes

II. Metodología
III. Resultados

La visión artificial se define por una serie de


procesos o fases: El algoritmo para la obtención de marcaje de
contenedores desarrollado en este documento
consigue un destacable nivel de precisión ante
➢ Adquisición de la imagen: Se introduce la distintos grados de perspectiva y luminosidad.
imagen a analizar. Las fotografías se han tomado con el dron DJI
Phantom 2 provisto de una cámara GoPro Hero
➢ Preprocesado: Primer filtrado con el fin de 4.
mejorar la calidad de la imagen. Pretende
eliminar o minimizar las imperfecciones de
la misma

➢ Segmentación: Se buscan los objetos o


áreas de interés. Para ello, es necesario
conocer qué es lo que caracteriza a ese
elemento de interés con el fin de establecer
reglas geométricas u otros métodos que se
ajusten a sus características.
Figura 2: Imagen de partida
Partiendo de la imagen original, se realiza una Para poder conocer qué marcaje es el correcto, se
búsqueda de texto aplicando distintas técnicas y debe realizar el algoritmo para obtener los
reglas geométricas. Códigos de Control a partir del Código BIC y las
varias Identificaciones con el fin de compararlo
con los Códigos de Control obtenidos en la
imagen.

Se ha observado que en ciertas ocasiones puede


coincidir un Código de Control de la imagen
incorrecto con un Código de Control obtenido
mediante el algoritmo anterior. Cuando esto
ocurre, además de coincidir el incorrecto, por la
aplicación de otro filtro también lo hace el
correcto, por lo que se extraen dos marcajes. Este
Figura 3: Búsqueda de texto en imagen problema se puede solucionar eliminando el
incorrecto de la base de datos de forma manual.
Para la posible lectura de cada una de las
imágenes de entrada, es necesario realizar
distintos filtros con el fin de abarcar todos los Además, suelen producirse confusiones entre
tipos de luminosidad posibles en las fotografías. caracteres similares como el 5 y el 6, o la O y la
U. Estos hechos suelen solucionarse con la
aplicación de varios filtros en los que en uno de
ellos se lee de forma correcta, pero siempre
pueden surgir excepciones.

IV. Conclusiones

El proyecto expuesto nace con la finalidad de


sustituir el método anterior por el que un operario
tomaba nota a mano de cada marcaje para pasarlo
posteriormente a una base de datos. Con este
nuevo método, se reduce drásticamente el tiempo
de realización de esta actividad.
Figura 4: Aplicación de distintos filtros en la imagen
Una vez realizada la lectura, se compara con una El proyecto ha requerido la especialización en el
base de datos de todos los Códigos BIC software MATLAB y las Toolboxes
existentes hasta el momento [4] hasta encontrar correspondientes con funciones para el análisis
una coincidencia. Una vez se ha obtenido el de imágenes.
Código BIC, se conocen las coordenadas del
marcaje en la imagen, por lo que se realiza un
El algoritmo se ha desarrollado analizando los
zoom en esa zona para conseguir mayor
elementos que forman parte del marcaje y
precisión, y se repite el mismo proceso para los
estudiando factores tales como la luminosidad,
elementos restantes.
que pueden afectar a las imágenes.

Este proyecto pone de manifiesto la importancia


que ha adquirido la visión artificial en los últimos
años y la que seguirá teniendo en un futuro
próximo, con una cantidad de aplicaciones cada
Figura 5: Recorte de la zona de interés
vez más amplia.
Dado que se han aplicado distintos filtros con el
fin de abarcar todos los niveles de luminosidad Referencias
en la imagen, se obtienen un conjunto de
Identificaciones y un conjunto de Códigos de
Control (uno para cada filtro) algunos de los [1] VENK15 Text Detection On Scene Images
cuáles serán los correctos y otros no. Using MSER
[2] EPSH10 Detecting Text in Natural Scenes
with Stroke Width Transform
[3] HANS02 A Matlab Project in Optical
Character Recognition (OCR)
[4] Listado de Códigos BIC: https://www.bic-
code.org/
READING WITH DRONES OF CONTAINER MARKING
Autor: Valdelvira Isla, Ignacio
Directors: Pina Barrios, Rafael y Pina Muñoz, Álvaro
Collaborating entity: Air Drone Logistics

PROJECT SUMMARY
extract the markup of the container and add it to
the database.
I. Introduction
The aim of this project is to improve the
Shipping containers are cargo recipients for efficiency of the Logistics Centers, by
maritime and land transport that can be used to performing repetitive tasks much faster and more
transport heavy objects: engines, machinery, economically.
small vehicles, etc.
These containers, before being shipped to their Two technologies are used for this task:
destination, are stored in the so-called Logistics computer vision and drones.
Centers. In these centers, the containers are kept
Computer vision is defined as the scientific
until orders of distribution.
discipline that includes methods of image
analysis in order to extract information that a
The Logistics Centers present a continuous computer can interpret. Computer vision is a
entrance and exit of products. In order to make relatively recent technology that, due to the wide
an efficient logistics operation, it is necessary to range of applications that it has in practically any
have constant information about the inflow and area of life, it has been rapidly developed,
outflow and the stay of the containers. generating a great impact on society.

Nowadays, in the Logistics Centers for shipping Another new technology that has also had a great
containers, the activity of picking the information impact in various sectors of the society has been
about the flow is carried out manually. An the drone. Domestic and professional drones
operator takes notes by hand of each container allow us to move to areas inaccessible to humans,
present at the Center at that time. Then, he and even record and photograph those areas if a
transfers these notes to a database from which the camera is added to it.
corresponding distribution tasks are performed.
This activity can be long and tedious, as well as Therefore, a drone is able to reach heights, in
leading to error because the human eye which an operator would require a support for the
eventually becomes fatigued by long repetitive elevation, quickly and in a precise way, taking
activities. photographs at a great speed. Due to the stability
that actual drones have, the photographs can be
This project aims to transform the method for as well-defined as if it was taken from a fixed
picking the information about the flow of position.
shipping containers by making use of
technology. Therefore, the objective of this The marking of shipping containers consists of
project is to read with the use of a camera the following elements
attached to a drone, the marking of shipping
BIC Code: Company that owns the shipping
containers.
container.
Identification: Set of six digits that defines the
The proposed activity will be carried out by a container.
remote control drone which will fly in the
Control Code: Digit that is obtained from a
Logistics Center taking photographs of the
series of operations performed with the BIC
marking of the shipping containers. Once a set of
Code and Identification. The digit obtained
images has been obtained, the algorithm that will
serves as verification, being the marking correct
be developed in this project will analyze and
if it matches with the Control Code acquired in
the image.
Measures and Characteristics: Irrelevant for
logistics and will not be read. Based on this procedure, the methodology for the
achievement of the objectives will be the
following:

➢ Familiarization with the MATLAB


programming language and the Image
Processing and Computer Vision Toolboxes
that present functions related to image
Figure 1: Example of container marking analysis
➢ Study of the techniques of pre-processing
and search of text in the image.
Discrimination of non-text areas
Therefore, the objective of this project will be the
(Segmentation and properties)
reading of the marking of shipping containers.
This objective will be divided into several sub- o MSER technique [1]
objectives that will consist of reading each of the o SWT technique [2]
mentioned elements. ➢ Study of techniques for reading the text
The objectives pursued in this project are the
o OCR [3]
following:
➢ Application of the previous techniques,
➢ BIC Code Reading adding algorithms to obtain each element
➢ Identification Reading (Recognition)
➢ Control Code Reading o Reading BIC Code
➢ Comparison of the Control Code o Reading Identification
obtained from BIC Code and
Identification with the Control Code o Control Code Reading
obtained in the image o Union of the parts
➢ Export to database
III.Results

II.Methodology The algorithm for obtaining the marking of


containers developed in this document achieves
Computer vision is defined by a series of a remarkable level of precision in different
processes or phases: degrees of perspective and luminosity. The
photographs have been taken with the DJI
➢ Acquisition of the image: Input of the Phantom 2 drone equipped with a GoPro Hero 4
image to analyze. camera.

➢ Preprocessing: First filtering in order to


improve image quality. It aims to eliminate
or minimize the imperfections of the same

➢ Segmentation: The objects or areas of


interest are searched for. To do this, it is
necessary to know what characterizes that
element of interest in order to establish
geometric rules or other methods that fit its
characteristics. Figure 2: Input image

➢ Obtain properties: Obtain the properties


that define those objects. These are
properties of morphological type, such as
area, perimeter…

➢ Recognition: It is decided if that was the


element really wanted from a series of
checks.
Starting with the original image, a text search is Control Codes from the BIC Code and the
performed applying different techniques and various Identifications in order to compare them
geometric rules. with the Control Codes obtained in the image.

It has been observed that on certain occasions an


incorrect Control Code from an image may
coincide with a Control Code obtained by the
above algorithm. When this occurs, in addition to
the incorrect marking, by the application of
another filter, also the correct one is obtained, so
that two markings are extracted. This problem
can be solved by removing the incorrect one from
the database manually.

Figure 3: Text search in image In addition, there are often confusions between
similar characters such as 5 and 6, or O and U.
These facts are usually solved by the application
For the possible reading of each of the input of several filters in which one is read correctly,
images, it is necessary to apply different filters but exceptions can always arise.
in order to cover all types of possible luminosity
in the photographs. IV.Conclusions

The project was born with the aim of replacing


the previous method by which an operator took a
note of each marking by hand to pass it later to a
database. With this new method, the time of
accomplishment for this activity is drastically
reduced.

The project has required specialization in


MATLAB software and corresponding
Toolboxes with functions for image analysis.

The algorithm has been developed analyzing the


elements that are part of the marking and
Figure 4: Application of different filters in the image studying factors such as luminosity that can
affect the images.

This project highlights the importance that the


Once the reading is done, it is compared to a artificial vision has acquired in the last few years
database of all BIC Codes existent [4]. Once the and the one that will continue having in the near
BIC Code has been obtained, the marking future, with an ample amount of applications to
coordinates are known in the image, a zoom is come.
made in that area to get more accuracy, and the
same process of obtaining text is performed. References

[1] VENK15 Text Detection On Scene Images


Using MSER
[2] EPSH10 Detecting Text in Natural Scenes
with Stroke Width Transform
Figure 5: Cropping the area of interest
[3] HANS02 A Matlab Project in Optical
Character Recognition (OCR)
Different filters have been applied in order to [4] Listado de Códigos BIC: https://www.bic-
cover all the levels of luminosity in the image, a
set of Identifications and a set of Control Codes code.org/
(one for each filter) are obtained, some of which
will be correct and others will not.

In order to know what marking is correct, the


algorithm must be performed to obtain the

También podría gustarte