Canon Community Canon Community
 


Reply
New Contributor
Posts: 2
Registered: ‎04-25-2018

*Newbie Alert*: question about linked applications

I'm working with a gross pathology lab, where they produce anatomic images before slide prep using Canon Rebel series cameras.  If the images are uniformly named with defined attributes - patient ID, order number, body part - we can develop an automated process for picking them up and placing them in patient folders with pointers that will launch an image viewer in our electronic medical record system.

 

I was thinking perhaps this could be done with a linked application - the app would be launched on image capture, the tech would barcode attributes from order sheets into the GUI of the app, and save to a fixed directory.

 

Can this be done with a .Net app?  Does a pointer reference get passed in the integration with a linked app, or the actual image object itself?  Might anyone have developed an app that does something remotely like this, or can point me to sample code?

 

Thanks in advance...

Dan

Esteemed Contributor
Posts: 3,443
Registered: ‎06-11-2013

Re: *Newbie Alert*: question about linked applications

There are probably a few ways to solve this depending on how ambitious you want to be.

 

Canon has a developer program (free) which gets your developers access to the EOS SDK ... this allows you to develop your own software to control the camera.  For example, in astronomy, there are many applications that automate image acquisition with the camera connected to a telescope and they use the SDK (SDK = Software Development Kit) to do this.

 

There are also apps do tethered shooting and will just drop the files into a folder on your computer using some naming convention that you invent (but it is meant to be sequential).  But all these do is leave the programs on the hard drive -- they wont do anything with them.  But you can get programs that do "something" when they find a file showing up in a folder (kick off some automated process).

 

Canon EOS Utility (comes with camera and also downloadable) can do remote shooting (aka "tethered" shooting with camera connected to computer via USB cable... some cameras support WiFi connection) and drop the images in a folder as they are captured.

 

But I made the comment about the naming convention intended to somehow be sequential.  It sounds like your names wont necessarily be sequential which means each file would probably have to be renamed one-by-one as they are captured unless you wrote your own integrated capture application.

 

 

Tim Campbell
5D III, 5D IV, 60Da
New Contributor
Posts: 2
Registered: ‎04-25-2018

Re: *Newbie Alert*: question about linked applications

Yes, Tim, that's correct. They might have names like

12345_ABC98764_LUNG.jpg
or
12345/ABD98764/LUNG.jpg,

depending on whether the attributes are used to build the filename or the directory tree. But the attributes mean something to external systems, and can't be generated locally.

Yes, I signed up for - and, received - the SDK. Ambitious is the right word! I was hoping someone had already been down a similar path, and I might be able to leverage what they've written.

Thanks for your response.
Dan
Esteemed Contributor
Posts: 3,443
Registered: ‎06-11-2013

Re: *Newbie Alert*: question about linked applications

You may want to apply for access to the EOS SDK.  You can do that by visiting this website:

 

https://www.developersupport.canon.com

 

The SDK documentation does come with a sample app and some sample code ... there is, for example, a sample that describes how to remotely take a picture (tethered shooting) ... but that doesn't download the image.  There's another sample code that shows how to download an image from the camera.

 

Basically if you or someone you know has coding skills, you'd be able to put together your own application that takes the picture, downloads it, and names it whatever you want.

 

 

 

You might *also* be able to script something.  Once upon a time I used Apple Aperture... and tethered shooting wasn't supported for my new camera model.  Apple has the ability to create automated scripts that do things when certain events happen.  One such example is to watch a folder and whenever a new file is dropped into that folder, automatically do something with it.  So this app used an automator script to create tethered shooting for my camera from a piece of software that didn't actually support tethered shooting directly (at least not with that new camera model).  I used the EOS Utility to perform the tethered shot... and it dropped the files into a specific folder.  But an automator action would trigger as soon as the file appeared in that folder...  which imported it into another application (in this case it was a photo application).  Some months later, the application added direct support for tethered shooting with that camera model and I no longer needed that scripted process.

 

I was on a Mac ... but it may be possible to do something similar with Windows.

 

Tim Campbell
5D III, 5D IV, 60Da
Highlighted
Esteemed Contributor
Posts: 3,443
Registered: ‎06-11-2013

Re: *Newbie Alert*: question about linked applications

I missed that you already signed up... in my docs (I still have EOS SDK v3.4 ... but the least is 3.5 -- I've not yet downloaded it) but it does include sample code.

 

Tim Campbell
5D III, 5D IV, 60Da
powered by Lithium

LIKE US on Facebook FOLLOW US on Twitter WATCH US on YouTube CONNECT WITH US on Linkedin WATCH US on Vimeo FOLLOW US on Instagram SHOP CANON at the Canon Online Store
© Canon U.S.A., Inc.   |    Terms of Use   |    Privacy Statement