-
Notifications
You must be signed in to change notification settings - Fork 180
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
Keogram li #751
Keogram li #751
Conversation
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.
Setting nchan to 3 eliminates the crashes when there are some images with 1 channel and some with 3, but if all the images are mono it will "fix" them all to color.
I have a version of keogram.cpp that looks at the first image and uses it to determine the "nchan". I'll do a PR for that after your PR is merged.
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.
There shouldn't need to be commas between the three values. All the scripts that call keogram put the color values in quotes so getopt sees it as one argument that happens to have two spaces in it.
Do you have different scripts that don't put quotes around the color numbers?
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.
Please add the "x" and "c" options to "usage_and_exit()".
yesterday I'have seen the problem of optarg with this parameter. Only >"255< was delivered as argument. |
Done. -x | --image-expand : expand image to get the proportions of source |
@AndreasLMeg Here's the command that executes on my Pi using the current software on Thomas' GitHub:
We added a variable to config.sh to allow the user to easily pass arguments to keogram, it's called "KEOGRAM_EXTRA_PARAMETERS" (different name than you have but it does the same thing). Here's what I have: What does your keogram command look like? |
@AndreasLMeg, another option for the ' ' versus ',' is to allow either. It'll only add a couple lines of code. |
my suggestion: a parameter f pi@allsky:~/allsky_keogram_li/src $ ./keogram -d ~/allsky/images/20211031 -e jpg -C "255 255 255" -o test_li.jpg -x -c Abgebrochen and now with the parameter -f 3 |
…no, 3=rgb (0=auto)
@AndreasLMeg, Once I do the PR to fix the crashes when there are both 1-channel and 3-channel images, the "auto" mode would then be based on the 1st image, which is what my fix looks at to determine what to use. |
Unfortunately, the RaspHQ camera is always overexposed = WHITE (sunrise / sunset) |
I'm still trying to find the problem ... here is the version 255,255,255
and here "255 255 255" - You can see linux bash makes the Problem: changes "255 255 255" to '"255' 255 '255"'
|
@AndreasLMeg, when the HD camera outputs a white frame does it chang the number of channels to 1? The code is checking for imagesrc.channels(). If that's true, I could easily change it to look at the middle picture. I currently just have "0" hard coded for the file number. Are you running the latrst files from Thomas? If so, run |
I think that's the best solution, but --font-color #FFFFFF is the very best I haven't found the cause yet, but the problem already happens during import |
@EricClaeys: That's enough adjustments for today - good starry night |
@AndreasLMeg, I will be interested to see what the problem is since we have a lot of people in different countries. No one else has mentioned that issue though, and quite a few are using the newer config.sh. |
@AndreasLMeg, Chris originally allowed only hex numbers but I got him to also allow 0-255 since not everyone is a programmer who understands hex, and the capture programs accept 0-255 so that's what people are used to. I think the capture programs should also allow both. |
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.
We can make any additional changes in my PR, for example, allowing both "," and " ".
@EricClaeys: I have now done various tests and have come to the result: It must be the keogram itself. And I can only imagine the new option handling as the cause. But I'm not very familiar with that - so I keep my hands off it here is the keogram of last night (with activ gain control for RaspiHQ) |
@AndreasLMeg, how about if I merge your approved change in, then post my PR that eliminates the crashes when there are images of different channel numbers? I will also add in the ability to do either " " or "," separators for the font color. |
@EricClaeys: That would be nice of you. But only if the ideas fit into Allsky's concept and it is an improvement. |
./keogram_li -d images/20211031 -e jpg -o test_li.jpg -x -c
daylight saving:
without changes: