Ask Your Question

jpistorino's profile - activity

2020-12-08 21:39:02 -0600 received badge  Popular Question (source)
2020-10-02 01:16:21 -0600 received badge  Popular Question (source)
2020-07-15 09:53:08 -0600 received badge  Popular Question (source)
2020-05-19 03:37:45 -0600 received badge  Popular Question (source)
2019-08-16 10:29:05 -0600 received badge  Notable Question (source)
2019-05-06 10:03:00 -0600 received badge  Notable Question (source)
2019-03-06 04:40:50 -0600 received badge  Notable Question (source)
2018-08-31 10:04:54 -0600 received badge  Popular Question (source)
2018-08-27 17:24:44 -0600 commented question FindContours Duplicate Points

I am going to continue investigating this and thank you for your efforts. Something is not adding up because in the sec

2018-08-27 16:31:48 -0600 commented question FindContours Duplicate Points

Not a question of not believing you. I just haven't seen that in my code. In my image above, there are 11 contours for

2018-08-27 11:25:11 -0600 commented question FindContours Duplicate Points

I really do not see that behavior. Using Canny, you get contours that do not have duplicates. It appears to be the cas

2018-08-27 11:23:39 -0600 commented answer FindContours Duplicate Points

This appears to be correct. Help me to understand why there would be duplicates. Say there was simply a line. Why woul

2018-08-25 15:52:49 -0600 commented question FindContours Duplicate Points

My understanding is that findContours only works on an image from which the edges have been extracted. You can do that

2018-08-25 13:44:59 -0600 asked a question FindContours Duplicate Points

FindContours Duplicate Points I am using OpenCV 3.4.1 with VS2015 C++ on a Win10 platform. My question relates to findC

2018-08-25 11:40:16 -0600 commented question Explanation of findContours/Suzuki Method

Thanks Eduardo.

2018-08-10 20:28:32 -0600 asked a question Explanation of findContours/Suzuki Method

Explanation of findContours/Suzuki Method The code I have been working on uses several of the OpenCV CUDA functions to s

2018-08-10 20:28:23 -0600 asked a question Explanation of findContours/Suzuki Method

Explanation of findContours/Suzuki Method The code I have been working on uses several of the OpenCV CUDA functions to s

2018-08-10 20:28:11 -0600 asked a question Explanation of findContours/Suzuki Method

Explanation of findContours/Suzuki Method The code I have been working on uses several of the OpenCV CUDA functions to s

2018-07-19 09:22:24 -0600 received badge  Notable Question (source)
2018-06-10 08:37:00 -0600 received badge  Popular Question (source)
2018-06-06 13:19:03 -0600 received badge  Popular Question (source)
2018-02-22 23:41:18 -0600 commented question OpenCV 3.4, CUDA 9.1, WinForms and VS2015 Errors

Thanks Steve. I guess I am following in your footsteps. Qt it is.

2018-02-18 18:05:26 -0600 asked a question OpenCV 3.4, CUDA 9.1, WinForms and VS2015 Errors

OpenCV 3.4, CUDA 9.1, WinForms and VS2015 Errors I am using OpenCV 2.4 and CUDA 9.1 with VS2015 on a Win10 platform and

2018-01-24 11:57:15 -0600 asked a question traits.hpp - type is not a member - compilation error

traits.hpp - type is not a member - compilation error I am using VS2015 C++/CLI, CUDA 9.1, and OpenCV 3.4 on a Win10 mac

2018-01-23 05:21:47 -0600 marked best answer Does OpenCV 3.4 Support CUDA 9.1?

Title says it all.

I am preparing to build OpenCV 3.4 and it would make sense to update my CUDA version at the same time. Also, I am hoping that all of this will work on VS2015

2018-01-22 19:27:14 -0600 commented question OpenCV 3.3.1 error

I think I am seeing this same error. Where do I define OPENCV_TRAITS_ENABLE_DEPRECATED?

2018-01-08 11:25:46 -0600 commented question Detecting multiple instances of an object

Another variant would be to build a library of shapes you want to count. Each shape is characterized by the perimeter/a

