Git Product home page Git Product logo

Comments (5)

tshino avatar tshino commented on July 19, 2024

Thank you for your interest.

  1. Mac version?
    Unfortunately, there is no Mac version of this project, and currently, I have no plan to make it.
    Because Windows and Mac have completely different APIs especially media-related API which is required to build libraries like this project.

  2. Plugin?
    Sorry, I don't understand what you mean by a plugin. Is it related to Mac?

  3. Using it with OpenCV
    I recommend starting with a sample program provided by the OpenCV project.
    For example: https://github.com/opencv/opencv/blob/master/samples/cpp/videocapture_basic.cpp
    In OpenCV, an RGB image is expressed with the class cv::Mat.
    In the above videocapture_basic.cpp, the variable frame will have the video frame.
    So you could write a code like the below to send the frame to Softcam:

scCamera cam = scCreateCamera(frame_width, frame_height, 0);

for (;;)
{
    cap.read(frame);
    if (frame.empty()) {
        break;
    }

    // ... you can draw something on or process the frame.

    scSendFrame(cam, frame.ptr());
}

I hope it will help you to make your application.
Thanks.

from softcam.

KaiH-0 avatar KaiH-0 commented on July 19, 2024

Thank you this example is very helpful, one issue, I have been trying to use softcam in visual studio code instead of normal visual studio. It keeps complaining about #include <softcam/softcam.h>, saying it can't find it, I have been trying to reference it in the include path but I don't think I'm doing it right.

from softcam.

tshino avatar tshino commented on July 19, 2024

If you have the file softcam.h in a directory c:\path\to\dist\include\softcam, the corresponding include path is c:\path\to\dist\include, not the path of that directory that contains the file, so that the relative path softcam/softcam.h points to the file based on the include path.
But, this is just my guess of what happening to you :)

from softcam.

KaiH-0 avatar KaiH-0 commented on July 19, 2024

That doesn't seem to be working, I have tried it in every way, not sure why it still can't find it.

from softcam.

tshino avatar tshino commented on July 19, 2024

Sorry for the late response.
If you are still in trouble with this project, don't hesitate to post further questions.

from softcam.

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.