gesture based document reader(srs)v4

Upload: nafees-mushtaq

Post on 14-Oct-2015

46 views

Category:

Documents


0 download

TRANSCRIPT

IEEE Software Requirements Specification Template

Software Requirements Specification for G-Interface

Software Requirements SpecificationForThe G-Interface (Gesture based Document Reader using Leap Motion Controller)Prepared byAnus AhmadShahrukh NaseemZunaira Aleem27-Jan-2014

The number of smartphone users and mobile application offerings are growing rapidly. Smartphones are often expected to offer PC-like functionality, which requires powerful processors, abundant memory and long-lasting battery life. However, their hardware today is still very limited and application developers are forced to take these limitations into consideration. A number of service providers such Dropbox [1] and Zumodrive [2] provides online storage services to smartphone users in attempt to alleviate the limitations of smartphone storages. However, to the best of our knowledge, there is still no service that offers full computation resources to smartphone users. In this paper, we propose Virtual Smartphone over IP, which provides cloud computing environment specifically tailored for smartphone users. It allows users to create virtual smartphone images in the cloud and to remotely run their mobile applications in these images as they would locally. The motivation is to allow smartphone users to more easily tap into the power of the cloud and to free themselves from the limit of processing power, memory and battery life of a physical smartphone. Using our system, smartphone users can choose to install their mobile applications either locally .Table of ContentsTable of Contentsii1.Introduction11.1Purpose11.2Document Conventions11.3Intended Audience and Reading Suggestions21.4Product Scope21.5References32.Overall Description32.1Product Perspective32.2Product Functions42.3User Classes and Characteristics52.4Operating Environment52.5Design and Implementation Constraints52.6Use Case62.7Relation102.8User Documentation..102.9Assumptions and Dependencies103.External Interface Requirements113.1User Interfaces113.2Hardware Interfaces143.3Software Interfaces143.4Communications Interfaces154.System Features154.1Functional Requirements165.Other Nonfunctional Requirements175.1Performance Requirements175.2Safety Requirements175.3Software Quality Attributes17Appendix: Glossary19

Software Requirements Specification for G-Interface

iii

Introduction the next e slide he e has to call e someone or e come near e to the ekeyboard e himself e and e search the e specific key.Purpose An issue professional presenter often run into is that they are given a large stage, an eager audience, and a podium that they must stand by for the entirety of their presentation. He has to face many problems such as to move to the nexte slide he has to calle someone ore come neare to thee keyboarde himselfe and esearch thee specific key. Not only in presentation issues occurs while a person reading e-book, research papers, Document etc. Whenever page is end he has to search the mouse or keyboard to move to the next page or slide. In these problems the common factors are Interruption while presentation and Concentration diversion while reading. It seems like a presenter must choose between accessing the information on their slides and freedom of movement while presenting and reading. But no longer.The G-interface aim is to solve these problems by providing gesture based interface to the user. It allows user to bypass mouse and keyboard in favor of hand-waving control of application. Our system is fully based on human computer interaction and gesture recognition techniques. The purpose of our project is to develop gesture based interface of Document-Reader for the students, office person, and other presenters. For this purpose we would use Leap motion sensor which sense the motion through its three IR projector and two monochromatic cameras and provide us with depth images. On the basis of recognized gestures, this application will perform Document-Reader operations as well as control the mouse.Document ConventionsThe following document conventions are given below:

LEAP MOTIONMotion sensing device

The G-InterfaceGesture Based Document Reader

USE CASEA broad level diagram of the project showing a basic overview

INTERFACESomething used to communicate across different Mediums

DEPTH IMAGEDepth Images areviable representations that can be computed from the real world using cameras and/or other scanning devices.

MOTION SENSORDevice which determine the change in position of an object relative to its surroundings or the change in the surroundings relative to an object.

CMOSInfrared sensor

IRInfrared

Intended Audience and Reading SuggestionsThe different types of reader that the document is intended for:-

1.4.1 Developers1.4.2 Project manager1.4.3 Team Members1.4.4 The Project SupervisorProduct ScopeAutomatic recognition of gestures using computer vision, gesture recognition and human computer interaction is important for many real world applications such as sign language recognition, human robot interaction and medical imaging. We are going to develop a gesture recognition application for the students, office person, and other presenters. For this purpose we would use Leap motion sensor (Leap Motion product) which sense the motion through its three infrared LEDs projector (project infrared rays) and two monochromatic cameras and provide us frames. On the basis of these frames our application will recognize gestures for document-reader common functions such as: open file, print file, close file, scrolling, zoom in/out, Page up/down, Full screen mode, and mouse movement. These features help the use to interact efficiently and easily.1.4.1 Benefits

Human effort would be reduced. The system would not be dependent on any light constraint. Easy to use. This system would be used in universities, offices, and homes as well. This system would improve time efficiency.

1.4.2 Objectives, and goals

To develop a real-time gesture recognition system that provides Gesture based interface for Document-reader. Mouse Common functions on gestures. Document reader common functions on gestures. Reduce the effort and time of operating.

References

1.5.1. Mitra, Acharya,(2007): Gesture Recognition: A Survey ,IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICSPART C: APPLICATIONS AND REVIEWS, VOL. 37, NO. 3, MAY 2007 311.

1.5.2. Alen Stojanov. 2009 Gesture-based Human-computer Interaction, Electrical Engineering and Computer Science School of Engineering and Science (SES).

1.5.3. Xu Yan. 2011 Gesture-based Interaction and implementation for the future, Department of Computing Science Human Computer Interaction Computational Science and Engineering.

1.5.4. Yanghee Nam Recognition of Space-Time Hand-Gestures using Hidden Markov Model, Dept. of Computer Science Korea Advanced Institute of Science and Technologies 373-1, Kusong-dong, Yusong-ku Taejeon, Korea.

1.5.5. Sharad Vikram Handwriting and Gestures in the Air, Recognizing on the Fly, Science Division University of California, Berkeley.

1.5.6. Moniruzzaman Bhuiyan and Rich Picking Gesture-controlled user interfaces, what have we done and whats next?, Centre for Applied Internet Research (CAIR), Glyndr University, Wrexham, UK.

Overall DescriptionThis section will give an overview of the whole system. The system will be explained in its context to show how the user interacts with the system and introduce the basic functionality of it. It will also describe what type of stakeholders that will use the system and what functionality is available for each type of gestures. At last, the constraints and assumptions for the system will be presented.

Product PerspectiveThe G-Interface (Real time gesture recognition and gesture based Document Reader using Leap Motion controller) is our creativity. As we know that there are lots of problems during presentations and e-book reading facing by the students or other presenters. Our Product will help to use these tools efficiently and time saving.

Product Functions2.2.1. Document-Reader Common FunctionsDocument Readers common functions which are helpful during presentations and e-book reading such as open file, zoom in/out, exit, print, full screen view.

2.2.2. Mouse Common FunctionsMouse movement is very important function for this product to select the file, scrolling, dragging the page, clicking.

2.2.3. Gesture Recognition Gesture recognition pertains to recognizing meaningful expressions of motion by a human, involving the hands, arms, face, head, and/or body.2.2.1. 2.2.2. 2.2.3.

2.2.4. Gesture Manipulator Gesture manipulator is kind of separate page which have list of operations and predefined gestures are displayed. User can choose predefined gesture for specific operation. This feature helps the user to choose gesture according to his/her mind.

2.2.5. User Training and Mode Selection

User Training

This function will help the user to learn gesture for any specific operation of Document Reader. Animated clips are shown that will help the user to seek the perfect style of doing gestures.

Modes

There are two modes which are very useful for all kind of users such as those which have Leap motion controller and which have not, those who want to use mouse or not. (Manual/Gesture Mode, Mouse ON/OFF Mode). User Classes and CharacteristicsThis System will be used in Universities, offices and Homes etc.

2.3.1. Users Students Office Person Teachers Researchers2.3.2. Educational Level Understand English language (Read) Has little knowledge to operate computing device

2.3.3. Experience Has experience to operate normal Windows applications Operating Environment2.4.1 Application will be run on the windows 7 platform2.4.2 Leap Motion will be used for motion sensing 2.4.3 Computing machine will be used with following specification: AMD Phenom II or Intel Core i3 2GB RAM 512 MB Graphics Card USB 2.0 port

Design and Implementation Constraints2.5.1. System will be developed in C-Sharp2.5.2. English language will be used 2.5.3. The application will be run on Windows -7 (64bits) platform 2.5.4. The system will not have Interfaces to other applications2.5.5. Interface for operator will be simple and easy to operate

2.6 Use Case

Perform Gesture - Use CaseUse Case DetailsName:Perform Gesture

Actors:User

Entry Condition:Default activated

Exit:Application will exit

Flow of Events:

Quality:1. Application is start2. User performs gestures.3. System recognizes gestures.4. Application function against that gesture will be performed.Performed Gesture should be defined and perform correctly.

Image Acquisition - Use CaseUse Case DetailsName:Image Acquisition

Actors:Leap Motion Controller

Entry Condition:Default activated

Exit:Application will exit

Flow of Events:

Quality:5. Application is start6. Get frames.7. Send frames to application200 frames per second should be send to the computing device

Out of Range - Use CaseUse Case DetailsName:Out of Range

Actors:Initiated by Leap MotionExtend Image acquisition

Entry Condition:When hand is not present in the leap motions range

Exit:Hand is available in the range

Flow of Events:

Quality:1. Sensors are activated2. Hands not presentImage acquisition should be stopped less than defined time.

Recognize Gesture - Use CaseUse Case DetailsName:Recognize Gesture

Actor:Computing machine

Entry Condition:When hand gestures will be detected

Exit:Gesture recognized

Flow of Events:

Quality:1) Acquire frames.2) Symbol detection.3) Comparison with defined gestures.Efficient mapping on gestures.

Defined Gestures - Use CaseUse Case DetailsName:Defined Gestures

Actors:Initiated by computing machine

Entry Condition:When Hands Gestures are detected

Exit:Defined gesture is countered

Flow of Events:

Quality:1) Acquire frames.2) Symbol detection.3) Comparison with defined gestures.Specific Event will be perform accurately.

Perform PDF Events - Use CaseUse Case DetailsName:Perform PDF Events

Actors:Computing machine and User

Entry Condition:Specific PDF gesture will be performed

Exit:Specific PDF gesture will not be performed

Flow of Events:

Quality:

1) Acquire frame.2) Specific PDF gesture recognized3) PDF operation will performedOperation will performed efficiently

Hand Detection - Use CaseUse Case DetailsName:Hand detection

Actors:User and Computing Machine

Entry Condition:When user place hand on leap motion device.

Exit:User exit.

Flow of Events:

Quality:1) When user place hand on device computing machine start detecting hands. 2) Application functions will be performed.

Events - Use CaseUse Case DetailsName:Events

Actors:User and Computing Machine

Entry Condition:Specific Gesture is performed and recognized

Exit:No gesture recognized

Flow of Events:

Quality:

Flow of Events:Quality:

System Down - Use CaseUse Case DetailsName:System Down

Actors:Extend from whole system

Entry Condition:Uncertain thing will happen

Exit:

Flow of Events:Quality:

0. 0. User Documentation2.6.1. User Manual (Hardcopy) Instructions to install software Instructions to install Leap Motion Precautionary Measures2.6.2. Tutorial (Electronic copy PDF format) How to operate software0. Assumptions and Dependencies2.7.1 Hands will be in the range (upto 1 meter) of device 2.7.2 Device will be placed at the middle-front of the screen2.7.3 System will recognize gesture of one person at a time2.7.4 Device will be connected on USB 2.0 port2.7.5 It will always be used on windows 7 that have enough performance.2.7.6 Leap motion device surface should be cleaned from dirt and smudge.2.7.7 Leap Motion Driver must be installed.1. External Interface Requirements1. User Interfaces3.1.1 UI will be simple3.1.2 Light colors will be used 3.1.3 First window of users information which will have following things:3.1.4 In first window operator will have the User Guide When user press the user guide button a new window will be appeared which have the following attributes:- How to place Leap motion device What sequence of steps should be followed What would be the Impact of each button and each filed on the system Precautions for working with system

Animated clips of gestures with their specific operation.

Document ViewButtons PanelMode-1Mode-2User GuideStatus PanelGestures ManipulatorFigure 1

Figure 2Helpful InformationGesture guidance User GuideStatus PanelBACK

3.1.5 When operator press the Mode -1 (Manual / Gesture) button. As a default Gesture mode is activated. In this mode leap motion Controller will be initialized and start to give frames to the application. If manual mode is activated then simple mouse attached with you computer will work.0. When operator press the Mode -2 (Mouse on Gestures ON / OFF) button. On turning button ON user can use mouse by using leap motion controller. On turning button OFF user can use its simple mouse that is attached with its computer.

3.1.7 Button panel have following buttons and their functions:-

Open file button will help the user to open file manually using attached mouse. Print button help to print the document. Full screen view button will help for the giving presentation. Page up/down button use for movement of pages up and down.1. 2. 3. 3.1. 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 3.1.8 Document View will show the opened file. 3.1.9 Gesture interface use gestures for the following functions:-

