mirror of
https://github.com/esimov/forensic.git
synced 2025-10-05 08:26:49 +08:00
Include travis.yml
This commit is contained in:
24
.travis.yml
Normal file
24
.travis.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
language: go
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- "master"
|
||||||
|
|
||||||
|
# In theory, older versions would probably work just fine
|
||||||
|
go:
|
||||||
|
- 1.8
|
||||||
|
- 1.9
|
||||||
|
- 1.10
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GOOS=linux
|
||||||
|
- GOOS=darwin
|
||||||
|
- GOOS=windows
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go get -u -t ./...
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: never
|
||||||
|
on_failure: never
|
2
main.go
2
main.go
@@ -269,7 +269,7 @@ func process(input image.Image, done chan struct{}) bool {
|
|||||||
forgedBlocks, result := filterOutNeighbors(simBlocks)
|
forgedBlocks, result := filterOutNeighbors(simBlocks)
|
||||||
|
|
||||||
forgedImg := image.NewRGBA(img.Bounds())
|
forgedImg := image.NewRGBA(img.Bounds())
|
||||||
overlay := color.RGBA{255, 0, 255, 255}
|
overlay := color.RGBA{255, 0, 0, 255}
|
||||||
|
|
||||||
fmt.Println("Number of forged blocks detected: ", len(forgedBlocks))
|
fmt.Println("Number of forged blocks detected: ", len(forgedBlocks))
|
||||||
for _, bl := range forgedBlocks {
|
for _, bl := range forgedBlocks {
|
||||||
|
Reference in New Issue
Block a user