Phil 4:13
A verse to remember:
Philippians 4:13 (New International Version)
13I can do everything through him who gives me strength.
Amen!
Goodbye and A level results!
Hey!
Praise God! Results were very good. At least one less thing to worry about. He saw me through A levels. (:
Tomorrow I am going to serve the country in yet another way - ARMY! (: Will be enlisting soon. Looking forward to it! (:
Something I would like to share today:
8 He has showed you, O man, what is good.
And what does the LORD require of you?
To act justly and to love mercy
and to walk humbly with your God.
- Micah 6:8
Cya in 2 weeks' time! =D
Memories
2 More days to army. Here's some photos from the Teaching Internship Programme at Nanyang JC. Cheers!
PS All the best for results tomorrow!
FLaser on Youtube
Hi there,
Just posted 2 videos from my FLaser Ver 1.0 (2 years ago) on Youtube. You can view it here:
An excerpt:
Preamble:
This project proposes a cost-effective solution of interacting with a projector screen using a laser pointer, via an ordinary webcam.
The system was deployed and scripted in Flash Actionscript 3.0, back in Dec 2007 to Jan 2008.
It subsequently won the Most Innovative Award and Best Exhibit at the Singapore Shell Science Fair 2008, was shortlisted by MOE to represent Singapore in the Taiwan International Science Fair (TISF) 2008, in addition to being an exhibited finalist at the A*STAR Singapore Science and Engineering Fair (SSEF) 2009.
For more information, please checkout http://blog.joeltong.org/ .
Method:
The system comprises of a screen image from a projector. A webcam is positioned to track the projector screen area.
The steps for successful detection are as follows:
1. Calibration - 4 Red dots are shown on-screen. Thresholding red, the system is able to pick out the distance between the four red dots, demarking the tracked active area by the webcam. A ratio is then computed which is used to position the mouse.
2. A red laser dot is then shone onscreen. Minor adjustment knobs compensate for the offset in terms of the computed position of the laser dot and its actual position, similar to zeroing in using a crosshair.
3. The system is ready to track the laser pointer. In this case, a much high threshold is used, from the fact that red laser beams have a much higher intensity from the surrounding background.
System has been shown to detect laser dot despite showing red noise. However, alternative algorithms are being devised fo9r the system for better background noise tolerance.
Do checkout the version shown at Shell Science Fair @ LINK. System is targeted at rhe Flash platform, and for home users.
For more enquiries,
Email: me {at} joeltong {dot} org.
Thanks!
Best regards,
Joel Tong
http://blog.joeltong.org/
Radial Thresholding in AS3 (Webcam)
Perhaps one of the things I would like to do before NS - build a radial threshold filter.
Conventional threshold filters are constant throughout. This is means that if let's say the image threshold value is 170, then that threshold value is applied to the WHOLE image. That is pretty bad for some cameras.
Back when I was working on my DSI project, I suggested implementing a radial threshold. Bah, not enough time then. This time, modular approach, OOP-based, voila.
My aim is to implement a radial threshold with a 2D-based function. In some webcams, the distribution of light may not be even, even though it IS even. It's just picked up with bias. For example, let's say we want the threshold to be a logarithmic function. Then we would use y = ln (x) or something (sometimes this works especially if you want the threshold to level out sooner than later.
All we have to do is then input this expression into the code, then by doing per-pixel iteration, we would be able to map that certain value for the specific pixel with the corresponding threshold value onto the image. Now, in this case we will be plotting 2 graphs: one of the image and another of threshold versus the length of the line from the origin (centre of circle).
See the pic for more info
Hopefully I can make an implementation fast enough to be used for video manipulation in AS3 =D
Improved Image Viewer
Happy Chinese New Year!! Been dabbling around with my image viewer class during my free time in the past few days. Still purely AS3, albeit with more stuff like:
- Navigational bar
- Caption support
- Page left-page right flipping motion
- Varied animations to choose from. If you can't decide, leave it blank and it will randomize it for you.
- Quite dynamic, and (compiled in CS3) it's only 15kB! xD
- Auto screen-fit resizing
Screenshot as above! =D Enjoy!
So, proprietary or open-source? =D
Crossdomain.xml woes
Hey,
After much trying, it seems that there's not much that can be done implementing an online radio station player in Flash due to the security sandbox. Realised that crossdomain.xml has to be implemented on the radio station server's side, not mine. AKA, the best would be to run it in adobe Air or within the Flash IDE itself. =(
On a lighter note, I just passed my BTT. Meaning that I can commence my driving lessons. =D
Shall go read up on group theory for machine vision.
Rgds,
Joel Tong
FLaser
Hi,
Been busy the past few days trying to do a Ver. 2.0 of my Science Fair project. So original name from "STUDY OF LUMINOUS INTENSITY AND ITS APPLICATIONS IN LASER-AIDED VIRTUAL ON-SCREEN IMAGE INTERACTION SYSTEMS", changed it to FLaser. (Obviously, FL being Flash). xD
Managed to get clearance from my mentor @ A* STAR DSI to further develop it. You can read more of it here:
- http://temasek.wetpaint.com/page/DSI:+Creation+of+LASER-aided+virtual+on-screen+image+interaction+systems
- http://www.science.edu.sg/ssc/ssef-ats/publicview.jsp
Apparently, IHPC is doing something similar for the Mac called Lightdraw. Will see if I can port / improve some of the algos and source code in their project. Link here:
And something I stumbled upon for augmented reality in Flash (FLAR):
Pretty cool huh? =D
Cheers,
Joel Tong
Update on Today
Hey there,
Well spent some time looking at getid3() . Was trying to make a customized PHP to XSPF converter for Dingle using the getid3() package, but didn't manage to do so after staring 5 hours at the documentation. Haha. Probably would source for another library (if I have the time =P).
Anyways, came up with an auto-gen using PHP. So upload songs to directory, access localhost, and tada. =D
Anyone want to help convert the ID3 tags to XSPF format using PHP? PM me =D
See you @ the ASFUG meeting if you are going! It's this Sat.
PS Something to remember:
9 A man’s heart plans his way,
But the LORD directs his steps.
[Proverbs 16:9]