For Scrolling: Hand move up and down. For Zoom in/out:Pinch in/out. For moving cursor: usethumbwith index finger. For click:thumb join with index finger. For next page:swipe right to left. For previous page:swipe left to right. For open file:Circle Right. For close Application: Circle left. For print the PDF file: 4 finger swipe to right. For Full screen mode: 2 hands above leap motion. For Close Full Screen mode: hand close.3.1.10 Status panel will display the following attribute:- Display the leap motion is Initialized status. Display which mode is selected. Display leap motion start working status.

Figure 3Gesture ManipulatorStatus PanelOperations listPredefined Gestures listBackAPPLY

3.1.11 Gesture Manipulator is a feature page have following attributes:- In the left side Mouse and document reader common functions are written in the list form. In the right side drop down menu available with predefined gestures. User can select gesture according to his own choose from the predefined gestures. Status panel display the change. When the user define all the gestures then it will apply press the apply button for apply changing.1. Hardware Interfaces3.2.1 Leap Motion Controller3.2.2 USB Cable3.2.3 Computing Machine with following specification: Intel Core i3 2GB RAM 512 MB Graphics Card USB 2.0 port1. Software Interfaces3.3.1 Microsoft visual studio 20123.3.2 Windows Platform (All)3.3.3 Microsoft Office 2010 or latest3.3.4 Adobe Photoshop CS53.3.5 .Net Framework version 4.0 or latest3.3.6 Adobe Flash version 11.03.3.7 Windows Installer 3.1 or latest3.3.8 Microsoft Direct X version 11.0 or latest1. Communications Interfaces3.4.1. Leap Motion device will be communicating with the computing machine via USB 2.0 port.1. System FeaturesThis section will give an overview of the Functional and non functional requirements. The system will be explained in its context to show what the things customer wants are and what are the things which are placed in functional requirements.

2. Functional Requirements

4.1.1 Gestures will be defined to perform Document Reader functions. For next page:swipe right to left.System should do next page function when userswipe hand right to left with four fingers open. For previous page:swipe left to right.System should do previous page function when userswipe hand left to right with four fingers open. For open file:Circle Right.Open file dialogue box should appear when user do circle right gesture with four fingers open. For close Application: Circle left.Application should be close on Circle left gesture with four fingers open. For print the PDF file: 4 finger swipe to right.Print dialogue box should be appear on 4 finger swipe to right gesture. For Full screen mode: 2 hands above leap motion.Application should go on full screen mode when user perform 2 hands above leap motion gesture. For Close Full Screen mode: hand closeFull screen mode should be close on hand close gesture.4.1.2 PDF file should be open to perform the gestures and use the function.4.1.3 File open dialogue box should appear when user select file open option.4.1.4 User should enter a correct file path, name and extension to open a PDF file.4.1.5 System will only work on PDF format files.4.1.6 System should have user guidance for doing gestures and usage information.4.1.7 When gesture is performed system should perform operation in real time and accurate.4.1.8 The system should do nothing on those gestures which are not predefined in the system. 4.1.9 If the Leap motion controller is not attached then system should give alert to the user in the status panel.4.1.10 Identifying the common gestures or hand movements to be captured.4.1.11 Designing a user interface which allows to perform functions of document reader. 4.1.12 Only one user should use the application at a time.4.1.13 Only two hands should be detect by system.

1. Other Nonfunctional Requirements

3. Performance Requirements5.1.1. Leap motion will perform operation on gesture within 10 seconds. 5.1.2. Device will recognize the gesture in seconds as it gives 200 frames per seconds.5.1.3. The Leap Motion Controller senses almost every little move they make, and every big one, too.5.1.4. User does not need any light while operating. 5.1.5. Easily moveable and there is no specified distance where we have to place the device. 5.1.6. Some change as according to the human that hands of one person is different from the other so the system is specified to detect the gesture and respond.5.1.7. It is precisely about accuracy, leap motion tracks 10 fingers up to 1/100th of millimeter. Its dramatically more sensitive than existing motion control technology.

3. Safety Requirements5.2.1. Leap motion device should be placed or hanged in a proper and safe place to avoid any damages. 5.2.2. Leap motion device should be placed or hanged in that area where the temperature condition is normal because Sensors would be affected by the temperature more than 30 C.5.2.3. Operational environment will not be humid

3. Software Quality Attributes5.3.1. AdaptabilitySystem is adoptable in terms of it can be used in Office, homes and Universities.

5.3.2. Availability When we use the G-interface for all time sensors will be available for gestures.

