Due to the time constraints I decided to implement a simple camera to capture still shots in order to have a varied amount of multimodal features within my project. I used text tutorials to develop the function but I still came across many errors, I used the Android UI website as a guideline. Unfortunately when it came to implementing the code i found that websites such as Stack Overflow are very useful but do not cover the initial basics which is what I need. Within researching camera input tutorials for action script I came across a familiar website tutsplus.com. I have used t website to learn photoshop and illustrator methods of design but I have never used it for coding implementation. The website explains how to create a camera function from beginning to end, I found this tutorial much more effective as explanations of what was occurring were present; its good to be able to code but understanding the process makes it easier to tackle errors.
Code
Within the code of the camera I have allocated various functions in order to perform various tasks for the user. Before implementing any camera functions it was important to link the code to a camera in this case I was going to use the web cam on my laptop.
The get cam function is followed by the code of the capture button that takes the image and displays it within the camera view area as a preview section, useful for the users to see the image that they have taken. I then implemented a save and cancel option allowing users to save or cancel the image. The save button is currently not fully functional as it requires a server and connection to a server to store the images. Ideally when the app is complete the image will either save within the app or within the users technological device.
Design
The design is basic, this is a result of clashing errors between design and functionality implementation. I decided to ignore the design as the most important aspect is the functionality.
Output
I run the code on the web to see if there was some functionality working. Before being able to preview the application I came across a message notifying me that the code was trying to access the camera. I selected accepted from the options in order to view the results of my code.
Luckily after separating code from one another I had a working model as no other errors or conflicts were interrupting the functional ones. The image below is a print screen of the input camera working, at this time I wasn't looking my best so I decided to give my Alien a selfie:
Developer.android.com. n.d. Color | Android Developers. [online] Available at: https://developer.android.com/design/style/color.html [Accessed: 1 Feb 2014].
Ahmad, B. F. 2012. flex - Attach Camera with Flash Builder 4.6 - Stack Overflow. [online] Available at: http://stackoverflow.com/questions/10637718/attach-camera-with-flash-builder-4-6 [Accessed: 2 Feb 2014].
Scanferla, G. 2010. Create a Snappy Snapshot App with Flash Builder 4 - Tuts+ Code Tutorial. [online] Available at: http://code.tutsplus.com/tutorials/create-a-snappy-snapshot-app-with-flash-builder-4--active-3943 [Accessed: 3 Feb 2014].
Ahmad, B. F. 2012. flex - Attach Camera with Flash Builder 4.6 - Stack Overflow. [online] Available at: http://stackoverflow.com/questions/10637718/attach-camera-with-flash-builder-4-6 [Accessed: 2 Feb 2014].
Scanferla, G. 2010. Create a Snappy Snapshot App with Flash Builder 4 - Tuts+ Code Tutorial. [online] Available at: http://code.tutsplus.com/tutorials/create-a-snappy-snapshot-app-with-flash-builder-4--active-3943 [Accessed: 3 Feb 2014].




No comments:
Post a Comment