ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Viewing image files on a camera?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
skippix Posted - Aug 23 2013 : 21:11:56
I want to let my user read images from a card reader, a cell phone, or their camera. I can detect the USB connection and get the paths for the card reader and cell phone which work perfectly with the ImageEnMView.FillFromDirectory, but I can't figure out how to see the camera.

Any suggestions?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 27 2013 : 02:00:44
Hi

It sounds like you'll need to use the Windows Portable Devices Automation API:

http://msdn.microsoft.com/en-us/windows/hardware/gg463548


I haven't seen much code for Delphi for it, but here are some links:

http://chocotooth.blogspot.co.nz/2011/05/controlling-digital-camera-with-delphi_10.html
https://forums.embarcadero.com/thread.jspa?threadID=66952
http://cgeers.com/2011/06/05/wpd-enumerating-content/ (.NET)
http://dotnet.dzone.com/articles/windows-portable-devices (.NET)


Let us know how you go. I'd be interested in supporting WPD with ImageEn.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
skippix Posted - Aug 24 2013 : 15:07:17
yes, that's a nice demo, and my camera (a Canon 7D) does show up in the dialog. but windows doesn't assign it a drive letter and i can't find any way to browse it. the path to the images shows as "Computer\Canon EOS 7D\CF\DCIM\100EOS1D". the same is true for my Canon G11. i'm using Win7; both devices show up as "Portable Devices".

in the acquire demo, i can't find any code that populates the dialog that shows the camera's contents. that seems like it might do what i need to do.
xequte Posted - Aug 24 2013 : 14:18:16
Hi

That really depends on the kind of camera. Most modern cameras appear to Windows as a mass storage device, but it sounds like yours does not support this. Have you tried testing it with the "Acquire from Any Source" demo:

http://www.imageen.com/demos/



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com