Quantcast
Channel: The Imaging Source Community
Viewing all 172 articles
Browse latest View live

DFK21AU04.AS USB3 Ports

$
0
0
Hello everyone,

I am having an issue with the DFK21AU04.AS camera when plugged into USB3 ports. The camera streams but I am unable to change any settings (for example, gain, exposure). This problem is evident on multiple computers running either Linux or Windows.

Is there a firmware update to fix this problem.

Kind Regards
Nicola

grabber.openDev() problem

$
0
0
Hello! I'm using MSVS 2015. When I try to open device I got Exception thrown:

///////////////////////////////////////////////////////////
Exception thrown at 0x00007FFD59FC8633 (TIS_UDSHL11d_x64.dll) in IC_WriteSampleVideo.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

If there is a handler for this exception, the program may be safely continued.
//////////////////////////////////////////////////////////

Code of function:
bool select_openCam(std::vector<DShowLib::Grabber>& grabber)
{
// Function for choosing which cameras to open and use for writing videos
//

grabber.resize(1); // for getting availabeVideoCaptureDevices;

DShowLib::Grabber::tVidCapDevListPtr pVidCapDevList = grabber[0].getAvailableVideoCaptureDevices();
if (pVidCapDevList->size() == 0)
{
std::cout << "No available Devices";
return false;
}
else
{
std::cout << "Available Devices:\n";
unsigned int i = 0;
for (DShowLib::Grabber::tVidCapDevList::const_iterator it=pVidCapDevList->begin(); it!=pVidCapDevList->end(); ++it)
std::cout << i++ <<". " << it->getBaseName() << std::endl;

// Choose number of cameras
unsigned int ncam = 0;
std::cout << "\nHow many cameras do you want to use for recording?";
std::cout << "\nNcam = ";
while (!(std::cin >> ncam) || ncam<0 || ncam > pVidCapDevList->size()) {
std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
std::cout << "Invalid input. Try again: Ncam = ";
}
grabber.resize(ncam);

if (ncam == 0)
return false;

// Open all cameras
else if (ncam == pVidCapDevList->size())
{
/*for (unsigned int i = 0; i < ncam; ++i)
if (!grabber[i].openDev(pVidCapDevList->at(i)))
{
std::cerr << "\nError to open " << pVidCapDevList->at(i).getBaseName();
std::cerr << "\nError:" << grabber[i].getLastError().toString();
return false;
}*/

for (auto i = std::make_pair(grabber.begin(), pVidCapDevList->begin()); //std::pair<std::vector<DShowLib::Grabber>::iterator , DShowLib::Grabber::tVidCapDevList::const_iterator> i(grabber.begin(), pVidCapDevList->begin())
i.first!=grabber.end();
++i.first, ++i.second)
if ( !i.first->openDev(i.second->getBaseName()) )
{

std::cerr << "\nError to open " << i.second->getBaseName();
std::cerr << "\nError:" << i.first->getLastError().toString();
return false;
}
}

// Open only selected cameras
else
{
std::vector<int> icam(ncam);
bool bRepeat;
int i = 0;
std::cout << "\nChoose cameras (Write index of camera and press enter):\n";
while (i != ncam)
{
bRepeat = false;
while (!(std::cin >> icam[i]) || icam[i]<0 || icam[i] >= pVidCapDevList->size()) {
std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsiz e>::max(), '\n');
std::cout << "Invalid input. Try again: ";
}

//Check for repeted index of camera
for (int j = 0; j<i; ++j)
if (icam[j] == icam[i])
{
std::cout << "You have already chose that camera. Try again:\n";
bRepeat = true;
}
if (!bRepeat)
++i;
}

// Open grabbers
for (unsigned int i = 0; i<ncam; ++i)
if (!grabber[i].openDev(pVidCapDevList->at(icam[i])))
{
std::cerr << "\nError to open " << pVidCapDevList->at(i).getBaseName();
std::cerr << "\nError:" << grabber[i].getLastError().toString();
return false;
}

}
}

return true;
}

Geting Image from icImagingControl by a Thread

$
0
0
Hi
I know how can get Image from Imaging source camera by TIS.Imaging.ImageBuffer and Available image event. but now I need use a thread for image capturing.

Getting the TIS GStreamer Source Codes

Intergrating with FPGA

$
0
0
Hello!

Is it possible to connect FPGA between cameras (DMK 33GP2000e) and PC. I want to do all image processing on the boards, because I use 4 and more cameras for real-time program. Could you please suggest any idea?

