Ask Your Question

nji's profile - activity

2020-05-29 17:14:43 -0600 received badge  Famous Question (source)
2020-05-01 13:05:58 -0600 asked a question OpenCV 3.4.10 with Intel TBB

OpenCV 3.4.10 with Intel TBB I recently updated to 3.4. (at Win7 64bit, mingw64) read the official tutorial for installi

2020-04-27 06:07:30 -0600 edited question Include paths: Changes from v. 3.2 to 3.4.

Include paths: Changes from v. 3.2 to 3.4. I recently had to update. For a simple test app just using core and highgui

2020-04-27 06:05:01 -0600 asked a question Include paths: Changes from v. 3.2 to 3.4.

Include paths: Changes from v. 3.2 to 3.4. I recently had to update. For a simple test app just using core and highgui

2020-04-27 05:56:54 -0600 commented answer OpenCV 3.4, build with MinGW 8.1.0

I do have to understand ... not only to learn, but to be able to assess if this is a proper solution/ answer to the ques

2020-04-27 03:24:21 -0600 commented answer OpenCV 3.4, build with MinGW 8.1.0

Please don't let me die ignorant. Can you please tell me what's the effect of the both workarounds? What's their effects

2020-04-27 03:23:41 -0600 commented answer OpenCV 3.4, build with MinGW 8.1.0

Please don't let me die ignorant. Can you please tell me what's the effect of the both workarounds? What's their effects

2020-04-27 02:54:09 -0600 commented answer OpenCV 3.4, build with MinGW 8.1.0

Maybe it's because of my paranoia... but sometimes I have that suspicion, that the devs build that hurdles only to check

2020-04-27 02:53:03 -0600 commented question OpenCV 3.4, build with MinGW 8.1.0

Thank you for your hint. But to my experience it's quite the opposite. If I (have to) do a major update of one component

2020-04-26 15:08:15 -0600 commented question OpenCV 3.4, build with MinGW 8.1.0

Thank you for your hint. But to my experience it's quite the opposite. If I (have to) do a major update of one component

2020-04-26 15:07:56 -0600 commented question OpenCV 3.4, build with MinGW 8.1.0

Thank you for your hint. But to my experience it's quite the opposite. If I (have to) to a major update of one component

2020-04-26 15:01:54 -0600 edited question OpenCV 3.4, build with MinGW 8.1.0

OpenCV 3.4, build with MinGW 8.1.0 I recently updated my Code::Block version which optional comes with mingw. Also updat

2020-04-26 06:05:52 -0600 asked a question OpenCV 3.4, build with MinGW 8.1.0

OpenCV 3.4, build with MinGW 8.1.0 I recently updated my Code::Block version which optional comes with mingw. Also updat

2018-09-21 05:33:25 -0600 received badge  Notable Question (source)
2017-12-03 20:10:05 -0600 received badge  Popular Question (source)
2017-08-29 08:42:16 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

(... while my 8 horses have been busy ... ;-)) ... ). The point is I'm still a newby to open source toolchains (coming f

2017-08-29 08:18:47 -0600 edited answer Building opencv in parallel with mingw (using cmake-gui)

Found it ... (at last!) in cmake: CMAKE_CODEBLOCKS_MAKE_ARGUMENTS

