sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: cv2.calcHist() not handling non uniform histogramming
Labels: auto-transferred,priority: normal,feature,category: python bindings

Transferred from http://code.opencv.org/issues/2749

```
|| jean-philippe Andreu on 2013-01-31 10:53
|| Priority: Normal
|| Affected: None
|| Category: python bindings
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## cv2.calcHist() not handling non uniform histogramming

```
I tried to use cv2.calcHist() for non-uniform histograming but it reports the following error: 
"OpenCV Error: Assertion failed (csz == 0 || csz == dims) in unknown function, file D:\OpenCv2.4\opencv\modules\imgproc\src\histogram.cpp, line 841"
"cv2.error: D:\OpenCv2.4\opencv\modules\imgproc\src\histogram.cpp:841: error: (-215) csz == 0 || csz == dims"

Looking at the documentation it doesn't seem to one can set the 'uniform' flag and by peeking at the C++ function (line 841 in histogram.cpp) it looks like the binding is done with the uniform version of cv::calcHist().

Would be nice to have simple feature enabled under python...
```
## History
Repository: opencv
Issue: Stitching module: 8UC1 images support 
Labels: auto-transferred,priority: normal,feature,category: stitching

Transferred from http://code.opencv.org/issues/2752

```
|| Nikolay Rogoshchenkov on 2013-02-02 16:31
|| Priority: Normal
|| Affected: None
|| Category: stitching
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## Stitching module: 8UC1 images support 

```
Please add support for 8UC1 images into the stitching module. 
Now only 8UC3 images are available for stitching.
```
## History
##### Kirill Kornyakov on 2013-02-12 07:03

```
Nikolay, you can work on it by yourself, since OpenCV is open-source and you're the first one who needs such functionality =) And please do not forget to make a GitHub pull request!

Now seriously, currently stithing module is at the "maintenance" stage. That means that nobody is going to further develop it in a short-term. So, if you really need some new functionality, you'd better count on yourself...
```
Repository: opencv
Issue: createsamples should be able to create altered sample data from multiple positive images
Labels: auto-transferred,priority: normal,feature,category: objdetect

Transferred from http://code.opencv.org/issues/2758

```
|| Trevor Clarke on 2013-02-04 18:23
|| Priority: Normal
|| Affected: None
|| Category: objdetect
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## createsamples should be able to create altered sample data from multiple positive images

```
opencv_createsamples can either create randomized samples from a single positive image or generate a vector file from multiple positive samples. It seems unable to create randomized samples from multiple positive images. For example, I have 500 positive sample images. I would like 6000 positives for training. I would like to be able to create 12 randomized images from each input image by specifying -num 6000 to createsamples. If this is done now, an error will occue on sample 501 as it reads past the end of the info.dat file.
```
## History
##### Kirill Kornyakov on 2013-02-12 06:59

```
+1

Trevor, this is well-known limitiation of OpenCV training utility. And, unfortunately nobody is going to work on it...
```
##### Marina Kolpakova on 2013-04-05 23:27

```
-   Assignee deleted (Marina Kolpakova)
```
Repository: opencv
Issue: VideoCapture crashes opening wrong IP address
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: videoio(camera)

Transferred from http://code.opencv.org/issues/2785

```
|| Walter Lucetti on 2013-02-08 15:09
|| Priority: Normal
|| Affected: branch 'master' (2.4.9)
|| Category: highgui-camera
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## VideoCapture crashes opening wrong IP address

```
Hi,

I found a problem in VideoCapture used with IP Cameras. 

When i try to open a "wrong" IP (e.g. the camera is not connected to the network) the "open" function crashes instead of returning "false".

Debugging the application I noticed those fact:

- GStreamer report this error: [tcp @ 0x7a9580] TCP connection to 10.200.0.198:554 failed: No route to host

- the function crashes in file "cap_gstreamer.cpp" calling "gst_caps_unref(caps);" with a SEGMENTATION FAULT
```
## History
##### Kirill Kornyakov on 2013-02-12 06:20

