andrewssobral / bgslibrary

A C++ Background Subtraction Library with wrappers for Python, MATLAB, Java and GUI on QT
MIT License
2.19k stars 743 forks source link

Couldn't import pybgs in python. #170

Open aroranikhil786 opened 4 years ago

aroranikhil786 commented 4 years ago

I build bgslibrary with no errors, but there is no libbgs.so or any other related file created during the building. I'm working on Windows 10 and build it using Anaconda. The library is working fine when I run it manually via webcam but not with python 3.6. Kindly please look into it.

Capture

andrewssobral commented 4 years ago

Hi @aroranikhil786 thanks for reporting this issue, can you show me the cmake command you used? did you clicked on "BUILD ALL" in your Visual Studio?

aroranikhil786 commented 4 years ago

Yes I build using "BUILD ALL". I followed these steps. https://github.com/andrewssobral/bgslibrary/wiki/Compiling-BGSLibrary-with-OpenCV-3.x-and-Visual-Studio-2015-from-CMAKE

andrewssobral commented 4 years ago

Can you show me the Visual studio outputs when you click just on Build in the bgs_python project?

aroranikhil786 commented 4 years ago

When I initially build it, it was successfully build with no errors when I rebuild it now this output comes: ------ Rebuild All started: Project: ZERO_CHECK, Configuration: Release x64 ------ 1>Checking Build System 1>CMake does not need to re-run because D:/Library/bgslibrary/build/CMakeFiles/generate.stamp is up-to-date. 1>CMake does not need to re-run because D:/Library/bgslibrary/build/modules/pybind11/CMakeFiles/generate.stamp is up-to-date. 2>------ Rebuild All started: Project: bgslibrary_core, Configuration: Release x64 ------ 2>Building Custom Rule D:/Library/bgslibrary/CMakeLists.txt 2>CMake does not need to re-run because D:/Library/bgslibrary/build/CMakeFiles/generate.stamp is up-to-date. 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /ID:\Library\bgslibrary /ID:\Library\bgslibrary\modules\pybind11\include /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\include" /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\lib\site-packages\numpy\core\include" /I"D:\Library\opencv-3.4.7\build\install\include" /I"D:\Library\opencv-3.4.7\build\install\include\opencv" /I"D:\Library\vcpkg\installed\x64-windows\include" /nologo /W3 /WX- /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D bgslibrary_core_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"bgslibrary_core.dir\Release\\" /Fd"bgslibrary_core.dir\Release\vc141.pdb" /Gd /TP /errorReport:prompt D:\Library\bgslibrary\src\algorithms\AdaptiveBackgroundLearning.cpp D:\Library\bgslibrary\src\algorithms\AdaptiveSelectiveBackgroundLearning.cpp D:\Library\bgslibrary\src\algorithms\CodeBook.cpp D:\Library\bgslibrary\src\algorithms\DPAdaptiveMedian.cpp D:\Library\bgslibrary\src\algorithms\DPEigenbackground.cpp D:\Library\bgslibrary\src\algorithms\DPGrimsonGMM.cpp D:\Library\bgslibrary\src\algorithms\DPMean.cpp D:\Library\bgslibrary\src\algorithms\DPPratiMediod.cpp D:\Library\bgslibrary\src\algorithms\DPTexture.cpp D:\Library\bgslibrary\src\algorithms\DPWrenGA.cpp D:\Library\bgslibrary\src\algorithms\DPZivkovicAGMM.cpp D:\Library\bgslibrary\src\algorithms\FrameDifference.cpp D:\Library\bgslibrary\src\algorithms\FuzzyChoquetIntegral.cpp D:\Library\bgslibrary\src\algorithms\FuzzySugenoIntegral.cpp D:\Library\bgslibrary\src\algorithms\GMG.cpp D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp D:\Library\bgslibrary\src\algorithms\IndependentMultimodal.cpp D:\Library\bgslibrary\src\algorithms\KDE.cpp D:\Library\bgslibrary\src\algorithms\KDE\KernelTable.cpp D:\Library\bgslibrary\src\algorithms\KDE\NPBGSubtractor.cpp D:\Library\bgslibrary\src\algorithms\KDE\NPBGmodel.cpp D:\Library\bgslibrary\src\algorithms\KNN.cpp D:\Library\bgslibrary\src\algorithms\LBAdaptiveSOM.cpp D:\Library\bgslibrary\src\algorithms\LBFuzzyAdaptiveSOM.cpp D:\Library\bgslibrary\src\algorithms\LBFuzzyGaussian.cpp D:\Library\bgslibrary\src\algorithms\LBMixtureOfGaussians.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEDefs.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEHistogram.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\graph.cpp D:\Library\bgslibrary\src\algorithms\LBP_MRF\maxflow.cpp D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorLBSP.cpp D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorLBSP_.cpp D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorLOBSTER.cpp D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorPAWCS.cpp D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorSuBSENSE.cpp D:\Library\bgslibrary\src\algorithms\LBSP\LBSP.cpp D:\Library\bgslibrary\src\algorithms\LBSP\LBSP_.cpp D:\Library\bgslibrary\src\algorithms\LBSimpleGaussian.cpp D:\Library\bgslibrary\src\algorithms\LOBSTER.cpp D:\Library\bgslibrary\src\algorithms\MixtureOfGaussianV1.cpp D:\Library\bgslibrary\src\algorithms\MixtureOfGaussianV2.cpp D:\Library\bgslibrary\src\algorithms\MultiCue.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer\BlobExtraction.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer\BlobResult.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer\CMultiLayerBGS.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer\LocalBinaryPattern.cpp D:\Library\bgslibrary\src\algorithms\MultiLayer\blob.cpp D:\Library\bgslibrary\src\algorithms\PAWCS.cpp D:\Library\bgslibrary\src\algorithms\PBAS\PBAS.cpp D:\Library\bgslibrary\src\algorithms\PixelBasedAdaptiveSegmenter.cpp D:\Library\bgslibrary\src\algorithms\SigmaDelta.cpp D:\Library\bgslibrary\src\algorithms\SigmaDelta\sdLaMa091.cpp D:\Library\bgslibrary\src\algorithms\StaticFrameDifference.cpp D:\Library\bgslibrary\src\algorithms\SuBSENSE.cpp D:\Library\bgslibrary\src\algorithms\T2F\MRF.cpp D:\Library\bgslibrary\src\algorithms\T2F\T2FGMM.cpp D:\Library\bgslibrary\src\algorithms\T2F\T2FMRF.cpp D:\Library\bgslibrary\src\algorithms\T2FGMM_UM.cpp D:\Library\bgslibrary\src\algorithms\T2FGMM_UV.cpp D:\Library\bgslibrary\src\algorithms\T2FMRF_UM.cpp D:\Library\bgslibrary\src\algorithms\T2FMRF_UV.cpp D:\Library\bgslibrary\src\algorithms\TwoPoints.cpp D:\Library\bgslibrary\src\algorithms\TwoPoints\two_points.cpp D:\Library\bgslibrary\src\algorithms\ViBe.cpp "D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp" D:\Library\bgslibrary\src\algorithms\VuMeter.cpp D:\Library\bgslibrary\src\algorithms\VuMeter\TBackground.cpp D:\Library\bgslibrary\src\algorithms\VuMeter\TBackgroundVuMeter.cpp D:\Library\bgslibrary\src\algorithms\WeightedMovingMean.cpp D:\Library\bgslibrary\src\algorithms\WeightedMovingVariance.cpp D:\Library\bgslibrary\src\algorithms\_template_\MyBGS.cpp D:\Library\bgslibrary\src\algorithms\algorithms.cpp D:\Library\bgslibrary\src\algorithms\dp\AdaptiveMedianBGS.cpp D:\Library\bgslibrary\src\algorithms\dp\Eigenbackground.cpp D:\Library\bgslibrary\src\algorithms\dp\Error.cpp D:\Library\bgslibrary\src\algorithms\dp\GrimsonGMM.cpp D:\Library\bgslibrary\src\algorithms\dp\Image.cpp D:\Library\bgslibrary\src\algorithms\dp\MeanBGS.cpp D:\Library\bgslibrary\src\algorithms\dp\PratiMediodBGS.cpp D:\Library\bgslibrary\src\algorithms\dp\TextureBGS.cpp D:\Library\bgslibrary\src\algorithms\dp\WrenGA.cpp D:\Library\bgslibrary\src\algorithms\dp\ZivkovicAGMM.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModel.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModelFuzzyGauss.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModelFuzzySom.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModelGauss.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModelMog.cpp D:\Library\bgslibrary\src\algorithms\lb\BGModelSom.cpp D:\Library\bgslibrary\src\tools\ForegroundMaskAnalysis.cpp D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp D:\Library\bgslibrary\src\tools\PerformanceUtils.cpp D:\Library\bgslibrary\src\tools\PixelUtils.cpp 2>AdaptiveBackgroundLearning.cpp 2>AdaptiveSelectiveBackgroundLearning.cpp 2>D:\Library\bgslibrary\src\algorithms\AdaptiveSelectiveBackgroundLearning.cpp(60): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>CodeBook.cpp 2>D:\Library\bgslibrary\src\algorithms\CodeBook.cpp(92): warning C4244: '=': conversion from 'const int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\CodeBook.cpp(93): warning C4244: '=': conversion from 'const int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\CodeBook.cpp(159): warning C4244: '=': conversion from 'const int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\CodeBook.cpp(160): warning C4244: '=': conversion from 'const int' to 'float', possible loss of data 2>DPAdaptiveMedian.cpp 2>DPEigenbackground.cpp 2>D:\Library\bgslibrary\src\algorithms\DPEigenbackground.cpp(41): warning C4244: '=': conversion from 'int' to 'float', possible loss of data 2>DPGrimsonGMM.cpp 2>D:\Library\bgslibrary\src\algorithms\DPGrimsonGMM.cpp(41): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\DPGrimsonGMM.cpp(44): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>DPMean.cpp 2>D:\Library\bgslibrary\src\algorithms\DPMean.cpp(44): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>DPPratiMediod.cpp 2>DPTexture.cpp 2>D:\Library\bgslibrary\src\algorithms\DPTexture.cpp(82): warning C4244: 'argument': conversion from 'const double' to 'float', possible loss of data 2>DPWrenGA.cpp 2>D:\Library\bgslibrary\src\algorithms\DPWrenGA.cpp(41): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\DPWrenGA.cpp(43): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>DPZivkovicAGMM.cpp 2>D:\Library\bgslibrary\src\algorithms\DPZivkovicAGMM.cpp(41): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\DPZivkovicAGMM.cpp(43): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>FrameDifference.cpp 2>FuzzyChoquetIntegral.cpp 2>D:\Library\bgslibrary\src\algorithms\FuzzyChoquetIntegral.cpp(144): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data 2>FuzzySugenoIntegral.cpp 2>D:\Library\bgslibrary\src\algorithms\FuzzySugenoIntegral.cpp(143): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data 2>GMG.cpp 2>IMBS.cpp 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(24): warning C4244: '=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(49): warning C4244: '=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(57): warning C4244: '=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(60): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(61): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(62): warning C4244: '=': conversion from 'double' to 'uchar', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(63): warning C4244: '=': conversion from 'double' to 'uchar', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(202): warning C4244: '=': conversion from 'double' to 'unsigned long', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(214): warning C4244: '=': conversion from 'double' to 'unsigned long', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(262): warning C4244: '=': conversion from 'int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(263): warning C4244: '=': conversion from 'const int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(316): warning C4018: '<=': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(317): warning C4018: '<=': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(318): warning C4018: '<=': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(413): warning C4244: '*=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(414): warning C4244: '*=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(472): warning C4244: '+=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(507): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(702): warning C4244: '/=': conversion from 'double' to 'unsigned int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\IMBS\IMBS.cpp(703): warning C4244: '/=': conversion from 'double' to 'unsigned int', possible loss of data 2>IndependentMultimodal.cpp 2>KDE.cpp 2>KernelTable.cpp 2>NPBGSubtractor.cpp 2>Generating Code... 2>Compiling... 2>NPBGmodel.cpp 2>KNN.cpp 2>LBAdaptiveSOM.cpp 2>LBFuzzyAdaptiveSOM.cpp 2>LBFuzzyGaussian.cpp 2>LBMixtureOfGaussians.cpp 2>LBP_MRF.cpp 2>MEDefs.cpp 2>MEHistogram.cpp 2>MEImage.cpp 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(26): warning C4838: conversion from 'double' to 'const float' requires a narrowing conversion 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(26): warning C4305: 'initializing': truncation from 'double' to 'const float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(32): warning C4838: conversion from 'double' to 'const float' requires a narrowing conversion 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(32): warning C4305: 'initializing': truncation from 'double' to 'const float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(208): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1091): warning C4244: 'return': conversion from 'int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1361): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1362): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1363): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1364): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1370): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1371): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1372): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1373): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1390): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1391): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MEImage.cpp(1392): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>MotionDetection.cpp 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(44): warning C4305: 'initializing': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(460): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(626): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(658): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(714): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(745): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(823): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(845): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(850): warning C4244: '*=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(859): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(865): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(1347): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(1348): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(1349): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBP_MRF\MotionDetection.cpp(1390): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data 2>graph.cpp 2>maxflow.cpp 2>BackgroundSubtractorLBSP.cpp 2>BackgroundSubtractorLBSP_.cpp 2>BackgroundSubtractorLOBSTER.cpp 2>BackgroundSubtractorPAWCS.cpp 2>D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorPAWCS.cpp(103): warning C4244: 'initializing': conversion from 'const float' to '::size_t', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorPAWCS.cpp(176): warning C4244: '=': conversion from 'const float' to '::size_t', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\LBSP\BackgroundSubtractorPAWCS.cpp(1216): warning C4244: '=': conversion from 'const float' to '::size_t', possible loss of data 2>BackgroundSubtractorSuBSENSE.cpp 2>LBSP.cpp 2>LBSP_.cpp 2>Generating Code... 2>Compiling... 2>LBSimpleGaussian.cpp 2>LOBSTER.cpp 2>MixtureOfGaussianV1.cpp 2>MixtureOfGaussianV2.cpp 2>MultiCue.cpp 2>MultiLayer.cpp 2>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\MultiLayer.cpp(100): warning C4305: '=': truncation from 'double' to 'float' 2>D:\Library\bgslibrary\src\algorithms\MultiLayer.cpp(117): warning C4244: '=': conversion from 'int' to 'float', possible loss of data 2>BlobExtraction.cpp 2>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 2>BlobResult.cpp 2>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\MultiLayer\BlobResult.cpp(787): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(207): note: see declaration of 'fopen' 2>CMultiLayerBGS.cpp 2>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\MultiLayer\CMultiLayerBGS.cpp(33): warning C4244: '=': conversion from 'const float' to 'int', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\MultiLayer\CMultiLayerBGS.cpp(613): warning C4244: '=': conversion from 'unsigned long' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\MultiLayer\CMultiLayerBGS.cpp(1672): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(207): note: see declaration of 'fopen' 2>LocalBinaryPattern.cpp 2>blob.cpp 2>PAWCS.cpp 2>PBAS.cpp 2>PixelBasedAdaptiveSegmenter.cpp 2>D:\Library\bgslibrary\src\algorithms\PixelBasedAdaptiveSegmenter.cpp(10): warning C4305: 'initializing': truncation from 'double' to 'float' 2>SigmaDelta.cpp 2>D:\Library\bgslibrary\src\algorithms\SigmaDelta.cpp(25): warning C4267: 'argument': conversion from 'size_t' to 'const uint32_t', possible loss of data 2>sdLaMa091.cpp 2>StaticFrameDifference.cpp 2>SuBSENSE.cpp 2>MRF.cpp 2>D:\Library\bgslibrary\src\algorithms\T2F\MRF.cpp(243): warning C4244: '=': conversion from 'int' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2F\MRF.cpp(250): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2F\MRF.cpp(252): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>T2FGMM.cpp 2>Generating Code... 2>Compiling... 2>T2FMRF.cpp 2>T2FGMM_UM.cpp 2>D:\Library\bgslibrary\src\algorithms\T2FGMM_UM.cpp(40): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2FGMM_UM.cpp(42): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>T2FGMM_UV.cpp 2>D:\Library\bgslibrary\src\algorithms\T2FGMM_UV.cpp(40): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2FGMM_UV.cpp(42): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>T2FMRF_UM.cpp 2>D:\Library\bgslibrary\src\algorithms\T2FMRF_UM.cpp(40): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2FMRF_UM.cpp(42): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>T2FMRF_UV.cpp 2>D:\Library\bgslibrary\src\algorithms\T2FMRF_UV.cpp(40): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\T2FMRF_UV.cpp(42): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>TwoPoints.cpp 2>two_points.cpp 2>ViBe.cpp 2>vibe-background-sequential.cpp 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(238): warning C4018: '<': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(298): warning C4018: '>': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(308): warning C4018: '<=': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(330): warning C4018: '<=': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(554): warning C4018: '<': signed/unsigned mismatch 2>D:\Library\bgslibrary\src\algorithms\ViBe\vibe-background-sequential.cpp(722): warning C4018: '<': signed/unsigned mismatch 2>VuMeter.cpp 2>TBackground.cpp 2>TBackgroundVuMeter.cpp 2>D:\Library\bgslibrary\src\algorithms\VuMeter\TBackgroundVuMeter.cpp(118): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf' 2>D:\Library\bgslibrary\src\algorithms\VuMeter\TBackgroundVuMeter.cpp(119): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf' 2>D:\Library\bgslibrary\src\algorithms\VuMeter\TBackgroundVuMeter.cpp(120): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf' 2>WeightedMovingMean.cpp 2>WeightedMovingVariance.cpp 2>MyBGS.cpp 2>algorithms.cpp 2>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 2>AdaptiveMedianBGS.cpp 2>Eigenbackground.cpp 2>Error.cpp 2>GrimsonGMM.cpp 2>Generating Code... 2>Compiling... 2>Image.cpp 2>MeanBGS.cpp 2>PratiMediodBGS.cpp 2>TextureBGS.cpp 2>WrenGA.cpp 2>ZivkovicAGMM.cpp 2>BGModel.cpp 2>BGModelFuzzyGauss.cpp 2>BGModelFuzzySom.cpp 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelFuzzySom.cpp(248): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelFuzzySom.cpp(249): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelFuzzySom.cpp(250): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>BGModelGauss.cpp 2>BGModelMog.cpp 2>BGModelSom.cpp 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelSom.cpp(236): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelSom.cpp(237): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>D:\Library\bgslibrary\src\algorithms\lb\BGModelSom.cpp(238): warning C4244: '=': conversion from 'double' to 'unsigned char', possible loss of data 2>ForegroundMaskAnalysis.cpp 2>FuzzyUtils.cpp 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(40): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(50): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(60): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(70): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(82): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(95): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(108): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(121): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\FuzzyUtils.cpp(136): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>PerformanceUtils.cpp 2>D:\Library\bgslibrary\src\tools\PerformanceUtils.cpp(252): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PerformanceUtils.cpp(372): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf' 2>PixelUtils.cpp 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(43): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(46): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(49): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(331): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(332): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>D:\Library\bgslibrary\src\tools\PixelUtils.cpp(333): warning C4244: '=': conversion from 'double' to 'float', possible loss of data 2>Generating Code... 2>setlocal 2>cd D:\Library\bgslibrary\build 2>if %errorlevel% neq 0 goto :cmEnd 2>D: 2>if %errorlevel% neq 0 goto :cmEnd 2>"C:\Program Files\CMake\bin\cmake.exe" -E __create_def D:/Library/bgslibrary/build/bgslibrary_core.dir/Release/exports.def D:/Library/bgslibrary/build/bgslibrary_core.dir/Release//objects.txt 2>if %errorlevel% neq 0 goto :cmEnd 2>:cmEnd 2>endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 2>:cmErrorLevel 2>exit /b %1 2>:cmDone 2>if %errorlevel% neq 0 goto :VCEnd 2>:VCEnd 2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Library\bgslibrary\build\bgslibrary_core.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib" /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib\manual-link" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stitching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_superres347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videostab347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_aruco347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bgsegm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bioinspired347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ccalib347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dpm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_face347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_fuzzy347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hdf347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hfs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_img_hash347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_line_descriptor347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_optflow347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_reg347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_rgbd347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_saliency347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stereo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_structured_light347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_surface_matching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_tracking347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xfeatures2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ximgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xobjdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xphoto347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_shape347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_phase_unwrapping347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_video347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_datasets347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_plot347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_text347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_highgui347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ml347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videoio347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgcodecs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_calib3d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_features2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_flann347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_photo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_core347.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "D:\Library\vcpkg\installed\x64-windows\lib\*.lib" /DEF:"D:/Library/bgslibrary/build/bgslibrary_core.dir/Release/exports.def" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"D:/Library/bgslibrary/build/bgslibrary_core.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/Library/bgslibrary/build/bgslibrary_core.lib" /MACHINE:X64 /machine:x64 /DLL bgslibrary_core.dir\Release\AdaptiveBackgroundLearning.obj 2>bgslibrary_core.dir\Release\AdaptiveSelectiveBackgroundLearning.obj 2>bgslibrary_core.dir\Release\CodeBook.obj 2>bgslibrary_core.dir\Release\DPAdaptiveMedian.obj 2>bgslibrary_core.dir\Release\DPEigenbackground.obj 2>bgslibrary_core.dir\Release\DPGrimsonGMM.obj 2>bgslibrary_core.dir\Release\DPMean.obj 2>bgslibrary_core.dir\Release\DPPratiMediod.obj 2>bgslibrary_core.dir\Release\DPTexture.obj 2>bgslibrary_core.dir\Release\DPWrenGA.obj 2>bgslibrary_core.dir\Release\DPZivkovicAGMM.obj 2>bgslibrary_core.dir\Release\FrameDifference.obj 2>bgslibrary_core.dir\Release\FuzzyChoquetIntegral.obj 2>bgslibrary_core.dir\Release\FuzzySugenoIntegral.obj 2>bgslibrary_core.dir\Release\GMG.obj 2>bgslibrary_core.dir\Release\IMBS.obj 2>bgslibrary_core.dir\Release\IndependentMultimodal.obj 2>bgslibrary_core.dir\Release\KDE.obj 2>bgslibrary_core.dir\Release\KernelTable.obj 2>bgslibrary_core.dir\Release\NPBGSubtractor.obj 2>bgslibrary_core.dir\Release\NPBGmodel.obj 2>bgslibrary_core.dir\Release\KNN.obj 2>bgslibrary_core.dir\Release\LBAdaptiveSOM.obj 2>bgslibrary_core.dir\Release\LBFuzzyAdaptiveSOM.obj 2>bgslibrary_core.dir\Release\LBFuzzyGaussian.obj 2>bgslibrary_core.dir\Release\LBMixtureOfGaussians.obj 2>bgslibrary_core.dir\Release\LBP_MRF.obj 2>bgslibrary_core.dir\Release\MEDefs.obj 2>bgslibrary_core.dir\Release\MEHistogram.obj 2>bgslibrary_core.dir\Release\MEImage.obj 2>bgslibrary_core.dir\Release\MotionDetection.obj 2>bgslibrary_core.dir\Release\graph.obj 2>bgslibrary_core.dir\Release\maxflow.obj 2>bgslibrary_core.dir\Release\BackgroundSubtractorLBSP.obj 2>bgslibrary_core.dir\Release\BackgroundSubtractorLBSP_.obj 2>bgslibrary_core.dir\Release\BackgroundSubtractorLOBSTER.obj 2>bgslibrary_core.dir\Release\BackgroundSubtractorPAWCS.obj 2>bgslibrary_core.dir\Release\BackgroundSubtractorSuBSENSE.obj 2>bgslibrary_core.dir\Release\LBSP.obj 2>bgslibrary_core.dir\Release\LBSP_.obj 2>bgslibrary_core.dir\Release\LBSimpleGaussian.obj 2>bgslibrary_core.dir\Release\LOBSTER.obj 2>bgslibrary_core.dir\Release\MixtureOfGaussianV1.obj 2>bgslibrary_core.dir\Release\MixtureOfGaussianV2.obj 2>bgslibrary_core.dir\Release\MultiCue.obj 2>bgslibrary_core.dir\Release\MultiLayer.obj 2>bgslibrary_core.dir\Release\BlobExtraction.obj 2>bgslibrary_core.dir\Release\BlobResult.obj 2>bgslibrary_core.dir\Release\CMultiLayerBGS.obj 2>bgslibrary_core.dir\Release\LocalBinaryPattern.obj 2>bgslibrary_core.dir\Release\blob.obj 2>bgslibrary_core.dir\Release\PAWCS.obj 2>bgslibrary_core.dir\Release\PBAS.obj 2>bgslibrary_core.dir\Release\PixelBasedAdaptiveSegmenter.obj 2>bgslibrary_core.dir\Release\SigmaDelta.obj 2>bgslibrary_core.dir\Release\sdLaMa091.obj 2>bgslibrary_core.dir\Release\StaticFrameDifference.obj 2>bgslibrary_core.dir\Release\SuBSENSE.obj 2>bgslibrary_core.dir\Release\MRF.obj 2>bgslibrary_core.dir\Release\T2FGMM.obj 2>bgslibrary_core.dir\Release\T2FMRF.obj 2>bgslibrary_core.dir\Release\T2FGMM_UM.obj 2>bgslibrary_core.dir\Release\T2FGMM_UV.obj 2>bgslibrary_core.dir\Release\T2FMRF_UM.obj 2>bgslibrary_core.dir\Release\T2FMRF_UV.obj 2>bgslibrary_core.dir\Release\TwoPoints.obj 2>bgslibrary_core.dir\Release\two_points.obj 2>bgslibrary_core.dir\Release\ViBe.obj 2>"bgslibrary_core.dir\Release\vibe-background-sequential.obj" 2>bgslibrary_core.dir\Release\VuMeter.obj 2>bgslibrary_core.dir\Release\TBackground.obj 2>bgslibrary_core.dir\Release\TBackgroundVuMeter.obj 2>bgslibrary_core.dir\Release\WeightedMovingMean.obj 2>bgslibrary_core.dir\Release\WeightedMovingVariance.obj 2>bgslibrary_core.dir\Release\MyBGS.obj 2>bgslibrary_core.dir\Release\algorithms.obj 2>bgslibrary_core.dir\Release\AdaptiveMedianBGS.obj 2>bgslibrary_core.dir\Release\Eigenbackground.obj 2>bgslibrary_core.dir\Release\Error.obj 2>bgslibrary_core.dir\Release\GrimsonGMM.obj 2>bgslibrary_core.dir\Release\Image.obj 2>bgslibrary_core.dir\Release\MeanBGS.obj 2>bgslibrary_core.dir\Release\PratiMediodBGS.obj 2>bgslibrary_core.dir\Release\TextureBGS.obj 2>bgslibrary_core.dir\Release\WrenGA.obj 2>bgslibrary_core.dir\Release\ZivkovicAGMM.obj 2>bgslibrary_core.dir\Release\BGModel.obj 2>bgslibrary_core.dir\Release\BGModelFuzzyGauss.obj 2>bgslibrary_core.dir\Release\BGModelFuzzySom.obj 2>bgslibrary_core.dir\Release\BGModelGauss.obj 2>bgslibrary_core.dir\Release\BGModelMog.obj 2>bgslibrary_core.dir\Release\BGModelSom.obj 2>bgslibrary_core.dir\Release\ForegroundMaskAnalysis.obj 2>bgslibrary_core.dir\Release\FuzzyUtils.obj 2>bgslibrary_core.dir\Release\PerformanceUtils.obj 2>bgslibrary_core.dir\Release\PixelUtils.obj 2> Creating library D:/Library/bgslibrary/build/bgslibrary_core.lib and object D:/Library/bgslibrary/build/bgslibrary_core.exp 2>bgslibrary_core.vcxproj -> D:\Library\bgslibrary\build\bgslibrary_core.dll 2>C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -noprofile -File "D:\Library\vcpkg\scripts\buildsystems\msbuild\applocal.ps1" "D:\Library\bgslibrary\build\bgslibrary_core.dll" "D:\Library\vcpkg\installed\x64-windows\bin" "bgslibrary_core.dir\Release\bgslibrary_core.tlog\bgslibrary_core.write.1u.tlog" "bgslibrary_core.dir\Release\vcpkg.applocal.log" 2>Done building project "bgslibrary_core.vcxproj". 3>------ Rebuild All started: Project: bgs_python, Configuration: Release x64 ------ 4>------ Rebuild All started: Project: bgslibrary, Configuration: Release x64 ------ 3>Building Custom Rule D:/Library/bgslibrary/CMakeLists.txt 3>CMake does not need to re-run because D:/Library/bgslibrary/build/CMakeFiles/generate.stamp is up-to-date. 3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /ID:\Library\bgslibrary /ID:\Library\bgslibrary\modules\pybind11\include /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\include" /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\lib\site-packages\numpy\core\include" /I"D:\Library\opencv-3.4.7\build\install\include" /I"D:\Library\opencv-3.4.7\build\install\include\opencv" /I"D:\Library\vcpkg\installed\x64-windows\include" /nologo /W3 /WX- /diagnostics:classic /MP /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D BGS_PYTHON_SUPPORT=1 /D "CMAKE_INTDIR=\"Release\"" /D bgs_python_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"bgs_python.dir\Release\\" /Fd"bgs_python.dir\Release\vc141.pdb" /Gd /TP /errorReport:prompt /bigobj D:\Library\bgslibrary\wrapper\python\bgslibrary_module.cpp D:\Library\bgslibrary\wrapper\python\ndarray_converter.cpp 3>bgslibrary_module.cpp 3>ndarray_converter.cpp 4>Building Custom Rule D:/Library/bgslibrary/CMakeLists.txt 4>CMake does not need to re-run because D:/Library/bgslibrary/build/CMakeFiles/generate.stamp is up-to-date. 4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\CL.exe /c /ID:\Library\bgslibrary /ID:\Library\bgslibrary\modules\pybind11\include /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\include" /I"C:\Users\Dark-Panda\Anaconda3\envs\tfenv\lib\site-packages\numpy\core\include" /I"D:\Library\opencv-3.4.7\build\install\include" /I"D:\Library\opencv-3.4.7\build\install\include\opencv" /I"D:\Library\vcpkg\installed\x64-windows\include" /nologo /W3 /WX- /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"bgslibrary.dir\Release\\" /Fd"bgslibrary.dir\Release\vc141.pdb" /Gd /TP /errorReport:prompt D:\Library\bgslibrary\src\FrameProcessor.cpp D:\Library\bgslibrary\src\Main.cpp D:\Library\bgslibrary\src\PreProcessor.cpp D:\Library\bgslibrary\src\VideoAnalysis.cpp D:\Library\bgslibrary\src\VideoCapture.cpp 4>FrameProcessor.cpp 4>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 3>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Library\bgslibrary\wrapper\python\bgslibrary_module.cpp) 4>Main.cpp 4>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 4>PreProcessor.cpp 4>VideoAnalysis.cpp 4>d:\library\bgslibrary\src\algorithms\multilayer\BlobResult.h(129): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data 4>VideoCapture.cpp 3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Library\bgslibrary\build\pybgs.cp36-win_amd64.pyd" /INCREMENTAL:NO /NOLOGO /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib" /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib\manual-link" "C:\Users\Dark-Panda\Anaconda3\envs\tfenv\libs\Python36.lib" bgslibrary_core.lib "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stitching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_superres347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videostab347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_aruco347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bgsegm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bioinspired347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ccalib347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dpm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_face347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_fuzzy347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hdf347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hfs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_img_hash347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_line_descriptor347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_optflow347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_reg347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_rgbd347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_saliency347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stereo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_structured_light347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_surface_matching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_tracking347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xfeatures2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ximgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xobjdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xphoto347.lib" "$(python" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_phase_unwrapping347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_datasets347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_plot347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_text347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_highgui347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videoio347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ml347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_shape347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_video347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgcodecs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_calib3d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_features2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_flann347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_photo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_core347.lib" "C:\Users\Dark-Panda\Anaconda3\envs\tfenv\libs\Python36.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "$(VcpkgRoot)lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"D:/Library/bgslibrary/build/pybgs.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/Library/bgslibrary/build/pybgs.lib" /MACHINE:X64 /machine:x64 /DLL bgs_python.dir\Release\bgslibrary_module.obj 3>bgs_python.dir\Release\ndarray_converter.obj 3>LINK : fatal error LNK1181: cannot open input file '$(python.obj' 3>Done building project "bgs_python.vcxproj" -- FAILED. 4>D:\Library\bgslibrary\src\VideoCapture.cpp(147): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data 4>D:\Library\bgslibrary\src\VideoCapture.cpp(247): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data 4>Generating Code... 4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Library\bgslibrary\build\bgslibrary.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib" /LIBPATH:"D:\Library\vcpkg\installed\x64-windows\lib\manual-link" bgslibrary_core.lib "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stitching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_superres347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videostab347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_aruco347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bgsegm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_bioinspired347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ccalib347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dpm347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_face347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_fuzzy347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hdf347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_hfs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_img_hash347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_line_descriptor347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_optflow347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_reg347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_rgbd347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_saliency347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_stereo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_structured_light347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_phase_unwrapping347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_surface_matching347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_tracking347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_datasets347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_plot347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_text347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_dnn347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_highgui347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_videoio347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xfeatures2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ml347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_shape347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_video347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_ximgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xobjdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgcodecs347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_objdetect347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_calib3d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_features2d347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_flann347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_xphoto347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_photo347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_imgproc347.lib" "D:\Library\opencv-3.4.7\build\install\x64\vc15\lib\opencv_core347.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "D:\Library\vcpkg\installed\x64-windows\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"D:/Library/bgslibrary/build/bgslibrary.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/Library/bgslibrary/build/bgslibrary.lib" /MACHINE:X64 /machine:x64 bgslibrary.dir\Release\FrameProcessor.obj 4>bgslibrary.dir\Release\Main.obj 4>bgslibrary.dir\Release\PreProcessor.obj 4>bgslibrary.dir\Release\VideoAnalysis.obj 4>bgslibrary.dir\Release\VideoCapture.obj 4>bgslibrary.vcxproj -> D:\Library\bgslibrary\build\bgslibrary.exe 4>C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -noprofile -File "D:\Library\vcpkg\scripts\buildsystems\msbuild\applocal.ps1" "D:\Library\bgslibrary\build\bgslibrary.exe" "D:\Library\vcpkg\installed\x64-windows\bin" "bgslibrary.dir\Release\bgslibrary.tlog\bgslibrary.write.1u.tlog" "bgslibrary.dir\Release\vcpkg.applocal.log" 4>Done building project "bgslibrary.vcxproj". 5>------ Rebuild All started: Project: ALL_BUILD, Configuration: Release x64 ------ 5>Building Custom Rule D:/Library/bgslibrary/CMakeLists.txt 5>CMake does not need to re-run because D:/Library/bgslibrary/build/CMakeFiles/generate.stamp is up-to-date. ========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ==========

