Comments (5)
If we can find a video- or image-hashing algorithm which can hash the media into a string, this is very easy to implement. The interface would just need an object to represent what is being uploaded and the file path of the media as the input to said algorithm, then we can use that string output as the _s_data
value we're currently using for blocks.
It doesn't matter if the algorithm is slow or old, it just needs to work so we can get the system off the ground.
from deepfake-detection.
Starting with image hashing - video hashing is much more complex, we'll build up to that. Looking into perceptual hashes which can hash an image into the same value regardless of minor modifications (e.g. similar resolutions, similar colors, text, etc.). I found an implementation of a well-known open-source algorithm pHash, so I'll try implementing that this week.
I'll also write up a guide on digital signal/image processing which would be useful for programming and image hashing. We'll need a "hashing guide" which covers general hashing algorithms, image hashing, and video hashing soon, too.
from deepfake-detection.
Here is a basic guide with some pseudocode to implement a perceptual hash. Not up to pHash's robustness though.
Here is a really robust perceptual hash developed by the person who created pHash (above) - we can worry about implementing this later since it'll take more time, but this should be strongly considered later.
from deepfake-detection.
I implemented a rough version of perceptual image hashing. For now, it just takes an image as input, compresses it to 8x8, converts it to grayscale, extracts a bit from each pixel, and outputs the bits as a 16 digit hex string.
This is far from a complete version of image hashing, but it is a good enough first step for v0.1.
from deepfake-detection.
I'm removing the v0.1 label and adding the v0.3 label. This is enough to work through v0.2.
Edit: I'm going to undo that relabel so we can see this as progress in the v0.1 category, and I'll open a new issue for a future version of image hashing.
from deepfake-detection.
Related Issues (16)
- Digital Signatures
- Simulator HOT 3
- Summary Guide - Digital Signatures
- Summary Guide - Image Processing & Hashing
- Full Image Upload Testing HOT 3
- Refactor + CLI Output + Clean Code HOT 1
- Node class HOT 2
- Local `Comm` Library to Abstract Communication Details HOT 9
- Video Hashing Implementation
- Master CLI Interface and Simulator
- Summary Guide - Video Processing & Hashing
- Perceptual Image Hashing v2
- Protecting Against GANs
- Re-considering data structures
- v0.2 Cleanup, Testing, and Loose Ends
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepfake-detection.