Ask Your Question

cherault's profile - activity

2020-10-21 10:39:39 -0600 received badge  Self-Learner (source)
2019-01-12 23:23:08 -0600 commented answer OpenCV 4.0 count cameras number

Thank you Berak.

2019-01-12 23:22:41 -0600 commented question OpenCV 4.0 count cameras number

Thank you LBerger.

2019-01-10 05:32:19 -0600 asked a question OpenCV 4.0 count cameras number

OpenCV 4.0 count cameras number Dear all, I would like to set a code to count the number of active cameras detected by

2018-12-20 06:21:09 -0600 commented answer setMouseCallback multiples rectangles

Please forget my last question. The problem is solved. Thank you for your help and support to all of you ! Regards,

2018-12-20 06:20:23 -0600 marked best answer setMouseCallback multiples rectangles

Dear all,

I am trying to show various fixed rectangles within a video flow, using the mouse. The fixed rectangle is set as follow within the onMouse function::

void onMouse(int event, int x, int y, int flags, void* param)
{
   Rect rec = Rect(x, y, 100, 150);

   if(event == EVENT_LBUTTONDOWN)
   {
       counter++;
   }
}

So, when I move the mouse, I see the "rec" moving until I click down the left button. When a click is detected, I would like to show the ROI build within the main frame, and build outside the main frame my ROI through:

        roi1 = frame(rec);
        imshow("Roi1", roi1);

The problem is that the ROI is frozen and doesn't show the real time roi frame. I need also to repeat the operation 3 times.

Could you help me to solve this problem ?

Thanks for your help and support.

Regards,

Christophe

2018-12-20 04:33:47 -0600 commented answer setMouseCallback multiples rectangles

Hello Strukmen, I modified your code to show the selection moving the mouse, and set the selection with fixed size. But

2018-12-20 03:09:44 -0600 commented answer setMouseCallback multiples rectangles

Hello Sturkmen, Thank you for your proposal but I found the solution yesterday, and it's pretty close to yours. But one

2018-12-19 03:24:48 -0600 commented answer setMouseCallback multiples rectangles

Thanks for your update and work. I appreciate a lot !

2018-12-19 02:21:54 -0600 commented answer setMouseCallback multiples rectangles

Thank you Laurent. I tried it but it doesn't work as I want. But, I will do some tests based on your solution. Thanks ag

2018-12-19 02:11:58 -0600 commented question setMouseCallback multiples rectangles

To be clear, I just want to draw, with a mouse, 3 formated squares within a video frame. I though it was a simple task,

2018-12-19 01:49:10 -0600 commented question setMouseCallback multiples rectangles

Hello Sturkmen and Berak, thanks for your informations. Is the selectRois works...perfect ! I will try it again. For the

2018-12-19 00:25:40 -0600 commented question setMouseCallback multiples rectangles

Hello Berak, Thanks for your answer as LBerger. I understand what you wrote, and I don't really need the trackers to ach

2018-12-18 09:07:53 -0600 commented question setMouseCallback multiples rectangles

Yes, thank you for the proposal. The problem with the selectRoi is that I need to use it during the video flow. Unfortun

2018-12-18 08:51:12 -0600 asked a question setMouseCallback multiples rectangles

setMouseCallback multiples rectangles Dear all, I am trying to show various fixed rectangles within a video flow, using

2018-12-17 03:09:31 -0600 asked a question MultiTracker start within a running video flow, not on a single frame

MultiTracker start within a running video flow, not on a single frame Dear all, I started a project with a single track

2018-12-13 10:03:11 -0600 received badge  Student (source)
2018-12-13 09:59:21 -0600 commented answer Trackers window add to Canvas window

Thanks to you ! Ok, but I will use only 3 or may be 4 max. I am really bad when I need a specifi GUI... This code will h

2018-12-13 09:49:26 -0600 commented answer Trackers window add to Canvas window

Also, it's not cryptographic ;-) It 's clear for me.

2018-12-13 09:48:31 -0600 commented answer Trackers window add to Canvas window

Thank you very much, it's exactly what I need !!! You save my day ! Thanks ! Regards,

2018-12-13 09:47:25 -0600 marked best answer Trackers window add to Canvas window

Dear all,

Problem:

Using a main window with the multitracker algorithm, I select various ROIs with a mouse. This main window is within another one named "Canvas". In the Canvas window, I would like to add all the ROIs which I selected, whitin a window named "Tracks".

Here is a screen-shot of what I want:

image description

How could I add the "Tracks" window within the "Canvas" window ?

Thanks for your help and support.

Regards,

2018-12-13 07:27:36 -0600 commented question Trackers window add to Canvas window

Hello Sturkmen, Thanks for your proposal. You can find the code here : link text Thanks for your help. Regards

2018-12-13 07:13:42 -0600 commented question Trackers window add to Canvas window

Hello Berak, yes you are right. But is it possible to associate the "tracks" window within the "canvas" window resizing

2018-12-13 05:22:04 -0600 asked a question Trackers window add to Canvas window

Trackers window add to Canvas window Dear all, Problem: Using a main window with the multitracker algorithm, I select

2018-12-12 08:56:30 -0600 commented answer GUI with hconcat, vconcat

Thank you very much Sturkmen, that's really amazing. Regards and thanks again.

2018-12-12 08:56:20 -0600 marked best answer GUI with hconcat, vconcat

Dear all,

This is my goal:

I have a main window (640x480px). Within this main window, I will select by mouse various zones, with various sizes. I would like to show the main window, and just above the selected zone resized (for example 100x100), in a single window.

Questions:

Is it possible to use vconcat to show the main window and above the selected zones ? Is it possible too to use hconcat to plot the selected zones ? If yes, how do I proceed ?

Thanks for your help.

Regards,

2018-12-12 05:44:26 -0600 asked a question GUI with hconcat, vconcat

GUI with hconcat, vconcat Dear all, This is my goal: I have a main window (640x480px). Within this main window, I will

2018-12-10 01:52:49 -0600 commented answer MultiTracker Rois

Thank you a lot Sturkmen, this is the solution I did. Regards,

2018-12-09 13:18:34 -0600 commented answer MultiTracker Rois

Ok Berak, I solved my problem according to your kind answer. Thanks a lot ! Regards,

2018-12-09 13:18:02 -0600 marked best answer MultiTracker Rois

Dear all,

Using the Multitracker algorithm, I would like to know how can I show the ROIs selected in various windows ? I mean show a new window for each ROI selected.

Thanks for your help and support.

Regards,` while(true) { cap >> frame;

  for(unsigned i=0;i<trackers.getObjects().size();i++)
  {
      rectangle(frame, trackers.getObjects()[i], Scalar::all(255), 2);
  }

  imshow("tracker",frame);
  waitKey(30);

} `