Skip to content

Commit 9d8814b

Browse files
committed
update opencv 3.4.15 and 4.5.3
1 parent cfe2239 commit 9d8814b

9 files changed

+412
-254
lines changed

.github/workflows/release.yml

Lines changed: 110 additions & 110 deletions
Large diffs are not rendered by default.

opencv-3.4.13-no-zlib.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
diff -Nuarp opencv-3.4.13/modules/core/include/opencv2/core/bindings_utils.hpp opencv-3.4.13.nortti/modules/core/include/opencv2/core/bindings_utils.hpp
2-
--- opencv-3.4.13/modules/core/include/opencv2/core/bindings_utils.hpp 2020-12-20 14:15:48.000000000 +0800
3-
+++ opencv-3.4.13.nortti/modules/core/include/opencv2/core/bindings_utils.hpp 2021-01-08 22:50:19.036833738 +0800
4-
@@ -76,14 +76,6 @@ CV_WRAP static inline
1+
diff -Nuarp opencv-3.4.15/modules/core/include/opencv2/core/bindings_utils.hpp opencv-3.4.15.nortti/modules/core/include/opencv2/core/bindings_utils.hpp
2+
--- opencv-3.4.15/modules/core/include/opencv2/core/bindings_utils.hpp 2021-07-04 14:10:12.000000000 +0800
3+
+++ opencv-3.4.15.nortti/modules/core/include/opencv2/core/bindings_utils.hpp 2021-07-11 15:37:28.622075271 +0800
4+
@@ -117,12 +117,6 @@ String dumpRange(const Range& argument)
5+
}
6+
7+
CV_WRAP static inline
8+
-void testRaiseGeneralException()
9+
-{
10+
- throw std::runtime_error("exception text");
11+
-}
12+
-
13+
-CV_WRAP static inline
14+
AsyncArray testAsyncArray(InputArray argument)
15+
{
16+
AsyncPromise p;
17+
@@ -134,14 +128,6 @@ CV_WRAP static inline
518
AsyncArray testAsyncException()
619
{
720
AsyncPromise p;
@@ -16,9 +29,9 @@ diff -Nuarp opencv-3.4.13/modules/core/include/opencv2/core/bindings_utils.hpp o
1629
return p.getArrayResult();
1730
}
1831

19-
diff -Nuarp opencv-3.4.13/modules/core/src/async.cpp opencv-3.4.13.nortti/modules/core/src/async.cpp
20-
--- opencv-3.4.13/modules/core/src/async.cpp 2020-12-20 14:15:48.000000000 +0800
21-
+++ opencv-3.4.13.nortti/modules/core/src/async.cpp 2021-01-08 22:54:48.716898652 +0800
32+
diff -Nuarp opencv-3.4.15/modules/core/src/async.cpp opencv-3.4.15.nortti/modules/core/src/async.cpp
33+
--- opencv-3.4.15/modules/core/src/async.cpp 2021-07-04 14:10:12.000000000 +0800
34+
+++ opencv-3.4.15.nortti/modules/core/src/async.cpp 2021-07-11 15:35:42.202735096 +0800
2235
@@ -118,7 +118,6 @@ struct AsyncArray::Impl
2336
if (has_exception)
2437
{
@@ -27,9 +40,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/async.cpp opencv-3.4.13.nortti/module
2740
}
2841
CV_Error(Error::StsInternal, "AsyncArray: invalid state of 'has_result = true'");
2942
}
30-
diff -Nuarp opencv-3.4.13/modules/core/src/bindings_utils.cpp opencv-3.4.13.nortti/modules/core/src/bindings_utils.cpp
31-
--- opencv-3.4.13/modules/core/src/bindings_utils.cpp 2020-12-20 14:15:48.000000000 +0800
32-
+++ opencv-3.4.13.nortti/modules/core/src/bindings_utils.cpp 2021-01-08 22:50:46.216437138 +0800
43+
diff -Nuarp opencv-3.4.15/modules/core/src/bindings_utils.cpp opencv-3.4.15.nortti/modules/core/src/bindings_utils.cpp
44+
--- opencv-3.4.15/modules/core/src/bindings_utils.cpp 2021-07-04 14:10:12.000000000 +0800
45+
+++ opencv-3.4.15.nortti/modules/core/src/bindings_utils.cpp 2021-07-11 15:35:42.202735096 +0800
3346
@@ -14,7 +14,7 @@ String dumpInputArray(InputArray argumen
3447
return "InputArray: noArray()";
3548
std::ostringstream ss;
@@ -110,9 +123,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/bindings_utils.cpp opencv-3.4.13.nort
110123
return ss.str();
111124
}
112125

113-
diff -Nuarp opencv-3.4.13/modules/core/src/command_line_parser.cpp opencv-3.4.13.nortti/modules/core/src/command_line_parser.cpp
114-
--- opencv-3.4.13/modules/core/src/command_line_parser.cpp 2020-12-20 14:15:48.000000000 +0800
115-
+++ opencv-3.4.13.nortti/modules/core/src/command_line_parser.cpp 2021-01-08 22:56:00.173855959 +0800
126+
diff -Nuarp opencv-3.4.15/modules/core/src/command_line_parser.cpp opencv-3.4.15.nortti/modules/core/src/command_line_parser.cpp
127+
--- opencv-3.4.15/modules/core/src/command_line_parser.cpp 2021-07-04 14:10:12.000000000 +0800
128+
+++ opencv-3.4.15.nortti/modules/core/src/command_line_parser.cpp 2021-07-11 15:35:42.202735096 +0800
116129
@@ -124,7 +124,6 @@ static void from_str(const String& str,
117130

118131
void CommandLineParser::getByName(const String& name, bool space_delete, int type, void* dst) const
@@ -209,9 +222,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/command_line_parser.cpp opencv-3.4.13
209222
}
210223

211224
return vec;
212-
diff -Nuarp opencv-3.4.13/modules/core/src/glob.cpp opencv-3.4.13.nortti/modules/core/src/glob.cpp
213-
--- opencv-3.4.13/modules/core/src/glob.cpp 2020-12-20 14:15:48.000000000 +0800
214-
+++ opencv-3.4.13.nortti/modules/core/src/glob.cpp 2021-01-08 22:53:21.441172176 +0800
225+
diff -Nuarp opencv-3.4.15/modules/core/src/glob.cpp opencv-3.4.15.nortti/modules/core/src/glob.cpp
226+
--- opencv-3.4.15/modules/core/src/glob.cpp 2021-07-04 14:10:12.000000000 +0800
227+
+++ opencv-3.4.15.nortti/modules/core/src/glob.cpp 2021-07-11 15:35:42.202735096 +0800
215228
@@ -231,7 +231,6 @@ static void glob_rec(const cv::String& d
216229
if ((dir = opendir (directory.c_str())) != 0)
217230
{
@@ -232,9 +245,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/glob.cpp opencv-3.4.13.nortti/modules
232245
closedir(dir);
233246
}
234247
else
235-
diff -Nuarp opencv-3.4.13/modules/core/src/matrix.cpp opencv-3.4.13.nortti/modules/core/src/matrix.cpp
236-
--- opencv-3.4.13/modules/core/src/matrix.cpp 2020-12-20 14:15:48.000000000 +0800
237-
+++ opencv-3.4.13.nortti/modules/core/src/matrix.cpp 2021-01-08 22:52:24.700000125 +0800
248+
diff -Nuarp opencv-3.4.15/modules/core/src/matrix.cpp opencv-3.4.15.nortti/modules/core/src/matrix.cpp
249+
--- opencv-3.4.15/modules/core/src/matrix.cpp 2021-07-04 14:10:12.000000000 +0800
250+
+++ opencv-3.4.15.nortti/modules/core/src/matrix.cpp 2021-07-11 15:35:42.203735090 +0800
238251
@@ -640,18 +640,10 @@ void Mat::create(int d, const int* _size
239252
#endif
240253
if(!a)
@@ -274,9 +287,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/matrix.cpp opencv-3.4.13.nortti/modul
274287

275288
updateContinuityFlag();
276289

277-
diff -Nuarp opencv-3.4.13/modules/core/src/parallel.cpp opencv-3.4.13.nortti/modules/core/src/parallel.cpp
278-
--- opencv-3.4.13/modules/core/src/parallel.cpp 2020-12-20 14:15:48.000000000 +0800
279-
+++ opencv-3.4.13.nortti/modules/core/src/parallel.cpp 2021-01-08 22:56:50.149126755 +0800
290+
diff -Nuarp opencv-3.4.15/modules/core/src/parallel.cpp opencv-3.4.15.nortti/modules/core/src/parallel.cpp
291+
--- opencv-3.4.15/modules/core/src/parallel.cpp 2021-07-04 14:10:12.000000000 +0800
292+
+++ opencv-3.4.15.nortti/modules/core/src/parallel.cpp 2021-07-11 15:35:42.203735090 +0800
280293
@@ -321,29 +321,9 @@ namespace {
281294
CV_TRACE_ARG_VALUE(range_end, "range.end", (int64)r.end);
282295
#endif
@@ -324,9 +337,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/parallel.cpp opencv-3.4.13.nortti/mod
324337
}
325338
else // nested parallel_for_() calls are not parallelized
326339
#endif // CV_PARALLEL_FRAMEWORK
327-
diff -Nuarp opencv-3.4.13/modules/core/src/persistence_c.cpp opencv-3.4.13.nortti/modules/core/src/persistence_c.cpp
328-
--- opencv-3.4.13/modules/core/src/persistence_c.cpp 2020-12-20 14:15:48.000000000 +0800
329-
+++ opencv-3.4.13.nortti/modules/core/src/persistence_c.cpp 2021-01-08 22:51:49.412515029 +0800
340+
diff -Nuarp opencv-3.4.15/modules/core/src/persistence_c.cpp opencv-3.4.15.nortti/modules/core/src/persistence_c.cpp
341+
--- opencv-3.4.15/modules/core/src/persistence_c.cpp 2021-07-04 14:10:12.000000000 +0800
342+
+++ opencv-3.4.15.nortti/modules/core/src/persistence_c.cpp 2021-07-11 15:35:42.203735090 +0800
330343
@@ -456,17 +456,10 @@ cvOpenFileStorage(const char* query, CvM
331344
CV_Assert(fs);
332345
memset( fs, 0, sizeof(*fs));
@@ -345,9 +358,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/persistence_c.cpp opencv-3.4.13.nortt
345358
}
346359

347360
/* closes file storage and deallocates buffers */
348-
diff -Nuarp opencv-3.4.13/modules/core/src/persistence_types.cpp opencv-3.4.13.nortti/modules/core/src/persistence_types.cpp
349-
--- opencv-3.4.13/modules/core/src/persistence_types.cpp 2020-12-20 14:15:48.000000000 +0800
350-
+++ opencv-3.4.13.nortti/modules/core/src/persistence_types.cpp 2021-01-08 22:56:15.202636666 +0800
361+
diff -Nuarp opencv-3.4.15/modules/core/src/persistence_types.cpp opencv-3.4.15.nortti/modules/core/src/persistence_types.cpp
362+
--- opencv-3.4.15/modules/core/src/persistence_types.cpp 2021-07-04 14:10:12.000000000 +0800
363+
+++ opencv-3.4.15.nortti/modules/core/src/persistence_types.cpp 2021-07-11 15:35:42.203735090 +0800
351364
@@ -756,13 +756,9 @@ static void* icvReadSeq( CvFileStorage*
352365
flags |= CV_SEQ_FLAG_HOLE;
353366
if( !strstr(flags_str, "untyped") )
@@ -362,10 +375,10 @@ diff -Nuarp opencv-3.4.13/modules/core/src/persistence_types.cpp opencv-3.4.13.n
362375
}
363376
}
364377

365-
diff -Nuarp opencv-3.4.13/modules/core/src/system.cpp opencv-3.4.13.nortti/modules/core/src/system.cpp
366-
--- opencv-3.4.13/modules/core/src/system.cpp 2020-12-20 14:15:48.000000000 +0800
367-
+++ opencv-3.4.13.nortti/modules/core/src/system.cpp 2021-01-08 22:55:38.692169448 +0800
368-
@@ -1122,8 +1122,6 @@ void error( const Exception& exc )
378+
diff -Nuarp opencv-3.4.15/modules/core/src/system.cpp opencv-3.4.15.nortti/modules/core/src/system.cpp
379+
--- opencv-3.4.15/modules/core/src/system.cpp 2021-07-04 14:10:12.000000000 +0800
380+
+++ opencv-3.4.15.nortti/modules/core/src/system.cpp 2021-07-11 15:35:42.203735090 +0800
381+
@@ -1136,8 +1136,6 @@ void error( const Exception& exc )
369382
static volatile int* p = 0;
370383
*p = 0;
371384
}
@@ -374,7 +387,7 @@ diff -Nuarp opencv-3.4.13/modules/core/src/system.cpp opencv-3.4.13.nortti/modul
374387
}
375388

376389
void error(int _code, const String& _err, const char* _func, const char* _file, int _line)
377-
@@ -1947,7 +1945,7 @@ inline bool parseOption(const std::strin
390+
@@ -1991,7 +1989,7 @@ inline bool parseOption(const std::strin
378391
{
379392
return false;
380393
}
@@ -383,7 +396,7 @@ diff -Nuarp opencv-3.4.13/modules/core/src/system.cpp opencv-3.4.13.nortti/modul
383396
}
384397

385398
template<>
386-
@@ -1972,7 +1970,7 @@ inline size_t parseOption(const std::str
399+
@@ -2016,7 +2014,7 @@ inline size_t parseOption(const std::str
387400
return v * 1024 * 1024;
388401
else if (suffixStr == "KB" || suffixStr == "Kb" || suffixStr == "kb")
389402
return v * 1024;
@@ -392,7 +405,7 @@ diff -Nuarp opencv-3.4.13/modules/core/src/system.cpp opencv-3.4.13.nortti/modul
392405
}
393406

394407
template<>
395-
@@ -2015,16 +2013,11 @@ static inline const char * envRead(const
408+
@@ -2059,16 +2057,11 @@ static inline const char * envRead(const
396409
template<typename T>
397410
inline T read(const std::string & k, const T & defaultValue)
398411
{
@@ -409,9 +422,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/system.cpp opencv-3.4.13.nortti/modul
409422
return defaultValue;
410423
}
411424

412-
diff -Nuarp opencv-3.4.13/modules/core/src/umatrix.cpp opencv-3.4.13.nortti/modules/core/src/umatrix.cpp
413-
--- opencv-3.4.13/modules/core/src/umatrix.cpp 2020-12-20 14:15:48.000000000 +0800
414-
+++ opencv-3.4.13.nortti/modules/core/src/umatrix.cpp 2021-01-08 22:55:10.729577450 +0800
425+
diff -Nuarp opencv-3.4.15/modules/core/src/umatrix.cpp opencv-3.4.15.nortti/modules/core/src/umatrix.cpp
426+
--- opencv-3.4.15/modules/core/src/umatrix.cpp 2021-07-04 14:10:12.000000000 +0800
427+
+++ opencv-3.4.15.nortti/modules/core/src/umatrix.cpp 2021-07-11 15:35:42.204735083 +0800
415428
@@ -516,14 +516,9 @@ UMat Mat::getUMat(int accessFlags, UMatU
416429
new_u->originalUMatData = u;
417430
}
@@ -445,9 +458,9 @@ diff -Nuarp opencv-3.4.13/modules/core/src/umatrix.cpp opencv-3.4.13.nortti/modu
445458
CV_Assert( step[dims-1] == (size_t)CV_ELEM_SIZE(flags) );
446459
}
447460

448-
diff -Nuarp opencv-3.4.13/modules/core/src/utils/filesystem.cpp opencv-3.4.13.nortti/modules/core/src/utils/filesystem.cpp
449-
--- opencv-3.4.13/modules/core/src/utils/filesystem.cpp 2020-12-20 14:15:48.000000000 +0800
450-
+++ opencv-3.4.13.nortti/modules/core/src/utils/filesystem.cpp 2021-01-08 22:51:06.030148041 +0800
461+
diff -Nuarp opencv-3.4.15/modules/core/src/utils/filesystem.cpp opencv-3.4.15.nortti/modules/core/src/utils/filesystem.cpp
462+
--- opencv-3.4.15/modules/core/src/utils/filesystem.cpp 2021-07-04 14:10:12.000000000 +0800
463+
+++ opencv-3.4.15.nortti/modules/core/src/utils/filesystem.cpp 2021-07-11 15:35:42.204735083 +0800
451464
@@ -492,14 +492,9 @@ cv::String getCacheDirectory(const char*
452465
&& !utils::fs::isDirectory(default_cache_path))
453466
{
@@ -463,18 +476,18 @@ diff -Nuarp opencv-3.4.13/modules/core/src/utils/filesystem.cpp opencv-3.4.13.no
463476
if (!existedCacheDirs.empty())
464477
{
465478
CV_LOG_WARNING(NULL, "Creating new OpenCV cache directory: " << default_cache_path);
466-
diff -Nuarp opencv-3.4.13/modules/imgproc/src/contours.cpp opencv-3.4.13.nortti/modules/imgproc/src/contours.cpp
467-
--- opencv-3.4.13/modules/imgproc/src/contours.cpp 2020-12-20 14:15:48.000000000 +0800
468-
+++ opencv-3.4.13.nortti/modules/imgproc/src/contours.cpp 2021-01-08 22:57:55.235177043 +0800
469-
@@ -1735,7 +1735,6 @@ cvFindContours_Impl( void* img, CvMemS
479+
diff -Nuarp opencv-3.4.15/modules/imgproc/src/contours.cpp opencv-3.4.15.nortti/modules/imgproc/src/contours.cpp
480+
--- opencv-3.4.15/modules/imgproc/src/contours.cpp 2021-07-04 14:10:12.000000000 +0800
481+
+++ opencv-3.4.15.nortti/modules/imgproc/src/contours.cpp 2021-07-11 15:35:42.204735083 +0800
482+
@@ -1761,7 +1761,6 @@ cvFindContours_Impl( void* img, CvMemS
470483
}
471484
else
472485
{
473486
- try
474487
{
475488
scanner = cvStartFindContours_Impl( img, storage, cntHeaderSize, mode, method, offset,
476489
needFillBorder);
477-
@@ -1747,12 +1746,6 @@ cvFindContours_Impl( void* img, CvMemS
490+
@@ -1773,12 +1772,6 @@ cvFindContours_Impl( void* img, CvMemS
478491
}
479492
while( contour != 0 );
480493
}

opencv-3.4.15-no-zlib.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Nuarp opencv-3.4.15.orig/modules/core/src/persistence.hpp opencv-3.4.15/modules/core/src/persistence.hpp
2+
--- opencv-3.4.15.orig/modules/core/src/persistence.hpp 2020-12-20 14:15:48.000000000 +0800
3+
+++ opencv-3.4.15/modules/core/src/persistence.hpp 2021-02-24 23:55:08.440237914 +0800
4+
@@ -12,7 +12,7 @@
5+
#include <string>
6+
#include <iterator>
7+
8+
-#define USE_ZLIB 1
9+
+#define USE_ZLIB 0
10+
#if USE_ZLIB
11+
# ifndef _LFS64_LARGEFILE
12+
# define _LFS64_LARGEFILE 0
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff -Nuarp opencv-3.4.13/modules/core/include/opencv2/core/cvdef.h opencv-3.4.13.unsafe_xadd/modules/core/include/opencv2/core/cvdef.h
2-
--- opencv-3.4.13/modules/core/include/opencv2/core/cvdef.h 2020-12-20 14:15:48.000000000 +0800
3-
+++ opencv-3.4.13.unsafe_xadd/modules/core/include/opencv2/core/cvdef.h 2021-05-11 15:45:01.573056217 +0800
4-
@@ -528,33 +528,7 @@ Cv64suf;
1+
diff -Nuarp opencv-3.4.15/modules/core/include/opencv2/core/cvdef.h opencv-3.4.15.unsafe_xadd/modules/core/include/opencv2/core/cvdef.h
2+
--- opencv-3.4.15/modules/core/include/opencv2/core/cvdef.h 2021-07-04 14:10:12.000000000 +0800
3+
+++ opencv-3.4.15.unsafe_xadd/modules/core/include/opencv2/core/cvdef.h 2021-07-11 14:54:19.949471070 +0800
4+
@@ -532,33 +532,7 @@ Cv64suf;
55
* exchange-add operation for atomic operations on reference counters *
66
\****************************************************************************************/
77

@@ -27,7 +27,7 @@ diff -Nuarp opencv-3.4.13/modules/core/include/opencv2/core/cvdef.h opencv-3.4.1
2727
-# define CV_XADD(addr, delta) (int)_InterlockedExchangeAdd((long volatile*)addr, delta)
2828
-#else
2929
- #ifdef OPENCV_FORCE_UNSAFE_XADD
30-
- CV_INLINE CV_XADD(int* addr, int delta) { int tmp = *addr; *addr += delta; return tmp; }
30+
- CV_INLINE int CV_XADD(int* addr, int delta) { int tmp = *addr; *addr += delta; return tmp; }
3131
- #else
3232
- #error "OpenCV: can't define safe CV_XADD macro for current platform (unsupported). Define CV_XADD macro through custom port header (see OPENCV_INCLUDE_PORT_FILE)"
3333
- #endif

opencv-4.5.1-no-zlib.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)