Browse Source

Updated README.md for Emgu.CV.Bitmap nuget package with usage demos.

pull/703/head
Canming Huang 4 years ago
parent
commit
ce0b3dbf2a
  1. 4
      CMakeLists.txt
  2. 22
      cmake/Emgu.CV.Bitmap.Package.README.md.in

4
CMakeLists.txt

@ -1017,6 +1017,8 @@ SET(EMGUCV_WINDOWS_NUGET_ID "${EMGUCV_NUGET_ID}.runtime.windows")
SET(EMGU_WINDOWS_MSVCRT_X86_NUGET_ID "Emgu.runtime.windows.msvc.rt.x86") SET(EMGU_WINDOWS_MSVCRT_X86_NUGET_ID "Emgu.runtime.windows.msvc.rt.x86")
SET(EMGU_WINDOWS_MSVCRT_X64_NUGET_ID "Emgu.runtime.windows.msvc.rt.x64") SET(EMGU_WINDOWS_MSVCRT_X64_NUGET_ID "Emgu.runtime.windows.msvc.rt.x64")
SET(NUGET_EMGU_URL "https://www.emgu.com")
IF(WITH_CUDA) IF(WITH_CUDA)
SET(EMGUCV_WINDOWS_NUGET_ID "${EMGUCV_WINDOWS_NUGET_ID}.cuda") SET(EMGUCV_WINDOWS_NUGET_ID "${EMGUCV_WINDOWS_NUGET_ID}.cuda")
SET(EMGU_WINDOWS_CUDA_NUGET_ID "Emgu.runtime.windows.cuda") SET(EMGU_WINDOWS_CUDA_NUGET_ID "Emgu.runtime.windows.cuda")
@ -1633,7 +1635,7 @@ IF ("${LICENSE_TYPE}" STREQUAL "Commercial")
ENDIF() ENDIF()
ENDIF() ENDIF()
SET(NUGET_EMGU_URL "https://www.emgu.com")
#generate nuget config file for Emgu.CV #generate nuget config file for Emgu.CV
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Emgu.CV.Package.nuspec.in ${CMAKE_CURRENT_SOURCE_DIR}/platforms/nuget/Emgu.CV/Package.nuspec) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Emgu.CV.Package.nuspec.in ${CMAKE_CURRENT_SOURCE_DIR}/platforms/nuget/Emgu.CV/Package.nuspec)

22
cmake/Emgu.CV.Bitmap.Package.README.md.in

@ -1,6 +1,6 @@
## About this package
## About
This is the ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} release of Emgu CV.
This package is part of the ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} release of Emgu CV.
For online documentation please visit For online documentation please visit
<https://www.emgu.com/wiki/files/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}/document/index.html> <https://www.emgu.com/wiki/files/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}/document/index.html>
@ -8,7 +8,19 @@ For online documentation please visit
Release note can be found at Release note can be found at
<https://www.emgu.com/wiki/index.php/Version_History#Emgu.CV-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}> <https://www.emgu.com/wiki/index.php/Version_History#Emgu.CV-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}>
## Note
## How to Use
To deploy Emgu CV to a specific platform, you will also need to add one of the Emgu.CV.runtime.{platform} nuget packages to your executable project, use the following link to search for an Emgu.CV.runtime nuget packages:
<https://www.nuget.org/packages?q=Emgu.CV.runtime>
```csharp
Bitmap bmp = ... //Some bitmap object
Mat mat = bmp.ToMat() //convert Bitmap to Mat
... // modify on your Mat
Bitmap otherBmp = mat.ToBitmap(); // convert Mat to Bitmap
```
## Supported platforms
* Windows
* Linux (require GDI+)
* Mac OS (require GDI+)
This package do not support mobile platforms. GDI+ is not available on iOS or Android
Loading…
Cancel
Save