boyska 7 years ago
parent
commit
1d75808c0e
2 changed files with 28 additions and 0 deletions
  1. 2 0
      CMakeLists.txt
  2. 26 0
      README.md

+ 2 - 0
CMakeLists.txt

@@ -13,6 +13,8 @@ if (CUDA_FOUND)
     include( FindCUDA )
     cuda_add_executable( bs_dsp bs_dsp.cu )
     target_link_libraries( bs_dsp ${OpenCV_LIBS} )
+else()
+    message(STATUS "CUDA not found; will skip bs_dsp")
 endif (CUDA_FOUND)
 
 add_executable( lines lines.cpp )

+ 26 - 0
README.md

@@ -0,0 +1,26 @@
+Misc tools to identify important points/lines of book photos.
+
+Build howto
+============
+
+```sh
+cmake && make
+./getfiles
+```
+(getfiles will sync the `files/` directory from a remote server; no big files on git!)
+
+Please note that bs_dsp requires CUDA libraries to be built (and an NVidia card to be run). If you don't have
+the appropriate libraries, it will just be skipped.
+
+Tools
+=======
+
+bs_dsp
+---------
+
+correct colors, contrast, etc
+
+lines
+-------
+
+Given an image like `files/masckera.png` it will extract the shape of the book