CameraImport Class |
Namespace: Flir.Atlas.Image.Import
public class CameraImport
The CameraImport type exposes the following members.
Name | Description | |
---|---|---|
CameraImport | Initializes a new instance of the CameraImport class |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
FindCameraLibraries |
Find Exteranl libraries (disk or connected camera) to import.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetImages |
Gets all Flir files from Path.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
StartImport |
Import files from camera.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
using Flir.Atlas.Image; public void ImportImages() { _cancellationPending = delegate() { return false; }; list = new List<FileInfo>(); try { var im = new CameraImport(); // Find camera libraries to import from List<String> lib = im.FindCameraLibraries(); // get the imges in the lib im.GetImages(lib[0], ImportFiles, _cancellationPending); //start import chosen images bool ret = im.StartImport(list, "e:\\tmp\\Import", false, _cancellationPending); if (ret) { // import OK } } catch (Exception e) { //error handling here } } private List<FileInfo> list; private Func<bool> _cancellationPending; private void ImportFiles(FileInfo[] fileInfos) { foreach (var fileInfo in fileInfos) { try { // This action will be called when an imges is found on the camera list.Add(fileInfo); } catch (Exception exception) { //Exception occured while reading image file from camera } } }