Skip to content

Commit 5e5099d

Browse files
committed
Uniform code formatting
1 parent da36ec2 commit 5e5099d

10 files changed

+695
-551
lines changed

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ function(get_link_libraries target outlist)
117117
continue()
118118
endif()
119119
get_target_property(unalias ${lib} ALIASED_TARGET)
120-
if("${unalias}" STREQUAL "unalias-NOTFOUND")
120+
if("${unalias}" STREQUAL "unalias-NOTFOUND")
121121
set(unalias ${lib})
122122
endif()
123-
get_target_property(imp ${unalias} IMPORTED)
124-
if(${imp})
125-
continue()
126-
endif()
123+
get_target_property(imp ${unalias} IMPORTED)
124+
if(${imp})
125+
continue()
126+
endif()
127127
list(FIND ${outlist} ${unalias} exists)
128128
if(NOT exists EQUAL -1)
129129
continue()

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Use `cmake` to build the project: create a subfolder (e.g. `build`), change to t
2828

2929
**Deprecated**: Another option to build everything is to run `make` in the root directory of the repository. While this will download and build all dependencies, it comes with a few drawbacks like missing support for XNNPACK. Also this might break with newer versions of Tensorflow Lite as upstream support for this option has been removed. Use at you own risk.
3030

31+
When working on the code be sure to keep the code style aligned with the existing code base. A good starting point for this is using `astyle` with a command like this: `astyle -K -xU -p -xg -f -xb -t4 -r 'app/*.cc' 'app/*.h' 'lib/*.cc' 'lib/*.h' 'videoio/*.cc' 'videoio/*.h'`.
32+
3133
## Usage
3234

3335
First, load the v4l2loopback module (extra settings needed to make Chrome work):
@@ -68,15 +70,15 @@ Tested with the following dependencies:
6870
- OpenCV 3.2.0 (stock package)
6971
- V4L2-Loopback 0.10.0 (stock package)
7072
- Tensorflow Lite 2.1.0 (from [repo](https://github.com/tensorflow/tensorflow/tree/v2.1.0/tensorflow/lite))
71-
73+
7274
Tested with the following software:
7375

74-
- Firefox
76+
- Firefox
7577
- 90.0.2 (works)
7678
- 84.0 (works)
7779
- 76.0.1 (works)
7880
- 74.0.1 (works)
79-
- Skype
81+
- Skype
8082
- 8.67.0.96 (works)
8183
- 8.60.0.76 (works)
8284
- 8.58.0.93 (works)
@@ -150,7 +152,7 @@ The dataflow through the whole program is roughly as follows:
150152
- extract portrait ROI in center
151153
- downscale ROI to 144 x 256 (*)
152154
- convert to RGB float32 (*)
153-
- run Google Meet segmentation model
155+
- run Google Meet segmentation model
154156
- convert result to binary mask using softmax
155157
- denoise mask using erode/dilate
156158
- upscale mask to raw image size
@@ -166,7 +168,7 @@ As usual: pull requests welcome.
166168
See [Issues](https://github.com/floe/backscrub/issues) and [Pull Requests](https://github.com/floe/backscrub/pulls) for currently discussed/in-progress extensions, and also check out the `experimental` branch.
167169

168170
## Fixed
169-
171+
170172
- The project name isn't catchy enough. Help me find a nice [backronym](https://en.wikipedia.org/wiki/Backronym).
171173
- Resolution is currently hardcoded to 640x480 (lowest common denominator).
172174
- Only works with Linux, because that's what I use.

0 commit comments

Comments
 (0)