Do you have a question?
Please contact us via email, contact form or phone
+49-7243-2167-23 (head office, Germany) or directly your local contact.
Special note
This knowledge base is updated regularly. If you need an information and don't find it here, please don't hesitate to contact us! Of course, we're also to your disposal at the phone:
+49 7243 2167-0
Live image transfer from VC Smart Camera to PC
How do I get a live image on my PC (from a VC20xx, VC4xxx or VCSBC4xxx)?
To transfer images from a VC Smart Camera to a PC, use one of our demo-programs "img2.c" or "imgpar.c" which can be downloaded from our Download Center.
Both programs transfer images from the camera to the PC.
- img2 takes an image and transfers it to the PC, in live or still mode.
- imgpar has been optimized to run in parallel to other processes: it simply transfers the content of the Logical Page to the PC - without taking images itself. This means you can transfer images taken by any other program, as long as they are in the Logical Page (of course, a modification for another memory zone is possible). imgpar must be launched before your main program with "imgpar &" command. Imgpar is attached to this article.
Remember to compile parallel programs relocatable (i.e. by using project files with "r" at the end - for example: "new525_CCS31r"). Hint: for transfering live images, turn the camera to live mode using the shell command "vd -l .
These programs transfer up to 30 images (640*480 Byte) per second. Please start the program "img2" (resp. imgpar and your other program) on the camera at Telnet port 23. Then start the PC program.
After you start the camera program the camera waits at port
SERVER_PORT (port 2002) for a string RECEIVE_BYTES (24 Bytes).
This string includes the following data:
- x position of the image (int value, 4 Bytes)
- y position of the image.
- dx
- dy
- incrx
- incry
If the string is complete the camera starts transferring the image. It responses the string values at port 23. Then it waits again at port SERVER_PORT for a new string. Is the value dx=0 the program ends.
How to start the raw image transfer via TCP/IP using VC's "ATX Client"?
The ATX Client is attached to this article, please make sure to be logged in to be able to download the file.
Please do the following steps:
- In order to register the OCX please call from command line:
-> regsvr32.exe atxcontrol.ocx <- - start img2 on the camera (resp. img3 and your main program)
- start atxClient.exe and type in the
- IP#,
- port=2002,
- x,y, dx,dy (the size and position of the image)
The 'Server' program is just for testing. If you want to use the'Live' feature you need to check the checkbox BEFORE creating the connection. Eventually you'll have to hit 'Shutdown' before you check that box and then reconnect - sorry. Just for testing.
For further information, please consult the read-me file.
To be able to donwload the mentioned files, please log in. Thank you!







