home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ziphnor" data-source="post: 75113" data-attributes="member: 14215"><p>I had hoped that subtitles would be very distinct in that they had very few brightness levels(ie VERY bright and VERY dark) but thats not the case, some subtitle lines have just as many distinct Y levels as image lines. I have managed to produce tests that always catch subtitles but need some auxiliary sanity tests to avoid messing with the image itself. It is definetly doable, but i think most software development theory says to develop incrementally, ie build something that works with some simple functionality first, *then* improve it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>To keep the subtitles from bouncing up and down, it is best to maintain a constant(ish) box for them. </p><p></p><p>When copying the subtiles i only copy pixels with a brightness over a certain threshold, so any black/gray background for the subtitles is discarded. This also means that its okay to keep a larger bounding box for subtitles than is actually used, since a frame without any actual subtitles will not copy anything.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 75113, member: 14215"] I had hoped that subtitles would be very distinct in that they had very few brightness levels(ie VERY bright and VERY dark) but thats not the case, some subtitle lines have just as many distinct Y levels as image lines. I have managed to produce tests that always catch subtitles but need some auxiliary sanity tests to avoid messing with the image itself. It is definetly doable, but i think most software development theory says to develop incrementally, ie build something that works with some simple functionality first, *then* improve it :) To keep the subtitles from bouncing up and down, it is best to maintain a constant(ish) box for them. When copying the subtiles i only copy pixels with a brightness over a certain threshold, so any black/gray background for the subtitles is discarded. This also means that its okay to keep a larger bounding box for subtitles than is actually used, since a frame without any actual subtitles will not copy anything. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom