Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to Modify Cameara Link file of USB camera

I am using Sony Handycam DCR-HC96. This camera can snap the image at resolution of 2016 X 1512 if snaped from camera directly. But if I connect the camera to PC and try to snap by using Labview Imaq USB; then it can snap to max. 320 X 240 resolution only. the manufacturer camera link file doesnot provide the option of changing the setting.

Pl advice how to locate the original camera link file and how to modify it.
0 Kudos
Message 1 of 8
(5,647 Views)
Hello,

First of all, let me tell you that putting your hands in a camera file is a bit risky...

If you open the camera file with Notepad, there should be a line :

      AcquisitionWindow (0, 0, X, Y)

Where X and Y are the horizontal and vertical resolution of the image to be acquired by the frame-grabber. Untill now I only used CameraLink cameras ; never Firewire or USB cameras but I assume that the camera file should more or less be the same.
So basically, if you replace X and Y which should be in your case 320x240, and save the camera file, it should work...

Good luck

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 8
(5,638 Views)
Sandesh,

As I posted in your other thread, you can use the IMAQ USB Init.VI to set the Video Mode input, but the options you will be able to access are largely dependant on your camera itself. It is highly likely that your camera (because it is a HandyCam) will not support the different image acquisition modes with the IMAQ for USB driver. Please be aware that this is an unsupported driver, and that we cannot guarantee compatibilty with your camera.
0 Kudos
Message 3 of 8
(5,624 Views)
TiTou,

Thanks for advice.

How to open Camera File ?

Regards

Sandesh
0 Kudos
Message 4 of 8
(5,610 Views)
Titou,

Cameralink and Firewire is same. If you have done any experiment with Cameralink pl share.

Regards

Sandesh
0 Kudos
Message 5 of 8
(5,609 Views)


Sandess a écrit:


Cameralink and Firewire is same.


No it is not.




Sandess a écrit:

If you have done any experiment with Cameralink pl share.



Well as I said, you can open the camfile with Notepad or any simple text editor, then for each NI board that works with the camera you have a section and in each section you have a bunch of settings ; among which "AcquisitionWindow (x, y, X, Y)" this mean the borad will acquire X columns and Y lines, starting from column x and line y.
For some camera (e.g. the Basler A202k if I remember well) the default camera file is set to
"AcquisitionWindow (0, 0, 1000, 1000)" while the CCD sensor is 1024x1024, so I had to edit the camera file to put "AcquisitionWindow (0, 0, 1024, 1024)" in order for MAX to be able to get the whole image from the camera ; this has to be done for every NI board in the camera file.

Hope this helps

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 8
(5,604 Views)
Dear TiTou,

I am using sony handycam with ilink port. This port I have direcctly connected to PC through Firewire Card. I am not using any NI Card. So Camera captures the image by using Microsoft Firewire driver at a resolution of 760 X 615. I need to increase this resolution as CCD of camera hass the capacity. BBut I have no idea how to modify driver file or Cameralink file. You suggested to open cameralink file but where to find it. Is it in System32?

Sandesh
0 Kudos
Message 7 of 8
(5,598 Views)
Sandesh,

The handycam you are using is technically a firewire camera, but it is not DCAM compliant and that is why you cannot use it with our IMAQdx drivers. It communicates to the OS with DirectShow, which is why you are able to use the IMAQ for USB driver, even though it is communicating through firewire. USB cameras do not have camera files like camera link that you can modify to change the possible image sizes. Camera link is a completely unrelated standard from your handycam. To get your image to the resolution you need, you can try using the IMAQ USB Init.VI to set the video mode, but this is going to be dependent on your camera and driver, and it may or may not work. Since you are using Microsoft's FireWire driver (which doesn't provide any kind of customization options) you would likely have to modify the driver itself. Unfortunately that is not something I can give you advice on, and I would encourage you to contact Microsoft's customer support for help on how to do so.
0 Kudos
Message 8 of 8
(5,583 Views)