Coder Social home page Coder Social logo

Comments (2)

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

pepeverde9 avatar pepeverde9 commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.