Ask Your Question

danieltak's profile - activity

2020-06-04 17:58:26 -0500 received badge  Popular Question (source)
2018-11-07 04:54:27 -0500 commented question How can I read multiple images in Python presented in a folder?

An example of How to use Glob

2018-10-22 15:37:26 -0500 received badge  Citizen Patrol (source)
2018-10-16 11:58:57 -0500 edited question Remove Shadows Between Objects

Remove Shadows Between Objects When making a program to count seeds, the contrast is poor on the image: And a Backlight

2018-10-16 11:52:21 -0500 edited question Remove Shadows Between Objects

Remove Shadows Between Objects When making a program to count seeds, the contrast is poor on the image: And a Backlight

2018-10-15 08:05:56 -0500 edited question Remove Shadows Between Objects

Remove Shadows Between Objects When making a program to count seeds, the contrast is poor on the image: And a Backlight

2018-10-15 07:55:47 -0500 edited question Remove Shadows Between Objects

Remove Shadows Between Objects When making a program to count seeds, the contrast is poor on the image: And a Backlight

2018-10-15 07:51:56 -0500 asked a question Remove Shadows Between Objects

Remove Shadows Between Objects When making a program to count seeds, the contrast is poor on the image: And a Backlight

2018-09-14 11:37:39 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 11:33:53 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 10:34:15 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 10:33:58 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 09:30:52 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 09:30:30 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 07:56:32 -0500 received badge  Organizer (source)
2018-09-14 07:53:19 -0500 edited question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-14 07:52:31 -0500 asked a question Draw lines on a field

Draw lines on a field With this image: A threshold was applied: And the expected result would be: With the foll

2018-09-04 09:13:53 -0500 marked best answer Build OpenCV and PCL with Cmake

Hello, I am new to Computer Vision and am having trouble to build OpenCV with PCL, i could build PCL alone. Since PCL is developed to be complementary to OpenCV, it is good to call both libraries.

I am using Windows 7 x64, OpenCV 3.2.0, Visual Studio 2017 (MSVC15) and PCL 1.8.0.

The OpenCV installed is the Win Pack, VS is working fine and PCL was installed with the all-in-one pack (http://unanancyowen.com/en/pcl18/#Dow...). The Enviromental variable used for OpenCV are: "Path" "%OPENCV_DIR%\bin;C:\Program Files\opencv\build\x64\vc14"& "OPENCV_DIR" "C:\Program Files\opencv\build" & "OPENCV_VER" "320" and also OpenCV_DIR, changing to lowercase.

The CmakeLists.txt code is and is a code from the same site as the all-in-one package:

cmake_minimum_required( VERSION 2.8 )
# Create Project
project( solution )
add_executable( project main.cpp )

# Set StartUp Project (Option)
# (This setting is able to enable by using CMake 3.6.0 RC1 or later.)
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" )

# Find Packages
# Find PCL
find_package( PCL 1.8 REQUIRED )

# Find OpenCV
set( "OpenCV_DIR" "C:/Program Files/opencv/build" )
find_package( OpenCV REQUIRED )


if( PCL_FOUND AND OpenCV_FOUND )
  # [C/C++]>[General]>[Additional Include Directories]
  include_directories( ${PCL_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} )

  # [C/C++]>[Preprocessor]>[Preprocessor Definitions]
  add_definitions( ${PCL_DEFINITIONS} )

  # For Use Not PreCompiled Features 
  #add_definitions( -DPCL_NO_PRECOMPILE )

  # [Linker]>[General]>[Additional Library Directories]
  link_directories( ${PCL_LIBRARY_DIRS} ${OpenCV_LIB_DIR})

  # [Linker]>[Input]>[Additional Dependencies]
  target_link_libraries( project ${PCL_LIBRARIES}  ${OpenCV_LIBS} )
endif()

And the log given by the Cmake-gui is:

Boost version: 1.61.0
Found the following Boost libraries:
  system
  filesystem
  thread
  date_time
  iostreams
  serialization
  chrono
  atomic
  regex
Could NOT find openni (missing:  OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) 
** WARNING ** io features related to openni will be disabled
Could NOT find ensenso (missing:  ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** io features related to ensenso will be disabled
Could NOT find DAVIDSDK (missing:  DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** io features related to davidSDK will be disabled
Could NOT find DSSDK (missing:  _DSSDK_LIBRARIES) 
** WARNING ** io features related to dssdk will be disabled
Could NOT find RSSDK (missing:  _RSSDK_LIBRARIES) 
** WARNING ** io features related to rssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
Could NOT find openni (missing:  OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) 
** WARNING ** visualization features related to openni will be disabled
Could NOT find ensenso (missing:  ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** visualization features related to ensenso will be disabled
Could NOT find DAVIDSDK (missing:  DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** visualization features related to davidSDK will be disabled
Could NOT find DSSDK (missing:  _DSSDK_LIBRARIES) 
** WARNING ** visualization features related to dssdk will be disabled
Could NOT find RSSDK (missing:  _RSSDK_LIBRARIES) 
** WARNING ** visualization features related to rssdk will be disabled
looking for PCL_COMMON
looking for PCL_OCTREE
looking for PCL_IO
looking for PCL_KDTREE
looking for PCL_SEARCH
looking for PCL_SAMPLE_CONSENSUS
looking for PCL_FILTERS
looking for PCL_2D
looking for PCL_GEOMETRY
looking for PCL_FEATURES
looking for PCL_ML
looking for PCL_SEGMENTATION
looking for PCL_VISUALIZATION
looking for PCL_SURFACE
looking for PCL_REGISTRATION
looking for PCL_KEYPOINTS
looking for PCL_TRACKING
looking for PCL_RECOGNITION
looking for PCL_STEREO
looking for PCL_OUTOFCORE
looking for PCL_PEOPLE
OpenCV ARCH: x86
OpenCV RUNTIME: vc15 ...
(more)
2018-09-04 09:11:41 -0500 edited answer Build OpenCV and PCL with Cmake

Found the answer asking on the website that i got those files: http://unanancyowen.com/en/pcl18/#comment-1221 This is t

2018-09-04 09:10:43 -0500 edited answer Build OpenCV and PCL with Cmake

Found the answer asking on the website that i got those files: http://unanancyowen.com/en/pcl18/#comment-1221 This is t

2018-09-04 09:09:24 -0500 received badge  Necromancer (source)
2018-09-04 09:09:24 -0500 received badge  Self-Learner (source)
2018-09-04 09:08:27 -0500 edited answer Build OpenCV and PCL with Cmake

Found the answer asking on the website that i got those files: http://unanancyowen.com/en/pcl18/#comment-1221 This is t

2018-09-04 09:07:00 -0500 answered a question Build OpenCV and PCL with Cmake

Found the answer asking on the website that i got those files: http://unanancyowen.com/en/pcl18/#comment-1221 This is t

2018-09-04 09:05:53 -0500 commented question Build OpenCV and PCL with Cmake

Cross Posting on SOen

2017-08-16 12:52:08 -0500 commented answer Convert wiki tutorial from deprecated IplImage to Mat

The Github Wiki issue was opened and now is closed. The code is updated: Wiki Page Update #9375

2017-08-15 09:43:53 -0500 commented answer Convert wiki tutorial from deprecated IplImage to Mat

I tried @Ziri program and @sturkmen. Both works! Thank You! I am now trying to modify for my needs and found sturkmen's DisplayManyImages more neat than the program i made with the copy functions, because i am a newbie programmer =P

2017-08-14 09:32:12 -0500 commented answer Convert wiki tutorial from deprecated IplImage to Mat

I will try now, i saw this code googling, however, does it make the program heavier? To load and copy? or is it just fine?

2017-08-14 08:52:33 -0500 asked a question Convert wiki tutorial from deprecated IplImage to Mat

Hello, this is the Opencv's wiki tutorial: How to Display more than one image in a single window. I tried to run the code on OpenCV 3.x and didn't work.

The tutorial uses IplImage that is the legacy Intel Image Processing Library for C language. The Detailed Description of the function states:

OpenCV handles ROIs differently. OpenCV functions require that the image size or ROI size of all source and destination images match exactly. On the other hand, the Intel Image Processing Library processes the area of intersection between the source and destination images (or ROIs), allowing them to vary independently.

So to display many images in one display, the images are transformed into Regions of Interest and then allocated to the display. Which is the best way to do it on OpenCV 3.x? Use the legacy IplImage or convert to Mat.

Conversion:I was trying to convert to Mat reading some SO and Q&A threads

Is it better to convert IplImage or maybe create a new program? Is it easy to convert this tutorial?

2017-07-20 15:27:57 -0500 commented question How to get around Overlapping Problem?

Yes, me neither =[ So i did some research and found that someone used mirrors to get around this problem. However, it seems to not be the best way to solve the problem

2017-07-18 14:34:25 -0500 commented question How to get around Overlapping Problem?

It is not just watershed, but watershed algo with distance transform, like the example of the cards: http://docs.opencv.org/3.1.0/d2/dbd/t...

2017-07-18 07:24:51 -0500 received badge  Enthusiast
2017-07-17 07:08:33 -0500 commented answer How to get around Overlapping Problem?

Thank you for the answer, i also received another reply:

From watching the video and skimming the brochure, it seems likely that they're doing more processing rather than less. In addition to processing two views of the same scene (twice the work already) it seems likely that they're doing feature extraction and shape detection rather than using a less intensive method like watershed.

I don't expect we'll attempt a 2-view tutorial using mirrors, because none of our readers are likely to have such a setup. We've stayed away from stereovision algorithms altogether up to now, because most of our readers don't have a stereovision camera setup either.

David McDuffee Correspondence Coordinator ask.me@pyimagesearch.com

2017-07-17 06:20:29 -0500 received badge  Scholar (source)
2017-07-13 09:44:43 -0500 received badge  Supporter (source)
2017-07-13 07:16:24 -0500 commented question How to get around Overlapping Problem?

When objects are falling, they overlap each other. And with watershed algorithm, the error is high. Is there an algorithm that uses 2 views and uses it to compensate overlapping objects. Like the one on the document on the link?

2017-07-13 06:58:24 -0500 asked a question How to get around Overlapping Problem?

Is there some algorithm that bypass the overlapping problem? I know that watershed algo can make it, however if the object is totally or almost totally overlapped it is inneficient. Doing some search I found this and the page 2 of this doc, explains what i am saying.

Basically, the camera uses mirrors and have two different views of the object. Is there an algorithm that makes it? Or another way to get around overlapping? When objects are falling, they overlap each other. And with watershed algorithm, the error is high. Is there an algorithm that uses 2 views and uses it to compensate overlapping objects. Like the one on the document on the link?

2017-06-27 13:08:30 -0500 commented answer Some problem about displaying a raw image file

Since i can't edit:

It is CV_8UC1 instead of CV_U8C1

http://docs.opencv.org/master/d1/d1b/...

2017-06-22 12:54:39 -0500 commented question Error 'Exception thrown: write access violation' with sample objectDetection.cpp

Oh, that was it, didn't know. Thanks you! Been on it the hole day and decide to ask here. Really thanks

2017-06-22 12:37:34 -0500 commented question Error 'Exception thrown: write access violation' with sample objectDetection.cpp

The libraries and includes are the same for both Debug and Release, i think it is strange that just Release got this Call Stack

2017-06-22 12:31:45 -0500 edited question Error 'Exception thrown: write access violation' with sample objectDetection.cpp

I am learning OpenCV and was testing: https://github.com/opencv/opencv/blob...

When i run Debug on Local Windows Debugger the program runs smoothly and make the face and eye Detection However, when i tried to run Release on Local Windows Debugger, i receive this: VS window

The error in on line 1692 of types.hpp https://github.com/opencv/opencv/blob...

And this message appeared:

Exception thrown: write access violation. this was 0x10.

error window

I read somewhere that it can be a pointer error.

Please help me! Thanks in advance.

Edit: Output Debug

    'teste1.exe' (Win32): Loaded 'C:\Users\User\Documents\Visual Studio 2015\Projects\teste1\x64\Release\teste1.exe'. Symbols loaded.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\opencv_git\Mybuild\install\x64\vc14\bin\opencv_core320d.dll'. Symbols loaded.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\concrt140d.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\opencv_git\Mybuild\install\x64\vc14\bin\opencv_highgui320d.dll'. Symbols loaded.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\lpk.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\usp10.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\comctl32.dll'. Cannot find or open the PDB file.
'teste1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'teste1 ...
(more)
2017-06-22 12:20:01 -0500 received badge  Editor (source)