Error retrieving newly captured image from a camera.

Hello Everyone,
I am developing a user<->digital camera interaction application and I have a
problem with accessing newly captured picture. The thing is I am trying to save
the picture directly to the hard disk(this is possible with the camera I am using).
So normally, as stated in the camera PTP specification, the process can be described
in the following steps:
1). PTP command 'capture' - is send successfully to the camera( the camera captures).
2). Event 'RequestObjectTransfer' of ObjectHandle 0x12345678 - is received from the
camera and processed by my application.
3). GetObjectInfo (of ObjectHandle (0x12345678) ) command should be send to the camera.
4). ObjectInfo - received from the camera.
5). GetObject (of ObjectHandle (0x12345678) command send to camera.
6). Object of ObjectHandle (0x12345678) received from the camera.
7). Event TransferReady.
Everything works fine until I try to ask for the object's info:
- (CFDictionaryRef*) copyObjectPropertyDictionary
OSErr err;
ICACopyObjectPropertyDictionaryPB pb = {};
NSDictionary* dict;
pb.theDict = (CFDictionaryRef *)&dict;
pb.object = 0x12345678;
err = ICACopyObjectPropertyDictionary(&pb, NULL); //(**)
if (noErr != err)
NSLog(@"Error retrieving object info!");
else
return dict; // CFDictionaryRef *
return NULL;
The call (**) in the code above results in "err == -9905(kICAInvalidObjectErr)", so can
anybody tell me where my mistake is because there is obviously one (btw I
wrote the same application for Windows and the id 0x12345678 is recognized there.)

