Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ImageProcessing , +
Hi ,
 
I am an undergraduate student and I am working on a project ( hardware ) with my group , we are finished 75% of our project but now we need to make a software module to interface with linksprite jpeg camera !
 
this camera has its own commands and this is the manual
http://www.mediafire.com/view/?ec79xt02620zil5[^]
 
we are trying now to write 2 functions ::
 
1- TakePicture
2- ReadJpegFileContents ( then store the bytes in memory stream then display the image )
 
we are finding difficulties in writting the 2 functions because we are a beginners
in c# and we didnt study it in our course .
 

we will appreciate any help in this feild or any references that might help
 
thank you
 
[edit]clickable link[/edit]
Posted 12-Nov-12 5:38am
Kushina265
Edited 12-Nov-12 5:58am
Nelek47.5K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The first thing to do is to make sure you have established communications with the camera.
Assuming you can talk to it in some way already, the manual is pretty clear about what you have to do. To take a picture:
 
Send the camera a sequence of 5 bytes: 0x56 0x00 0x36 0x01 0x00
It will talk back to you and return 5 bytes: 0x76 0x00 0x36 0x00 0x00
 
This presumably means "Taken ok".
 
To read the file doesn't look too difficult either.
To be honest, the manual isn't the best I've seen, but it by no means the worst.
 
It's a little more complex to return a JPG file, because the data is sent in blocks, but it's not complex. All you have to do is request each block in turn - there is even a flow chart explaining how to do it!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 540
1 Sergey Alexandrovich Kryukov 426
2 Yogesh Kumar Tyagi 384
3 Prakriti Goyal 280
4 Maciej Los 205
0 OriginalGriff 6,472
1 Sergey Alexandrovich Kryukov 5,404
2 Maciej Los 3,434
3 Peter Leow 3,259
4 DamithSL 2,495


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100