2017-08-29 07:58:55 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Found it ... (at last!) in cmake: CMAKE_CODEBLOCKS_MAKE_ARGUMENTS. (Could not answer myself, as not allowed as "new user

2017-08-29 07:43:34 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Thankyou again. Still we're misunderstanding ... I try to explain: cmake generates the makefiles (and in my case the cod

2017-08-29 07:43:09 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Thankyou again. Still we're misunderstanding ... I try to explain: cmake generates the makefiles (and in my case the cod

2017-08-29 07:42:14 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Thankyou again. Still we're misunderstanding ... I try to explain: cmake generates the makefiles (and in my case the cod

2017-08-29 07:41:51 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Thankyou again. Still we're misunderstanding ... I try to explain: cmake generates the makefiles (and in my case the cod

2017-08-29 07:23:11 -0600 commented question Building opencv in parallel with mingw (using cmake-gui)

Yes, I know that. My question is HOW and where to insert the -jN-Option. As cmake builds the make files, this should be

2017-08-29 07:17:33 -0600 received badge  Enthusiast
2017-08-28 05:11:44 -0600 asked a question Building opencv in parallel with mingw (using cmake-gui)

Building opencv in parallel with mingw (using cmake-gui) Is this possible with tdm-gcc 4.9? And where do I have to set w

2017-07-24 11:19:39 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

And one more info: Using the directshow interface I never noticed (or heard about) getting wrong frames with IMediaSeeking::SetPositions. (For files directshow can't be used from opencv as this option is not implemented ...)

2017-07-23 03:00:07 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Some more information. There is a (4 y/o) post at stackoverflow about it. And then ... if you have a look at opencv code (CvCapture_FFMPEG::seek(int64_t) ... you find some kind of "index acrobatics" in there. To me (being someone who just needs to USE it) it looks as if ffmpeg delivers wrong frames sometimes because of decoding issues (keyframe etc.). If that is the case it's the question who should take the responsibility: ffmpeg (to always deliver what is wanted) - or the customer (opencv) trying to correct the failure. Doing the correction on app layer (I did that) is a pretty index mess. Anybody out there?

2017-07-22 02:39:14 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

I would like to point to. Solved. Or not solved? What is here the question?

2017-07-19 08:27:09 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Excuse me ... I've to ask: "nothing constant"? Do you mean that all compared frames are different? If that is the case then I think that the results of command ffmpeg are the correct ones, as they are "streamed", which seems to produce correct extractions. ... I think the question is which ffmpeg interface/ parameters opencv uses. Maybe the parameter is timestamp, not framenumber? Where are the opencv developers? ;-)

2017-07-19 05:54:17 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

(Sorry for the late addendum - but the server seems to be sleepy so I couldn' add to the comment above). But maybe the trim parameter (with start_frame/ end_frame for exact frame extraction) doesn't quick JUMP to the position (as opencv set () does), but walks from beginning?

2017-07-19 05:38:39 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

I tried ffmpeg command line with the trim parameter but didn't get useful results...

2017-07-19 04:55:55 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

I can't tell for sure. But as there are many posts in the different forums concerning getting wrong frames using opencv, for me seems to be a problem of collaboration (See my quote of the opencv docs 10 comments above). And nobody takes responsibilty. To me it looks as if opencv uses ffmpeg in a somekind wrong way. As ffmpeg is the base I think an error there quite unlikely. But I'm no expert at all.

2017-07-19 03:50:33 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

@LBerger: The problem seems to be spreaded (as there are many posts in the forums), but nobody seems to care (see my posted issue). They say opencv is about image processing and reading in is utility/ peripheral. (Like providing a car but with no functional doors). So if (!) one detects that this bug exists one has to do some kind of work-around for correct positioning. For the problem of not getting the last frames (if mispositioned too early) I don't have a solution so far at all. Very sad all this.

2017-07-06 04:03:22 -0600 asked a question Multithread reading/ processing of movie file

I recently updated my hardware and came to the idea to speed up an application of mine that analyses movie files (say: compute the differences of adjacent frames) to do parallel. The idea was to assign the file partwise to the cores/ threads, to do reading/ processing indepently and after that do the stitching (necessary because of inaccuracies). I tried that and got very disappointing speed-ups. I posted that to stackoverflow as I don't know where the cause is (os, opencv, codecs, hardware, ...) but didn't get helpful feedback.

So my try specific in this forum. As it seems a task of general interest.

Is it possible to speedup reading in/ analysing a movie file using opencv? And how do it best? (My attempt seems to have same flaw).

2017-06-30 11:29:20 -0600 edited question VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

For an application (Win7/ mingw) that analyses movie files I divide the reading and processing to the cores. When trying to jump to the beginning of the parts with

VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber);

and then

capt >> frame;

I do not get frame with number frameNumber but some frames before (the exact value depends on the movie format).

Although

VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber);

and then

ret = VideoCapture::get (CAP_PROP_POS_FRAMES);

lets frameNumber == ret

[Edit: This makes it even worse. As if you want to take into account that you don't get what you want always: For example you want to seek close to the end of the stream (say 10 elements before) and do want to take into account that you maybe get frame k-5 if you request frame k, and by this request the last 15 consecutive frames, then get() will return 0 for the last 5 as "it" thinks it is at the end already!]

There are many threads about this issue already. Some say that in newer versions of opencv that "bug" is gone.

Other say that it's about the keyframes in the video stream that would make ffmpeg seek to the first keyframe AFTER the desired position.

Has somebody up-to-date information what happens here and how to do (this quite common) task please?

2017-06-30 07:57:32 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Done. Maybe I may draw your attention to the question where this problem arose from, and where I didn't get any satifying solution for)

2017-06-30 03:16:20 -0600 received badge  Supporter (source)
2017-06-30 02:59:19 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Excuse for the confusion. I didn't notice your change in the answer. Still ... I'm a little in doubt if it makes any sense to post an issue, as I think it is quite likely that it is not a bug in opencv but an "effect" of the "layer chain" (see quote from the doc above). The maintainers might just point to that. What do you think? Maybe we (I) should just close this thread with an answer that one should NOT rely on seeking to be always exact?

2017-06-30 02:19:44 -0600 received badge  Student (source)
2017-06-30 01:38:47 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Take this (MP4 Medium 10,7 MB). With "pos-factor 50" it gives

CAP_PROP_FOURCC: avc1 0 0 0 0 -166 198 -162 144 -234 249 0 0 -204 217 0 0 -235 221 -213 204 -166 148 -217 194 -215 221 0 0 0 0

2017-06-29 16:20:58 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

All 0 for me too then! This means it depends also on the video. And then "Reading / writing properties involves many layers. Some unexpected result might happens along this chain. Effective behaviour depends from device hardware, driver and API Backend." Seems I've to insert some "intelligent" fuzzy logic.

2017-06-29 15:59:17 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

So you use the codecs from within ffmpeg, too? But as 64bit. Would you mind trying a second video file?

2017-06-29 15:33:27 -0600 commented answer VideoCapture::set (CAP_PROP_POS_FRAMES, frameNumber) not exact in opencv 3.2 with ffmpeg?

Sorry, I did a (small) mistake. When I take your new init then I get

CAP_PROP_FOURCC: avc1
-160    114
-132    149
-207    202
-181    176
-178    175
-203    248
-156    164
-126    160
-241    221
-208    239
-202    208
-196    166
-182    117
-149    147
-128    138

You get all 0s? (That's what I get with the original init positions) Maybe it's because the different compilers and me using the 32bit ffmpeg? (BTW ffmpeg with codec included)