5.3.3. Interoperability The system is being made Interoperability.

5.3.4. MaintainabilitySystem will be maintainable and changes can be made if the system required.

5.3.5. PortabilitySystem will be portable in terms of it can be run on any computing machine having defined specifications. System with operating system windows 7. Dual Core 2.66 GHz processor. 2GB RAM. 512 MB Graphics Card.

5.3.6. ReliabilityThe system is reliable as what the gesture recognizes for the first time it recognizes again the same gesture and performs the same function. And (Document Reader) the smooth exchange of ideas and information.

5.3.7. TestabilityThe system being proposed is testable.

5.3.8. Modifiability System is modifiable in terms of new gestures can be added to the system and unwanted gestures can be deleted too so it would be modifiable.

5.3.9. Usability Interface of system is easy to use and for improving the usability help will be provided.

Appendix: GlossaryThe G-interfaceGesture based Document reader

SDPSenior Design Project

DFDData flow diagram

SRSSoftware Requirement Specification

XMLExtended Markup Language

UserStudents, Office person or Teachers

Leap MotionMotion sensing device

Monochromatic camerasA camera whose range of color consists of shades of a single color or hue.

USE CASEA broad level diagram of the project showing a basic overview

INTERFACESomething used to communicate across different Mediums

DEPTH IMAGEDepth Images areviable representations that can be computed from the real world using cameras and/or other scanning devices.

MOTION SENSORDevice which determine the change in position of an object relative to its surroundings or the change in the surroundings relative to an object.

CMOSInfrared sensor

IRInfrared

Testing: Test Case:Test Case #: 1.1 Test Case Name: Invalid File nameSystem: The G-Interface Subsystem: FormDesigned by: Design Date: Executed by: Execution Date: 26/05/2012

Short Description: Test the invalid file name

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Perform file open gestureFile open dialogue box should appear.

2Type invalid file nameData will be written in the file name data field

3Click on OK buttonSystem will give error of invalid file name or file not found..System will give error of invalid file name or file not found.

Post-conditions1. System will show the error.2. System will show the same dialogue box again.

Test Case #: 1.2 Test Case Name: Invalid File extensionSystem: The G-Interface Subsystem: FormDesigned by: Design Date: Executed by: Execution Date:

Short Description: Test the invalid file extension

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Perform file open gestureFile open dialogue box should appear.

2Type invalid file extension.Data will be written in the file name data field

3Click on OK buttonSystem will give error of invalid formatSystem will give error of invalid format.

Post-conditions1. System will show the error.2. System will show the same dialogue box again.

Test Case #: 1.3 Test Case Name: For next page:swipe right to leftSystem: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: For next page:swipe right to left

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Perform swipe right to left gestureDocument should move to the next page.

Post-conditions1. System will move to the next page.

Test Case #: 1.4 Test Case Name: For previous page:swipe left to rightSystem: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: For previous page:swipe left to right

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Perform swipe left to right gestureDocument should move to the previous page.

Post-conditions1. System will move on previous page.

Test Case #: 1.5 Test Case Name: For open file:Circle Right.System: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: Open file dialogue box should appear when user do circle right gesture.

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Circle Right. Gesture with four fingers.Open file dialogue box should appear.

Post-conditions1. System will show the open file dialogue box.

Test Case #: 1.6 Test Case Name: For print the PDF file: 4 finger swipe to right.System: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: Print dialogue box should be appear on 4 finger swipe to right gesture.

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

14 finger swipe to right.Print dialogue box should be appear.

Post-conditions1. System will show the print file dialogue box.

Test Case #: 1.7 Test Case Name: For Full screen mode: 2 hands above leap motion.System: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: Application should go on full screen mode when user perform 2 hands above leap motion gesture.

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

12 hands above leap motionApplication should go on full screen mode.

Post-conditions1. Application will go on full screen mode.

Test Case #: 1.8 Test Case Name: For Close Full Screen mode: hand closeSystem: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: Full screen mode should be close on hand close gesture.

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1One hand close gesture.Full screen mode should be close.

Post-conditions1. Application will go on normal screen mode.

Test Case #: 1.9 Test Case Name: For Print fileSystem: The G-Interface Subsystem: Designed by: Design Date: Executed by: Execution Date:

Short Description: File should be Print.

Pre-conditionsNone

StepAction Expected system responsePass/Failcomment

1Perform print file gesturePrint dialogue box should appear.

2Set printer.Printer will be set for print.

3Click on OK buttonSystem will print the file

Post-conditions1. Application will print the files.