CHDK PTP interface - page 55 - General Discussion and Assistance - CHDK Forum
supplierdeeply

CHDK PTP interface

  • 1244 Replies
  • 523441 Views
Re: CHDK PTP interface
« Reply #540 on: 25 / June / 2011, 11:43:46 »
Advertisements
i dont think i totally understand mweerden - "does not contain the live image" part.
You already know what the live image (a.k.a. viewport) is: the image produced by the camera sensor (or at least a derivative of it).

The overlay (a.k.a. bitmap) is the rest. ;) The focus rectangle, the mode information etc. Also the menus are drawn on the overlay. The parts of the overlay that are transparent allow you to see the live image. It is superimposed (or overlaid ;)) on the live image.

Re: CHDK PTP interface
« Reply #541 on: 25 / June / 2011, 12:07:30 »
B.t.w., as said a while back, you can also just manually fill in (part of) the palette to see what is in the overlay.

Re: CHDK PTP interface
« Reply #542 on: 27 / June / 2011, 12:09:39 »
I have been using CHDK for a year or so and I am now experimenting with ptpCamGui.

So far I have failed to get ptpCamGui to connect to a camera.  I have tried two computers, three different cameras (A590is 1.00E, A590 101B, SX110 1.00B).  In all cases, ptpCamGui waits for the camera and then resets, over and over.  No error messages are generated.

libusb-win32 is installed and seems to be working for each camera.  When a camera is attached to a USB port, Windows device manager lists the camera in the Imaging devices category with a warning that Windows "cannot load the device driver".  This appears to be as intended.

Perhaps the camera is not in the correct state or I have not followed the necessary start up sequence.  Can you suggest how I should proceed?

 ???



*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: CHDK PTP interface
« Reply #543 on: 27 / June / 2011, 13:32:13 »
@vino

This might help.

Also, it seems a service installed by the Canon tools (ZoomBrowser etc.) conflicts with libusb ...
I'm told it's called something like "CAlib8" - you might want to look into temporarily disabling this service,
if you have the Canon USB tools installed.

hope that helps,

wim


*

Offline achillies

  • ***
  • 227
  • SX130IS
Re: CHDK PTP interface
« Reply #544 on: 01 / August / 2011, 11:30:17 »
I was under the impression that a person could use either the internal ptpcam (ptpcam.dll), or an external one (ptpcam.exe).

Is this possible, and if so how?
Don't let the sands of time get in your lunch.

*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: CHDK PTP interface
« Reply #545 on: 01 / August / 2011, 17:22:28 »
Hi achillies,

ptpcam.dll is a adaptor between windows applications and ptpcam.exe. The dll need ptpcam.exe. If ptpcam.exe not found on directory, only then extract ptpcam.dll an internal version of ptpcam.exe. The dll only clean up an internal ptpcam.exe on exit.

rudi

Re: CHDK PTP interface
« Reply #546 on: 02 / August / 2011, 07:21:12 »
I have written a ColorTab-Viewer.

can you upload this somewhere else ?

Thanks.

David

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK PTP interface
« Reply #547 on: 02 / August / 2011, 08:35:21 »
can you upload this somewhere else ?

Ok, the file is back online, same link. But this is not my work, rudi has this programmed!

msl
CHDK-DE:  CHDK-DE links


Re: CHDK PTP interface
« Reply #548 on: 02 / August / 2011, 09:30:19 »
Thanks.

It seems that Rudi does some good work, too bad I cannot read German.

Did anyone ever manage to compile or adapt EWAVR's CHDKCAM code ?

Reyalp made a comment (somewhere) that certain of that code had been removed (from where ?) and he hoped to replace it one day.

I am assuming at a required framerate of 10 fps the camera does not have the memory or computing power to reduce framesize to 160x120 and compress before transmission ?

Presumably at the camera end you only need to implement PTP_CHDK_GetVideoSettings for each supported camera ?

I have no idea how you would display it at the PC end.

EWAVR seems to have made use of a DirectShow filter VCamFilter.ax supplied with "e2eCam, A WDM capture driver that requires no hardware."

Somehow, CHDKCAM must repeatedly requests frames from the camera using ptp_chdk_get_memory() and copy them to livebuf,crop the active area (if necessary) and convert to RGB.

I guess the location of that buffer is then used by e2ecam.

GDI+ is used for something, have not studied it and don't know if I can compile it with the Borland C++ 5.5 that I have downloaded.


David
« Last Edit: 02 / August / 2011, 10:06:03 by Microfunguy »

Re: CHDK PTP interface
« Reply #549 on: 02 / August / 2011, 11:46:41 »
Did anyone ever manage to compile or adapt EWAVR's CHDKCAM code ?
Does this qualify?

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal