Caling Web Camera Image in Forms
Hi Sir,
i want to take a photo from web camera and want to display the photo on image item on my form.
Again you need to use timer for calling each image taken from camera
the camera is taking the photos in the my pictures quickcam images folder.
for this you need to use the dir/b c:\mypictures\quickcam\images >zz.txt
then use the text_io package to get the each and every file to read.
then remove all the files and use read_image_file with the parameters as received now from the text_io package
after opening the file zz.txt.
timer should be of 1000 mili seconds.
Similar Messages
-
Capture Web Cam image in APEX and Upload into the Database
Overview
By using a flash object, you should be able to interface with a usb web cam connected to the client machine. Their are a couple of open source ones that I know about, but the one I chose to go with is by Taboca Labs and is called CamCanvas. This is released under the MIT license, and it is at version 0.2, so not very mature - but in saying that it seems to do the trick. The next part is to upload a snapshot into the database - in this particular implementation, it is achieved by taking a snapshot, and putting that data into the canvas object. This is a new HTML5 element, so I am not certain what the IE support would be like. Once you have the image into the canvas, you can then use the provided function convertToDataURL() to convert the image into a Base64 encoded string, which you can then use to convert into to a BLOB. There is however one problem with the Base64 string - APEX has a limitation of 32k for and item value, so can't be submitted by normal means, and a workaround (AJAX) has to be implemented.
Part 1. Capturing the Image from the Flash Object into the Canvas element
Set up the Page
Required Files
Download the tarball of the webcam library from: https://github.com/taboca/CamCanvas-API-/tarball/master
Upload the necessary components to your application. (The flash swf file can be got from one of the samples in the Samples folder. In the root of the tarball, there is actually a swf file, but this seems to be a different file than of what is in the samples - so I just stick with the one from the samples)
Page Body
Create a HTML region, and add the following:
<div class="container">
<object id="iembedflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240">
<param name="movie" value="#APP_IMAGES#camcanvas.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<embed allowScriptAccess="always" id="embedflash" src="#APP_IMAGES#camcanvas.swf" quality="high" width="320" height="240"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" mayscript="true" />
</object>
</div>
<p><a href="javascript:captureToCanvas()">Capture</a></p>
<canvas style="border:1px solid yellow" id="canvas" width="320" height="240"></canvas>That will create the webcam container, and an empty canvas element for the captured image to go into.
Also, have a hidden unprotected page item to store the Base64 code into - I called mine P2_IMAGE_BASE64
HTML Header and Body Attribute
Add the Page HTML Body Attribute as:
onload="init(320,240)"
JavaScript
Add the following in the Function and Global Variable Declarations for the page (mostly taken out of the samples provided)
//Camera relations functions
var gCtx = null;
var gCanvas = null;
var imageData = null;
var ii=0;
var jj=0;
var c=0;
function init(ww,hh){
gCanvas = document.getElementById("canvas");
var w = ww;
var h = hh;
gCanvas.style.width = w + "px";
gCanvas.style.height = h + "px";
gCanvas.width = w;
gCanvas.height = h;
gCtx = gCanvas.getContext("2d");
gCtx.clearRect(0, 0, w, h);
imageData = gCtx.getImageData( 0,0,320,240);
function passLine(stringPixels) {
//a = (intVal >> 24) & 0xff;
var coll = stringPixels.split("-");
for(var i=0;i<320;i++) {
var intVal = parseInt(coll);
r = (intVal >> 16) & 0xff;
g = (intVal >> 8) & 0xff;
b = (intVal ) & 0xff;
imageData.data[c+0]=r;
imageData.data[c+1]=g;
imageData.data[c+2]=b;
imageData.data[c+3]=255;
c+=4;
if(c>=320*240*4) {
c=0;
gCtx.putImageData(imageData, 0,0);
function captureToCanvas() {
flash = document.getElementById("embedflash");
flash.ccCapture();
var canvEle = document.getElementById('canvas');
$s('P2_IMAGE_BASE64', canvEle.toDataURL());//Assumes hidden item name is P2_IMAGE_BASE64
clob_Submit();//this is a part of part (AJAX submit value to a collection) two
}In the footer region of the page (which is just a loading image to show whilst the data is being submitted to the collection [hidden by default]) :<img src="#IMAGE_PREFIX#processing3.gif" id="AjaxLoading"
style="display:none;position:absolute;left:45%;top:45%;padding:10px;border:2px solid black;background:#FFF;" />If you give it a quick test, you should be able to see the webcam feed and capture it into the canvas element by clicking the capture link, in between the two elements - it might through a JS error since the clob_Submit() function does not exist yet.
*Part 2. Upload the image into the Database*
As mentioned in the overview, the main limitation is that APEX can't submit values larger than 32k, which I hope the APEX development team will be fixing this limitation in a future release, the workaround isn't really good from a maintainability perspective.
In the sample applications, there is one that demonstrates saving values to the database that are over 32k, which uses an AJAX technique: see http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#LARGE.
*Required Files*
From the sample application, there is a script you need to upload, and reference in your page. So you can either install the sample application I linked to, or grab the script from the demonstration I have provided - its called apex_save_large.js.
*Create a New Page*
Create a page to Post the large value to (I created mine as 1000), and create the following process, with the condition that Request = SAVE. (All this is in the sample application for saving large values).declare
l_code clob := empty_clob;
begin
dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );
for i in 1..wwv_flow.g_f01.count loop
dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
end loop;
apex_collection.create_or_truncate_collection(p_collection_name => wc_pkg_globals.g_base64_collection);
apex_collection.add_member(p_collection_name => wc_pkg_globals.g_base64_collection,p_clob001 => l_code);
htmldb_application.g_unrecoverable_error := TRUE;
end;I also created a package for storing the collection name, which is referred to in the process, for the collection name:create or replace
package
wc_pkg_globals
as
g_base64_collection constant varchar2(40) := 'BASE64_IMAGE';
end wc_pkg_globals;That is all that needs to be done for page 1000. You don't use this for anything else, *so go back to edit the camera page*.
*Modify the Function and Global Variable Declarations* (to be able to submit large values.)
The below again assumes the item that you want to submit has an item name of 'P2_IMAGE_BASE64', the condition of the process on the POST page is request = SAVE, and the post page is page 1000. This has been taken srtaight from the sample application for saving large values.//32K Limit workaround functions
function clob_Submit(){
$x_Show('AjaxLoading')
$a_PostClob('P2_IMAGE_BASE64','SAVE','1000',clob_SubmitReturn);
function clob_SubmitReturn(){
if(p.readyState == 4){
$x_Hide('AjaxLoading');
$x('P2_IMAGE_BASE64').value = '';
}else{return false;}
function doSubmit(r){
$x('P2_IMAGE_BASE64').value = ''
flowSelectAll();
document.wwv_flow.p_request.value = r;
document.wwv_flow.submit();
}Also, reference the script that the above code makes use of, in the page header<script type="text/javascript" src="#WORKSPACE_IMAGES#apex_save_large.js"></script>Assuming the script is located in workspace images, and not associated to a specific app. Other wise reference #APP_IMAGES#
*Set up the table to store the images*CREATE TABLE "WC_SNAPSHOT"
"WC_SNAPSHOT_ID" NUMBER NOT NULL ENABLE,
"BINARY" BLOB,
CONSTRAINT "WC_SNAPSHOT_PK" PRIMARY KEY ("WC_SNAPSHOT_ID")
create sequence seq_wc_snapshot start with 1 increment by 1;
CREATE OR REPLACE TRIGGER "BI_WC_SNAPSHOT" BEFORE
INSERT ON WC_SNAPSHOT FOR EACH ROW BEGIN
SELECT seq_wc_snapshot.nextval INTO :NEW.wc_snapshot_id FROM dual;
END;
Then finally, create a page process to save the image:declare
v_image_input CLOB;
v_image_output BLOB;
v_buffer NUMBER := 64;
v_start_index NUMBER := 1;
v_raw_temp raw(64);
begin
--discard the bit of the string we dont need
select substr(clob001, instr(clob001, ',')+1, length(clob001)) into v_image_input
from apex_collections
where collection_name = wc_pkg_globals.g_base64_collection;
dbms_lob.createtemporary(v_image_output, true);
for i in 1..ceil(dbms_lob.getlength(v_image_input)/v_buffer) loop
v_raw_temp := utl_encode.base64_decode(utl_raw.cast_to_raw(dbms_lob.substr(v_image_input, v_buffer, v_start_index)));
dbms_lob.writeappend(v_image_output, utl_raw.length(v_raw_temp),v_raw_temp);
v_start_index := v_start_index + v_buffer;
end loop;
insert into WC_SNAPSHOT (binary) values (v_image_output); commit;
end;Create a save button - add some sort of validation to make sure the hidden item has a value (i.e. image has been captured). Make the above conditional for request = button name so it only runs when you click Save (you probably want to disable this button until the data has been completely submitted to the collection - I haven't done this in the demonstration).
Voila, you should have now be able to capture the image from a webcam. Take a look at the samples from the CamCanvas API for extra effects if you wanted to do something special.
And of course, all the above assumed you want a resolution of 320 x 240 for the image.
Disclaimer: At time of writing, this worked with a logitech something or rather webcam, and is completely untested on IE.
Check out a demo: http://apex.oracle.com/pls/apex/f?p=trents_demos:webcam_i (my image is a bit blocky, but i think its just my webcam. I've seen others that are much more crisp using this) Also, just be sure to wait for the progress bar to dissappear before clicking Save.
Feedback welcomed.Hmm, maybe for some reason you aren't getting the base64 version of the saved image? Is the collection getting the full base64 string? Seems like its not getting any if its no data found.
The javascript console is your friend.
Also, in the example i used an extra page, from what one of the examples on apex packages apps had. But since then, I found this post by Carl: http://carlback.blogspot.com/2008/04/new-stuff-4-over-head-with-clob.html - I would use this technique for submitting the clob, over what I have done - as its less hacky. Just sayin. -
Tecra M11-17V with Windows 7 - Web Cam image is very grainy
Hi,
Yesterday my webcam (built into the laptop) worked perfectly, today it doesn't....
Whenever I use it now, the image is very grainy, almost like a tartan pattern of criss-crossing lines, but I can still just about make out myself in the background. Movement and sound are still being recorded, just the image is strange.
Please help! Has anyone else had this happen? Is this something I can fix myself, or is it a hardware problem? I have had this laptop about 3months, from brand new, and this is the first problem I've had...
Many thanks,
DomHi Paolo,
Thanks for the tips, but I'm afraid my camera is still out of action....
I've double checked that the protective lens film has been removed, and I've disabled/re-enabled the camera device, updated the camera driver, and completely reinstalled all the camera software to no effect. I've also ruled out conflicting software issues, as the problem persists for both skype calls and the laptop's face recognition software used when logging into my account.
The frustrating thing is that the fault happened suddenly halfway through a skype call. It was working perfectly on minute, and broken the next (seemingly irreversible.... fingers crossed). I had used skype for a mammoth 3hr call the night before, but I hope that wouldn't have "burnt out" the brand new camera...
Do you, or anyone else, know if sounds like a physical problem? Are web cam hardware faults common? I have never dropped the laptop, though it does commute with me on the train into work everyday...
When I first got the laptop, the inbuilt fingerprint scanner didn't work very accurately until I updated the driver software. Is it common for faults to suddenly appear when drivers become "out of date"? Any chance these problems could be related?
Thanks again for your help,
Dom -
Satellite S70-A-11H web camera image quality is not good
Hi,
Running windows 8.1 which came with the laptop.
New out of the box.
As per title.
I find the image quality of the camera image to be very grainy, poor color etc.
When I start the web camera using the search bar on the right, it starts using the Microsoft application, when you scroll down to settings all that is available under settings/options is Photo aspect ratio, Grid lines, Location info.
I have been in touch with Toshiba Tech support who advised to do a Laptop refresh, which I did.
This made no difference.
After which they asked me to find the Toshiba web camera application on the laptop, this should have been in the Program Files folder in the Toshiba folder.
This application does not exist on my laptop.
The tech checked the same model laptop that he had available, which I was told when he selected the web camera, it opened using the Toshiba Web camera application, not Microsoft.
I have looked at other Toshiba laptops with web cameras, and found the image quality to be better. Unable to get to settings as these laptops were on display and in demo mode, hence locked down to some extent.
I can't believe that a web camera in this day and age for this value of laptop to have such poor image quality. My digital camera from 10year ago has better image quality.
I have checked through the laptop, and I do not have this application installed.
I have checked for updated drivers and software for my laptop, and cannot find this application to be applicable for my laptop. Drivers etc appear to be up to date.
I would like to know, do other users of this S series have any issue of camera image quality.
When the camera is selected what application is being used, Toshiba or Microsoft.
Is Toshiba web camera application applicable to Windows 8.1, as I cannot see it listed for 8.1
Does this sound like a hardware fault or a application/software issue.
Any direction or help on this matter would be appreciated, as I am getting to the point of returning this laptop for a refund.
Thanks in advance.
D.
Yes, I have tried using the FORCE!> The tech checked the same model laptop that he had available, which I was told when he selected the web camera, it opened using the Toshiba Web camera application, not Microsoft.
The Toshiba webcam application is available for Win 7 system but the Win 8 and Windows 8.1 system use the own Microsoft webcam application.
> I have looked at other Toshiba laptops with web cameras, and found the image quality to be better.
Different Toshiba notebooks are equipped with different webcams.
Satellite S70-A-11H was equipped with a *0.92 mega pixel webcam*
A Satellite A660 for example was equipped with an _1.3M mega pixel webcam_
So there is a difference in webcam resolution -
What address i should i give to transmit and receive web cam image
hi
I want to Know what address and port i have to give send and receive the web camThe IP address should be the IP address of the computer that should receive your transmission. If you want all the computers on your subnet to receive the transmission, then use 255 as the last number in your IP address. For example, "192.168.1.40" can be used for a point to point transmission and "192.168.1.255" can be used for all computers that are on your subnet. .
The base Port number can be any port number that is not in use by any other service on your computer. For example, you can use "22222". Make sure that it is an even number. The first media track will be transmitted from the base port number. The next track will go to base port number plus 2 and so on.
Regards
Praveen. -
Corrupted image in applet from web cam
Hi there I created a little webcam server application that listens to port 8080 for requests, then displays an image. The image is jpeg encoded frame grabbed from a logitech web cam using the java media framework. I got the code from this forum.
I have tried it across a 56kb modem on four different computers. On three the applet displays the images without problems. On the fourth the image is corrupted like it didn't receive all the data.
Anyone have any idea why this occurs in one and not the others
Here's some of the source
The applet just uses getImage( http://[host]:8080 )
and media tracker with a thread sleeping for a second
public class WebCamServer extends JFrame
// class variables
private HttpServer webserver;
private int port = 80;
private ServerSocket server;
private ImageIcon gfr;
private Color backcolour = new Color( 255, 255, 255 );
private Player player = null;
private MediaLocator ml = null;
private JPanel campanel = null;
public boolean active = false;
public Buffer buf = null;
public VideoFormat vf = null;
public BufferToImage btoi = null;
public Image img = null;
public WebCamServer()
// initialise Frame with this heading and font
super( "eyespyfx - Web Cam Server" );
setFont( new Font( "Verdana", Font.PLAIN, 12 ) );
// initialise web server
startServer();
// set up ServerSocket to listen for requests on port 8080
try
server = new ServerSocket( 8080 );
catch( IOException e )
System.err.println( "Server Socket Error" );
System.err.println( e.getMessage() );
shutdown();
// set frame icon to gfr.gif
gfr = new ImageIcon( "gfr.gif" );
this.setIconImage( gfr.getImage() );
// get content pane set a layout
java.awt.Container c = getContentPane();
c.setLayout( new BorderLayout( 0, 0 ) );
// create panel to hold web cam image
campanel = new JPanel();
campanel.setLayout( new BorderLayout( 0, 0 ) );
campanel.setPreferredSize( new Dimension( 320, 240 ) );
// locate web cam from JMF Registry
ml = new MediaLocator( "vfw://0" );
// set lightweight renderer for improved framerate
Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, new Boolean(true) );
try
// create realized video player
player = Manager.createRealizedPlayer( ml );
//start player
player.start();
Component comp;
// display the visual component
if ( ( comp = player.getVisualComponent() ) != null )
campanel.add( comp, BorderLayout.CENTER );
catch (Exception e)
System.err.println( "Exception in creating or displaying player" );
System.err.println( e.getMessage() );
// add campanle to the frame
c.add( campanel, BorderLayout.CENTER );
// size & colour of frame
c.setBackground( backcolour );
setBounds( 0, 0, 0, 0 );
setResizable( false );
setSize( 350, 250 );
show();
// active set to true - means software is listening for image requests
active = true;
// Thread listener for image requests
public void execute()
// while active is true
while ( active )
try
// client connects
ClientApplet newclient = new ClientApplet( server.accept(), this );
// Grab a frame
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame();
// Convert it to an image
btoi = new BufferToImage((VideoFormat)buf.getFormat());
img = btoi.createImage(buf);
// set client thread with image
newclient.setImage( img );
// start the client thread
newclient.start();
catch( IOException e )
e.printStackTrace();
System.exit( 1 );
// ClientApplet class to manage each Client Applet as a thread
class ClientApplet extends Thread
// class variables
private Socket connection;
private PrintWriter out;
private BufferedReader in;
private WebCamServer control;
protected boolean threadSuspended = true;
public Image img;
// constructor creates a socket on port 8080
public ClientApplet( Socket s, WebCamServer t )
connection = s;
control = t;
// grabbed frame set as output image
public void setImage( Image img )
this.img = img;
public void run()
// image is buffered to create a 2D graphics object
BufferedImage bi = new BufferedImage(240, 180, BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
OutputStream out = null;
// create an output stream to the socket
try
out = connection.getOutputStream();
catch ( IOException io)
System.out.println("Error getting socket output stream");
System.err.println( io.getMessage() );
// create jpeg encoder on output stream
// set the image as a parameter
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.25f,false);
encoder.setJPEGEncodeParam(param);
// encode the image through the output stream
// close IO connections
try
encoder.encode(bi);
out.close();
connection.close();
catch ( IOException ioe )
System.out.println("JPGE IO exception");
System.err.println( ioe.getMessage() );
// end of thread image is served to webpage or applet
}Hi,
I don't know how to solve this problem,
but I want to ask you how you managed to get
FrameGrabbingControl which is not null.
I use Logitech QickCam and everytime when I try to get a FrameGrabbingControl from the Player it returns me null?
Can you help me?
have you any ideas why I get null?
WebCamLocator - is OK. If I can use it to record a video clip. But I can't take a single frame..
Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, new Boolean(true) );
Player WebCamPlayer = Manager.createRealizedPlayer(WebCamLocator);
WebCamPlayer.start();
FrameGrabbingControl fgc = (FrameGrabbingControl)WebCamPlayer.getControl("javax.media.control.GrabbingControl");
Buffer buf = fgc.grabFrame(); -
Hi
Saw this code listed on another site
<img
height=310 alt="Plymouth Webcam"
src="C-Cheeta%20WEATHER_files/plymouth.jpg" width=412
border=2><BR>
I'm assuming that this "web cam image" is simply a jpeg that
is refreshed at
a specific time interval??
If so any idea where I can source the refresh javascript?
thanks
IanHi
thanks for that, I begin to see the light at the ned of the
tunnel:-) was
underthe missaprehension that it wqs video- silly me
cheers
Ian
"Ken Binney" <[email protected]> wrote
in message
news:g6t3v6$j0b$[email protected]..
> <meta HTTP-EQUIV="imagetoolbar" and CONTENT="no">
> <META HTTP-EQUIV="Refresh" CONTENT="10">
> </head>
>
>
>
http://www.bbc.co.uk/england/webcams/live/plymouth.jpg
>
>
>
> "Ian Edwards"
<[email protected]> wrote in message
> news:g6stnr$chr$[email protected]..
>> Hi
>>
>> Saw this code listed on another site
>>
>> <img
>> height=310 alt="Plymouth Webcam"
>> src="C-Cheeta%20WEATHER_files/plymouth.jpg"
width=412
>> border=2><BR>
>>
>> I'm assuming that this "web cam image" is simply a
jpeg that is refreshed
>> at a specific time interval??
>>
>> If so any idea where I can source the refresh
javascript?
>>
>> thanks
>>
>> Ian
>
> -
Capture an image using the web camera from a web application
Hi All,
Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
I have a similar requirement like this,
1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
3) Upload the Image to the server from the temporary location.
Please share the details like, what can be used and how it can be used etc...
Thanks,
Suman1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
Alternately, you might want to look into Adobe Flex for this particular application. -
Satellite T210 - web camera is not working - cloud image appears
Hi,
My web camera (it is incorporated on my computer) is not working.
When I turn it on it appears a blue light (informing that it is connected) but it is not taking pictures or videos regardless I am using skype or I am just using the webcam without being on a specific program. Only appears a image with clouds!
Any suggestions?
RegardsUse please option effect in Web camera applications and click on tab called screen cover.
Be sure there is enabled option ON.
Please check it and post some feedback. -
Problem with image control using more than 1 web cam
Hi,
I am using logitech quickcam pro 4000.Actually I want to get image from
3 web cam at a time wich will act as a CCTV.I want to get picture from
more than 1 web cam at a time.But,When I start the .vi,than I get image
from 1 web cam.I have attached the vi and the demonstration file.
If anyone has any idea please send me a reply.
(The code was constructed using information
from the Logitech Software Development Kit, downloaded from the Logitech web
site January 4th 2004. This
package includes the royalty free distribution with the camera driver.
To install the package, download and unzip
LabVIEW Logitech UWA.zip and run Setup.exe in the 'redist' folder. This installs drivers (if not already
installed). Then run LabVIEW and open
Logitech Image Acquisition Master.vi.
Click the LabVIEW run button.
Notes for Understanding the Code
[1] The camera is controlled by an Active-X
reference from a front panel Acitve-X container that displays the pre-view
image. To create this, create a blank
Active-X container on the front panel and select the Active-X Hydra Video
Portal class.
[2] Three methods are called, following the
Visual Basic guide from Logitech. The
first establishes a connection to the Active-X server. The status bar is activated in the preview
window (EnableUIElements), and we connect a camera (ConnectCamera2).
[3] Here we set the value of property
'EnablePreview' to turn on the preview panel.
[4] We can get the camera description for
camera zero here (the first camera connected).
[5] Here we select the video format (64x480
– can change it later). The next call
establishes the preview size by setting property values. The preview size should be the same as the
video format for fastest image acquisition.
[6] We are restricted to saving the picture
to a BMP file and then reading it in again.
This is a limitation of the SDK.
After reading the image file we can change it to a JPG if we wish to.
[7] Here we re-read the image file and
provide it to ImageDisplay.vi.
Other methods and property values are
reasonably self evident. In LabVIEW, if
you right click the Active-X reference terminal on any method, you can create a
new method by simply selecting the appropriate one from a list. The parameters for the method appear
automatically and should be reasonably self-evident from the names. If you want more details, download the SDK
from Logitech.
Other methods allow you to make movies in
real-time or time-lapse sequences.
Note that you can also monitor Active-X
events to detect inputs or parameter changes made elsewhere. For example it is possible to detect when
the button on the camera is pressed.)
Thanks
Kabir
Kabir mamun
PhD Student,DCU
[email protected]
www.iward2010.blogspot.com
Attachments:
Logitech Image Acquisition Master.vi 98 KBHi Peter,
Thanks for your e-mail.And sorry for late.
I have changed my activex server in my labview programme.Current
server name is XVideoOCX.I have attached 1 example.Still I am facing
the same problem that I am not getting disply from more than 1 web
cam.So would you be able to advice me,what should I do regarding this
matter.
Actually,This is a part of my M.Sc project.I am under pressure.Peter,Please do me this fevour.
Thanks
Kabir
1 eample from help file:
Video Disply
1. Choose the input mode (Video, Single Image Files, Screen, etc.)
XSetInputMode(0) // This
chooses video as input
2. Choose the video device
XSetVideoInput(0) //
Choose the first available video input device
3. Initialize XVideoOCX
XInit() // Initialize
XVideoOCX
4. Start internal video capture
XStart()
now XVideoOCX should display the live video
5. Stop internal video capture
XStop()
6. Close XVideoOCX
XClose()
Kabir mamun
PhD Student,DCU
[email protected]
www.iward2010.blogspot.com
Attachments:
ax2.vi 23 KB -
Hi.
I have an HP Pavilion dv7 6178us Entertainment PC I just bought it last week. My operating system is Windows 7 Home Premium Service Pack 1 64 bits.
The problem I have is that yesterday I install Skype in the computer and realized that the HP TrueVision HD web cam does not work. The light right next to the web cam will light up but no image will appear on the screen.
I have checked the software that I have in the computer for the webcam and the program is CyberLink YouCam BE version 3.5.
But the web cam does not work. The light right next to it will turn on when I activate Cyberlink, Skype or Messenger but no actual image will come out in computer screen. The computer is fully updated BIOS, Windows 7 and HP.
But the web cam is not working. Could you help me fix this problem?
Best regards:
JEIO71I have a pavilion dv6 notepad. it's about a year old.
about a month ago internal webcam truevision hd stop working.
Called hp tech. they sent a box for me to ship the laptop.
they hp tech attempted to correct the problem via internet
did not work.
wanted me to do a restore to factory setting i stopped him there.
Webcam detected in device manager.
the webcam light come on but no image.
I actually see the back drop through the image space.
running windows 7, fully updated.
I found many comments on the web about the webcam connector disconnecting.
But if it was the case with my computer, the webcam would not be detected.
Many other comments suggests to do a restore to factory setting but \i read also that
does not work often.
I read many comments where disappointed clients believe hp should update
the software but the driver is actually microsoft dating back to june 2006.
Is it possible it's a hardware problem, ie webcam is burned out.
I have received a box to sent it and know they will do a system restore.
Don't feel to go that way.
Many comments refers to hp making an effort to get a driver update.
ps I decided to purchase a logitech webcam, works perfectly.
What else can I do to fix this problem.
Can hp send me another internal webcam. -
How to detect red frame in a series of images using web cam?
hey i am a new use of lab view(8.2 n 8.6).kindly ca any1 help me out in red color detection in a series of frames being capture by a usb web cam.i have done the grabbing thing but dont knw what to do now.plz help me out. basically i hve to do the following things:
1 )the camera is continuously making video
2)the moment a red color or red frame comes across the camera the camera is programmed such that it will capture that red frame. and display that captured frame
plz hep me out.i need serious help.
i am attaching a vi that is grabbing the images and then xtracting the red color info n thn displyaing its intensities rows and coumn wise on a graph.here i have used a guassian surface to locate the red color.
Solved!
Go to Solution.
Attachments:
giving intensity of red color.vi 78 KBhey,i have made the code plz chk it and do rep soon as ma project sbmission date is very near =((
i am snaping an image from the web cam then comparing it with the red colored jpg image made in paint.
the jpg image is converted to give input image to imaq match vi.but after the comparison it gives the same output.
on the front pannel the snapped image is displayed,the red colored image that is converted in to its respective pixels is displayed and the image that is obtained after cheking the image in the draw fails vi...the pic converted to pixels is all the time displayed.and the pass/fail icon always denotes one pass led on..plz chk the code =((.
also can u provide me some guide line for using thr hough transform for the red color detection in lab view..i dont have to import the matlab code..i have to purely make it using the lb view libraries.
also one more request pl rep me regularly as i really need your golden piece of advice for ma success.
thnx
Attachments:
picture to image(BY ME).vi 102 KB
untitled.JPG 3 KB -
Receive image from two web-camera​s
Hallo all.
I have LV 7.1.1
I have two web-cameras which are connected to USB1 & USB2.
How can I see two images from two web-cameras or more in LV at the same time?
With respect
Aleksandr
Message Edited by [email protected] on 06-19-2006 01:20 AMAleksandr,
The IMAQ for USB driver communicates to the 3rd party camera driver using Directshow. There is an IMAQ USB Property Page VI available in LabVIEW that gives you the ability to open the camera configuration page of the 3rd party camera provided that there is one available. Depending on the vendor, you may or may not have access to change the resolution of your camera through this property page. I would contact the manufacturer of the camera to find out if there is a way to do this.
In case you are curious to know where to find the IMAQ USB Property Page VI, right-click on the block diagram and go to Search in the upper right corner of the palette. Search for "IMAQ USB Property Page" and the corresponding VI will show up in the list below it.
Regards,
Mike T
National Instruments -
May I receive resolution 640*480 in image LV from WEB-camera
Hello all
I have
LV7.1.1
I received
the image from WEB-camera.
WEB-camera
has resolution 640*480 but I have resolution in the Image of LV - 320*240.
May I
receive resolution 640*480 in LV
With respect.
AleksandrHello,
I assume you have to change the settings of the camera and not the code in LabVIEW...
Just in case, see the attached code in LV 7.1.1 that allows to change the image resolution.
Hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Attachments:
AC_Util_ResampleImage.vi 126 KB -
About capeturing image through web camera
hai to all,
i need a help .
i have captured a image through web camera.
and i want to call the image in an applet.
is there any API's are available
that allTry this (LabVIEW Webcam Library) or consider following this guideline from NI.
Hope this helps, Guenter
Maybe you are looking for
-
How to create a full windows image recovery partition ?
Hi, It's been about a month since I remplaced my HDD, because the original one which has the recovery partition was currupted... So, I had to do a clean windows 8.1 x64 installation using my embedded windows 8 key Now I would like to create a recover
-
Dear All, I have a Cisco Router running IOS Adv.Sec 124-15.T1 with SSLVPN configured. I've upgraded my PC and when I use TCP port forwarding, I get the error "auto configured proxies are not supported" within the java applet I've checked the Java sec
-
X220 - Restore from R&R backup onto formatted drive
My x220 seems to have a broken MBR. I have tried every suggestion I could find on the internet to fix it (Lenovo R&R USB HDD backup, bootrec fixmbr and fixboot in Windows PE, Parted Magic LiveOS, EasyBCD, installing GRUB) but nothing seems to work. T
-
Why is my send button disabled when emailing through contacts?
I currently have an iPhone6, and when I go through my contacts list and select a contact to send an email to, the "send" button is disabled (gray). I prefer this method of contacting clients. That being said, when I go through the actual mail applica
-
Junk characters display while using multipart with html content in Javamail
Hi All, I have used Java mail API to send mail with attachment. To enable to attachment in mail and to do content formatting i have used multipart and html content type together. My web application runs on apache tomcat 5.5 in MAC server. Java versio