andrewssobral commented 4 years ago

Hi @aroranikhil786 sorry for my delayed feedback to you, I was very busy at work these last days. I will take a more deeper look on it this weekend, and I will let you know as soon as possible. Best

aroranikhil786 commented 4 years ago

@andrewssobral No issues. Take your time.

rpalsaxena commented 3 years ago

Hi @andrewssobral ,

Is there any update regarding the issue? Installation of file pybgs is not working via pip install.

ipesanz commented 3 years ago

Same here! Not possible to install in current channels of PIP. Using PyCharm and auto-discovering & install of the ide.

Command Executed:
C:\Users\Isaac\anaconda3\Scripts\conda.exe install -p C:/Users/Isaac/anaconda3 pybgs -y

Error Message:
PackagesNotFoundError: The following packages are not available from current channels:

Command Output:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pybgs

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
atish1309 commented 2 years ago

image

@andrewssobral, Hello I followed all the steps as shown in the YT video, still encountered a problem while importing pybgs. Please help

mitesh741 commented 1 year ago

Hey @andrewssobral

Getting same error. Installed opencv using their official instructions without any fails. version 3.4.18

After that Compiled and Isntalled BGSLib using Cmake steps for windows.

Then using python setup.py build and python setup.py install

Added all the paths to PYTHONPATH. Paths where all executeables and .dll and .so are

but still no luck.