Or just use arm boards with linux. Because I saw, that you have some partial support for linux (https://www.theimagingsource.com/sup...ads-for-linux/)

Thank you in advance.

Set a list for setDeviceFrameFilters

$
0
0
I wrote a frame filter as described by the chapter "Writing a Frame Filter: Binarization" in the user's guide.
This code work fine:

Code:

class MyFilter1 : public DShowLib::FrameFilterImpl<MyFilter1>
{
public:
        MyFilter1 ();

... etc ...       
};

...
Grabber.setDeviceFrameFilters (&MyFilter1);
...

Now I add a second filter, the class is called MyFilter2.
How can I do the filters' list?

Code:

tFrameFilterList filterList;
filterList.push_back ( ... MyFilter1 ??? );
filterList.push_back ( ... MyFilter2 ??? );
Grabber.setDeviceFrameFilters (filterList);

Best regards.
Paolo

(SDK 3.3)

Use DFK AFU420-CCS in VB6

$
0
0
Hi.
I have a problem with the camera DFK AFU420-CCS.

In several projects I used the DFK 24UJ003 with no problems.
It is properly recognized and handled by IC CAPTURE.
I can integrate it in my VB6 projects using IC Imaging Control 3.2 ActiveX.

For a new project I have a DFK AFU420-CCS but I have a problem.
It is properly recognized and handled by IC CAPTURE (2.4.642.2631)
It is NOT recognized by IC Imaging Control 3.2 ActiveX so I can't use it in my VB6 project.
I tested the camera with IC Imaging Control 3.4 Sample Demo Application.
The camera is recognized and works properly till the resolution RGB32 (5424x5360)
When I select the maximum resolution RGB32 (7716x5360) and start the Play button, I receive this exception:
DemoApp
An unexpected DShowLibException occured: Error = Failed to start the graph. Due to: Error not specified.
In file: "FilterGraph.cpp" at line: 263

How can I use the camera in VB6 with IC Imaging Control 3.2 ActiveX ?
If I have to use IC Imaging Control 3.4 how can I fix the exception ?

Thanks.

DMK 33UP2000 Error device lost

$
0
0
Hi everyone,

I've seen that "Device Lost" errors appear to be typically associated with power fluctuations.
I simply would like to understand if this is really my problem, or maybe something else.
I have my DMK 33UP2000 camera connected straight on to USB 3.0 port of a desktop windows 7 PC.
I have tried plugging it to both front and back ports, but the result is the same: after some seconds, typically anywhere between 2 and 30 s, IC Capture 2.4 tells me it lost the device.

Is there anyone that could help me troubleshoot this?

Many thanks,

Ricardo

DFK 42BUC03 Software and Trigger Questions

$
0
0
The DFK 42BUC03 is USB2 and captures at 25fps necessary for hd cine transfer.

There is no alternative IS camera model with 25fps other than the DFK 42BUC03 which is USB2.

My external trigger, via the Hirose connector, is a reed switch and button magnet connected to the projector drive shaft. The magnet closes the reed switch one pulse each frame when the film frame is stationary in the gate. I am using a 9 volt battery as power source to activate the trigger.

I am capturing uncompressed at a slow speed, well below 25fps, with software settings at 25fps and 50th second shutter. I am testing with various software settings and speeds.

QUESTIONS:

What alternative 12 volt power source transformer output (amps) is it safe to use for the camera trigger ?

The IC capture software always says "live view" at the header - at all times even when when I am definately capturing in trigger mode ?

I have tried connecting to USB3, sometimes recommended for optimum USB2 results, but it does does not work. Can the DFK 42BUC03 use USB3 or only standard USB2 ?

I am getting capture results where the video occasionally halts and starts up again. Is this a limitation of USB2 ?

Ian

Ian Partridge

Region of Interest - Hardware or Software Side?

$
0
0
Hello! I was looking through the documentation and stumbled upon the region of interest.

Is the region of interest (ROI) implemented on the hardware or software side? What I mean is, if I take a region of interest (say 300x80 pixels), can I get something like 800+ fps for that region? This would be true if the region of interest is done at the hardware level. Or, is it just a software filter and my fps will be restricted to 30 fps or something similar?

Thanks!

Frame rate Issue

$
0
0
i'm looking to get the best framerate with my products (DMM 42BUC03 or DFK 22BUC03).
for example, the 22BUC should go to 150 fps.
they are connected by USB on a Win7 64 OS, and i'm using the LabVIEW 2014 x64 programming environment.
The exposure is set to 1 ms.

the problem is : i never reach a such framerate...
the best i could have is only 10 to 12 fps, with the smallest resolution (but a higher res dont drop the fps, or eventually not too much).

the fps drops when i use the "IC_Grab_Picture.vi".
precisely in this sub-vi, the fps drops when i call the "MemorySnapImage" (in an invoke node).

Finally, i'll use these cam in two different ways : from an external trig, or in a live/continuous mode.


Why the function to snap/get the image data is so long ?
How to get the highest fps ?
Do you have a such simple program/camera initialization, which is working fine at a high fps ?


Thanks for your help. ( Phone Cable Internet Bundle )

Help on how to save images as raw file format

$
0
0
Please I am using a DMK 42BUC03 camera and I want help on how to save the images as raw file format such .cr2, .nef, etc. Currently the IC capture can only save files as .bmp, .jpg and .tiff forms.
Thank you

Hot Pixel Correction Software

$
0
0
I have a DMK 21 AU04 camera which has a few hot pixels. I downloaded your "Hot Pixel Correction" software and run it with the camera connected. The first time I run it the software identified 2 hot pixels and then a box with "Fix Pixels" flashed up and I was then asked to choose the next camera.

However, the hot pixels are still there when I run IC Capture. Running the software again gives me a camera selector followed by a live screen with a blue bar "Close Cap" below it. The hot pixels are still there.

Any idea what I am doing wrong?

Thanks
Dave

"snapImages" shows error 0x233ADD10

$
0
0
Hello !

We have several machines equipped with a DFK-24UJ003.
All with the same OS(Win8.1Pro) and the same software running.
But on one machine the camera behaves strange.
I get an memory-access-exception when accessing the picture memory:
"BYTE* pbImgData = pActiveBuf->getPtr(); // exception goes here

(pActiveBuf is non-Null off course and comes from "getLastAcqMemBuffer();")

I inspected the code that makes the snapshot:
DShowLib::Error error = pHandlerSink->snapImages(3, INFINITE);

"error" is 0x233ADD10
When I call "grabber->getLastError()" immediately after "snapImages(...) "I get an error code of "0x233ADD40"
for "getLastError()".

I cannot find these error codes in the source code.
Can anybody tell me what these codes mean?

Best regards,
Uwe Andersen

Starting on Windows

$
0
0
Hello :)

