Skip to content
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

Added config option for EMWIN handler to disable output of TXT files #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tmbates12
Copy link

A lot of people seem to want to disable the rather spammy (yet informational) TXT files that come down when EMWIN is disabled, so I added a quick config option to alleviate this, so that only the images people are interested in get downlinked.

howardtopher added a commit to howardtopher/goestools that referenced this pull request Jun 1, 2023
…ion for EMWIN handler to disable output of TXT files
@ZL1LAC
Copy link

ZL1LAC commented Jan 17, 2025

If your building and have opencv4, version 4.6.0 it's likely you will come across this error.

/home/server/goestools/src/goesproc/config.cc:215:37: error: ‘CV_LOAD_IMAGE_UNCHANGED’ was not declared in this scope
  215 |         auto img = cv::imread(path, CV_LOAD_IMAGE_UNCHANGED);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/goesproc/CMakeFiles/goesproc.dir/build.make:90: src/goesproc/CMakeFiles/goesproc.dir/config.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2206: src/goesproc/CMakeFiles/goesproc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

CV_LOAD_IMAGE_UNCHANGED was deprecated and removed in OpenCV 4.x. The newer versions of OpenCV use cv::IMREAD_UNCHANGED instead.

In config.cc at line 215: auto img = cv::imread(path, CV_LOAD_IMAGE_UNCHANGED); to auto img = cv::imread(path, cv::IMREAD_UNCHANGED);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants