-
Notifications
You must be signed in to change notification settings - Fork 296
OpenCV: Adapt to API changes in OpenCV 4.5.2+ #639
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5b3eeca
CVTracker: Move some includes, add std:: prefixes
ferdnyc 6bcd550
CVTracker: Handle API changes in OpenCV
ferdnyc 8c03234
Move ClipProcessingJobs into openshot NS
ferdnyc 8485ff8
tests/QtImageReader: Fix includes
ferdnyc 120ffa7
Don't redefine USE_LEGACY_TRACKER
ferdnyc d24554b
OpenCV: Rework includes for Tracking
ferdnyc 895fbba
Merge branch 'develop' into legacy-tracker
ferdnyc 95ffce0
Merge remote-tracking branch 'origin/develop' into legacy-tracker
BrennoCaldato e1e7a43
Make was failing on tests/Point.cpp
BrennoCaldato 577821f
Merge pull request #10 from ferdnyc/legacy-tracker-update
BrennoCaldato cafa255
Removed old file
BrennoCaldato 7b5ec3e
Merge pull request #11 from ferdnyc/legacy-tracker-fix
BrennoCaldato 49d2409
Merge branch 'legacy-tracker' of github.com:ferdnyc/libopenshot into …
ferdnyc 446da9a
OpenCV 4.5.1 message and auto-disabling
ferdnyc 1c4da16
Add fstream includes, explicit std:: namespace
ferdnyc 1cc13e7
CMake: Quote version strings, don't use _GREATER_EQUAL
ferdnyc abc210d
Downgrade OpenCV message to WARNING
ferdnyc 339d194
Merge branch 'develop' into legacy-tracker
ferdnyc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* @file | ||
* @brief Header file for OpenCVUtilities (set some common macros) | ||
* @author FeRD (Frank Dana) <[email protected]> | ||
* @author Jonathan Thomas <[email protected]> | ||
* | ||
* @ref License | ||
*/ | ||
|
||
/* LICENSE | ||
* | ||
* Copyright (c) 2008-2021 OpenShot Studios, LLC | ||
* <http://www.openshotstudios.com/>. This file is part of | ||
* OpenShot Library (libopenshot), an open-source project dedicated to | ||
* delivering high quality video editing and animation solutions to the | ||
* world. For more information visit <http://www.openshot.org/>. | ||
* | ||
* OpenShot Library (libopenshot) is free software: you can redistribute it | ||
* and/or modify it under the terms of the GNU Lesser General Public License | ||
* as published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* OpenShot Library (libopenshot) is distributed in the hope that it will be | ||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef OPENSHOT_OPENCV_UTILITIES_H | ||
#define OPENSHOT_OPENCV_UTILITIES_H | ||
|
||
#define int64 int64_t | ||
#define uint64 uint64_t | ||
#if USE_LEGACY_TRACKER | ||
#include <opencv2/tracking.hpp> | ||
#include <opencv2/tracking/tracking_legacy.hpp> | ||
#define OPENCV_TRACKER_TYPE cv::legacy::Tracker | ||
#define OPENCV_TRACKER_NS cv::legacy | ||
#else | ||
#include <opencv2/tracking.hpp> | ||
#define OPENCV_TRACKER_TYPE cv::Tracker | ||
#define OPENCV_TRACKER_NS cv | ||
#endif | ||
#undef int64 | ||
#undef uint64 | ||
|
||
#endif // OPENSHOT_OPENCV_UTILITIES_H |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.