Beruflich Dokumente
Kultur Dokumente
Authors : T.K.S.Perera
Supervisors : Dr. (Mrs.) K.G.H.U.W.Ratnayake
Eng.G.Anthonys
automate the operations at the terminal gate of SLPA cargo depot. It has been developed
with the ultimate goal of automatically recognizing the Identification Number of shipping
Abstract............................................................................................................................1
Table of Figures...................................................................................................................2
1.1 Introduction....................................................................................................................3
1.2 Project Design............................................................................................................4
1.2.1 Event Flow Diagram...........................................................................................4
2.1 Image Acquisition Module .......................................................................................6
4.4.1 IR sensing Module..............................................................................................7
4.4.2 PC Interfacing Module......................................................................................10
Table of Figures
Figure 0-1
Figure 0-1.............................................................................................................................2
CNR System is designed to recognize and record the container identification numbers. It
facilitates and enhances management and operations of modern ports and container
depots. CNR System is an intelligent solution, ideal for today's container transport
management.
There initiates with an introduction about the overall application. It will continue with an
analysis of procedures being followed at the site, solution design details of CNR System.
According to the design of the CNR System software, following separate proceedings
could be identified. The diagram demonstrates those events and how they are
A
B IR Sens
C
JPG
Imag
Image
CNR System –Progress Report II 4
1.2.2 Component Diagram
The CNR System module is designed as a combination of several sub modules which are
handling the different combinations of functionalities of the above event flow. According
to the design of the CNR System application, it is divided in to two major modules called
To provide security features and to administrate the entire operation, there is another
module called CNR System admin. The categorization of events in to separate modules
• IR Sensor circuit
• Serial port
Image Acquisition Module
• Serial port listener
• Image capturer
• Image cropper
• Number separator Image Processing Module
• Character reader
• Database writer - Database Module
PC
Image Acquisition
Module Database
server
CNR
System
Update Admin
Database
This component diagram shows the main components of the system. Image
acquisition and Image processing modules are divided in to sub modules in the
implementation as desired.
• It has to recognize the arrival of a truck which carries a shipping container at the
• Then it should automatically capture an image of the front side of the container.
IR Sensor Module
PC Interfacing
Module
Image Capture
Module
For the recognition of container arrival at the gate CNR System has used an IR sensor
circuit module. This circuit has implemented with relevant techniques to differentiate
container has arrived at the gate the circuit sends a signal to the computer via the serial
port. CNR System is configured to use this signal as a triggering signal for the camera.
The camera is such that it gives a live video stream to the computer. So with the above
mentioned triggering signal from the IR sensor circuit, the software captures a still image
at that instance from the video stream and stores in the hard disk. This is handled via the
has arrived at the entrance to the port yard. Essentially this would be the main entry point
of the whole number recognition system. Therefore, this application makes use of an
An IR sensing circuit is located at the entrance to the container yard to detect the arrival
Therefore there exists an IR link which would be crossed if a container arrives and stops
at the entrance.
• 22 pF capacitors
• tsop1738 IR sensor
This micro controller is a powerful (200 nanosecond instruction execution) yet easy-to-
microcontroller packs Microchip’s powerful PIC architecture into an 18-pin package. The
same device can be used for prototyping and production and the end application can be
easily adapted for automotive, industrial, appliances low power remote sensors,
Figure
4.5 - Pin
diagram
of
PIC16F84A [25]
In this application, it was required to make sure that the system would be initiated
only if a container has approached the entrance to the port. That is, the Number
programming logic used was, when it is detected that the IR link has been
crossed, the program delays for a specific period (5 seconds in this case) and
then rechecks to see whether the IR link is still absent. If so, then conclude that
a container has arrived. The Programming source code for the PIC16F84A can
be found in Annexure A.
about the ways of interfacing the IR sensor circuit with the application. There were
several options.
First we researched about all these options and prioritize the options according to the
identified features and ease of use. According to the requirements of the application serial
The IR sensor circuit module is interfaced to the CARGOsys application via the Serial
Port (COM1). The triggering signal from the IR circuit is sent to the software through the
COM1 serial port of the personal computer. Therefore identification of this receiving
Communications Control.
The Communications control allows adding both simple serial port communication
communication device (a modem, for instance), issue commands, exchange data, and
monitor and respond to various events and errors that may be encountered during a serial
Therefore in our application we got use of the second point mentioned before. That is,
this control listens and monitors the serial port (COM1) for incoming data. In this
Communications control, we are issuing API functions, which are then interpreted by
The first step in using the Communications control is establishing the connection to the
serial port. The following table lists the properties that are used to establish the serial
connection: [26]
Properties Description
SetCommPort Sets and returns the communications port number.
SetSettings Sets and returns the baud rate, parity, data bits, and stop bits as a
string.
SetPortOpen Sets and returns the state of a communications port. Also opens
and closes a port.