Quantcast
Channel: beginners - openFrameworks
Viewing all 4929 articles
Browse latest View live

[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded - Linux Ubuntu 16.04LTS

$
0
0

@xephon_87 wrote:

Hello,

I continue to have this problem:

[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded

i already reinstall install_codecs.sh and install_dependencies.sh but nothing happen, any suggestion?

thanks in advance for the help

Posts: 4

Participants: 2

Read full topic


Lines to 3d mesh

Using a stream from ofxIpVideoGrabber with ofxCcv

$
0
0

@panimarysia wrote:

Hi everybody!
I'm making a project using ip cameras (d-link 932-L).
I'm accessing a video with ofxIpVideoGrabber addon, and it displays fine.
I'm trying to feed the video to ofxCcv Face example but the code doesn't work.
I get the "No matching function for call to 'toCcv'" error at his line in ofxCcv.h:

ccv_dense_matrix_t image = toCcv(img);

I've tried passing both grabbers[0] and grabbers[0]->getFrame() as arguments to the ccv.cassifyFace() function.

and both times it looks like there is a conversion problem between the return of the IpVideoGrabber and expected input for Ccv.

I'm very new to open frameworks, and not sure how should I proceed to make the communication between those addons possible.

I'm working on mac os sierra, Xcode version 8.2.1 and open frameworks version 9.8

I will be very grateful for any advice.

Posts: 1

Participants: 1

Read full topic

iOS gyrosc help!

$
0
0

@Ha99 wrote:

hello, I am trying to use iOS gyrosc to create a program that interacts with motion sensor. I have been researching how to run it in OF project but still not sure how and what to put it in the program.

It will be amazing if you could give me source code or helpful website link.

thank you.

Posts: 3

Participants: 3

Read full topic

3D models not showing textures or responding to lighting

Change draw direction from ltr to rtl

$
0
0

@nim4n wrote:

Hi
I have some persian text and I need to draw them from right to left, for example if my screen size is 1920 x 1080 and my text draw positions is like this :
textFace.drawStringAsShapes(text,100, 500);

I need it to start drawing from the point (1820, 500) and draw the rest of the text to the left side of screen. I used this functions (ofTranslate, ofRotate) but the problem is the text is upside down! how can I solve this? is there any better way?

Posts: 6

Participants: 2

Read full topic

Scientific linux, installing dependancies script, which distro?

$
0
0

@BigCantaloupe wrote:

Hello,

new user to openframeworks,

I am trying to install OFworks on Scientific Linux, by following the installation guide.

Which distro version script should I choose to install the dependancies? fedora/debian/ubuntu/arch?

Thank you.

Posts: 1

Participants: 1

Read full topic

ofParameter issue with certain Addons

$
0
0

@tomholmes wrote:

Hello,

This issue has been posted before (https://forum.openframeworks.cc/t/ofparameter-h-compile-error/21222) however those solutions haven't worked for me.

The error I'm getting is exactly the same; Parse Issue, Expected Expression on this line in the ofParameter.h file, part of the openFrameworks type folder.

	static const bool value = sizeof(check(stream >> x)) == sizeof(yes);

The Addon I'm using that is causing the error is ofxMidi.

The problem has arisen since I downloaded Xcode 8.

I'm running OF 0.9.8.

Any help or suggestions would be greatly appreciated!
Tom

Posts: 1

Participants: 1

Read full topic


ofxFBX working with openFrameworks 0.9.8?

$
0
0

@Poka_Face wrote:

Hey,

I'm trying to make the ofxFBX addon work with my mac of Xcode. Has anyone experienced any problems making this addon work?

I keep getting the error "No member named 'setTransformMatrix' in 'ofNode' " when I'm pretty sure there is a member called 'setTransformMatrix'.

Eddie

Posts: 11

Participants: 3

Read full topic

ofxCv macro error on X11

$
0
0

@hamoid wrote:

Hi :slight_smile: I cloned the ofxCv addon and tried running the Flow and Blur examples and I get this error:

/usr/include/opencv2/stitching.hpp:58:4: warning: Detected X11 'Status' macro definition, it can cause build conflicts. Please, include this header before any X11 headers. [-W#warnings]
#  warning Detected X11 'Status' macro definition, it can cause build conflicts. Please, include this header before any X11 headers.
   ^
/usr/include/opencv2/stitching.hpp:128:10: error: expected identifier or '{'
    enum Status
         ^
/usr/include/X11/Xlib.h:83:16: note: expanded from macro 'Status'
#define Status int
               ^
1 warning and 1 error generated.
Process failed with exit code 1.

Is it finding the wrong headers? I'm using ofxCv master (not stable) because with stable it complains about glm. I'm on Linux with QtCreator. Thank you!

Posts: 4

Participants: 2

Read full topic

Visual studio 2015 references

$
0
0

@Regi wrote:

Hi all,

So this is clearly something simple that I just can not figure out. How do I add references in visual studio 2015 for an OF project? Selecting 'references' -> 'add references' in the solution explorer does not allow me to do so. The browse button is gone in the case of OF projects. Is that even possible for an OF project?

Thanks for the help!

Posts: 1

Participants: 1

Read full topic

Make your own openFrameworks project on Raspberry pi

$
0
0

@Mangopudding12 wrote:

Hey, :slight_smile:

I finally have openFrameworks working on raspberry pi 3.
I really happy about that, but now the second challenge begon.

I love to writte my own openFrameworks project and let that work on the raspberry pi. But I seriues don't know where to start.

I follow the steps to make a empty project.
http://openframeworks.cc/setup/raspberrypi/raspberry-pi-getting-started/

and than the whole setup guide at the openframeworks website stop. So I really don't know how to type my C++ code in the new project i had made.

The only thing I know is when you type make in putty.
De empty new project build and after that you can run it.
But you get a white screen because I did't write code in de new empty project.

Please can some tell my how to writte code in the new project I have made?
must you do that in putty?
or on your pc in visual studio?
and how do you get that project on the raspberry pi?

Thanks for helping

Posts: 2

Participants: 2

Read full topic

How to save ofPath to a file and then open it later?

$
0
0

@cuinjune wrote:

Hi, I wonder if it's possible to save ofPath to a file (e.g svg file) and then later read the file to create ofPath from it.

I found out how to read the svg file but couldn't find how to write ofPath to a svg file.

I would appreciate any advice. Thanks.

Posts: 1

Participants: 1

Read full topic

Video grabber crop to image issue

$
0
0

@Gallo wrote:

Hello,

i have an issue with the ofPixels::cropTo()
When declaring ofImage, croping and drawing in ofApp::draw() function, it works

 ofImage scanLine;
 scanLine.allocate(1, 720, OF_IMAGE_COLOR);
 video.getPixels().cropTo(scanLine, scanPosition, 0, 1, 720);
 fbo.begin();
 scanLine.draw(colNumber, 0, 1, 720);
 fbo.end();

when trying to split the code like so, it doesn't work anymore...
Am I doing something wrong ?

//.h
ofImage scanLine;

// setup()
scanLine.allocate(1, 720, OF_IMAGE_COLOR);

// update()
video.update();
video.getPixels().cropTo(scanLine, scanPosition, 0, 1, 720);

// draw()
    fbo.begin();
    scanLine.draw(colNumber, 0, 1, 720);
    fbo.end();

Posts: 3

Participants: 2

Read full topic

OpenCV example crashed when build( of 0.9.8 msys2 with Qt creator5.8)

$
0
0

@abu wrote:

Hi everyone,

I've been trying build the example with addon ofxOpenCV, but the program always crashed and didn't show up the detail.
It would not happen with other addons, only happened with OpenCV.
When the project built it got lost of warning down below( it seems to relative to videoinput libs)

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvShortImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvShortImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvColorImage.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvColorImage.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.h:14,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.h:14,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^ ^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.h:13,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.h:13,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/main.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/main.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.h:3,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.h:3,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvFloatImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvFloatImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^ ^

does anyone have any idea how to solve this?
Thanks.

Posts: 1

Participants: 1

Read full topic


How to do a Image Rectification by using OpenFrameworks?

$
0
0

@Annop_kobhirun wrote:

Hi everyone.

I need to find a depth value from two image like the stereo camera,
but I used the sequence of image from the monocular camera instead of left-right image from the stereo camera.

So that, I need to rectified image before to find a depth value
because block-matching algorithms ( using to find a disparity range of two image ) can not find a match area.

My question,
Openframeworks have a addon for image rectification or not ?
if not, anyone have an idea for image rectification by using openframeworks please suggest me,
thank you.

Regard

Annop

Posts: 2

Participants: 2

Read full topic

Turning a line into a tube with ofMesh

$
0
0

@aceslowman wrote:

This is something that I've been thinking about for a bit. I'm trying to figure out how I could efficiently turn lines that I have plotted out, into tubes in ofMesh.

Essentially, I've made some generative plant forms, and I am trying to thicken the branches into something substantial. I hope to deform the mesh that it results in, but all I really need initially is a method to get the tube.

I've thought of a few methods, but I'm not entirely sure about the right way to execute them. First, I could create a circle for each point, perpendicular to the line it's on, and then mesh between all of those, but I can't seem to find a spot to start. This seems like something that could be useful for a lot of applications, I'd love to see how others might approach it.

Posts: 2

Participants: 2

Read full topic

Rotate a figure throug movement, best approach to achieve it?

$
0
0

@kovicic wrote:

Hi everyone, I want an object to be rotated according to the horizontal movements of the body.
The idea is as follow, if it moves to the right the object rotates clockwise and if it moves to the left it rotates counterclockwise.
Every single step of rotation is of 90º, so the idea behind is that if I move 2 steps the object should rotate 180º, if I move 3 steps, 270º, etc.

I want to achieve that the angle of rotation changes discretely along the movement, ie. according the person is moving the object rotates.
The amount of rotations is given for the amount of the body displacement (center of mass).

My approaches were the following (for sure there are better solutions):

  • being posant_ and poscur_ the previous and current position, of the X coordinate of the center of mass, between frame to frame I do pos_curr - pos_ant /threshold
    It gives me how many rotations I have to do. threshold is how long a step is. The sign gives the sense of the rotation.

  • I divided the screen into several spots along the x axis, according to how many x spots the user went through from one frame to another I get the amount of rotations.

The problem with those approaches is that per one step the user makes the object to rotate several times..almost it is spining!, and I want it to rotate discretely. One step - one rotation.
I need it rotate more than once, but discretely and synchronously with the user movement.

Basically, how is the better way to detect a step to make the object rotate accordingly?

I highly appreciate any suggestion.
Best!

Posts: 2

Participants: 2

Read full topic

ofParameter not firing event during setup...?

$
0
0

@ttyy wrote:

I have:

ofApp.h

ofParameter<float> scale = 100;
ofParameterGroup params;
ofxPanel gui;
User user;

void scaleEvent(float& s) {
  user.setScale(s);
  cout << "scale: " << s << endl;
}

ofApp.cpp

 void ofApp::setup() {
      scale.addListener(this, &ofApp::scaleEvent);
      params.add(scale.set("scale", scale, 50, 150);
      gui.setup(params);
}

The event is not called until I manually change the scale through the gui.

Posts: 2

Participants: 2

Read full topic

Delegate function to annother class

$
0
0

@Pedro Garlaschi wrote:

Hey Guys,

I have a quite beginner doubt about how could i pass a reference function from c lass to another.

Let's assume that i have a class

class ContentLoader
{
public:
void onComplete();
}

Houw could i do something like that ?

void ofApp::setup()
{
ContentLoader c;
c.onComplete = onComplete;
}

void ofApp::onComplete()
{

}

I've seen things about std::bind but i couldn't make it happen properly.

Thanks !

Posts: 1

Participants: 1

Read full topic

Viewing all 4929 articles
Browse latest View live