It is an OS X application, the GUI is already done(not all of the controlls are functional,
there are really a lot of them as the camera tend to be 'semi-professional' == 'a lot of
settings'). Actually, what my application can do at this point is read/write settings
from/to the camera, can 'sense' some event notifications, can capture image when the
camera is on external mode(no memory card) and the images are processed to the
'Current User'/Pitures folder and finally can look pretty sexy
The method that gave me headaches for a week or so was the common ICADownloaFile
it was not recognized by this particular camera as was not the 'copyObjectPropertyDictionary'
posted above. Instead I wrote two PTPPassThrough methods which are now accepted by the
Cam.

Similar Messages

  • How to capture image from USB camera in Labview 2010

    Hey all,
    I am very new to Labview but am working on a project that requires me to use a sensor to send a signal to Labview to capture an image from a USB camera and save.  Then apply some image processing to do some geometric calculations.  The calculation will be based on pixels so I guess the image needs to be in bitmap form.  Right now I am just trying to start with the image acquisition part and was wondering if this can be done in Labview 2010.  I have the vision toolbox and NXT Robotics.  Are there any examples on this website that will help and do I have te proper tools to do this?  Once I get the image capture/grab to work using labview, then I could work getting a sensor signal to trigger that capture and finally the processing side. 
    Like I said, I am very new to this so I am not sure if I need to download any particular drivers or vi's that I am missing or what those might be.  Can someone provide some insight, links, or any help would be appreciated.
    Thanks in advance for any help/suggestions.

    Hi wklove,
    In order to do vision with LabVIEW you need to to have the Vision development module and have NI Vision Acquisition Software (VAS) installed. It sounds like you are missing VAS you can download it here. Once you have this installed you should be able to see your camera in Measurement and Automation (MAX). After you are able to see the camera, take a look at the NI Example Finder by going to Help » Find Examples
    Joe Daily
    National Instruments
    Applications Engineer
    may the G be with you ....

  • Capture image from usb camera::step

    hi 
    i want use labview to caputre image from my webcam 
    what are the ni drivers that required or step??
    i use la 2012
    regards
    hi ?Q>

    Duplicate. Discussions will continue over there.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Get an image from USB cam without NI VIsion Acquisition

    HI
    I am looking for a way to capture images from USB cam without using a paid library ImaxDx for Labview.
    Have you any ideas?

    Hello MaxEngee
    Off hand, I suppose you could run the third party capture software in the background and have a LabVIEW scan the target directy for changes/new images and import the image as necessary.
    In the mean time, if you install the NI Vision Acquisition Software, you do have a 30-day trial period so perhaps you may consider exploring the environment to see if it is right for you.
    NI Vision Acquisition Software 2011.09 - Windows 7 x86/XP/Vista/7 64 bit
    http://joule.ni.com/nidu/cds/view/p/id/2625/lang/en
    Thank you for choosing National Instruments!
    Sincerely,
    Greg S.

  • When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, even jpeg files. This is a NEW frustration.

    When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, evne jpeg files. This is a NEW frustration.

    Nikon raw files would open up in Adobe Camera Raw and so should jpegs.
    If you select one in Bridge and give the command "Ctrl r" (Windows), what happens?
    Also what is the version of ACR in the title bar?
    Gene
    Note: unmark your question as "answered". the green balloon next to the subject shows it as "solved".

  • Can i use labview to capture and process images from ip cameras connected to a switch.

    Hi,
    i have more then one ip cameras conneted in LAN by a switch. i have a PC conneted to same switch. is it possible to capture images from these ip cameras and process them(for example performing simple barcode scan or QR-code scan or OCR)?  Which IP cameras will be supported?

    There is functionally no difference whether the camera is connected directly to the system or via a switch. Both should work the same. The only real requirement that you'd need to care about is whether the switch can pass multicast UDP traffic correctly (this is used for network discovery of IP cameras). Generally all unmanaged switches (probably what you are using) will treat multicast traffic identical to broadcast traffic, but some managed switches/routers may need to be configured to pass multicast.
    Eric

  • Photo images from dig. cam [one is error and other won't open] questions

    My wife inserted the sd card in the card reader and copied about 70 photo image files to the Mac. The camera that took all the 70 photos was a Panasonic DMC-LZ5 but I don't think the camera model matters much here.
    For the first time, 2 of the many images seem to be corrupt. Mac X reports one photo image has an error while trying to open and reports the second image won't open.
    My main concern is whether or not to just delete the two error/corrupt jpg images. My other main concern is that I don't want to keep the two images if it could affect or corrupt my hd or Mac system in some way.
    I normally just trash corrupted files; however, in this case I went ahead and attempted to open both of the 2 troubled files myself later and they both opened up in Preview and didn't report any error or corruption. However, one of the jpg images defintely is corrupt when viewing it as the bottom of the image is definitely messed up. However, the other image now opens perfectly and looks fine to the eye as if nothing is wrong with it.
    Here is a link to the one photo image that isn't quite right [note the obvious distortion at bottom of image]. Link is http://mysite.verizon.net/vzenvo78/question595.jpg
    Further very relevant information: The SanDisk sd card that all the 70 images were on is a 1 gig card and the sd card seems to be a total loss. The sd card can't be initialized/formatted by disk utility and furthermore the sd card is no longer recognized by the Panasonic camera - the Panasonic camera won't even preview the images off the card or allow me to format the card even from the camera.

    Hello,
    I see what you are talking about. I just discovered this same exact problem on a friends G5 after he uploaded pics from his Leica.
    This is what I did: I ran Disk Utility from the system restore disc to verify and repair the drive. DU reported Volume Bitmap problems. DU was able to repair the disc. Next, I created a new user account and tried uploading the images from the camera to the G5 and it worked just fine. The images loaded like they should.
    I also reinstalled the drivers that came with the camera.
    Delete any files that your Mac reports as a problem. It's just not worth leaving them on the drive.
    So...... run Disk Utility from your system restore disc. If it reports errors, hopefully DU can repair them. If not, one option is to get DiskWarrior here:
    www.alsoft.com or TechToolPro4 here: www.micromat.com
    One other idea is how old is the card?
    Next idea is to create a new user acccount: System Prefs/Accounts. Try using that account to upload the same images. See if they upload as they should. If they do, then the issue isn't system wide, it's just in the other user account.
    Remember to always back up your images/audio/data often as you never know when you might need to do either an Archive or Erase and Reinstall.
    Carolyn

  • Capturing images from camera and uploading to sharepoint library automatically.

    Hello Everyone,
    My requirement is to capturing images from camera and uploading to sharepoint library automatically. No manual uploading will take place.
    Please suggest me.
    Thanks,
    Rajesh

    Hi,
    From your description, my understanding is that you want to capturing images from camera and uploading to sharepoint library automatically automatically upload images to SharePoint library.
    You will save images in your local computer after capturing visitors’ image. You could develop a custom timer job to periodically get pictures from the local folder in your computer. Please refer to this article:
    Create and Deploy Custom Timer Job Definition in SharePoint Programatically
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    you could upload pictures to your SharePoint from the folder with C# code, please refer to this article:
    How to: Upload a File to a SharePoint Site from a Local Folder
    https://msdn.microsoft.com/en-us/library/office/ms454491%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Capture images from Camera directly at high resolution

    Hello Users,
    I want to capture images from Camera directly at high
    resolution. The problem is that although I am able to capture
    images from a Video Object, but the images are small because the
    Video size is only 160x120. So if I am able to capture directly
    from Camera, I am sure to get a higher resolution images at which
    the camera is capturing.
    Any help in this matter will be of great help

    Hello Users,
    I want to capture images from Camera directly at high
    resolution. The problem is that although I am able to capture
    images from a Video Object, but the images are small because the
    Video size is only 160x120. So if I am able to capture directly
    from Camera, I am sure to get a higher resolution images at which
    the camera is capturing.
    Any help in this matter will be of great help

  • Problem with capture image from wc

    hi all, i want to capture image from my webcam and play it, but it's not work
    please help me, here's code
    public class Demo extends JFrame {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Demo demo = new Demo();
         public Demo() {
              super();
              int a=30;
              final JPanel panel = new JPanel();
              getContentPane().add(panel, BorderLayout.CENTER);
              setVisible(true);
              DataSource dataSource = null;
              PushBufferStream pbs;
              Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
              CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
              for(int i=0;i<deviceList.size();i++) {
              // search for video device
              deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
              if(deviceInfo.getName().indexOf("vfw:/")<0)continue;
              VideoFormat videoFormat=new VideoFormat("YUV");
              System.out.println("Format: "+ videoFormat.toString());
              Dimension size= videoFormat.getSize();
              panel.setSize(size.width,size.height);
              MediaLocator loc = deviceInfo.getLocator();
              try {
                   dataSource = (DataSource) Manager.createDataSource(loc);
                   // dataSource=Manager.createCloneableDataSource(dataSource);
                   } catch(Exception e){}
                   Thread.yield();
                   try {
                        pbs=(PushBufferStream) dataSource.getStreams()[0];
                        ((com.sun.media.protocol.vfw.VFWSourceStream)pbs).DEBUG=true;
                        } catch(Exception e){}
                        Thread.yield();
                        try{dataSource.start();}catch(Exception e){System.out.println("Exception dataSource.start() "+e);}
                        Thread.yield();
                        try{Thread.sleep(1000);}catch(Exception e){} // to let camera settle ahead of processing
    }

    iTool wrote:
    hi all, i want to capture image from my webcam and play it, but it's not workThat's a very descriptive error message, "it's not work". Everyone on the board will certainly be able to help you out with that.
    The first error I see is that you're using the CaptureDeviceManager in an applet. If T.B.M pops in here, he can tell you why that's going to be a CF 99% of the time.
    The other error I see is that your code looks absolutely nothing like any working JMF webcam capture code I've personally ever seen.
    Lastly, the big one, even if you were somehow capturing video magically, you're not even trying to display it...so I'm not entirely sure why you expect to see anything with the code you just posted.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html]
    Your best bet would be starting over and using the example code from the page linked above.

  • Image Date error on importing TIFF images from Disk

    I have thousands of high quality (~100 Mb each) images in 20 folders on a 1 Tb hard drive. I have been using Bridge to manage the images, adding some metadata such as keywords and copyright data. I am considering importing all these images into Aperture and using it as the primary image management tool.
    But I am concerned about an apparent bug in the way Aperture handles the "image date and time".
    In Bridge (and GraphicConverter), the "image date" field is correct, directly from my CFV digital back on the camera and inline with the time of day the shot was taken (e.g. sunrise image at 6am). When I import the image into Aperture, the time gets shifted by 14 hours.
    For example, an image in Bridge that correctly shows Date Created as 10/05/2009 7:36am gets distorted to 10/05/2009 9:36pm, exactly 14 hours later than the correct time. It was taken at 7:30 in the morning but, in Aperture, looks like it was taken in the late evening. It does not look like a time zone issue as the image was taken in the same time zone as my Mac Pro is set to.
    I have tried deleting the masters and re-importing them with GMT +2 and GMT -12 in the two time zone adjustment fields. This gets the right time into the Image Date field but then the image has the wrong time zone data in the "Camera Time Zone" and "Picture Time Zone" fields.
    I have tried running MetaData > Update Date and Time (with Master files ON) but it comes back with an error "no master files were adjusted ... because they have a format that does not permit modification".
    I have tried running MetaData > Update Date and Time (with Master files OFF). It appears to work but I assume that the underlying file in the Aperture library still has the incorrect time.
    Have others faced this problem? Is there a solution? Is it a known bug that Apple might fix one day?
    Regards
    Peter

    I am seeing a very similar problem when importing TIFF files back to Aperture.
    This is what I do and what I see:
    1. I import RAW images from my camera into Aperture. They show the correct date and time.
    2. I open an RAW image in Photoshop (CS4) directly from the finder. The image inside Photoshop (file/info) shows the correct date and time.
    3. After editing I save my image as 16bit TIFF and it still shows correct date and time.
    4. I import the new TIFF back into Aperture. The time is shifted back 15 hrs!
    I can then go in and Metadata/Update Date and Time (no masters) and it works well, but it is a pain to do on each image I process.
    In all cases camera and image timezone is set to US Pacific as it should be.
    To me this seems like Aperture is somehow miss-interpreting the timezone when reimporting TIFFs.
    I have not tried importing JPEGs or PSDs back but I will and will report back...

  • IChat Error: "Can't get video from the camera"

    When I try to Screen Share with iChat on a local network, I receive the error "Can't get video from the camera" when I have an external camera plugged into the FW400 port on my Mac Mini. The Screen Sharing feature works great when the camera is not connected. Anyone know why this is and how to fix it?

    Tell us about the Network you created please.
    What make and model modem ?
    Can it route (issue IPs) ?
    IS there a router ?
    Make and model of that please ?
    If there are two devices which is doing DHCP if any are ?
    IS there any computer that is sharing it's Internet Connection with any other computer ?
    I take it from the title and the post that you infer you can Video and Audio chat ?
    The Cannot get Video from Camera normally gets and Error Log pop up.
    This can be opened with the reveal triangle on the left. The Details shown will have a Error number. Do you know what this log says ? (normally Error 20 or 21)
    Old logs are stored in Users/(your account)/Library/Logs/iChatConnectionErrors by date.
    IF you post an Error Log stop at the line that Says "Binary Images for iChat" as we don't need the bits below that yet.
    As the Screen share in iChat uses an Audio component then the Camera if it is also the Mic needs to be ON.
    In your case this may mean that in the ichat Video Menu both Camera Enabled and Mic Enabled should both be ticked.
    (I have never seen an iChat error code for not (specifically) being able to get the Mic input so the message might be the only one iChat can pop up)
    It does seem very odd that it only effecting Screen Sharing.
    I have a Firewire connected DV converter that has two Firewire ports itself so I can input the camera feed to two computers. When this is in place the System also sees it as a Network.
    I have also heard of one person with a Firewire Stills camera and I think the Storage space was seen as an External Device and therefore appeared Networked which is why I asked the first set of questions.
    iChat does not like being in Two networks (a modem that issues IP address and a router doing the same or Wireless to a neighbour and Ethernet to your Own Internet connection, the Mac being the hub in a Share Internet connection, Wireless and Ethernet to the same router and using Parallels when set to Share the Mac's IP are the most common)
    The Screen Sharing option in iChat > Video Menu is ON ? (at both ends ?)
    As iChat's Screen Sharing is related to the System Screen Sharing and therefore Apple Remote Desktop you may find that in any routing device you may have to open ports 5900 and 5988 if not using UPnP
    http://support.apple.com/kb/TS1629?viewlocale=en_US
    You said Local Network. Do you mean this is using the Bonjour Buddy List ?
    11:21 AM Saturday; June 14, 2008

  • Capturing image from Webcam

    Hi,
    Is there any way in which Java can be used to capture images from the webcam and save it to a predefined image file name?
    Any examples out there?
    Alternatively, I could have the application written in other languages, but still, I would need my main Java app to launch this external app.
    Thanks alot.

    Hi,
    Is there any way in which Java can be used to capture
    images from the webcam and save it to a predefined
    image file name?
    Any examples out there?
    Alternatively, I could have the application written in
    other languages, but still, I would need my main Java
    app to launch this external app.
    Thanks alot.Yes, the ExampleSave from the JavaTwain package at http://www.gnome.sk does this job :)
    If you just want to see how Java Twain works with your webcam (works with a scanner too):
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, ...
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] . I am the member of the staff :)
    Erika Kupkova

  • Capture Image from Screen and Yosemite Mail

    Composing a new mail message in Yosemite. If use the pull-down option to Capture Image from Screen and place the image in the message body (HTML), the image is not being sent with the message. A broken image icon is sent instead.
    If, on the other hand, I use the paperclip to add an image file to the message body all is well. Same if I copy and paste an image into the message body.
    In both those cases where it works, I also get the Markup pulldown to edit the image. In the Capture Image from Screen case where it doesn't work I also don't get the Markup pulldown menu and options.
    Anyone else seeing this? Is it a known bug with Yosemite or just on my side?

    I'm actually experiencing the same thing, i asked my officemate and he is also getting the same error when using capture on mac mail

  • Capture image from isight

    What is the best way to capture images from iSight using Applescript ?

    erritikamathur wrote:
    What is the best way to capture images from iSight using Applescript
    (1) Depending on what you want to do, you may be able to use your "Automator" application to make your scripts instead (Automator calls them "workflows".)
    When you launch Automator, you can immediately select the "Photos & Images" as a starting point to see if it will meet your needs by selecting "my Computer's Camera" in the "Get content from:" choices bar there.
    For more info on Automator, start with Mac 101: Automator and then launch Automator on your Mac and use its Automator > Help as needed.
    (2) If you really need to use AppleScript, you need to understand that you script applications (such as iChat), not devices (like iSight.) Therefore, first decide what you want to do with your iSight. Click -> here to see a list of some applications that can operate your iSight.
    Once you have decided what you want to do, launch your Mac's AppleScript Script Editor.
    Next, open Script Editor's Library window to see a list of Apple apps that are scriptable. Those that can control iSight include iChat, iMovie, and iPhoto. Double-click on one of the apps of interest to see the dictionary of functions that can be scripted in that application. Reviewing the library for any app will help you determine whether the functions you want to control can be scripted in that app. If not, you need to find another app that can control that function, develop an alternate process flow that can be scripted, or look for a way to accomplish your task other than with AppleScript.
    Some third party apps may also be scriptable. See the documentation or support info for particulars directly from the developers of those apps.
    More help is available from a variety of sources. For instance, you can check your Mac's Help on specific applications to see if they contain info on automating them. One specific example is iChat > Help, which gives a good start on your iChat study.
    Unless you already know how to use AppleScript, you may also need to do some more general study or perhaps take advantage of the Apple training series book available from the Apple Store.
    EZ Jim
    G5 DP 1.8GHz w/Mac OS X (10.5.7) PowerBook 1.67GHz (10.4.11)   iBookSE 366MHz (10.3.9)  External iSight

Maybe you are looking for

  • ICloud storage and backup question

    According to the most answers that I have been searched here in iCloud ,I found out that iCloud didn't back up all the photos on my photos stream (which I couldnt restore them later -_-") but pictures will be keep in iCloud photos stream just for onl

  • Format String using XML attributes

    I need to format a string based on attributes from a schema. I am attempting to do this using an Assign activity and the java embedded format string function. Here is a simplified version of what I am trying to do: oraext:format-string('Service Error

  • Mailboxes keep emptying and refreshing

    I am having a problem where my mailboxes keep coming up empty and then taking a long time to refresh (giving me the number of "incoming" messages that equals the entire content of my mailboxes).  This happens for my icloud-based email (.mac) as well

  • UNIX: problem running an DEV & QA environment using form/report servlets

    UNIX: problem running an DEV & QA environment using form/report servlets I am trying to setup on one server an DEV and QA environment using the Forms Servlet, Forms Listener Servlet and Report Servlet. I think I have the Forms Servlet and Forms Liste

  • Photoshop Elements 12 Zoom Burst effect stopped working

    the zoom burst effect has stopped working in PSE 12! when I click the zoom burst function the photo distorts as designed but when i click the "add focus area" button on the photo it returns the whole photo to normal without focusing the part selected