Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

LEAD Still Image Writer Single Snapshot Issue
Started by kgibson at 02-25-2006 16:58. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  02-25-2006, 16:58
kgibson is not online. Last active: 3/6/2006 6:21:36 AM kgibson

Not Ranked
Joined on 02-25-2006
Posts 3
LEAD Still Image Writer Single Snapshot Issue
Reply Quote
I am trying to acquire one snapshot from a live video source using "LEAD Still Image Writer".  In normal operation, a user would click a "snapshot" button and the software would take on snapshot. 

My first problem was acquiring only one snapshot.  I worked out the timing so that the LEAD filter will only save one file.  Is there a cleancut way of doing this?

However the main issue I have is that the LEAD filter always adds a numbered digit at the end of the filename.  What is the proper way to take only one snapshot and force "LEAD Still Image Writer" filter to name the file specified without adding numbered digits?

The reason for using the "LEAD Still Image Writer" filter is so we can store in JPG formats.

   Report 
  02-28-2006, 6:25
Amin is not online. Last active: 3/10/2010 10:29:05 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 769
Re: LEAD Still Image Writer Single Snapshot Issue
Reply Quote
In LEADTOOLS Multimedia 14.5, the ltmmCaptureCtrl.SaveStillBitmap Method can save standard JPEG and LEAD’s proprietary CMP format, in addition to the Win BMP format.

If you don't want to use it because it stops the capture process, a 'cleaner' way of getting exactly one image is to insert a LEAD Video Callback filter, which gives direct access to all video frames passing through it. In your callback function, you can copy the image data for the desired frame to the LEADTOOLS imaging engine (e.g. using a LEAD Raster COM object) and save it in any desired format.

If you still want to use the Still Image Writer, let me know and I will investigate the file name issue further.


Amin Dodin
LEADTOOLS Technical Support

   Report 
  03-01-2006, 13:33
kgibson is not online. Last active: 3/6/2006 6:21:36 AM kgibson

Not Ranked
Joined on 02-25-2006
Posts 3
Re: LEAD Still Image Writer Single Snapshot Issue
Reply Quote
I am not able to use ltmmCaptureCtrl because I am using other 3rd party filters and it will be a huge mess to implement now.

I would like to choose the callback function route.  However I can't seem to implement the raster COM objects.  Specifically, "l_bitmap.h" is non-existent.  That's a good indicator that either we need to purchase something or I've mis-installed one of the LEAD products.

If we do need to purchase the raster com objects, then I believe it's in our best interest to pursue the "Still Image Writer" further, particularly the file naming issue.


   Report 
  03-05-2006, 9:29
Amin is not online. Last active: 3/10/2010 10:29:05 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 769
Re: LEAD Still Image Writer Single Snapshot Issue
Reply Quote
It seems you saw the API not the COM demo. In either case, you will need to have the LEADTOOLS Raster Imaging Pro toolkit installed to use one of the callback demos, because they either use the COM objects or the LEADTOOLS DLL API functions.

I checked the still image writer filter and it seems the option to force using the file name, which is "Overwrite file" doesn't work correctly. It always generates numbers like you found out. I reported the problem to our engineering team under incident number 4350AMN. I will post any new information here when it becomes available. You can also use this number to ask about status by emailing support@leadtools.com


Amin Dodin
LEADTOOLS Technical Support

   Report 
  03-06-2006, 1:22
kgibson is not online. Last active: 3/6/2006 6:21:36 AM kgibson

Not Ranked
Joined on 02-25-2006
Posts 3
Re: LEAD Still Image Writer Single Snapshot Issue
Reply Quote
I just assumed I misunderstood what "Overwrite file" was supposed to do.  Good to know you all are looking into it.  Hope it's solved soon, it will help temendously.

kg

   Report 
  05-11-2007, 16:09
GregR is not online. Last active: 3/17/2010 4:25:14 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 2,251
Re: LEAD Still Image Writer Single Snapshot Issue
Reply Quote
An update on 4350AMN:

This behavior is by design.  If you start a session using the still image writer, 'overwrite' means overwrite any existing files before the session begins. However, the session itself will keep incrementing file name counter and will not overwrite files saved during the same session.  You could work around the problem by choosing a unique temporary file name of the form NAME.JPG and when your snapshot is looks for 'NAME*.JPG', and renames it to the desired actual name.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » LEAD Still Image Writer Single Snapshot Issue

Powered by Community Server, by Telligent Systems