Normal
Too bad about the lost posts in this thread I thought id give my current status:I changed to collecting histogram data for the YUV components. When collected the histogram allows me to easily compute the max/min, average and the variance. Its a bit faster on SD material, and probably alot faster on HD material(because the histograms are fixed size, 3 arrays of length 255).I managed to get things running with subtitles being moved into the frame automaticly, it works very well except its a bit jittery because i havent implemented a check preventing very small changes in the bounding box.My next move is to:1. Clean up the code, seperating image analysis from subtitle transform etc2. Implement an intelligent bounding box tracker such that the bounding box remains stable.3. Only sample every frame if subtitles are to be moved.4. Change to a more intelligent sample pattern as described above(though im still not convinced its a good idea to sample in potential logo areas).5. Offer some kind of means to set parameters from MediaPortal etc.When i get to 4, ill be back here to discuss the strategy, but it might be a while, i have a busy week.
Too bad about the lost posts in this thread
I thought id give my current status:
I changed to collecting histogram data for the YUV components. When collected the histogram allows me to easily compute the max/min, average and the variance. Its a bit faster on SD material, and probably alot faster on HD material(because the histograms are fixed size, 3 arrays of length 255).
I managed to get things running with subtitles being moved into the frame automaticly, it works very well except its a bit jittery because i havent implemented a check preventing very small changes in the bounding box.
My next move is to:
1. Clean up the code, seperating image analysis from subtitle transform etc
2. Implement an intelligent bounding box tracker such that the bounding box remains stable.
3. Only sample every frame if subtitles are to be moved.
4. Change to a more intelligent sample pattern as described above(though im still not convinced its a good idea to sample in potential logo areas).
5. Offer some kind of means to set parameters from MediaPortal etc.
When i get to 4, ill be back here to discuss the strategy, but it might be a while, i have a busy week.