You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old image on camera Canvas - 2006-07-06, 16:53

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
how can i put an image on the camera canvas i think the image should be transparent how can i do it while i am using VideoController.setFullScreen(true); i want an image to be shown on camera canvas and the remaning should be the camera canvas please help me to solve that its urgent.
Regards,
M.Shouab
Reply With Quote

#2 Old Re: image on camera Canvas - 2006-07-07, 23:22

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
If you want to overlay an image on top of the video or still images, you have to wait until JSR-234 (Advanced Multimedia Supplements API - more specifically camera features) is available on handsets. OverlayControl is the one you are probably looking for.

See a earlier thread here
http://discussion.forum.nokia.com/fo...ad.php?t=76327

Hartti
Reply With Quote

#3 Old Re: image on camera Canvas - 2006-07-11, 12:22

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
this thing is present in 6600 and and samsung x700 and these phones does not support overlay so how they achieve this any clue.
Regards
Muhammad shouab
Reply With Quote

#4 Old Re: image on camera Canvas - 2006-07-11, 15:01

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Muhammad,

guessing from what Hartti posted that's not possible on Nokia devices,
in MIDP/JSR specification is noted that even if you can draw camera over canvas (direct mode) it's not guaranted that you will be able to draw something over video content because that all up to device manufacturer how to implement that (if choose to support or not),
So that's how things are with current implementat of mobile media, but will change with future implementation (again what Hartti pointed),
regards,
peter
Reply With Quote

#5 Old Re: image on camera Canvas - 2006-07-11, 16:15

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
but wht about the applications in nokia 6600 is it possible in native code like c++ if it is then please provide me some link how to start development with symbian regards
Muhammad Shouab.
Reply With Quote

#6 Old Re: image on camera Canvas - 2006-07-11, 18:15

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Muhammad,
i'm not C++ coder,
could be possible or not, here is similiar discussion on Symbian section:
http://discussion.forum.nokia.com/fo...ad.php?t=68270
I've remember similiar example from Sun WTK 2.5 samples (get video shapshot to image and then do anything you want with that image, but that's not the same as real-time overlay over video player/canvas,
regards,
Peter
Reply With Quote

#7 Old Re: image on camera Canvas - 2006-07-12, 11:58

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
will you please send me some sample code how it can be achieved through JSR 234 or some link where i can found this thanks in advance.
Regards,
Muhammad Shouab
Reply With Quote

#8 Old Re: image on camera Canvas - 2006-07-12, 17:07

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

SUN WTK 2.5 beta comes with example codes for JSR-234:
http://java.sun.com/products/sjwtool...nload-2_5.html
Nokia Prototype 4 also supports that JSR:
http://www.forum.nokia.com/main/0,6566,034-761,00.html
and that recent doc from nokia comes with complete documentation for that JSR:
online:
http://www.forum.nokia.com/ME_Develo...ary/index.html
download:
http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

Note that there is no phone with that JSR from Nokia yet, as Hartti posted, so you can use emulators only,

hth,
regards,
peter
Reply With Quote

#9 Old Re: image on camera Canvas - 2006-07-13, 14:56

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
Hi peter,
thanks for your reply i have downloaded the SDK4.0 i am using Eclpise as IDE and its plugin EclipseME for J2ME development .i want to use jsr 234 feature but still its unable to compile the code wht should i do its cannot compile
statement import javax.microedition.amms;

what should i do please its urgent.
the problem i configured is that when i select nokia SDK 4.0 it does not pick the amms.zip i am sick of that what should i do please recomend some thing.
Regards ,
Muhammad Shouab
Last edited by mshouab : 2006-07-13 at 16:52.
Reply With Quote

#10 Old Re: image on camera Canvas - 2006-07-13, 19:43

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Muhammad,

well, please do not start separate thread or new thread about the same question,
you've already asked about that here:
http://discussion.forum.nokia.com/fo...ad.php?t=84773

regards,
Peter
Reply With Quote

#11 Old Re: image on camera Canvas - 2006-07-13, 20:04

Join Date: May 2006
Posts: 17
mohsin.sohail
Offline
Registered User
Hello Shoab,

I see your interested in overlaying one image on another. I have done some very similar to this.

1. By using CFbsBitmap I use Primitives such as setRect or DrawRect to draw whatever I want on top of the camera captured image. hence overlaying or mapping anything I want on the desired camera captured image. In order to perform things like this you have to study the SDK for Symbian Nokia FP2. Search for CFbsBitmap.

2. Another neat trick is to use OpenGL ES ( http://www.khronos.org/opengles/1_X/ ) for texture mapping. So you can load the image you want to overlay in a CFbsBitmap, keep it as a PixMap surface using OpenGL ES and then map it on anything else using OpenGL ES primitives which you read about here ( http://www.khronos.org/opengles/docu...tml/index.html ). You might want to start by studying the OpenGL ES examples provided with Symbian SDKs for example the simplecube example. I was able to capture show images from the cellphone camera and was able to render a moving and rotating cube on top of it. It looked really cool.

Hope this helps.

Mohsin
Reply With Quote

#12 Old Re: image on camera Canvas - 2006-07-14, 17:59

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
hey is there anyone give me some tutorial about JSR234 specially on overlay or any one who tried some example regarding that i am sick of that now there is nothing except its specification i have tried one example but when i add an image to overlay it does not show any thing on the canvas screen. please help me out or refer me some link to tutorial or something about JSR234 specially regarding about overlays.

Thx sohail but i want it on J2ME platform not on symbian thx alot.

Regards,
Muhammad Shouab
Reply With Quote

#13 Old Re: image on camera Canvas - 2006-07-14, 19:01

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Muhammad,

have you looked into mentioned few times Sun WTK 2.5 samples already?
it contains various samples in advanced multimedia suplements folder,
for example if I remember well ImageEffectMidlet (or simliar name) which shows exactly what you want: Overlay effects, transposition, filters, etc,

hth,
regards,
peter
Reply With Quote

#14 Old Re: image on camera Canvas - 2006-07-14, 21:21

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Hi Muhammad, there will be AMMS tutorials on Forum Nokia in the future, but not yet as those features are not yet available on real devices. I hope WTK samples help you in your development efforts.

Hartti
Reply With Quote

#15 Old Re: image on camera Canvas - 2006-07-24, 11:06

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
i have done this through overlayControl if anyone intrested please post a reply or can contact me.

Regards,
Muhammad Shouab
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Nokia N-Series Complete Model Line-Up Dopod General Discussion 6 2008-07-22 21:16
Camera API on Symbian 9.1 (Nokia N80) srigans1 Symbian Media (Graphics & Sounds) 4 2007-10-20 06:31
Waiting for capturing and saving the image by camera sjsahu General Symbian C++ 2 2006-03-08 12:36
Mixing and Synchronizing Camera Frame image with Off-Screen Bitmap... zenitum Symbian Media (Graphics & Sounds) 0 2004-12-01 08:24
Saving an image from the camera as JPEG profoundwhispers General Symbian C++ 1 2004-10-18 10:35

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia