Skip to content

Commit

Permalink
add some gapi, refactor Mat releated API in core
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Mar 23, 2024
1 parent 6fef1e3 commit 987e10e
Show file tree
Hide file tree
Showing 7 changed files with 1,720 additions and 1,264 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build_catch_exceptions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: build for catch exceptions

on:
push:
branches: ["catch-exceptions"]
tags:
- "v*.*.*"
pull_request:
branches: [ "catch-exceptions" ]

env:
ANDROID_NDK_VERSION: r26c
OPENCV_VERSION: 4.9.0
LIB_NAME: libopencv_dart

jobs:
build-ubuntu:
name: build-ubuntu
runs-on: ubuntu-latest

steps:
- name: setup
run: |
sudo apt-get update
sudo apt-get install -y curl git wget python3 unzip build-essential \
libgtk-3-dev ffmpeg libavcodec-dev \
cmake ninja-build ccache nasm libavformat-dev libavutil-dev \
libswscale-dev libgflags-dev \
libjpeg-dev libpng-dev libtiff-dev python3-pip
python3 -m pip install conan
conan profile detect -f
- uses: actions/checkout@v4
with:
submodules: true
- name: build-opencv-dart
run: |
conan build . -b missing -c tools.cmake.cmaketoolchain:generator=Ninja
- uses: subosito/flutter-action@v2
with:
# flutter-version: '3.16.9'
channel: "stable"
- uses: actions/upload-artifact@v4
name: upload-linux-x64
with:
path: build/publish/libopencv_dart-linux-x64.tar.gz
name: libopencv_dart-linux-x64.tar.gz
- name: Run Test
run: |
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/linux:$LD_LIBRARY_PATH
flutter pub get
flutter test -x skip-workflow,no-local-files
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ test/models/
*.dylib
CMakeUserPresets*
*.framework
.clang-format
CMakePresets.json

# Files and directories created by pub
.dart_tool/
Expand Down
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ find_package(OpenCV REQUIRED)

set(OpenCV_LIBS
opencv_aruco opencv_core opencv_calib3d opencv_dnn opencv_highgui
opencv_features2d opencv_photo opencv_imgproc
opencv_features2d opencv_gapi opencv_photo opencv_imgproc
opencv_objdetect opencv_video opencv_videoio opencv_stitching
)

Expand Down Expand Up @@ -73,6 +73,7 @@ endif(IOS)
if(WIN32)
set_target_properties(${library_name} PROPERTIES
WINDOWS_EXPORT_ALL_SYMBOLS ON
COMPILE_FLAGS "/EHsc"
)
endif(WIN32)

Expand All @@ -89,6 +90,11 @@ if(WITH_OPENCV_DART_DEMO)
${OpenCV_LIBS}
${library_name}
)
if(WIN32)
set_target_properties(demo PROPERTIES
COMPILE_FLAGS "/EHsc"
)
endif(WIN32)
endif()

# ## install
Expand Down
Loading

0 comments on commit 987e10e

Please sign in to comment.