Capture image throug webcam [message #267972] |
Mon, 17 September 2007 00:35 |
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 #269191 is a reply to message #267972] |
Fri, 21 September 2007 01:38 |
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 #277242 is a reply to message #267972] |
Mon, 29 October 2007 05:29 |
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 #416042 is a reply to message #267972] |
Thu, 30 July 2009 04:44 |
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
|
|
|
|
|
Re: Capture image throug webcam [message #416354 is a reply to message #416154] |
Sat, 01 August 2009 00:09 |
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
|
|
|
|
|
|
|