Comments (2)
Hello
For mingw please use the tisgrabber.dll from https://www.theimagingsource.com/support/downloads-for-windows/software-development-kits-sdks/tisgrabberdll/
The make file could be like this:
LDFLAGS=-L"$(USERPROFILE)\Documents\The Imaging Source Europe GmbH\TIS Grabber DLL\bin\win32" -ltisgrabber
INC=-I"$(USERPROFILE)\Documents\The Imaging Source Europe GmbH\TIS Grabber DLL\include"
opendevice.exe : main.o
gcc main.o $(LDFLAGS) -o opendevice.exe
main.o : main.c
gcc $(INC) -c main.c
The main.c like this
#include <stdio.h>
#include <conio.h>
#include <tisgrabber.h>
int main()
{
HGRABBER hGrabber; // The handle of the grabber object.
IC_InitLibrary(NULL);
hGrabber = IC_CreateGrabber();
if( hGrabber )
{
IC_OpenVideoCaptureDevice(hGrabber,"DMK 23UV024");
if( IC_IsDevValid(hGrabber))
{
IC_StartLive(hGrabber,1);
printf("Press any key to stop the live video\n" );
_getch();
IC_StopLive(hGrabber);
}
IC_ReleaseGrabber(&hGrabber);
}
return 0;
}
Samples can be found in the "ansi.c" code installed into the users directory next to the dll.
from ic-imaging-control-samples.
I made a mistake, as the windows 10 Camera application was not recognizing the camera, I supposed that opencv will not work with it. It turns out that it works. By default the images were black and white, but by setting the fourcc property to "YUY2" capturing images just worked.
Thank you for the answer and the short intoductory example. I tested the code, and it works, and maybe use this approach in the future, if I will ever need more than just basic image capturing. But for now I will leave the application as it is, it gets the job done, and there is still work to be done for the core functionality.
Best regards
from ic-imaging-control-samples.
Related Issues (20)
- DFK37BUX287:WDR function through tisgrabber.py HOT 9
- Confusion about version of tisgrabber.dll HOT 3
- Framesnapsink/Framequesink HOT 3
- Noise Reduction HOT 18
- Taking images after external trigger for a fixed time HOT 13
- How to operate multiple cameras at the same time get image through python HOT 2
- Knowing when callback fails HOT 8
- Detailed trigger mode setting HOT 2
- Capture AVI program is not working HOT 12
- Activate/deactivate external trigger using python script HOT 4
- Exception: A set operation on a VCDProperty object failed HOT 10
- IC_StartLive fail HOT 3
- Cannot get Map Strings for Strobe Mode in python HOT 18
- Get crashed on create MediaStreamSink object in C# in .net core 7 HOT 2
- Web browser stream HOT 5
- Getting the exposure time HOT 3
- IC Imaging source upgrade to 3.5 from 3.4 HOT 1
- Ic imaging control 3.5 HOT 3
- tisfrabber LoadDeviceStateFromFile() and SnapImage HOT 1
- Python (tisgrabber): interaction with camera livestream IC_StartLive HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ic-imaging-control-samples.