2018-01-07 12:04:53 -0600 commented question Detecting multiple instances of an object

Seems like a lot depends on whether you want a general solution or a solution for this pattern. For this pattern, see

2018-01-07 00:55:08 -0600 asked a question Why No CUDA version of findContours?

Why No CUDA version of findContours? A while back I remember reading that there was an effort to implement as many CUDA

2018-01-05 17:38:43 -0600 asked a question Does OpenCV 3.4 Support CUDA 9.1?

Does OpenCV 3.4 Support CUDA 9.1? Title says it all. I am preparing to build OpenCV 3.4 and it would make sense to upda

2017-12-04 12:28:49 -0600 answered a question Moving Window With Mouse Using Imshow

Making waitkey(0) and deleting the getch call did it. Thanks very much.

2017-12-04 01:35:47 -0600 edited question Moving Window With Mouse Using Imshow

Moving Window With Mouse Using Imshow I am using OpenCV 3.3 on a Win10 platform with C++. Is there a way to enable the

2017-12-03 20:24:31 -0600 commented question Moving Window With Mouse Using Imshow

No virtual machine. Thanks for any insight.

2017-12-03 20:18:26 -0600 commented question Moving Window With Mouse Using Imshow

I am using VS2013 and built the libraries myself. VS2015 and 2017 did not work with CUDA 8.0.

2017-12-03 20:04:59 -0600 commented question Moving Window With Mouse Using Imshow

Doesn't work. You can't select the title bar. Could be that I am using getch/waitkey? How else would you keep the win

2017-12-03 19:09:06 -0600 asked a question Moving Window With Mouse Using Imshow

Moving Window With Mouse Using Imshow I am using OpenCV 3.3 on a Win10 platform with C++. Is there a way to enable the

2017-11-07 07:58:44 -0600 received badge  Notable Question (source)
2017-10-05 00:24:42 -0600 received badge  Notable Question (source)
2017-08-24 15:12:50 -0600 marked best answer Editing/Understanging FindContours Points

I am using OpenCV 3.1.1 with VS2012 C++ on a Win10 64 bit machine.

I am attempting to implement Xingang, et al., "Bag of Contour Fragments for Robust Shape Classification" (2014). http://dl.acm.org/citation.cfm?id=258... That approach involves editing the points of a contour to eliminate non-essential points.

I used findContours with CHAIN_APPROX_SIMPLE. That outputs an array of CV::Points. What I am hoping to understand is if, or how, the points are ordered. That is, given a list of points, how do you know which points are next to each other on the contour? Seems like once you have more than four points, a variety of connections between the points is possible.

Related to that, how does drawContours interpret the points array to decide which points to connect with lines?

If there is any documentation which describes any of this, a reference to it would be great.

Thanks

2017-07-02 12:50:09 -0600 commented question CMake error with OpenCV 3.2/contrib on .dnn directory

Tried again and updated to show latest results.

2017-07-01 20:08:37 -0600 asked a question CMake error with OpenCV 3.2/contrib on .dnn directory

I am using CMake 3.8.1 and downloaded OpenCV 3.2 and opencv_contrib_master at the same time from Github.

I specified the opencv_contrib_master directory in the OPENCV_EXTRA_MODULES_PATH line. I also deselected at least protobuf and BUILD_opencv_dnn.

However, when I try and configure in CMake I get an error saying:

CMake Error at cmake/OpenCVModule.cmake:294 (add_subdirectory):
  The binary directory

C:/OpenCV/build/modules/dnn/.dnn

  is already used to build a source directory.  It cannot be used to build
  source directory

D:/opencv_contrib-master/modules/dnn

  Specify a unique binary directory name.
Call Stack (most recent call first):
  modules/CMakeLists.txt:7 (ocv_glob_modules)

I completely deleted the opencv and the contrib directories and downloaded the packages from GitHub within 2 minutes. I deselected aruco and bioinspired. I specified the proper contrib directory for the AXTRA_MODULES_PATH. Now I get:

