Skip to content

Provide a way to disable modules to reduce package size #313

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

Open
lemtea8 opened this issue Jan 4, 2025 · 4 comments
Open

Provide a way to disable modules to reduce package size #313

lemtea8 opened this issue Jan 4, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@lemtea8
Copy link

lemtea8 commented Jan 4, 2025

Is your feature request related to a problem? Please describe.
OpenCV is really powerful and has many features, but in general usecases we don't need every features.
Having the ability to disable unused modules can drastically reduce binary size, which is always great for mobile apps.

Describe the solution you'd like
Maybe use a yaml file to specify what modules to include and exclude, and a custom build is triggered to build from source locally.

@lemtea8 lemtea8 added the enhancement New feature or request label Jan 4, 2025
@lemtea8
Copy link
Author

lemtea8 commented Jan 4, 2025

I found that I can build dartcv which has options in CMakeLists.txt.
For anyone who also wants this feature, go to https://github.com/rainyl/dartcv

@lemtea8 lemtea8 closed this as completed Jan 4, 2025
@rainyl
Copy link
Owner

rainyl commented Jan 5, 2025

Yes you can always specify the modules by yourself, either using cmake options or cocoapods subspecs, but providing switches via yaml configuration is a better choice, if more users require this feature in the future, I will add it when having some free time.

@eramirez3
Copy link

Please it will be a great help enable switches via yaml, thanks in advance for this wonderful project!

@rainyl
Copy link
Owner

rainyl commented Apr 28, 2025

Okay I will reopen this issue.

@rainyl rainyl reopened this Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants