Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the 2d tracking to improve performances #4

Open
kalwalt opened this issue Sep 15, 2019 · 10 comments
Open

Testing the 2d tracking to improve performances #4

kalwalt opened this issue Sep 15, 2019 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@kalwalt
Copy link
Collaborator

kalwalt commented Sep 15, 2019

As discussed in PR #3 I did a profiling test with chrome this is the result:

the most time spent is on _processImage > process function and the wasm child functions.
i leave the profiler file here

CPU-20190915T122749.zip
I would to know what the wasm function are but i don't know how to read them.
I tested the master branch.

@kalwalt kalwalt added the enhancement New feature or request label Sep 15, 2019
@kalwalt kalwalt self-assigned this Sep 15, 2019
@kalwalt kalwalt changed the title testing the 2d tracking Testing the 2d tracking to improve performances Sep 15, 2019
@ThorstenBux
Copy link
Owner

Yeah, we need to compile with debug settings inside emscripten which would leave the names of the C-function inside the wasm file :).

@kalwalt
Copy link
Collaborator Author

kalwalt commented Sep 15, 2019

You are right i forgot this! i will look into it.

@kalwalt
Copy link
Collaborator Author

kalwalt commented Nov 1, 2019

i did a profiling with debug symbols with the chrome browser, you can find here:
Profile-20191101T123912.zip

i did it while the image is detected and tracked.

@ThorstenBux
Copy link
Owner

from the file it looks like the detectAndCompute function takes very long. This is an OpenCV internal function

@ThorstenBux
Copy link
Owner

I think I should also make one profile run with OpenCV 3 so we can compare the two of them. Would need to setup a reliable OpenCV 3 build pipeline.

@kalwalt
Copy link
Collaborator Author

kalwalt commented Nov 4, 2019

yes @ThorstenBux i tested with the OpenCV 4, we need to setup the pipeline for OpenCv 3.

@kalwalt
Copy link
Collaborator Author

kalwalt commented Nov 4, 2019

i think that the first version you let me try was with OpenCV 3, right? So i think shouldn't be too difficult to revert to it. I think, you use it OpenCV 3.4.1, I will check again but i'm quite sure of this, Maybe we could try with other OpenCV 3 versions ? let say 3.5 or 3.6 or other?

@ThorstenBux
Copy link
Owner

3.4.1 was the one I used, yes. No idea about other 3.x versions, might be worth a shot. But to get quick results we should compare 3.4.1 to 4.x and see if it indeed gets the performance down.

@kalwalt
Copy link
Collaborator Author

kalwalt commented Nov 4, 2019

ok i will do with the 3.4.1 for now when i have a bit of time.... 😄

@ThorstenBux
Copy link
Owner

Awesome, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants