text stringlengths 36 4k | label stringclasses 4
values | repo stringclasses 27
values | source stringclasses 2
values |
|---|---|---|---|
Fix memory leak and handle realloc failure
In the previous code, there was a memory leak issue where the previously allocated memory was not freed upon a failed realloc operation. This commit addresses the problem by releasing the old memory before setting the pointer to NULL in case of a realloc failure. This ensures... | bug | opencv/opencv | nlbse2024 |
RISC-V: fix compilation in RVV scalable mode
Tested with Clang 16 and GCC 13 (RISC-V RVV scalable variant). Also on x86_64 (default Ubuntu 22.04 GCC).
```
force_builders=Custom
build_image:Custom=riscv-clang-rvv
Xbuild_image:Custom=riscv-clang-rvv-128
Xbuild_image:Custom=riscv-gcc-rvv-07
test_modules:Custom=core,imgp... | bug | opencv/opencv | nlbse2024 |
Build with OpenVINO in Debug
### Pull Request Readiness Checklist
resolves https://github.com/opencv/opencv/issues/24249
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowle... | bug | opencv/opencv | nlbse2024 |
fix type cast in drawDetectedMarkers, drawDetectedCornersCharuco, drawDetectedDiamonds
- drawDetectedMarkers(), drawDetectedCornersCharuco(), drawDetectedDiamonds() uses only `Point2f` (`CV_32FC2`) for detected corners. But this corners are casted to `int` later in the code.
- drawDetectedMarkers(), drawDetectedDiamon... | bug | opencv/opencv | nlbse2024 |
SIGILL in `merge`
### System Information
OpenCV version: 4.5.4
Operating System / Platform: Ubuntu 22.04.3 LTS
Compiler & compiler version: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
I also reproduced error on CV 4.6.0 on windows but the minimal example has been tested on Ubuntu with CV4.5.4.
### Detailed descriptio... | bug | opencv/opencv | nlbse2024 |
Revert PR 24186 as it forces skipping tests
Reverts https://github.com/opencv/opencv/pull/24186
Current test skipping issue:
```
./bin/opencv_test_dnn --gtest_filter=Test_Caffe_layers*
...
[ OK ] Test_Caffe_layers.DeConvolution/3 (3 ms)
[ RUN ] Test_Caffe_layers.InnerProduct/0, where GetParam() = NGRAPH/CPU
[ OK ] Te... | bug | opencv/opencv | nlbse2024 |
core: arm64: v_round() works with round to nearest, ties to even.
fix https://github.com/opencv/opencv/issues/24213
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License... | bug | opencv/opencv | nlbse2024 |
[RFC] rounding rule for cv::divide()
### System Information
OpenCV version: 4.x branch
Operating System / Platform: Ubuntu 20.04 (Raspi4, arm64)
Compiler & compiler version: GCC 9.3.0
### Detailed description
This issue is about `cv::divide()`. related with https://github.com/opencv/opencv/pull/24074
Rounding rule ... | bug | opencv/opencv | nlbse2024 |
Fixed bug with the last 4 bytes in MJPEG encoder
resolves #19634
resolves #24171
Enabled parallel processing, that was temporary disabled in #19812 because of the issue #19634 | bug | opencv/opencv | nlbse2024 |
The cmake cann libopsproto.so library compiled with opencv4.8.0 could not be found
### System Information
My device CPU: Kunpeng 920 +NPU: ascend310,AArch64 platform
### Detailed description
Ascend-cann-toolkit Download address. The download version is 6.0.1,
OpenCV compiler options reference: https://github.com/o... | bug | opencv/opencv | nlbse2024 |
ONNX DNN inference produce Wrong result compare to 4.7.0
### System Information
OpenCV version: 4.8.0
Operating System / Platform: Windows10
Compiler & compiler version: Visual Studio 17.0 for cpp
and
Python version: 3.9.15
OpenCV python version: 4.8.0.76 for python
### Detailed description
I had a model in Python ... | bug | opencv/opencv | nlbse2024 |
Why OpenCV CUDA morphology SLOWER than my simple cu kernel?
### System Information
c++ user
OpenCV version: 4.8.0
win10
MSVC2019
GPU nvidia3060ti
CUDA 12.2
### Detailed description
img size 3k*2k , element size: 43 * 43
_use opencv CPU spend 4ms,my CPU is AMD R5 5500_
opencvCUDA spend 380ms
this is my cuda cod... | bug | opencv/opencv | nlbse2024 |
Use STRING instead of PATH to fix #24141
Resolves #24141
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [X] I agree to contribute to the project under Apache 2 License.
- [X] To the best of my knowledge, the proposed patch is ... | bug | opencv/opencv | nlbse2024 |
add missing include
Backport of #24167 | bug | opencv/opencv | nlbse2024 |
DNN: fix the issue in layer_fuse
Fix issue: https://github.com/opencv/opencv/issues/24041
relates #22401
Handling when the `operation` of the `Elemtwise layer` is missing.
`nextData->params.get<String>("operation")` will fail when the `operation` is missing. This patch adds default value for such case.
### Pull Requ... | bug | opencv/opencv | nlbse2024 |
why minMaxIdx Restored reduced IPP calls
### System Information
// example for c++ user
OpenCV version: 4.0 or later
Operating System / Platform: Centos 7.9
Compiler & compiler version: GCC 4.8.5
### Detailed description
cv::minMaxIdx Unable to use IPP acceleration
/modules/core/src
/minmax.cpp
#undef HAVE_IPP
#un... | bug | opencv/opencv | nlbse2024 |
mac m1 ld: symbol(s) not found for architecture arm64. build java opencv for opencv-4.8.0
### System Information
```
(base) guoquanhao@MacBook-Pro build % clang --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Conten... | bug | opencv/opencv | nlbse2024 |
Modify the outputVideoFormat after changing the output format in MSMF backend
After changing the output format, need to modify the outputVideoFormat, otherwise the outputVideoFormat is always CV_CAP_MODE_BGR, and an error will occur when converting the format in retrieveVideoFrame(), and will always enter "case CV_CAP... | bug | opencv/opencv | nlbse2024 |
fix refineDetectedMarkers
Fixes #24127
To refine corners of ArUco markers we need to call matchImagePoints() from base class Board. The method matchImagePoints() implemented in Pimpl and we need to create temp Board object.
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/Ho... | bug | opencv/opencv | nlbse2024 |
Fixed bug when MSMF webcamera doesn't start when build with VIDEOIO_PLUGIN_ALL
Fixed #23937 and #23056 | bug | opencv/opencv | nlbse2024 |
RefineDetectedMarkers fails if cameraMatrix is given as a param
### System Information
OpenCV python version: 4.8.0
Operating System / Platform: Windows 10
Python version: 3.9.16
### Detailed description
`refineDetectedMarkers `method of `ArucoDetector `fails if optional `cameraMatrix `param is given.
When runnin... | bug | opencv/opencv | nlbse2024 |
Fix v_pack_store alignment issue on Windows 32-bit.
Nightly build issue: https://pullrequest.opencv.org/buildbot/builders/5_x-win32-vc14/builds/100205
The issue introduced in: https://github.com/opencv/opencv/pull/23865
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_... | bug | opencv/opencv | nlbse2024 |
Python sample code tst_scene_render.py not compatible with modern NumPy when using one image or no image
### System Information
OpenCV python version: 4.8.0.74
Operating System / Platform: macOS 13.4.1
Python version: 3.11.4, NumPy 1.25
### Detailed description
samples.python/tst_scene_render.py is outdated and need... | bug | opencv/opencv | nlbse2024 |
Solved bug in Reduce layer #24044
### Pull Request Readiness Checklist
resolves https://github.com/opencv/opencv/issues/24044
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my k... | bug | opencv/opencv | nlbse2024 |
Invalid memory access fix for ONNX split layer parser #24076
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch ... | bug | opencv/opencv | nlbse2024 |
Port stereoRectify grid fix #24035
Review and merge after https://github.com/opencv/opencv/pull/24084
Address #24035 in 5.x
Manual port of https://github.com/opencv/opencv/pull/24035
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request... | bug | opencv/opencv | nlbse2024 |
VideoWriter resulting size one off error
### System Information
OpenCV python version: 4.8.0.74
Operating System / Platform: Ubuntu 20.04
Python version: 3.8.10
### Detailed description
Saving an image of shape `960, 1699, 3` gives shape `960, 1698, 3` (1699 vs 1698).
### Steps to reproduce
```python
import numpy... | bug | opencv/opencv | nlbse2024 |
Exception in ONNX::parseSplit
### System Information
```
General configuration for OpenCV 4.8.0-dev =====================================
Version control: 4.8.0-113-g0323761ea6
Extra modules:
Location (extra): C:/lib/opencv_contrib/modules
Version control (extra): 4.8.0-12-gdaaf6451
Platform:
Timestamp: 2023-... | bug | opencv/opencv | nlbse2024 |
Doesnt use cuda for specific layer
### System Information
OpenCV version: 4.8.0 (current 4.x branch)
Windows
Compiler: msvc 2022
Running a onnx file (same as here: https://github.com/opencv/opencv/issues/22713 )
I noticed very high CPU usage (GPU also gets used but its bottlenecked by the CPU)
So we went and profil... | bug | opencv/opencv | nlbse2024 |
Subtracting a tuple from an image gives `error: (-215:Assertion failed) type2 == CV_64F && (sz2.height == 1 || sz2.height == 4) in function 'cv::arithm_op'`
### System Information
```
OpenCV python version: 4.8.0.74
Operating system: Windows 11 22H2
Python version: 3.10.11
```
### Detailed description
From what I u... | bug | opencv/opencv | nlbse2024 |
Test_TensorFlow_layers.tf2_prelu fails with OpenVINO CPU backend
### System Information
OS: Linux x64
OpenVINO: 2023.0.1 (official docker image)
CI link: https://github.com/opencv/ci-gha-workflow/actions/runs/5646941329/job/15295960583?pr=109
### Detailed description
```
[ RUN ] Test_TensorFlow_layers.tf2_prelu/0, ... | bug | opencv/opencv | nlbse2024 |
fix compilation error on Windows ARM, use vaddq_f32 instead of +=
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed p... | bug | opencv/opencv | nlbse2024 |
cv.cuda.GpuMat.convertTo failed to convert data types
### System Information
// example for python user
OpenCV python version: 4.7.0
Operating System / Platform: Ubuntu 18.04
Python version: 3.7.16
### Detailed description
```
image = frame.convertTo(cv2.CV_32F)
```
```
cv2.error: OpenCV(4.7.0) /data/work/opencv-cud... | bug | opencv/opencv | nlbse2024 |
Fix stereoRectify image boundaries.
This should have been fixed with https://github.com/opencv/opencv/issues/23304
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.... | bug | opencv/opencv | nlbse2024 |
feat: add cuda_Stream and cuda_GpuMat to simple types mapping
This patch fixes usage of `cuda::Stream` in function arguments.
Affected modules: `cudacodec`:
[`using namespace cuda`](https://github.com/opencv/opencv_contrib/blob/9dfe233020f669f17021dfc456fe77531e776b74/modules/cudacodec/include/opencv2/cudacodec.hpp#... | bug | opencv/opencv | nlbse2024 |
fix: preserve NumPY writeable flag in output arguments
Example error output:
```
OpenCV(4.8.0-dev) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
> - img marked as output argument, but provided NumPy array marked as readonly
> - Expected Ptr<cv::UMat> for argument 'img'
> - img mar... | bug | opencv/opencv | nlbse2024 |
Fix python typing stubs generation for CUDA modules
resolves #23946
resolves #23945
resolves opencv/opencv-python#871
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 Licen... | bug | opencv/opencv | nlbse2024 |
Test_Caffe_nets.FasterRCNN_vgg16 fails with ENABLE_FAST_MATH option
### System Information
OpenCV: current 4.x (4.8.0-dev)
Platform: Ubuntu 18.04, GCC 7.5
Hardware: Core i5 2500k (no avx2 and no avx512)
### Detailed description
Net inference accuracy issue is raised.
### Steps to reproduce
```
cmake -DENABLE_FAST... | bug | opencv/opencv | nlbse2024 |
[TFLite] Pack layer and other fixes for SSD from Keras
### Pull Request Readiness Checklist
resolves https://github.com/opencv/opencv/issues/23992
**Merge with extra**: https://github.com/opencv/opencv_extra/pull/1076
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
... | bug | opencv/opencv | nlbse2024 |
It is not possible to redirect some error printed directly to cerr
### System Information
Problem in source code at any platform
https://github.com/opencv/opencv/blob/4.x/modules/imgcodecs/src/loadsave.cpp#L440
and on other places
### Detailed description
The code uses direct print to std::cerr (e.g. https://github... | bug | opencv/opencv | nlbse2024 |
Opencv Build form source
### System Information
OpenCV version: 4.8.0
Operating System / Platform: windows10
Compiler & compiler version: cmake+vs2022+x64

 includes target "ocv.3rdparty.openvino" more than once in the export set.
CMake Error in CMakeLists.txt:
given target "ocv.3rdparty.openvino" more... | bug | opencv/opencv | nlbse2024 |
fix: typing stubs overload presence check
Every function has at least 1 overload (the **main** one), so before the fix `check_overload_presence` always produced `True`
As a coincide, removes unnecessary `import typing` in several modules stubs e.g. `cv2/gapi/core/cpu/__init__.pyi`
### Pull Request Readiness Checklis... | bug | opencv/opencv | nlbse2024 |
Test_Torch_nets.FastNeuralStyle_accuracy/1 randomly fails with CUDA
### System Information
Platform: Ubuntu + CUDA
Full test name: Test_Torch_nets.FastNeuralStyle_accuracy/1, where GetParam() = CUDA/CUDA_FP16
### Detailed description
```
[ RUN ] Test_Torch_nets.FastNeuralStyle_accuracy/1, where GetParam() = CUDA/CU... | bug | opencv/opencv | nlbse2024 |
Python type stubs does not handle cuda::GpuMat and cuda::Stream
### System Information
Python 3.6+
Platform: CUDA
### Detailed description
```
'Failed to resolve "cv2.cudacodec" namespace against "cv2".
Errors: [\\'Failed to resolve "cv2.cudacodec.createVideoWriter" function against "cv2".
Errors:
[0]: Failed to ... | bug | opencv/opencv | nlbse2024 |
Depthwise Convolution layer with 5x5 kernel much slower than 4.7.0
### System Information
macOS M2
OpenCV 4.7.0 and 4.8.0
python
### Detailed description
mediapipe palm detection model from OpenCV zoo show the inference time is double than the 4.7.0 version.
reference: https://github.com/opencv/opencv_zoo/pull/190... | bug | opencv/opencv | nlbse2024 |
VideoCapture MSMF plugin won't open using camera/device index.
### System Information
OpenCV version: at least from 4.5.5 to master
Operating System / Platform: Windows 10/11
Compiler & compiler version: Visual Studio 2022
### Detailed description
It looks like unnecessary `nullptr` check of optional argument https... | bug | opencv/opencv | nlbse2024 |
OpenCV solution for Visual Studio 2019 is not building opencv_core.lib when AVX2 is specified in (CPU_DISPATCH = SSE4_1;SSE4_2;AVX;FP16;AVX2) in x86 build
### System Information
OpenCV solution for Visual Studio 2019 is not building opencv_core.lib when
AVX2 is specified in (CPU_DISPATCH = SSE4_1;SSE4_2;AVX;FP16;AVX2... | bug | opencv/opencv | nlbse2024 |
Python type stubs: Class `cv2.error` is missing properties
### System Information
OpenCV python: opencv-python-headless==4.8.0.74
Operating System / Platform: 10.0.19045 Build 19045
Python version: 3.9.13
### Detailed description
Class `cv2.error` is currently typed as:
```py
class error(Exception): ...
```
but sh... | bug | opencv/opencv | nlbse2024 |
Detection of multiple ChArUco boards with different IDs in one image broken in 4.8.0
### System Information
OpenCV 4.8.0
Ubuntu 22.04
Python 3.10.6
### Detailed description
In OpenCV 4.7.0 you could separately detect two ChArUco boards visible in a single image:
```python
dict_type = aruco.DICT_6X6_250
squares = (... | bug | opencv/opencv | nlbse2024 |
CUDA 12.2 fp16 dnn compilation error
### System Information
OpenCV version: 4.8.0
OS: Windows 11
Compiler: Visual Studio 2022
CUDA: 12.2
### Detailed description
Switching from CUDA 12.1 to 12.2 results in several compilation like the one below when compiling the **dnn** module.
<details>
<summary>D:\\repos\\open... | bug | opencv/opencv | nlbse2024 |
error: (-215:Assertion failed) inputs.size() in function 'cv::dnn::dnn4_v20230620::Layer::getMemoryShapes'
```
### System Information
General configuration for OpenCV 4.8.0-pre =====================================
Version control: 4.7.0-505-gc982be3924
Extra modules:
Location (extra): C:/lib/opencv_contrib/modul... | bug | opencv/opencv | nlbse2024 |
Mouse coordinates seem to be off if opencv versionhigher than 4.5
### System Information
OpenCV version: 4.4.0
Operating System / Platform: Windows 10
Python version: 3.810
### Detailed description
opencv version 4.4.0 seams to be still ok, but somewhere for later versions mouse reading coordinates seems to be off... | bug | opencv/opencv | nlbse2024 |
dnn: fix overflow in sigmoid layer
Fixes #23850
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not base... | bug | opencv/opencv | nlbse2024 |
MinGW-w64 Standalone Environment Error: 'pthread_self' was not declared in this scope
### System Information
OpenCV Version: 4.7.0
Operating System: Windows 11 22H2
Compiler (& version): gcc.exe (x86_64-win32-seh-rev1, Built by MinGW-Builds project) 13.1.0, MinGW-w64
### Detailed description
```
[ 27%] Building CXX... | bug | opencv/opencv | nlbse2024 |
G-API: Fix incorrect OpaqueKind for Kernel outputs
### Pull Request Readiness Checklist
#### Overview
The PR is going to fix several problems:
1. Major: `GKernel` doesn't hold `kind` for its outputs. Since `GModelBuilder` traverse graph from outputs to inputs once it reaches any output of the operation it will use it... | bug | opencv/opencv | nlbse2024 |
fix: conditionally define generic NumPy NDArray alias
This patch introduces conditional alias definition.
- Fixes compatibility with NumPy versions < 1.20 and Python < 3.9
- Updates enums handling to utilise introduced `ConditionalAliasTypeNode `
Generated `cv2/typing/__init__.py` content after patch:
```python
imp... | bug | opencv/opencv | nlbse2024 |
Python Typing module is incompatible with some Numpy versions
### System Information
OS: Ubuntu 18.04
Python: 3.8.0 (from apt)
OpenCV: 4.x
### Detailed description
Numpy: 1.24.3 Importing issue:
```
alexander@paradox:~/Projects/OpenCV/opencv-build/install/lib/python3.8/site-packages$ python3.8
Python 3.8.0 (default... | bug | opencv/opencv | nlbse2024 |
Export enums ALL_CAPS version to typing stub files
- Export ALL_CAPS versions alongside from normal names for enum constants, since both versions are available in runtime
- Change enum names entries comments to documentary strings
Before patch
```python
RMat_Access_R: int
RMat_Access_W: int
RMat_Access = int # One of... | bug | opencv/opencv | nlbse2024 |
CAP_IMAGES: can't find starting number
### System Information
General configuration for OpenCV 4.7.0-dev =====================================
Version control: 4.7.0-403-g5d913f4d72
Extra modules:
Location (extra): C:/lib/opencv_contrib/modules
Version control (extra): 4.7.0-54-g8dfeed73
Platform:
Timestamp: ... | bug | opencv/opencv | nlbse2024 |
Type stubs: `cv2.typing` type aliases don't exist at runtime but are not marked as such
### System Information
OpenCV python: opencv_python_headless-4.7.0+772599a-cp37-abi3-win_amd64.whl
Operating System / Platform: 10.0.19045 Build 19045
Python version: 3.9.13
### Detailed description
Trying to use `cv2.typing.any... | bug | opencv/opencv | nlbse2024 |
Type stubs: Slicing a `cv2.mat_wrapper.Mat` or derived type results in partially unknown `ndarray`
### System Information
OpenCV python: opencv_python_headless-4.7.0+772599a-cp37-abi3-win_amd64.whl
Operating System / Platform: 10.0.19045 Build 19045
Python version: 3.9.13
### Detailed description
pyright uses a spe... | bug | opencv/opencv | nlbse2024 |
Type stubs: `cv2.__init__.pyi` is missing module re-exports
### System Information
OpenCV python: opencv_python_headless-4.7.0+772599a-cp37-abi3-win_amd64.whl
Operating System / Platform: 10.0.19045 Build 19045
Python version: 3.9.13
### Detailed description
`cv2.__init__.pyi` is missing module re-exports, which sh... | bug | opencv/opencv | nlbse2024 |
converto value
### System Information
OpenCV version: 4.7.0
Operating System / windows
Compiler & compiler version: GCC 12
simple function frame1.convertTo(frame1, CV_32F, 1.0/255);
from input value 142.0 give me 0.5566
But real value must be something like this
```
float value = 142.0 / 255.0;
printf("%.10f\\n",... | bug | opencv/opencv | nlbse2024 |
Python Scalar is different with C++
Hi,
I suspect the following code has different behavior in C++ and Python.
```py
Scalar a = 1.0;
```
For Python, the `Scalar a = 1.0` code will only replace the first `0.0` to `1.0`.
Do something like `a[0] = 1.0`.
For C++, it will do the `Scalar a = Scalar(1.0)`.
Original link: h... | bug | opencv/opencv | nlbse2024 |
G-API: OpenVINO Backend Hotfix
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [ ] I agree to contribute to the project under Apache 2 License.
- [ ] To the best of my knowledge, the proposed patch is not based on a code under G... | bug | opencv/opencv | nlbse2024 |
Keep inliers for linear remap with BORDER_TRANSPARENT
### Pull Request Readiness Checklist
resolves https://github.com/opencv/opencv/issues/23562
I do think that this is a bug because with `INTER_CUBIC + BORDER_TRANSPARENT` the last column and row are preserved. So same should be done for `INTER_LINEAR`
See details... | bug | opencv/opencv | nlbse2024 |
imgproc/cvtColor: fixed invalid read in BGR2HLS
related PR #22520
* `mhls3` is read outside of array `interTmpM` (3 elements), it is not used anywhere
* ~replacing `max_nlanes` with `vlanes` for array size is still in question, I think it should be OK~ It was not OK :smiley: | bug | opencv/opencv | nlbse2024 |
FaceRecognizerSF.feature C++ throws vector subscript out of range
### System Information
OpenCV version: 4.7.0
Operating System / Platform: Windows 11
Compiler & compiler version: Clang 15.0.1
### Detailed description
the bug is on this line
```
cv::Mat feature1, feature2;
fr->feature(aligned_face1, feature1); // ... | bug | opencv/opencv | nlbse2024 |
opencv.js: QR code test failure
https://pullrequest.opencv.org/buildbot/builders/4_x_javascript-emscripten-lin64/builds/100401
relates #23264
```
│ QR code detect and decode │ Died on test #1: Cannot construct QRCodeDetector due to unbound types: N2cv18QRCodeDetectorBaseE │ fail │
│ │ at Object.global.test.QUnit.tes... | bug | opencv/opencv | nlbse2024 |
how using open cv to maui net
### System Information
how using open cv to maui net
### Detailed description
how using open cv to maui net
### Steps to reproduce
how using open cv to maui net
### Issue submission checklist
- [X] I report the issue, it's not a question
- [X] I checked the problem with documentati... | bug | opencv/opencv | nlbse2024 |
opencv.js missing ArucoDetector, GridBoard, CharucoBoard
### System Information
opencv.js version: 4.7.0
official build from https://github.com/opencv/opencv/releases/download/4.7.0/opencv-docs-4.7.0.zip
### Detailed description
The classes ArucoDetector, GridBoard, and CharucoBoard, are not available in the opencv... | bug | opencv/opencv | nlbse2024 |
Generation of getter and setter for the DetectorParameters.cornerRefinementMethod property is skipped during Java wrapper generation.
### System Information
OpenCV version: 4.7.0
Operating System / Platform: Windows 10 22H2
Compiler & compiler version: CMake 3.24.3
### Detailed description
The creation of the get_c... | bug | opencv/opencv | nlbse2024 |
Python binding for cuda::GpuMat does not handle float16 properly when downloading to or uploading from a NumPy array
### System Information
OpenCV python version: 4.7.0.72 with OpenCV 87331ca built with Cuda 11.8
Operating System / Platform: Ubuntu 22.04
Python version: 3.10.8
### Detailed description
Trying to upl... | bug | opencv/opencv | nlbse2024 |
DNN: fix potential bug, stride should not be set as 0.
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not... | bug | opencv/opencv | nlbse2024 |
No rule to make target 'cublas', needed by 'lib/libopencv_sfm.so.4.5.2'.
### System Information
I Use ubuntu 20.04
I have cuda 11.2
I have cuDNN version 8.1.0
### Detailed description
I'm trying to install opencv 4.5.2 with cuda 11.2 and cuDNN 8.1.0 but I'm having a problem with that and it's as follows
```
(AIenv)... | bug | opencv/opencv | nlbse2024 |
Build fix for AVX 256
@zihaomu Our CI environment started failing after you merged this [commit](https://github.com/opencv/opencv/commit/5229312ad2a4fbf9a6abfd6490b265c39587e6f7).
```
/build/build_cuda/3p/opencv/linux-x64/ubuntu22.04/Debug/modules/dnn/src/layers/cpu_kernels/convolution.cpp: In function 'void cv::dnn... | bug | opencv/opencv | nlbse2024 |
Build issue: test_qrcode_encode.cpp and usage of std::random_shuffle
### System Information
C++ user - building from source requires building all the tests, and _opencv/modules/objectdetect/test/test_qrcode_encode.cpp_ uses the function ```std::random_shuffle()``` to generate the input info. However, this function is... | bug | opencv/opencv | nlbse2024 |
Add assert to check if layer input size is not empty
### Check if TF model layer input is not empty
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the b... | bug | opencv/opencv | nlbse2024 |
Fix even input dimensions for INTER_NEAREST_EXACT
### Pull Request Readiness Checklist
resolves https://github.com/opencv/opencv/issues/22204
related: https://github.com/opencv/opencv/issues/9096#issuecomment-1551306017
/cc @Yosshi999
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-g... | bug | opencv/opencv | nlbse2024 |
Fixed mask handling in AffineFeature
Address https://github.com/opencv/opencv/issues/20865
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [ ] I agree to contribute to the project under Apache 2 License.
- [ ] To the best of my... | bug | opencv/opencv | nlbse2024 |
Fixes pixel info color font for dark Qt themes
For dark Qt themes, it is hard to read the pixel color information on the bottom left, like the coordinates or RGB values. This PR proposes a way on how the dynamically sets the font colors based on the system's theme.
Original Example:
 in https://opencv.org/releases/ for the 4.7.0 seems to download the OpenCV version 3.4.19.
### Steps to reproduce
Download the 4.7.0 for iOS
###... | bug | opencv/opencv | nlbse2024 |
OpenCV 4.7.0 much slower than 4.6.0 for Java Apps
### System Information
Performance comparisons are between OpenCV 4.7.0 (slow) and 4.6.0. (faster). [4.5.0 runs essentially same faster speed as 4.6.0.]
All runs use Windows 10; HP EliteBook laptop.
My test app (the MRE) built with Java compiler:
openjdk version "17.... | bug | opencv/opencv | nlbse2024 |
The `matchTemplate` function changes the data of the `mask`.
### System Information
OpenCV version: 4.7.0
Operating System / Platform: windows 10
Compiler & compiler version: visual studio 2019
### Detailed description
When the `matchTemplate` function is used with a `mask`, the data of the `mask` changes and it is... | bug | opencv/opencv | nlbse2024 |
Losing last mat row and column during `remap()` with `BORDER_TRANSPARENT`
### System Information
OpenCV python version: 4.7.0
Operating System / Platform: Windows 11
Python revision: 3.10.8
### Detailed description
[EDIT: unquoted relevant part of my question..]
Hi,
first off thanks for the great work you guys ar... | bug | opencv/opencv | nlbse2024 |
Segfault at countNonZero8u on RISC-V with RVV 0.7.1
### System Information
OpenCV version: 6dbc5e032fa851d1a25fb4a895d735ed3441975b
Operating System / Platform: [20211230_LicheeRV_debian_d1_hdmi_8723ds](https://mega.nz/folder/lx4CyZBA#PiFhY7oSVQ3gp2ZZ_AnwYA/folder/xtxkABIB) / Sipeed Lichee RV Dock (Allwinner D1 CPU),... | bug | opencv/opencv | nlbse2024 |
Nary Elementwise Broadcast Failure Cases
I wrote a brute force test to test elementwise which cases will be wrong, here is the test report
[report.md](https://github.com/opencv/opencv/files/11350407/report.md)
I'm not sure if I should put this brute force test into `test_layer.cpp`, because it will test about **3844*... | bug | opencv/opencv | nlbse2024 |
rotatedRectangleIntersection does not return all intersection points as expected
### System Information
OpenCV python version: 4.7.0
Operating System / Platform: Windows 10
Python version: 3.10.10
### Detailed description
During some testing of a system that used `rotatedRectangleIntersection` and then `contourArea... | bug | opencv/opencv | nlbse2024 |
DNN/CUDA: make 'abcd op 1b11' broadcast eltwise operator support cuda
This PR will fix #23278
Current implement is a temp impl. I will try to make more eltwise broadcast cases support CUDA.
The inference time of [model](https://github.com/opencv/opencv/files/10826659/model3.zip) is from **26.7651 ms** to **17.8416... | bug | opencv/opencv | nlbse2024 |
OpenCV(4.5.5) Error: Gpu API call (CUDA_ERROR_FILE_NOT_FOUND [Code = 301]
### System Information
opencv-4.5.5
opencv_contrib-4.5.5
Video_Codec_SDK_11.1.5
Cmake 3.23.1
Win 10
### Detailed description
Hello, I followed the online tutorial to compile OpenCV hard decoding; I will first attempt to open a local MP4 file ... | bug | opencv/opencv | nlbse2024 |
Solve the "Unrecognized selector" issue in Objective-C/Swift binding
### System Information
OpenCV version: 4.x latest
Operating System / Platform: MacOS any
### Detailed description
As originally reported in https://github.com/opencv/opencv/issues/17532 there is a frequently occurring problem when trying to use th... | bug | opencv/opencv | nlbse2024 |
Error in `generation_onnx_models.py` onnx test data generation script.
### System Information
Hi!
Running `python generate_onnx_models.py` inside `opencv_extra/testdata/dnn/onnx` to generate new test models and data results in error
It seem that `postprocess_model()` function is not located in wrong place
OpenCV... | bug | opencv/opencv | nlbse2024 |
Fix aruco module CORNER_REFINE_CONTOUR parameter gets skipped
### Pull Request Readiness Checklist
Hi @AleksandrPanov the aruco module is using the wrong variable to check whether it should perform corner refinement.
The previous buggy version of code since opencv 4.7 is using the candidates supplied in the function... | bug | opencv/opencv | nlbse2024 |
DNN: support the split node of onnx opset >= 13
Merge with test case: https://github.com/opencv/opencv_extra/pull/1053.
The attribute of `split` in `Split layer` has been moved from `attribute` to `input`.
Related link: https://github.com/onnx/onnx/blob/main/docs/Operators.md#inputs-1---2-12
The purpose of this PR is... | bug | opencv/opencv | nlbse2024 |
Using the Java version of opencv, the camera encountered a memory overflow issue while iteratively fetching images
### System Information
OpenCV python version: 4.8
Operating System / Platform: Windows 11
java version: 4.7
### Detailed description
Exception in thread "main" java.lang.Exception: std::exception: bad ... | question | opencv/opencv | nlbse2024 |
ERROR COMPILING OPENCV WITH CUDA at 99%, PLEASE HELP
### System Information
I put the following 2 commands to compile opencv with cuda:
wget -O opencv.zip https://github.com/opencv/opencv/archive/refs/tags/4.8.0.zip ; wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/refs/tags/4.8.0.zip ; u... | question | opencv/opencv | nlbse2024 |
Can not set camera to 4k resolution
### System Information
OpenCV python version: 4.8.0
Operating System / Platform: Ubuntu 20.04
Python version: 3.8.17
Camera model: Dell Ultrasharp WB7022
### Detailed description
I can not set the camera resolution to 4k with the normal method:
```
import cv2
cap = cv2.VideoCap... | question | opencv/opencv | nlbse2024 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.