New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Plugin] Implement OpenCV-mini #2648
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
1. imdecode 2. imshow 3. waitkey The `cv::Mat` will be cached in a map & wasm module will only get handle instead of passing huge multi-dim array (`cv::Mat`) around the host & wasm. Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
`imwrite` will put matrix into a file, and hence. we can check the transformer result `blur` do simple blurring, this is the first transformer we introduce Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
The function will write compressed image back into instance's buffer Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
NOTE, this is a normalize function from 77051da#diff-3333d926ca87cf4285bfcd6deae45ee310307be66fca8a4ca6f0f8a946743fccR50-R54 not `cv::normalize` Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Please fix the failed CI. |
This comment was marked as resolved.
This comment was marked as resolved.
5 tasks
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Fixed, I just pick a stable version of OpenCV |
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
dannypsnl
force-pushed
the
plugin-opencvmini
branch
from
July 24, 2023 05:10
0d128b2
to
5da484d
Compare
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
hydai
requested changes
Jul 24, 2023
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
hydai
approved these changes
Jul 25, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sarrah-basta
pushed a commit
to sarrah-basta/WasmEdge
that referenced
this pull request
Oct 20, 2023
* first draft to setup opencvmini plugin Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix porting name Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * missing include Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * update to 2023 Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * link opencv into plugin Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * implements three functions 1. imdecode 2. imshow 3. waitkey The `cv::Mat` will be cached in a map & wasm module will only get handle instead of passing huge multi-dim array (`cv::Mat`) around the host & wasm. Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * opencvmini has no need add options Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix to be workable Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * add opencvmini option Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * formatting Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fixing linter problem Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * add `blur` function & `imwrite` `imwrite` will put matrix into a file, and hence. we can check the transformer result `blur` do simple blurring, this is the first transformer we introduce Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * implements `imencode` The function will write compressed image back into instance's buffer Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * normalize function NOTE, this is a normalize function from WasmEdge@77051da#diff-3333d926ca87cf4285bfcd6deae45ee310307be66fca8a4ca6f0f8a946743fccR50-R54 not `cv::normalize` Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * add function bilinear sampling Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * release adding opencvmini Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * build extensions Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * add test Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * cmake track testing Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * metas Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * install opencv Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix release name Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix dependencies Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix typo in CI configuration Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix name Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix export functions number test Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * try newer g++ Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * install libopencv-dev on ubuntu Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * yum can install opencv Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * build and limit build thread Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * retry with no sudo Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * independent Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * ninja Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * ubuntu also use build Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * extra module Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * add platform exclusive, and fix naming Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * remove contrib Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix binary name Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * macos missing opencv installation Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * install certain version Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix install script Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix upload name Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * fix wrong format Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * outdated trick Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * test if we remove devtoolset-8 Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * there has no http plugin now Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * remove do nothing configuration Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * blur export kernel parameters Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> * let user can assign extension Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io> --------- Signed-off-by: Lîm Tsú-thuàn <dannypsnl@secondstate.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature
transform
normalize
: notcv::normalize
, from 77051da#diff-3333d926ca87cf4285bfcd6deae45ee310307be66fca8a4ca6f0f8a946743fccR50-R54blur
: blurring functionbilinear_sampling
: bilinear samplerread/write
imdecode
: from image from instance bufferimencode
: put image into instance bufferimwrite
: write image into filemisc
imshow
: show image (broken on MacOS)waitkey
: wait any keypress