Home > Back-end >  Opencv streaming KCF tracking algorithm
Opencv streaming KCF tracking algorithm

Time:11-12

Can I deal with 1920 * 1080 streaming with qt, KCF tracking algorithm processing, and then displayed on the label, why video special caton

CodePudding user response:

Skip the tracking algorithm processing, video card?

CodePudding user response:

reference 1st floor ooolinux response:
skip tracing algorithm processing, video card?

If it's not tracking algorithm also card,,,,,,,

CodePudding user response:

May be made in label is the bottleneck,

CodePudding user response:

The
reference 3 floor ooolinux response:
may be made in label is the bottleneck,

Well, can recommend a control???????

CodePudding user response:

Try the Image of the c + + builder controls,

CodePudding user response:

reference 5 floor ooolinux reply:
try Image element of the c + + builder,

Ok, thank you,,,,,,,,,,

CodePudding user response:


A graphical user interface (GUI) programming can learn c + + Builder, advanced architecture (and c # drag controls), introduction to more easily,

C + + Builder is a real visual Development tool, c + + Builder can use the mouse to drag controls followed by a "design" set properties of a graphical user interface of the program, using the visual components/controls like "building blocks", built in the form of "wysiwyg" Application interface, which is the name of c + + Builder in the concept of the Builder, in this way, only needs to be written in c + + language business logic code, similar to the text interface programming under DOS, just concentrate on the business logic function, the code is very concise, data input and performance, in a graphical user interface, intuitive, and easy to use, this is RAD (Rapid Application Development, Rapid Application Development),

Book recommendation:
"C + + Builder 6 program design course (second edition)" (such as loyal lu, wen-liang liu/2011-04-01/science press) (dangdang)
"C + + Builder 6 programming examples of fine solution" (Zhao Mingxian), PDF, is a digital version, a scan version, there is also a complete implementation of tetris game,
"Wonderful" c + + Builder 6 programming Wu Yixian (Taiwan), there are a few simple little game, 10 can read later rewrite, is their mastery of the,
"C + + Builder 5 senior programming examples of fine solution" (written by Liu Bin) are larger practical program,

C + + Builder books download:
https://pan.baidu.com/s/13n9hxwVj9ai1p5L2rQC83Q

CodePudding user response:

Using a PANEL control general video playback

CodePudding user response:

refer to the eighth floor weixin_43017863 response:
video playback are commonly use a PANEL control

Qt is the control???????

CodePudding user response:

Should be drawn or Qt performance problems, performance on Qt in the Linux is worrying...

CodePudding user response:

Under the Windows system drawing performance also can't keep up with???????

CodePudding user response:

earlier reference to the tenth floor to play big play nuclear response:
should be drawn or Qt performance problems, performance on Qt in the Linux is worrying...

Under the Windows system drawing performance also can't keep up with???????

CodePudding user response:

I wrote a simple test using Delphi (CB if using VCL library performance should be the same), downloaded from here in the first 10 jpeg chart (https://www.pixelstalk.net/summer-desktop-wallpaper-background-hd/), 1920 x1080, a total of 4.01 MB, average each figure 410.6 KB, loading to a TJPEGImage array, and then loop drawing to TImage. The Picture. The Bitmap, this includes decoding, extrusion, drawing, performance can be more than 90 FPS, equivalent to about 288 MBPS bit rate video broadcast,

CodePudding user response:

Code:
USES the Vcl. Imaging. Jpeg.

Const
PicNames: array [0.. 9] of string=(
'Beautifull - Summer - Desktop - which Wallpaper. JPG',
'Cool Summer - Desktop - which Wallpaper - HD. JPG',
'Cool - Summer - Backgrounds. JPG,
'Summer - Background - HD. JPG,
'Cool - Summer - which Wallpaper - HD - 1. JPG',
'Summer - Beach - which - for - desktop. JPG',
'Nice - Summer - Desktop - for - Windows. JPG',
'Summer - Time - Background. JPG,
'Summer - Blue - Sea - which Wallpaper - HD. JPG',
'Star - Fish - Summer - Desktop - which Wallpaper - HD. JPG ");

Var
Pics: array [0.. 9] of TJPEGImage;
Stop: Boolean=true;

Procedure TForm1. Button1Click (Sender: TObject);
The begin
Stop:=not Stop;
If not Stop then
Form1. The BeginInvoke (
Procedure
Var
I: integer;
Ticks: uint64;
The begin
Image1. Picture. The Bitmap. The Assign (Pics [0]);
While not stop do
The begin
Ticks:=GetTickCount64;
For I:=0 to 9 do
The begin
Image1. Picture. The Bitmap. The Assign (Pics [I]);
Application. ProcessMessages;
end;
Ticks:=GetTickCount64 - Ticks;
Label1. Caption:=Format (' % 0.3 f FPS, 10000.0/Ticks);
end;
End
);
end;

Procedure TForm1. FormCreate (Sender: TObject);
Var
I: integer;
The begin
For I:=0 to 9 do
The begin
Pics: [I]=TJPEGImage. Create;
Pics [I] LoadFromFile (' d: \ temp \ which wallpaper \ '+ PicNames [I]);
end;
end;

Procedure TForm1. FormDestroy (Sender: TObject);
Var
I: integer;
The begin
For I:=0 to 9 do
Pics [I] Free;
end;

CodePudding user response:

reference 13 floor play big shoot early nuclear response:
I wrote a simple test using Delphi (CB if using VCL library performance should be the same), downloaded from here in the first 10 jpeg chart (https://www.pixelstalk.net/summer-desktop-wallpaper-background-hd/), 1920 x1080, a total of 4.01 MB, average each figure 410.6 KB, loading to a TJPEGImage array, and then loop drawing to TImage. The Picture. The Bitmap, this includes decoding, extrusion, drawing, performance can be more than 90 FPS, equivalent to about 288 MBPS bit rate video broadcast,

You mean I should not be directly QT controls to display video, but the library should use the special show video?

CodePudding user response:

I mean the general compiler + general graphics library, the general computer (show) performance is enough, if you are sure your drawing code no problem, can change to use FFMPEG library try
  • Related