```
Walter, thank you for both reports, but I have to inform you that IP camera support is a low priority for the OpenCV project... At the same time both issues are not looking as difficult ones, so if you're ready to work on a fix, that would help a lot! Please note, that better to target fixes to the '2.4' branch, and patches are accepted as GitHub pull requests.
```
##### Walter Lucetti on 2013-02-13 09:49

```
Kirill, I'm going to work at the patches because I think that it is really important that the functionality are the same for each kind of sensor we can use with OpenCV.
OpenCV is going to gain a lot of importance in videosurveillance applications and I think that a full support to IP Cameras could improve its diffusion in this field.
```
##### Kirill Kornyakov on 2013-02-14 07:48

```
Walter, actually I'm totally agree with you. In one of may past projects we had to "manually" communicate with IP camera, because OpenCV didn't provide support for them. So, this feature would be useful for many projects, and it would be great if you could help with that, while OpenCV team is cooking the next release.
-   Assignee changed from Vadim Pisarevsky to Walter Lucetti
```
##### Walter Lucetti on 2013-02-15 16:47

```
Kirill, I'm almost done with the patch. How can I "commit" it when I am ready?
I saw that there are the "pull request", but I did not find instruction about how to do it.
```
##### Anna Kogan on 2013-02-18 10:52

```
Hello Walter,
Our GitHub repo is https://github.com/Itseez/opencv. If you forked you repo from it (see https://help.github.com/articles/fork-a-repo), you just push the branch with the fix in your GitHub fork (when you think it's ready to go in OpenCV). Here you will find "Pull request" button. You can get more information there: https://help.github.com/articles/using-pull-requests. OpenCV has smart pull request system: http://opencv.org/opencv-pull-requests-test-results.html, so you're welcome! =)
```
##### Anna Kogan on 2013-02-20 06:54

```
Here is a full description of contributing process: http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute
```
##### Walter Lucetti on 2013-02-20 15:10

```
Thank you Anna
```
Repository: opencv
Issue: Management of native libraries in OpenCV for Desktop Java
Labels: auto-transferred,priority: normal,feature,category: java bindings

Transferred from http://code.opencv.org/issues/2818

```
|| Jose Gómez on 2013-02-20 19:05
|| Priority: Normal
|| Affected: None
|| Category: java bindings
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## Management of native libraries in OpenCV for Desktop Java

```
In Android, there is a manager that handles the installation of the native libraries corresponding to the current architecture. Is/will there be something similar in Java-Desktop?

