'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\jOpenCVDlls" "."
'
' If you want to distribute it as a standalone package, copy your DLLs to the projects root folder
' DLL names can vary in other jOpenCV versions so be sure to modify accordingly.
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ b4jcv_344_01.dll
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ opencv_ffmpeg344_64.dll
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ tbb12.dll
'
Sub Process_Globals
Private mCore As OCVCore
Private vcMat As OCVMat
Private OCV As OCVHelper
Private mType As OCVCvType
Private improc As OCVImgproc
Private imcodes As OCVImgcodecs
End Sub
Sub AppStart (Args() As String)
Log("Hello jOpenCV Console")
vcMat=imcodes.imread1("C:\11\pic.jpg") '
' draw Line (1,1)(100,45)
improc.line(vcMat,OCV.Point.create(1,1),OCV.Point.create(100,45),OCV.Scalar.create3(128,128,128),5,0,0)
imcodes.imwrite1("C:\11\pic_0.jpg",vcMat)
End Sub