I have been a Linux user for many years, and right now, the company that I do work for is using the DMK21AU04 camera, and as you all probably know, there is no Linux drivers for it, therefore I am now using Windows to build the application we need.

The thing is, I have never used the Visual C++ for it (have always used the gcc), and I am not sure where to start here, I could not find any examples to compile (and how should I proceed to compile the examples? I am forced to use the Visual Studio, or can I just use the MS C++ Compiler - and is it free?)

Anyway, I would really appreciate if someone could point me out to the right direction with some examples, or anything.

Any tip would help me a lot!

Thank you.

Bruno

Extreme simple application C++

$
0
0
Hello everyone. I have been using only Linux for the past few years, and now I found myself in the need of using Windows due to the DMK 21AU04 camera.

I am using a application in which I basically need to retrieve 50 images when a button is clicked. All the interface is already done in JS, CSS and HTML5 using electron. All other functionalities, as the camera, will be controled via C++ (I will write a wrap for the C++ functions).

The problem here is that I have been romaing around the forum and website, and could not find a simple example (by simple I mean a example which has no interface, just open the camera, print settings and save a image, something like that). All examples that I have come across make uses of windows form, which I am trying to be as far as possible. I just wanted to use the camera easily (save images, save video, etc)

Do you all have some example like that? And do I really need Visual Studio to compile it? Can't I use just a compiler without the whole IDE or something like that!?

Thank you all very very much!

Gstreamer Lib for windows

$
0
0
Is it possible to use Gstreamer library on windows? The purpose is cross platform application, and right now the developing is on windows, but after it is going to transfer on Linux system.

LabView and DMK33GX249,DMK33GP1300

$
0
0
Helo

i want to connect IS cameras to LV. First i try to connect it via IMADdx driver. I think that there is some problem of parsing XML config file from camera to IMAQdx driver. Help form NI forum say that there should be firmware upgrade to correct XML file. Do you have any idea how to use IS cameras with IMAQdx?

Second because first method don't work i try LV Extension. I want to use software trigger, but i get exception in IC_ActiveBuffer_to_IMAQ.vi (Error 1097 occurred at Call Library Function Node in IC_ActiveBuffer_to_IMAQ.vi->Trigger_to_IMAQ.v). IC_Grab_IMAQ_x64.vi is working...

I am using LV 16.0 (x64). I have tried LV extension on older x32 LV and its is working so i suspect that there is issue with x64 lib.

Thank you for your support.

Matjaz

LabView DMK33GX249 and DMK33GP1300

$
0
0
Helo

i want to connect IS cameras to LV. First i try to connect it via IMADdx driver. I think that there is some problem of parsing XML config file from camera to IMAQdx driver. Help form NI forum say that there should be firmware upgrade to correct XML file. Do you have any idea how to use IS cameras with IMAQdx?

Second because first method don't work i try LV Extension. I want to use software trigger, but i get exception in IC_ActiveBuffer_to_IMAQ.vi (Error 1097 occurred at Call Library Function Node in IC_ActiveBuffer_to_IMAQ.vi->Trigger_to_IMAQ.v). IC_Grab_IMAQ_x64.vi is working...

I am using LV 16.0 (x64). I have tried LV extension on older x32 LV and its is working so i suspect that there is issue with x64 lib.

Thank you for your support.

Matjaz

Gamma Correction For YUY2

$
0
0
Hello,

I'm using the DFK 33UX265 and pulling frames in YUY2 format. This works well, however there appears to be a small change in lighting relative to when frames are pulled in RGB. In YUY2 dark objects look darker, and very bright objects appear slightly brighter. As a result, I think that the issue may be that the gamma for YUY2 isn't precisely the sRGB gamma of 2.2.

Do you happen to know what might be causing this? Right now I'm applying an extra ~1.3 gamma to compensate by brightening up the dark areas, but I'd much prefer having a more precise correction if possible.

I should also note that in IC Capture, YUY2 has the same lighting profile as RGB32. I only see the difference when pulling frames using the C++ SDK.

Any advice or suggestions would be more than appreciated.
Viewing all 172 articles
Browse latest View live