Explorar el Código

fix imagehash len

DevYK hace 3 años
padre
commit
082a621bbb
Se han modificado 4 ficheros con 3612 adiciones y 12 borrados
  1. 5 5
      jni/ImageBlurDetection.cpp
  2. 1803 0
      json.json
  3. 2 1
      src/utils/video_similarity.cpp
  4. 1802 6
      src/video_similarity_comparison.cpp

+ 5 - 5
jni/ImageBlurDetection.cpp

@@ -100,17 +100,17 @@ static jfloat Java_JNI_OpenCV_GetVideoSimilarityValue(JNIEnv *env, jobject obj,
 }
 
 static jstring Java_JNI_OpenCV_GetVideoSimilarityLists(JNIEnv *env, jobject obj, jstring filepath) {
-    LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists\n ");
+    LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists\n ")
     const char *image_path = env->GetStringUTFChars(filepath, 0);
     const char *ret_json = get_video_similarity_list(image_path);
     env->ReleaseStringUTFChars(filepath, image_path);
-    LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists\n");
+    LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists\n")
     if (ret_json) {
-        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF \n");
+        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF \n")
         jstring str = env->NewStringUTF(ret_json);
-        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF 1\n");
+        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF 1\n")
         free((void *) ret_json);
-        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF out\n");
+        LOGE("Java_JNI_OpenCV_GetVideoSimilarityLists NewStringUTF out\n")
         ret_json = NULL;
         return str;
     }

+ 1803 - 0
json.json

@@ -0,0 +1,1803 @@
+{
+  "clips" :
+  [
+    {
+      "endTimeMs" : 6900,
+      "hashs" : null,
+      "startTimeMs" : 5900
+    },
+    {
+      "endTimeMs" : 12800,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101110111",
+          "pts" : 11838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101010111",
+          "pts" : 11879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101010111",
+          "pts" : 11921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100001101010111",
+          "pts" : 11963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100001101010111",
+          "pts" : 12004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100011101010111",
+          "pts" : 12046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100011101010111",
+          "pts" : 12088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001110100011101010111",
+          "pts" : 12129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001110100011101010111",
+          "pts" : 12171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001110101011101010111",
+          "pts" : 12213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101011101010100",
+          "pts" : 12254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001000101010001010100",
+          "pts" : 12546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001000101010001010100",
+          "pts" : 12588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001000101010001010100",
+          "pts" : 12629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010000",
+          "pts" : 12796
+        }
+      ],
+      "startTimeMs" : 11800
+    },
+    {
+      "endTimeMs" : 18700,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000010100100100000101000000000100001000000000000001000000",
+          "pts" : 17713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100100000000000000000000000000000000000000000000000",
+          "pts" : 17754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010010000010100000000000010000000100000010000000100000000000000",
+          "pts" : 17921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001010100011000000010000001110000010100000110000000100000",
+          "pts" : 17963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010100011100000010000011110000010100000111000001100000",
+          "pts" : 18004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000010100000111000001100000",
+          "pts" : 18046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000110100000111000001100000",
+          "pts" : 18254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000110100000111000001100000",
+          "pts" : 18296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000110100000111000001100000",
+          "pts" : 18338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000111000011110000110100000111000001100000",
+          "pts" : 18379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000111000011110000110100000111000001100000",
+          "pts" : 18421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000111000011110000110100000111000001100000",
+          "pts" : 18463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110000110100000111000001100000",
+          "pts" : 18504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110000110100000111000001100000",
+          "pts" : 18546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18671
+        }
+      ],
+      "startTimeMs" : 17700
+    },
+    {
+      "endTimeMs" : 24600,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001110011001000000010100011101000000011110100011101100111",
+          "pts" : 23629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001110011001000000010100010101000000011110100011101100111",
+          "pts" : 23671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000000011110100011101100111",
+          "pts" : 23713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000001011110100011101100111",
+          "pts" : 23754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000001011110100011101100111",
+          "pts" : 23796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000001011110100011101100111",
+          "pts" : 23838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001110011001000000010100010101000001011110100011101100111",
+          "pts" : 23879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100000101000001011110100011101100111",
+          "pts" : 23921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100000101000001011110100011101110111",
+          "pts" : 23963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100000101000001011110100011101110111",
+          "pts" : 24004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100000101000001011110100011101110111",
+          "pts" : 24046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100010101000001011110100011101110011",
+          "pts" : 24088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100010101000001011110100011101110011",
+          "pts" : 24129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000110100010101000001011110100011101110011",
+          "pts" : 24171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000110100010101000001011000100011101110011",
+          "pts" : 24213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000110100000101000001011000100011101110011",
+          "pts" : 24254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001100011001100000110100000101000001011000100111101110011",
+          "pts" : 24296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110000000101000001011000101111101010011",
+          "pts" : 24546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110000001101000001011000101111101010111",
+          "pts" : 24588
+        }
+      ],
+      "startTimeMs" : 23600
+    },
+    {
+      "endTimeMs" : 30500,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011001000110000000000011000100100000111100001111000",
+          "pts" : 29504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011001000110000000000011000100100000111100001111000",
+          "pts" : 29546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011001000110000000000011000000100000111100001111000",
+          "pts" : 29588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000100000111100001111000",
+          "pts" : 29629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000110000111100001111000",
+          "pts" : 29671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000110000111100001111000",
+          "pts" : 29713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000110000111100001111000",
+          "pts" : 29754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 29963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 30004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 30046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010011100000011000100110000000000011100000110000111100001111000",
+          "pts" : 30088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000000000011100000110000111100001111000",
+          "pts" : 30129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000000000011100000111000111100001111000",
+          "pts" : 30171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000000000011100000111000111100001111000",
+          "pts" : 30213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000110000111100001111000",
+          "pts" : 30254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000110000111100001111000",
+          "pts" : 30296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011000000110000111100001111000",
+          "pts" : 30338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011000000111000111100001111000",
+          "pts" : 30379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000111000111100001111000",
+          "pts" : 30421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000111000111100001111000",
+          "pts" : 30463
+        }
+      ],
+      "startTimeMs" : 29500
+    },
+    {
+      "endTimeMs" : 36400,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001110000",
+          "pts" : 35421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001010000",
+          "pts" : 35463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011010001010000",
+          "pts" : 35504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000000010000",
+          "pts" : 35546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000000010000",
+          "pts" : 35588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000000000000100100001000000011000000000000",
+          "pts" : 35629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000000000000100100001000000000000000000000",
+          "pts" : 35671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001100000110000001100000011000000100000000000000000000",
+          "pts" : 35921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001100000110000011100000111000001110000011000001000000",
+          "pts" : 35963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001100000111000111100000111000001110000011000001000000",
+          "pts" : 36004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100000111000111110000111000001110000111000001010000",
+          "pts" : 36046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36379
+        }
+      ],
+      "startTimeMs" : 35400
+    },
+    {
+      "endTimeMs" : 42300,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000000111000011111110111011101110011",
+          "pts" : 41338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000000111000011111110111011101110011",
+          "pts" : 41379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000000111000011111110111011101110011",
+          "pts" : 41421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000001111000011111110111011101110011",
+          "pts" : 41463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001101000011111110111011101110011",
+          "pts" : 41546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011111110111011101110011",
+          "pts" : 41629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011111110111011101110011",
+          "pts" : 41713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011111110111011101110011",
+          "pts" : 41754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011101110111011101110011",
+          "pts" : 41796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011101110111011101110011",
+          "pts" : 41838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011101110111011101110011",
+          "pts" : 41879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011101110111011101110011",
+          "pts" : 41921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011100001101000011101000111011101110011",
+          "pts" : 42171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011100001101000011101000111011101110011",
+          "pts" : 42213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011100001111000011101000111011101110011",
+          "pts" : 42254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011100001111000011101000111011101110011",
+          "pts" : 42296
+        }
+      ],
+      "startTimeMs" : 41300
+    },
+    {
+      "endTimeMs" : 48200,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010001010110010100000",
+          "pts" : 47588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010001010110010100000",
+          "pts" : 47629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011010001010110010100000",
+          "pts" : 47671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011011001010110010100100",
+          "pts" : 47713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011011001010110010100100",
+          "pts" : 47754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001010000111110001111100011011001010110010100100",
+          "pts" : 47796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 47963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001010000111110001111100011011001010110010100000",
+          "pts" : 48171
+        }
+      ],
+      "startTimeMs" : 47200
+    }
+  ],
+  "videoPath" : "http://rescdn.yishihui.com/longvideo/transcode/video/a0af8fbb58fb4099beb42e592465894c_1529284215127.m3u8"
+}
+
+
+
+{
+  "clips" :
+  [
+    {
+      "endTimeMs" : 6900,
+      "hashs" : null,
+      "startTimeMs" : 5900
+    },
+    {
+      "endTimeMs" : 12800,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101010111",
+          "pts" : 11838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101010111",
+          "pts" : 11879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011101110010011100100011001001110100001101010111",
+          "pts" : 11921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100001101010111",
+          "pts" : 11963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100001101010111",
+          "pts" : 12004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111011111110010011100100011001001110100011101010111",
+          "pts" : 12046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111001111110010011100100011001001110100011101010111",
+          "pts" : 12088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111001111110010011100100011001001110100011101010111",
+          "pts" : 12129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001111001111110010011100100011001001000100011101010111",
+          "pts" : 12171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001000101011101010111",
+          "pts" : 12213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101011101010111",
+          "pts" : 12254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100001111001111110010011100100011001001000101010001010100",
+          "pts" : 12421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100011111001111110010011100100011001001000101010001010100",
+          "pts" : 12463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000011100011111001111110010011100100011001001000101010001010100",
+          "pts" : 12504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101010001010100",
+          "pts" : 12546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101010001010100",
+          "pts" : 12588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101010001010100",
+          "pts" : 12629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000011111001111110010011100100011001001000101000001010100",
+          "pts" : 12754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001111001111110010011100100011001001000101000001010000",
+          "pts" : 12796
+        }
+      ],
+      "startTimeMs" : 11800
+    },
+    {
+      "endTimeMs" : 18700,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000010100100100000101000000010100001000000000000001000000",
+          "pts" : 17713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100100000000000000000000000000000000000000000000000",
+          "pts" : 17754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 17879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010010000010100000000000010000000100000000000000000000000000000",
+          "pts" : 17921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001010100011000000010000001110000010100000110000000100000",
+          "pts" : 17963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010100011100000010000001110000010100000111000001100000",
+          "pts" : 18004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000010100000111000001100000",
+          "pts" : 18046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011100011110000010100000111000001100000",
+          "pts" : 18213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000010100000111000001100000",
+          "pts" : 18254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000110100000111000001100000",
+          "pts" : 18296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000011000011110000110100000111000001100000",
+          "pts" : 18338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001010000011100000111000011110000110100000111000001100000",
+          "pts" : 18379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000011100000111000011110000110100000111000001100000",
+          "pts" : 18421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000011100000111000011110000110100000111000001100000",
+          "pts" : 18463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110000110100000111000001100000",
+          "pts" : 18504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0111010001110000001100000111000011110011110100000111000001100000",
+          "pts" : 18671
+        }
+      ],
+      "startTimeMs" : 17700
+    },
+    {
+      "endTimeMs" : 24600,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001010011001100000010100011101000000011110100011101100111",
+          "pts" : 23629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011010001010011001000000010100010101000000011110100011101100111",
+          "pts" : 23671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000000011110100011101100111",
+          "pts" : 23713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001110011001000000010100010101000000011110100011101100111",
+          "pts" : 23754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000110011001000000010100010101000000011110100011101100111",
+          "pts" : 23796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000110011001000000010100010101000000011110100011101100111",
+          "pts" : 23838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000100011001000000010100010101000000011110100011101100111",
+          "pts" : 23879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000100011001000000010100000101000001011110100011101110111",
+          "pts" : 23921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000100011001000000010100000101000001011110100011101110111",
+          "pts" : 23963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000100011001000000010100000101000001011110100011101110111",
+          "pts" : 24004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100010101000001011110100011101110111",
+          "pts" : 24046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100010101000001011110100011101110011",
+          "pts" : 24088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001000000010100010101000001011110100011101110011",
+          "pts" : 24129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000010100010101000001011110100011101110011",
+          "pts" : 24171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000110100010101000001011110100011101110011",
+          "pts" : 24213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001100011001100000110100010101000001011000100011101110011",
+          "pts" : 24254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001100011001100000110100010101000001011000100111101010011",
+          "pts" : 24296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010001100011001100000110100010101000001011000100111101010011",
+          "pts" : 24338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100010101000001011000101111101010011",
+          "pts" : 24379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001110001100011001100000110100000101000001011000101111101010011",
+          "pts" : 24463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110000000101000001011000101111101010011",
+          "pts" : 24504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110000001101000001011000101111101010011",
+          "pts" : 24546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011110001100011001100000110000001101000001011000101111101010111",
+          "pts" : 24588
+        }
+      ],
+      "startTimeMs" : 23600
+    },
+    {
+      "endTimeMs" : 30500,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011001000110000000000011000100100000111100001111000",
+          "pts" : 29504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011001000110000000000011000000100000111100001111000",
+          "pts" : 29546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011000000100000111100001111000",
+          "pts" : 29588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000100000111100001111000",
+          "pts" : 29629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000100000111100001111000",
+          "pts" : 29671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000110000111100001111000",
+          "pts" : 29713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011000000110000111100001111000",
+          "pts" : 29754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000001100011100000111000111100001111000",
+          "pts" : 29838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000111000111100001111000",
+          "pts" : 29879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000111000111100001111000",
+          "pts" : 29921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 29963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 30004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010011100000011000000110000000000011100000110000111100001111000",
+          "pts" : 30046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0010011100000011000100110000000000011100000110000111100001111000",
+          "pts" : 30088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000000000011100000111000111100001111000",
+          "pts" : 30129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000000000011100000111000111100001111000",
+          "pts" : 30171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000100110000001100011100000111000111100001111000",
+          "pts" : 30213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000110000111100001111000",
+          "pts" : 30254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000110000111100001111000",
+          "pts" : 30296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011000000110000111100001111000",
+          "pts" : 30338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011000000111000111100001111000",
+          "pts" : 30379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000111000111100001111000",
+          "pts" : 30421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0011011100010011000000110000001100011100000111000111100001111000",
+          "pts" : 30463
+        }
+      ],
+      "startTimeMs" : 29500
+    },
+    {
+      "endTimeMs" : 36400,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001110000",
+          "pts" : 35421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001010000",
+          "pts" : 35463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001010000",
+          "pts" : 35504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001101000011000001010000",
+          "pts" : 35546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000010000000110100001100000011000000010000",
+          "pts" : 35588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000011000000000000100100001100000001000000000000",
+          "pts" : 35629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000001000000000000100000001000000000000000000000",
+          "pts" : 35671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000100000000000000000000000000000",
+          "pts" : 35713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000000000000000000000000000000000000000000000000",
+          "pts" : 35879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000000100000110000001100000011000000100000000000000000000",
+          "pts" : 35921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010000001100000110000011100000111000001110000011000000000000",
+          "pts" : 35963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001100000111000111100000111000001110000011000001000000",
+          "pts" : 36004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001001100000111000111100000111000001110000011000001010000",
+          "pts" : 36046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100000111000111110000111000001110000111000001010000",
+          "pts" : 36088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0000010001011100010111000111110000111000001110000111000001110000",
+          "pts" : 36379
+        }
+      ],
+      "startTimeMs" : 35400
+    },
+    {
+      "endTimeMs" : 42300,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000000111000011111110111011101110011",
+          "pts" : 41338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001100000011000000111000011111110111011101110011",
+          "pts" : 41379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000000111000011111110111011101110011",
+          "pts" : 41421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001100011001000000011000001111000011111110111011101110011",
+          "pts" : 41629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011111110111011101110011",
+          "pts" : 41671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001111000011111110111011101110011",
+          "pts" : 41713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011111110111011101110011",
+          "pts" : 41754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101110111011101110011",
+          "pts" : 41963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42171
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0100010001000011001000000011000001101000011101000111011101110011",
+          "pts" : 42296
+        }
+      ],
+      "startTimeMs" : 41300
+    },
+    {
+      "endTimeMs" : 48200,
+      "hashs" :
+      [
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47213
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47254
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47296
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100001010000010110010100000",
+          "pts" : 47338
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47379
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47421
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47463
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47504
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010000010110010100000",
+          "pts" : 47546
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010001010110010100000",
+          "pts" : 47588
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001110000111110001111100001010001010110010100000",
+          "pts" : 47629
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011010001010110010100000",
+          "pts" : 47671
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011010001010110010100000",
+          "pts" : 47713
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011011001010110010100100",
+          "pts" : 47754
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001110000111110001111100011011001010110010100100",
+          "pts" : 47796
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47838
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47879
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100100",
+          "pts" : 47921
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 47963
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100001011001010110010100000",
+          "pts" : 48004
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100001011001010110010100000",
+          "pts" : 48046
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48088
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010010100000001010000111110001111100011011001010110010100000",
+          "pts" : 48129
+        },
+        {
+          "hashSize" : 64,
+          "imageHash" : "0001010000100000001010000111110001111100011011001010110010100000",
+          "pts" : 48171
+        }
+      ],
+      "startTimeMs" : 47200
+    }
+  ],
+  "videoPath" : "http://rescdn.yishihui.com/longvideo/transcode/video/ab50f30924c342e4b44052e9b22fa5ec_1529501321256.m3u8"
+}

+ 2 - 1
src/utils/video_similarity.cpp

@@ -265,7 +265,7 @@ static int *list_sim_compare(std::vector<ImageHashModel *> a, std::vector<ImageH
     //比较帧指纹
     for (int k = 0; k < minFrames; ++k) {
         float v_sim = fingerprint_compare(a[k]->image_hash, b[k]->image_hash,
-                                          minFrames);
+                                          strlen(a[k]->image_hash));
         if (v_sim > 0.90) {
             sim_frame_count++;
         }
@@ -279,6 +279,7 @@ float get_video_similarity_value(const char *src_json, const char *dst_json) {
     if (!src_json || !dst_json) {
         return 0.0f;
     }
+    //json -> bean
     auto *src_vs = json2VideoSimilarity(src_json);
     auto *dst_vs = json2VideoSimilarity(dst_json);
     int min_count = MIN(src_vs->clips.size(), dst_vs->clips.size());

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1802 - 6
src/video_similarity_comparison.cpp


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio