I took a video then partitioned it to frames. I need to compare differences between the frames (how to remove the similarity frames)

i need any new idea to do that?? how i can enhance on histogram or any exist methods.