akamhy / videohash

Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 64-bit comparable hash-value for any video.

Home Page:https://pypi.org/project/videohash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c'))

akamg opened this issue · comments

To Reproduce
Generate videohash of a video directly from its path
url1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4"
videohash1 = VideoHash(url=url1)

url2 = "C:\Users\PCNAME\Documents\myapp\static_media\vid2.mp4"
videohash2 = VideoHash(url=url2)

Expected behavior
please I want to Generate videohash of these videos directly from their path.
videohash1.is_similar(videohash2)
False

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Operating system:win8
  • Python Version:3.9
  • VideoHash version:3.0.1

Additional context
Add any other context about the problem here.

You're trying to feed a path string to the url parameter. Try using the path parameter instead. Like this:

path1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4"
videohash1 = VideoHash(path=path1)