Video capturing in J2ME

Four months ago, I planned to use J2ME-enabled mobile phones for my master thesis. The idea is to make some kind of virtual laser pointer, where you can point your mobile phone to a big screen during a presentation in order to control the cursor/pointer. The mobile phone, using its camera, captures the picture of the big screen, process the data, and calculate the position of your pointer. The mobile will send the data to the computer (via Bluetooth) and then the system change the pointer position based on where you point your mobile phone. Yup, it’s just like moving the red-dot-thingy-on-the-screen when you’re using the laser pointer.

 Pointer for presentation

Another important aspect is that more than one user can use this system. So, imagine more than one user were controlling several pointers on the screen. What can we create on top of this? Game (of course, it’s my first thought :) ), or a voting system (but my professor wants this), or other interactive multimedia application.

Game during cinema break? I don't think so...

I love programming using J2ME and I’ve been using it for more than 2 years. I think that there are more people using mobile phone rather than PDA and thinking the right market is an important aspect for me. PDA is more for business people, which means perfect for business related application but not for other stuff. Even for gaming (except for simple time-killer games like puzzle or card).

But, J2ME really did a great job in disappointing me. Let me tell you why.

No J2ME Phones can support video capturing

Theoritically, using MMAPI, you can record video, audio, taking snapshot, play MP3, and other stuffs which can take one page long if you list them. But after searching the Nokia fourm, Sony Ericsson, J2ME programmers, I found that most of the phones only support taking snapshot. If you try to record video by using the example source code from Sun’s WTK 2.2, then you’ll get error message.

The only hardware that support video recording is the very latest Sony Ericsson phone K610, and Nokia N-series. I couldn’t found about someone implementing it on these phones. Maybe the phones are too expensive for the programmers.

Not even the emulators…

Yup, not even the emulator can support REAL video recording. Yes, you can do video recording, but you can only record some randomly-generated-pixels. You CANNOT connect to your webcam, for example, to capture real life picture, neither for just taking photo. Actually, there is one emulator which allows you to capture video/image from your webcam (motorola iDen 850) but the resolution was very small (160×120).

How about just taking snapshots continously? 

I’ve tried that too. I made a single J2ME application for that purpose. When you press fire button on your joystick, it will capture several frames and show it to the screen. I tried it on Nokia N6600 and Sony Ericsson K750, one of the latest & widely used phones on the market. And guess the result…

It was too sloooooowwwwww

I got 2 frame per second. Yes, it’s TWO frame per second. And what I was doing is just capturing images continously. No image processing. No image transmission via Bluetooth. No complex calculation.

and many other limitations

You cannot change the image format freely. It really really depends on which formats that the hardware supports. For example, the Sony Ericsson K750 which I used, only allows you to take picture in JPEG format. You cannot cange the format to raw bitmap for increasing the speed.

You cannot draw something on top of your ‘viewfinder’ image. So, before you press the button to take photo, you can see this viewfinder. It shows you anything that gets through your camera lens. And you can make you J2ME application to show this viewfinder image which is automatically updated smoothly but however you can’t access it. It’s untouchable.

So.. 

I have to throw away my idea of using J2ME. In the end, I am just using my laptop connected to webcam. I use C# with Visual Studio 2005 Express Edition. Just enough for proof of concept.

Abi Amy Games is closed

Finally, I am done with Abi Amy Games closing page. I used Photoshop for the page layout, and Illustrator for the ‘door’ picture. Man, it’s been more than a year since I used Photoshop for slicing things.

Abi Amy Games is closed

Actually, this site has been inactive since 2004. I was quite sad for closing Abi Amy Games. I quited my job for doing the things that I love: making games (and play them too ;) ). We used J2ME when it was still the early version (MIDP 1.0). Buying fax machine for our small office. Dealing with person from the content providers. Finding artist for the game graphics. Aah, those lovely 2 years.

The business was never been profitable.

But I never regret my decision creating Abi Amy Games. I learn a lot. Really a lot. From the business part, management, how to deal and negotiate with other company, graphics and game design, until the technology part. But the most important is that I know what my dream is and I am not afraid to pursue it. Even if I fail, now or tomorrow, I will bounce and struggle back. Until I achieve my dream.

Under construction page

Finally I have finished the ‘under construction page’ for my personal website (http://abiyasa.abiamy.com). Using Adobe Illustrator and Microsoft Expression, I drew the boxes and the character, this Chibi Blue Guy. 

Blue Guy

Again, the design is not final yet so it will be changed. I plan to do everything in Flash format. But first, I have to finish the page for http://www.abiamy.com, the closing page. From here, my page will be linked.

 

Testing post on Abiyasa Blogs

I started Abiyasa Blogs on 1st of May. Now, I am in the middle of designing my personal webpage, which will be on http://abiyasa.abiamy.com (the link is not active yet). And this blog page is not final yet so the design will be changed later. Maybe I’ll change the theme, add more links and pages.

Why do I create another blog? Yup, although I already have a blog on my friendster (http://yellow_meong.blogs.friendster.com/) but this one will be different. First, it’s hosted on our own website so basically I can put anything on it :D  

Second, Friendster’s blog has one feature that I don’t like: everytime I post something, all my friendster friends will get a notification e-mail saying that I post something on my blog page. This one is really annoying me, although it’s useful when you want to announce something on your page.

So, what will be in here? another unreadble stuff? Nope, I’ll make it interesting. From simple stuff like everyday life until something requires more brain power.

Really ;)