-
Notifications
You must be signed in to change notification settings - Fork 87
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 cropping of capture/background #153
Draft
jjsarton
wants to merge
26
commits into
floe:main
Choose a base branch
from
jjsarton:cropping
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
127009b
added cropping of capture/background
65627e8
Suggestions mostly added, a little bugfix
7b41672
Suggestions mostly added, a little bugfix
cb0fe4f
fix typo
3eeb58b
typo correction
01e9a75
fix typo
f81e26e
Syntax modified
112e979
Syntax modified
22472ad
correction
7dc9bcc
coorection as suggested
6894b3e
coorection as suggested
1769f7e
suggestion processed
e9a5242
bug fixed
0f62a57
bug fixed
81c1c83
bug fix
4c5f72c
bug fix
ffb9883
type
7353ff8
typo
5a92b93
typo
5ee0d4a
bug fixed
44dbb6a
Fix and suggestion considered
4c6431e
little cleanup
975b96f
little corrections
481cb47
little corrections
f80a8a6
bettet video/image detection, gstreamer support foranimated gif
ea1e350
better crop handling
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
..as above, could be removed in favour of a state variable, calculated just once.
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.
I must think about that.
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.
I must review this part.
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.
I have put the variable bg_stored into the structure background_t.
The code is now:
For the video processing the code remain to the old code, we will probably every time read a new picture from the video source.
Please note that the changes are not effective now, the tests for video or still image don't work as required.
I propose to detect according to the value cnt which has the value -1 for still image and a greater value for video.
I have also changed the corresponding code.
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.
Don't worry too much about this, it's a minor performance enhancement to avoid a couple of floating point ops per frame, when we are running a whole inference model too.. I'd rather the code was readable than maximum speed 😄