Home » Developer & Programmer » Forms » Capture image throug webcam  () 1 Vote
Capture image throug webcam [message #267972] Mon, 17 September 2007 00:35 Go to next message
niva2004
Messages: 15
Registered: October 2006
Location: Cochin
Junior Member
How can i capture an image using webcam connected to my PC
and show that in the image item in my d2k form 6.0.I want to get the function in a when button pressed trigger.
Re: Capture image throug webcam [message #268242 is a reply to message #267972] Tue, 18 September 2007 00:56 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Did your webcam come with a CD/DVD containing an API for the camera?

David
Re: Capture image throug webcam [message #269191 is a reply to message #267972] Fri, 21 September 2007 01:38 Go to previous messageGo to next message
niva2004
Messages: 15
Registered: October 2006
Location: Cochin
Junior Member
Got the Solution!!!

Place an activeX control in the form
right click on it and select insert object
select kodak image scan control.
From the program menu import the ole library inerfaces for the kodak image scan control.
place an image item on the form to which the scanned image is to be displayed.This item should be a database item of type long raw.
in when_button_pressed trigger of a button write the code

:global.x:=:item('identity_pass.ACTIVEX_CONTROL10').interface;
Imaging_DImgScan.FileType(:global.x, 3);
Imaging_DImgScan.Image(:global.x, 'C:\album\123.bmp');
:global.a:=Imaging_DImgScan.OpenScanner(:global.x);
:global.c:=Imaging_DImgScan.StartScan(:global.x);
:global.d:=Imaging_DImgScan.StopScan(:global.x);
:global.e:=Imaging_DImgScan.CloseScanner(:global.x);

READ_IMAGE_FILE('C:\album\123.bmp','BMP', 'identity_pass.photo');

this will display the image and then save to store the image in the oracle database.


Re: Capture image throug webcam [message #269619 is a reply to message #269191] Sun, 23 September 2007 21:47 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Thanks for posting this information.

David
Re: Capture image throug webcam [message #277242 is a reply to message #267972] Mon, 29 October 2007 05:29 Go to previous messageGo to next message
alijeyan
Messages: 184
Registered: January 2007
Location: IRAN
Senior Member
Hi all

where can i get active x control of webcam for developer 6i ?
is any one has active x control example with webcam in developer 6i. please send me TOO .

ThanQ
Re: Capture image throug webcam [message #277393 is a reply to message #277242] Mon, 29 October 2007 22:10 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What do you need extra to the information supplied above?

David
icon7.gif  Re: Capture image throug webcam [message #291786 is a reply to message #277242] Sun, 06 January 2008 22:14 Go to previous messageGo to next message
AYYAD
Messages: 2
Registered: December 2007
Location: UAE
Junior Member
Thanks David for posting this information.
BUT I NEED USED IMAGE IN FORMS 10G.


Re: Capture image throug webcam [message #292404 is a reply to message #291786] Tue, 08 January 2008 21:36 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I repeat "Did your webcam come with a CD/DVD containing an API for the camera?"

Read the 'webutil' documentation with specific attention to the 'api' area.

David
icon5.gif  Re: Capture image throug webcam [message #415770 is a reply to message #267972] Wed, 29 July 2009 04:26 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Hi all ,,
I used good solution of niva2004 in a 6i form.
At run-time was happened an error related to this line

:global.x := :item('myblock.my_activex').interface;

errors =>
1) FRM-41344 :OLE object not defined for my_activex in the current record

2) FRM-40738 :Argument 1 to builtin SET_OLE can not be null

please help me principally niva2004.Question Question
Thanks in advance.
Re: Capture image throug webcam [message #416042 is a reply to message #267972] Thu, 30 July 2009 04:44 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Hi all,
my problem had been solved.
i haven`t any image field on the my block and data base.
instead of it ,i want save scaned images on the hard disc.
my form hasn`t any error ,
But , scaned image don`t save in "D:\test.tif".[my temp dir]

can any one help me?

[Updated on: Thu, 30 July 2009 04:51]

Report message to a moderator

icon5.gif  Re: Capture image throug webcam [message #416103 is a reply to message #267972] Thu, 30 July 2009 08:44 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Hi,all
Are there any function or ... to set some properties to activex(OCX) or OLE-objects ? Question Question Question
i`m too tired ....Exclamation
Re: Capture image throug webcam [message #416154 is a reply to message #416103] Thu, 30 July 2009 20:45 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please explain this line:
:global.x := :item('myblock.my_activex').interface;


What language are you using?

David
Re: Capture image throug webcam [message #416354 is a reply to message #416154] Sat, 01 August 2009 00:09 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Thank you David ,
I am using ORACLE Developer 6i.
explanation :
At now i have an activex on my form and have been set "OLE class" property to "Imaging.ScanCtrl.1" .
It work properly but at run-time that property is not set and i have to set again it by right-click on activex and select insert-object.After doing these ":global.x := :item('myblock.my_activex').interface;" has not error.
/*=========================*/
my question is ,
how can i set "OLE class" property of activex as work it correct at run-time ? OR set "OLE class" at run-time ?

thanks all in advance




Re: Capture image throug webcam [message #457162 is a reply to message #416354] Fri, 21 May 2010 07:01 Go to previous messageGo to next message
didiera
Messages: 134
Registered: August 2007
Location: Mauritius
Senior Member
Hello,

if you would allow me, how do you work-around the active-x component in a platform-independant perspective?

regards,
Didier
Re: Capture image throug webcam [message #524295 is a reply to message #277393] Thu, 22 September 2011 13:14 Go to previous messageGo to next message
hensito
Messages: 1
Registered: September 2011
Location: guatemala
Junior Member
Hi
i am henry uldemar calderon salazar
from guatemala city

my enlglish is not so well because
my native languaje is spanish...

can you help me to make a form in oracle developer6i
i have to capture a image with a camera directly
but a can't, can you send it to me a example.

i am a junio programer..

thakyou so much and blesses
Re: Capture image throug webcam [message #566510 is a reply to message #416154] Sun, 16 September 2012 08:38 Go to previous messageGo to next message
mail2uneeb
Messages: 3
Registered: April 2012
Junior Member
David can you build a demo form.fmb file to capture image from webcam. I will be very thankful
regards,
aneeb.
Re: Capture image throug webcam [message #566516 is a reply to message #566510] Sun, 16 September 2012 09:57 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
David doesn't visit this forum regularly any more, so ... don't hold your breath.

As of me - sorry, I wouldn't know how to do that.
Previous Topic: Disable Key board input
Next Topic: Want to display record on non database item
Goto Forum:
  


Current Time: Fri Apr 26 16:54:09 CDT 2024