Comments (5)
Thank you for your interest.
-
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. -
Plugin?
Sorry, I don't understand what you mean by a plugin. Is it related to Mac? -
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 abovevideocapture_basic.cpp
, the variableframe
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.
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.
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.
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.
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)
- How to use this library to make two or more virtual webcams on Windows? HOT 3
- Create Python binding for softcam HOT 5
- Add CI build and test of python_binding example HOT 1
- Default image when there is no input HOT 4
- Image colors are not correct HOT 2
- Let us to set our custom device name HOT 3
- Package manager HOT 1
- Add 32-bit support HOT 1
- Is it possible to set resolution for the output? HOT 1
- could it add a convert function() which make input is a Mat format HOT 1
- Issues with the 32 bit support HOT 5
- Suggestion: support multiple virtual cameras with different parameters HOT 2
- Add VS2022 project files HOT 1
- Softcam doesn't appear in camera list on discord HOT 3
- VS2022 Build Error HOT 1
- Different Video Formats? HOT 3
- Add audio pin? HOT 2
- Add hardware ID into device info? HOT 2
- Changing dll name that is searched for HOT 2
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 softcam.