CCD Camera Library

dzt

Active Member
Licensed User
Hi,

Here is a CameraCapture library (as I promised in another thread).
Needs .NETCF 1.0 and Windows Mobile 5.0 or above version.

Short Description:
Has two methods. GetImage and GetVideo. Both displays the Camera Capture Dialog and waits for user action. Returns in a string value the image or video filename (full path). Empty string if no image or video saved.

GetImage(ResolutionWidth, ResolutionHeight, Quality, ControlName, Title)
ResolutionWidth, ResolutionHeight: Integer values. The resolution of the image to capture.
Quality: Integer value. Sets the Image Quality. Default quality = 0 , Low quality = 1, Normal quality = 2, High quality = 3.
ControlName: String Value. The name of the control that owns the Camera Dialog.
Title: String Value. Sets the Title of the Camera Dialog.

GetVideo(ResolutionWidth, ResolutionHeight, VideoTypes ControlName, Title)
ResolutionWidth, ResolutionHeight: Integer values. The resolution of the video to capture.
VideoTypes: Integer value. Sets the allowed video types. Standard = 1 , Messaging = 2, All = 65535.
ControlName: String Value. The name of the control that owns the Camera Dialog.
Title: String Value. Sets the Title of the Camera Dialog.

The attached zip contains dzCameraCapture.dll and test1.sbp.

Enjoy
 

Attachments

  • dzCameraCapture.zip
    3.4 KB · Views: 610

Cableguy

Expert
Licensed User
Longtime User
Awsome!!!!
 

justdo

Member
I compile source code and got 2 files: camera.exe and camera.exe.config

I copy 2 files to my device (with dzCameraCapture.dll, of course) and run. It run but when click button it got error:

An error occurred on sub button1_click
Line number: 0

What's wrong? Please help me. Thank you.
 

dzt

Active Member
Licensed User
I assume that you are talking about included test1.sbp.

What OS is in your device? Actually what is your device?
What version of .NETCF is it running?

Try different compinations of ResolutionWidth, ResolutionHeight (supported by your camera)

Did you try to capture video? Results?

I'm Sorry for answering by asking questions:)
 

justdo

Member
My device: Eten M700 - Windows Mobile 6.
My .NET CF: I don't know how to check :(
Capture video also have error.

Thank for your help.
 

dzt

Active Member
Licensed User
Hi,

justdo said:
My device: Eten M700 - Windows Mobile 6.

It seems that there is an incompatibility issue with your device (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2360724&SiteID=1)

Try the attached dll and test1.sbp to this post as is.

justdo said:
My .NET CF: I don't know how to check :(

Use NetVersion method of Hardware Library. But as a WM6 device there is preinstalled .NETCF 2.0

The attached dzCamerCapture.DLL has 2 more methods (GetImage2 and GetVideo2). You can now specify Folder and Filename.

Please see attached sample.
 

Attachments

  • dzCameraCapture2.zip
    2.6 KB · Views: 275

justdo

Member
Hi dzt,

I tried your code but it's still error. Maybe my device can't use your library. Anyway thank you so much, you're great !
 

jsa

New Member
Licensed User
flycam-cf

Hello,
Say me if your lib is for flycam-cf. i am using but, i have Know error, when i run .
I no speak english very well, I sorry, :-(

thanks
 

dzt

Active Member
Licensed User
Hi,

I don't have a LifeView FlyCam-CF to test it. But searching I found that it is a discontinued product and there is not drivers for WM5 and above (even if it works with WM5).

So it seems that it can't be used this library with it.
:sign0013:
 

ballfire1234

New Member
Licensed User
Longtime User
GetImage2

Hi
I have downloaded the 2nd DLL from the thread that talks to a 2n dmethod (includes fimage writing to file), and its refed as GetImage2 methid. But using the DLL only the method GetImage seems to be present?
 

taximania

Well-Known Member
Licensed User
Longtime User
I've searched MSDN and Google for hours, and I mean hours, tried numerous Camera.DLL's
in #Develop, and I can't find a way to get a camera shot into a Basic4ppc Image :sign0082:

What I've come up with is very similiar to the DZT's DLL in this thread.
If not nearly identical.


Mode 0=Picture, jpg, 1=Video, mp4?, 0 is default.
ShowCam Shows the camera dialog. As per normal camera App.
Filename String value to last picture taken.

All variations of size, quality, storage media etc are still available
via the camera dialog. There not in DZT's DLL example.
Especially storage. Memory card is available as a choice.
All Pics or vids are stored in the default directory.
My Documents/My Pictures/ with default file names.
If Image1.jpg exists, the new one will be called Image2.jpg

It's a bank holiday weekend (UK)
And I've consumed copious amounts of alchohol, hic ;)
 

Attachments

  • TaxiCam.zip
    2.1 KB · Views: 116

taximania

Well-Known Member
Licensed User
Longtime User
I now find out that a custom dll is not needed to start the CameraCaptureDialog.

I 'dumped' the contents of a WM6 XDA Orbit ROM file on my PC
and copied Microsoft.WindowsMobile.Forms.dll to my device.

Added it as a component in a Basic4ppc app.
Used 'Add Object' 'CameraCaptureDialog'
and named it cam
cam.New1 Voila !!

All the functions etc are available.

@Erel. ROM files are freely available on the net.
And downloadable from the O2 UK website.
Am I Ok to put a link to this 'Micro$oft dll' on the forum ?
 

Cableguy

Expert
Licensed User
Longtime User
@ taximania

A bit :sign0006:, but, I've been looking for some schematics for an IR serial (R232, DB25) transceiver, in order to comunicate between my device and a few machines at work, wich use a simple AT protocol comunication...
Any sugestions?
 
Last edited:
Top