CMake Error at D:/opencv/cmake/OpenCVUtils.cmake:850 (file):
  file MD5 failed to read file "C:/OpenCV/build/3rdparty/tinydnn/":
  Permission denied
Call Stack (most recent call first):
   C:/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)

Downloading ...
CMake Error at D:/opencv/cmake/OpenCVUtils.cmake:888 (file):
  file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
  C:/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)


CMake Error at D:/opencv/cmake/OpenCVUtils.cmake:892 (message):
  Failed to download .  Status=
Call Stack (most recent call first):
   C:/opencv_contrib-master/modules/dnn_modern/CMakeLists.txt:20 (ocv_download)

Any help appreciated.

2017-06-14 20:08:06 -0600 received badge  Popular Question (source)
2017-05-25 14:15:27 -0600 commented question Can't Configure with CMake 3.8.1 and OpenCV 3.2

That's it.For contrib you have to point to the modules but for the master you have to point to the the base directory Thanks/

2017-05-25 13:26:06 -0600 asked a question Can't Configure with CMake 3.8.1 and OpenCV 3.2

I am using OpenCV 3.2 on a Win10 64 bit machine with VS2012 - CUDA 8.0 and CMake 3.8.1. I am getting an error that will not let me get past the CMake configure step.

In an effort to have a clean install, I downloaded the latest versions of the master and contrib from GitHub minutes ago. I also downloaded CMake 3.8.1.

The master was installed in c:\OpenCV. When I run CMake I specify that the source code is at: c:\OpenCV\opencv-master\modules and that the build should be at c:\OpenCV\build.

When I hit Configure in CMake, the generator is properly set at Visual Studio 11 2012 Win64 and I let it "use default native compilers." Below are some pictures that show what happens and does not let you get past the Configure step.

image description

image description

Any help geting past this appreciated.

2017-05-25 12:10:45 -0600 commented question Error Building OpenCV 3.2 with VS2012/WIN10 (Updated)

OK Thanks

2017-05-25 12:02:00 -0600 commented question Error Building OpenCV 3.2 with VS2012/WIN10 (Updated)

Berak, Could I trouble you for any guidance here? Thanks.

2017-05-24 13:10:34 -0600 edited question Error Building OpenCV 3.2 with VS2012/WIN10 (Updated)

I am trying to build OpenCV 3.2 with VS2012 on a Win10 64 bit machine also using CUDA 8.0. I am using CMake 3.8.1.

I downloaded the latest version of both OpenCV 3.2 and contrib from GitHub. Then, I set the EXTRA_MODULES_PATH to where contrib is stored. I also deselected various things that did not appear relevant. I then configured and generated and do not think that I am getting any CMake errors.

When I compile the ALL_BUILD project, 12 projects succeed and 58 fail.

The first error listed shows:

13>  Building Custom Rule C:/OpenCV/opencv-3.2.0/modules/core/CMakeLists.txt
13>  CMake does not need to re-run because C:/OpenCV/opencv/build/modules/core/CMakeFiles/generate.stamp is up-to-date.
13>  Generating opencl_kernels_core.cpp, opencl_kernels_core.hpp
13>  opencv_core_pch.cpp
13>  algorithm.cpp
...
13>  opengl.cpp
13>  out.cpp
13>C:\OpenCV\opencv-3.2.0\modules\core\src\out.cpp(106): error C3861: 'snprintf': identifier not found
13>  ovx.cpp
...
13>  va_intel.cpp
13>  opencl_kernels_core.cpp
14>------ Rebuild All started: Project: opencv_imgproc, Configuration: Debug x64 ------

In light of berak's comment, I deleted all of OpenCV master and reloaded from GitHub. Now CMake gives the following errors when I try and configure. I have deleted CMakceCache to make sure that is not an issue.

The C compiler identification is MSVC 17.0.61030.0
The CXX compiler identification is MSVC 17.0.61030.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:7 (ocv_glob_modules):
  Unknown CMake command "ocv_glob_modules".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!
See also "C:/OpenCV/opencv/build/CMakeFiles/CMakeOutput.log".

Thanks again for any help.