Wednesday, October 24, 2007

Client & Server-side scripting update

Some update about the current state of our system. The client side is quite fully functional, on top of what has been built last week, the login and register and uploading and photo taking functions, this version allows the user to send the image of herself in the new outfit to her friend via email.

The integration of backend image processing and communication is still in progress. Just recieved the datapoint program (which detects 5 critical datapoints) written by Alvin last night and I'm now still trying to figure out the exec() function in PHP, it is still unable to run correctly. We will also have to change the plotting method use to generate the model.

_________________________________________________

Below are the more detailed description of the updated version:


1) Converting the the image of the dress-up model into picture for email


In order to convert the image in swf to jpeg, we need to convert the the movieclip into bitmapdata. Because the image created after the user has dress up herself is actually made up of many movieclips (the model, the head, the shirt and pants mask), we cannot simply convert/combine them into a single movieclip. A single movieclip is required so that we can use it to generate a bitmapData which can then be converted into jpeg using BitmapExporter (similiar to the one use for webcam pic function).

To resolve this problem, all the movieclips on the model were converted into bitmapdata. I have also written an pixel by pixel analysis in actionscript to read in the bitmapdata of each movieclip using bitmapdata's getPixel method. An invisible 1x1 pixel movieclip is created, which will scan through the whole area where the model is standing and help to detect which movieclip is on 'top', thus helps to return the correct RGB values. The RGB values are written into an 2d arrray which is then use to draw a new single bitmapData.


2) Email functionality

User can now send the image of herself and request some comment from her friends. I have tested out it localhost using ArgoSoft Mail server, below is the screen shot how it looks:



3) User can download of pattern card for printing. Below is the new patterncard with guided dotted lines:


4) Written scripts to handle the images uploaded, images taken via webcam and images created by user after dressing up in iApparel. The script is to convert the images with arbitrary name into correct naming convention.


5) New look for iApparel. Designed to fit into the Window Vista environment.

No comments:

Post a Comment