Otherwise, a programmer that wants to support Linux/Mac/Win, will have to compile OpenCV 3 to 5 times, and include all the native libraries. Actually, the Windows distribution provides OpenCV binaries for Win32/64, but there is no repository for binary builds, so Java developers wanting to support multiple platforms have to compile the OpenCV code in all these architectures, which can be a problem if you don't have access to some OS's (like if you don't have a Mac). This is a problem also in the JavaCV wrapper.

Finally, the JavaCV author expressed a concern about the whole OpenCV for Java being exposed in a single library, not allowing the possibility of choosing only the modules that are used in the application. The size of the jars containing the jni interfaces and native libs could be greatly decreased, if only the required modules are included.
```
## History
Repository: opencv
Issue: core/core.hpp is not parse-able by ctags 
Labels: auto-transferred,feature,priority: low,category: core

Transferred from http://code.opencv.org/issues/2838

```
|| Luis Díaz Más on 2013-02-26 19:37
|| Priority: Low
|| Affected: None
|| Category: core
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## core/core.hpp is not parse-able by ctags 

```
I use to use ctags for creating tags of OpenCV and make my VIM editor able to auto-complete my opencv code. I just noticed that ctags can't parse some of the main classes and structures of OpenCV version 2.4.3 (like the omnipresent cv::Mat). In version 2.4.2 ctags just works fine. I don't know if it is a problem about the OpenCV code or the ctags program

I attach the two ctags files generated by ctags with each of the commented versions.

I also note that ctags in verbose mode prints a failure message at some point of core/core.hpp file in 2.4.3 opencv version, but the description of the message doesn't give me any clue about the problem. The message is:

$PATH_OpenCV/modules/core/include/opencv2/core/core.hpp: failed to find match for '<' at line 4739

After running this command with ctags

ctags -V --totals=yes --language-force=C++ -o tags-opencv243 -R -B -I CVAPI -I CV_EXPORTS -I CV_EXPORTS_W -I CV_IN_OUT -I CV_WRAP --c++-kinds=+p --fields=+iaS --extra=+q $PATH_OpenCV/modules/core/include/opencv2/core/core.hpp
```
## History
##### Andrey Kamaev on 2013-04-03 20:45

```
-   Target version changed from 2.4.5 to Next Hackathon
```
Repository: opencv
Issue: Memory Leak using BRISK FeatureDetector and DescriptorExtractor in Java 
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: java bindings

Transferred from http://code.opencv.org/issues/2873

```
|| Guilherme Juraszek on 2013-03-07 20:20
|| Priority: Normal
|| Affected: 2.4.4
|| Category: java bindings
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## Memory Leak using BRISK FeatureDetector and DescriptorExtractor in Java 

```
Use FeatureDetector and DescriptorExtractor with BRISK implementation causes an huge memory consumption. 

for(;;){
FeatureDetector featureDetector = FeatureDetector.create(FeatureDetector.BRISK);
DescriptorExtractor descriptorExtractor = DescriptorExtractor.create(DescriptorExtractor.BRISK);
featureDetector.detect(...);
descriptorExtractor.compute(...);
}
Using Sift and Surf the problem doen't occur.

PS: I'm using this inside Akka actors, so I need to initialise FeatureDetector and DescriptorExtractor multiple times. I can't initialise once and use it for multiple images.
```
## History
##### Vladislav Vinogradov on 2013-04-01 09:13

```
-   Assignee set to Andrey Pavlenko
-   Category set to java bindings
```
Repository: opencv
Issue: GPU HOG bug with non-standard window size
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: gpu/cuda (contrib)

Transferred from http://code.opencv.org/issues/2874

```
|| Thorsten Franzel on 2013-03-08 15:06
|| Priority: Normal
|| Affected: 2.4.4
|| Category: gpu (cuda)
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## GPU HOG bug with non-standard window size

```
Hello,

i suspect i found a offset bug of some sort in the GPU HOG code. I compared to the cpu version. 

* When 64x128 (std pedestrian) is used, everything is fine. (cpu and gpu ok)
* When non-standard window sizes are used in the gpu version, something goes wrong. partially really big number like 2.7*10^(+-13)


i transfered and visualized the effect with matlab, because im not yet so familiar with plotting in opencv. 
sample code has only average difference which increases as you go away from std pedestrian window size.

Kind regards,
Thorsten
```
## History
##### Thorsten Franzel on 2013-03-11 13:11

```
error occures also on the most recent git revision

is any additional information needed? The CUDA device is a GeForce GTX 285
```
##### Alexander Smorkalov on 2013-03-12 05:41

```
-   Assignee set to Marina Kolpakova
-   Category set to gpu (cuda)
```
##### Marina Kolpakova on 2013-04-05 23:29

```
-   Assignee deleted (Marina Kolpakova)
```
Repository: opencv
Issue: [Python] cv2.waitKey returns 
Labels: bug,auto-transferred,priority: normal,category: highgui-gui,affected: 2.4

Transferred from http://code.opencv.org/issues/2910

```
|| Matthäus Brandl on 2013-03-22 15:18
|| Priority: Normal
|| Affected: 2.4.2
|| Category: highgui-gui
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## [Python] cv2.waitKey returns 

```
On Ubuntu 12.10 using either the shipped OpenCV 2.3.1 or OpenCV 2.4.2 of the upcoming Ubuntu 13.04, cv2.waitKey does not return the keycode but 0x100000 + the key code:
<pre>
>>> import cv2
>>> import numpy as np
>>> cv2.imshow("test", np.zeros((10,10)))
>>> key = cv2.waitKey(-1)
>>> print key, hex(key), key % 256
1048603 0x10001b 27
</pre>
(except if the delay runs out, then the result is -1)

See as well this question on StackOverflow: http://stackoverflow.com/questions/9172170
Maybe this bug is related? http://code.opencv.org/issues/191

<pre>
% LC_ALL=C apt-cache policy python-opencv
python-opencv:
  Installed: 2.4.2+dfsg-0exp2ubuntu1
  Candidate: 2.4.2+dfsg-0exp2ubuntu1
  Version table:
 *** 2.4.2+dfsg-0exp2ubuntu1 0
        100 /var/lib/dpkg/status
     2.3.1-11ubuntu2 0
        500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
</pre>
```
## History
Repository: opencv
Issue: [Python] cv2.destroyWindow does not work
Labels: bug,auto-transferred,priority: normal,category: highgui-gui,affected: 2.4

Transferred from http://code.opencv.org/issues/2911

```
|| Matthäus Brandl on 2013-03-22 16:04
|| Priority: Normal
|| Affected: 2.4.2
|| Category: highgui-gui
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## [Python] cv2.destroyWindow does not work

```
On Ubuntu 12.10 using either the shipped OpenCV 2.3.1 or OpenCV 2.4.2 of the upcoming Ubuntu 13.04, one cannot close named windows as expected using cv2.destroyWindow.

See for example on StackOverflow:
* http://stackoverflow.com/questions/6116564
* http://stackoverflow.com/questions/11593046

Although both questions use OpenCV 1.x, the same problem occurs using the cv2 import of OpenCV 2.x

The only way to really close a window is to call the functions in this particular order:
<pre>
cv2.destroyWindow(name)
cv2.waitKey(-1)
cv2.imshow(name, img)
</pre>
where img is an arbitrary numpy array.

For the sake of completeness:
<pre>
% LC_ALL=C apt-cache policy python-opencv
python-opencv:
  Installed: 2.4.2+dfsg-0exp2ubuntu1
  Candidate: 2.4.2+dfsg-0exp2ubuntu1
  Version table:
 *** 2.4.2+dfsg-0exp2ubuntu1 0
        100 /var/lib/dpkg/status
     2.3.1-11ubuntu2 0
        500 http://de.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
</pre>
```
## History
Repository: opencv
Issue: read large .avi file
Labels: bug,auto-transferred,priority: normal,category: videoio,affected: 2.4

Transferred from http://code.opencv.org/issues/2913

```
|| Minh Vo on 2013-03-24 06:17
|| Priority: Normal
|| Affected: branch '2.4'
|| Category: highgui-video
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## read large .avi file

```
VideoCapture does not work on Windows. If I disabled FFMPEG when using cmake and recompiled from the source, it partially worked. By partially, I meant it succeeded in reading a number of frames but stop reading after that.

The source can be as simple as this. Run this on a large video file and it will fail!

    string fname = "xxx.avi";
    VideoCapture cap(fname ); // open the default camera
    if(!cap.isOpened())  // check if we succeeded
        return -1;

    Mat edges;
    namedWindow("edges",1);
    for(;;)
    {
        Mat frame;
        cap >> frame; // get a new frame from camera
        imshow("frame", frame);
        if(waitKey(30) >= 0) break;
    }
    // the camera will be deinitialized automatically in VideoCapture destructor
    return 0;
```
## History
##### Daniil Osokin on 2013-03-25 06:37

```
Hi, Minh! Please, attach a link to video file to reproduce it. 
-   Assignee set to Minh Vo
-   Category set to highgui-video
```
Repository: opencv
Issue: memory leak in cv:VideoWriter::write() ( iOS )
Labels: bug,auto-transferred,priority: normal,category: videoio,affected: 2.4

Transferred from http://code.opencv.org/issues/2918

```
|| Alessandro Trebbi on 2013-03-25 22:36
|| Priority: Normal
|| Affected: 2.4.4
|| Category: highgui-video
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## memory leak in cv:VideoWriter::write() ( iOS )

```
this function loses memory each time is called ; after some frames , the app crashes
```
## History
##### Alessandro Trebbi on 2013-03-25 22:50

```
Alessandro Trebbi wrote:
> this function loses memory each time is called ; after some frames , the app crashes

I think the bug is here:
cap_avfoundation.mm line 1295
CFDataRef cfData = CGDataProviderCopyData(CGImageGetDataProvider(cgImage));

cfData should be released after use
```
##### Vladislav Vinogradov on 2013-04-01 08:53

```
Thanks for your report.

Could you provide a fix for this issue? See [[How_to_contribute#Fork-38-Pull-Request-model-for-code-contribution]] page for instructions.
-   Assignee set to Vadim Pisarevsky
-   Category set to highgui-video
```
##### Alessandro Trebbi on 2013-04-01 21:10

```
I did not manage to test it, but this should work:

cap_avfoundation.mm line 1317 i added 2 lines ( i added to release, i'm not sure that both are required )

//cleanup
*    NSLog(@"Patch alessandro trebbi");
    CFRelease(cfData); 
    CVPixelBufferRelease(pixelBuffer);*
    CGImageRelease(cgImage);
    CGDataProviderRelease(provider);
    CGColorSpaceRelease(colorSpace);

( i tried to fix it by myself, but did not manage to compile a functional framework, i mean the framework i comoile give me many link errors due to duplicate symbols )
```
##### Alessandro Trebbi on 2013-04-09 13:40

```
Please assign the bug to me, i have already fixed, and then will do a pull request. thx
```
##### Nguyen Nguyen on 2015-05-04 17:45

```
Alessandro Trebbi wrote:
> I did not manage to test it, but this should work:
> 
> cap_avfoundation.mm line 1317 i added 2 lines ( i added to release, i'm not sure that both are required )
> 
> //cleanup
> *    NSLog(@"Patch alessandro trebbi");
>     CFRelease(cfData); 
>     CVPixelBufferRelease(pixelBuffer);*
>     CGImageRelease(cgImage);
>     CGDataProviderRelease(provider);
>     CGColorSpaceRelease(colorSpace);
> 
> ( i tried to fix it by myself, but did not manage to compile a functional framework, i mean the framework i comoile give me many link errors due to duplicate symbols )

I tried it on the latest 2.4 branch, the leak is still there.
```
Repository: opencv
Issue: Discrete wavelet transform
Labels: auto-transferred,feature,category: imgproc

Transferred from http://code.opencv.org/issues/2923

```
|| Ajay Viswanathan on 2013-03-26 20:48
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## Discrete wavelet transform

```
There should functions for Haar, DB-X series, 9/7 and all other kinds of transforms in the OpenCV libraries. They would be quite handy in image compression and transmission applications.
```
## History
##### Vladislav Vinogradov on 2013-04-01 09:06

```
Hello, Ajay Viswanathan.

OpenCV is open source library. 
You can make your contribution to it. If you can implement this feature, submit a pull request (see [[How_to_contribute]]).
```
##### Rel Guzman Apaza on 2013-04-02 18:28

```
Vladislav Vinogradov wrote:
> Hello, Ajay Viswanathan.
> 
> OpenCV is open source library. 
> You can make your contribution to it. If you can implement this feature, submit a pull request (see [[How_to_contribute]]).

How large should be the code?
https://github.com/Itseez/opencv/pull/4#issuecomment-7393721
```
##### Rel Guzman Apaza on 2013-04-02 18:28

```
Vladislav Vinogradov wrote:
> Hello, Ajay Viswanathan.
> 
> OpenCV is open source library. 
> You can make your contribution to it. If you can implement this feature, submit a pull request (see [[How_to_contribute]]).

How large should be the code?
[[https://github.com/Itseez/opencv/pull/4#issuecomment-7393721]]
```
##### Vladislav Vinogradov on 2013-04-03 05:44

```
First of all, new functionality must be useful for large number of applications.
```
##### Vladislav Vinogradov on 2013-04-03 05:45

```
-   Category set to imgproc, video
```
Repository: opencv
Issue: Need to update Introduction to Java Development: java sun 6 on Ubuntu 12.04
Labels: auto-transferred,feature,priority: low,category: documentation

Transferred from http://code.opencv.org/issues/2935

```
|| Oleg Sklyarov on 2013-04-02 07:55
|| Priority: Low
|| Affected: None
|| Category: documentation
|| Tracker: Feature
|| Difficulty: Easy
|| PR: 
|| Platform: None / None
```
## Need to update Introduction to Java Development: java sun 6 on Ubuntu 12.04

```
There are two alternative solutions:

# https://github.com/flexiondotorg/oab-java6
# http://source.android.com/source/initializing.html#installing-the-jdk
```
## History
##### Kirill Kornyakov on 2013-07-08 07:53

```
-   Target version changed from 2.4.6 to Next Hackathon
-   Difficulty set to Easy
-   Priority changed from Normal to Low
```
Repository: opencv
Issue: Qt Window: Save image button does not work (Bug #2449)
Labels: bug,auto-transferred,priority: normal,category: highgui-gui,affected: 2.4

Transferred from http://code.opencv.org/issues/2947

```
|| Stefan R on 2013-04-09 12:11
|| Priority: Normal
|| Affected: branch 'master' (2.4.9)
|| Category: highgui-gui
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## Qt Window: Save image button does not work (Bug #2449)

```
Please re-open the ticket "Qt Window: Save image button does not work (Bug #2449)".
It is still not fixed. See comments in Bug #2449.
```
## History
##### Maria Dimashova on 2013-04-09 16:34

```
Can you please specify the OpenCV version or revision you used as well as your environment? It would even better if you propose a pull request that fixes and tests the problem. Thanks.
-   Target version deleted (2.4.6)
```
##### Stefan R on 2013-04-10 07:01

```
It is all mentioned in #2449. That's why I refer to this particular ticket.

This bug is present in both Git branches "2.4" and "master"!
Git version as of Friday 5.4.2013, Windows 7 x64, OpenCV built with Qt 4.8.4.

And by the way: The patch of Cenk Uyan does fix it if the Qt windows displays still images (e.g. with cv::waitKey(0)) but not for videos (e.g with cv::waitkey(10)).
```
Repository: opencv
Issue: PNG imwrite with ICC
Labels: wontfix,auto-transferred,category: imgcodecs

Transferred from http://code.opencv.org/issues/2948

```
|| Florian Meier on 2013-04-09 13:53
|| Priority: Normal
|| Affected: None
|| Category: highgui-images
|| Tracker: Feature
|| Difficulty: None
|| PR: 
|| Platform: None / None
```
## PNG imwrite with ICC

```
I would like to store a color profile together with the PNG files.
For this, I modified the grfmt_png.cpp and added the lines

@if(profileData != NULL)
png_set_iCCP(png_ptr, info_ptr, "ICC Profile", PNG_COMPRESSION_TYPE_BASE, profileData, profileDataLength);
@

within the write function and this works very well. 

I think this could also be a handy feature for other users, but I don't know how the API for setting the profileData should look like, because the write function is normally not directly called by the user. Furthermore, using the params vector could be working, but would require ugly pointer casting.

Any ideas?

Greetings,
Florian
```
## History
##### Maria Dimashova on 2013-04-09 16:07

```
Florian, could you please create a pull request with your suggestion on "OpenCV github":https://github.com/Itseez/opencv/pulls?
-   Assignee set to Vadim Pisarevsky
-   Category set to highgui-images
```