Skip to content

Commit 48599d5

Browse files
committed
update README.md - timing analyzing
1 parent 74c6ef9 commit 48599d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ chmod 700 utils/clean.bash
2525
```
2626

2727
## Webcam Stream
28-
The detach method ```t1.detach()``` is used because the main thread don't need to wait for thream being processing and return. Instead, it will get the dataframe. The process happens simultaneously.
28+
The detach method ```t1.detach()``` is used we don't need to wait for the thread 1 to finish. Instead, it will get the dataframe. The process happens simultaneously.
2929

3030
## Measuring FPS and Elapsed time
3131
I first use **chrono** liberary to measure the time but found that it's hard to convert to seconds unit for calculating FPS. So, I use **ctime**.
3232
```c
33-
# in utils.cpp
33+
// in utils.cpp
3434
#include <ctime>
3535

3636
numFrames = 100;
3737

3838
clock_t start = clock();
39-
# some function here
39+
// some function here
4040
clock_t end = clock();
4141

4242
double elapsed_secs = double(end - start) / CLOCKS_PER_SEC;
@@ -48,6 +48,7 @@ http://dlib.net/webcam_face_pose_ex.cpp.html
4848

4949

5050
## Analysis
51+
### Just streaming webcam
5152
Stream 1000 frames for 10 times and record the data:
5253
```shell
5354
# run in terminal
@@ -73,6 +74,9 @@ Test 10 times w/o multithreading
7374

7475
The elapsed time don't see any change; however, the FPS of streaming 100 and 1000 frames increase by 23.5% and 31.5%, respectively.
7576

77+
### Face Detection
78+
79+
### Object Detection
7680

7781
## References
7882
https://www.pyimagesearch.com/2015/12/21/increasing-webcam-fps-with-python-and-opencv/

0 commit comments

Comments
 (0)