Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
9b9f38af
Commit
9b9f38af
authored
Sep 28, 2018
by
soonbro
Committed by
Alexander Alekhin
Sep 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in FpsMeter.java
'mFramesCouner' -> 'mFramesCounter'
parent
4fea6179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FpsMeter.java
...a/generator/android/java/org/opencv/android/FpsMeter.java
+4
-4
No files found.
modules/java/generator/android/java/org/opencv/android/FpsMeter.java
View file @
9b9f38af
...
...
@@ -14,7 +14,7 @@ public class FpsMeter {
private
static
final
int
STEP
=
20
;
private
static
final
DecimalFormat
FPS_FORMAT
=
new
DecimalFormat
(
"0.00"
);
private
int
mFramesCouner
;
private
int
mFramesCoun
t
er
;
private
double
mFrequency
;
private
long
mprevFrameTime
;
private
String
mStrfps
;
...
...
@@ -24,7 +24,7 @@ public class FpsMeter {
int
mHeight
=
0
;
public
void
init
()
{
mFramesCouner
=
0
;
mFramesCoun
t
er
=
0
;
mFrequency
=
Core
.
getTickFrequency
();
mprevFrameTime
=
Core
.
getTickCount
();
mStrfps
=
""
;
...
...
@@ -39,8 +39,8 @@ public class FpsMeter {
init
();
mIsInitialized
=
true
;
}
else
{
mFramesCouner
++;
if
(
mFramesCouner
%
STEP
==
0
)
{
mFramesCoun
t
er
++;
if
(
mFramesCoun
t
er
%
STEP
==
0
)
{
long
time
=
Core
.
getTickCount
();
double
fps
=
STEP
*
mFrequency
/
(
time
-
mprevFrameTime
);
mprevFrameTime
=
time
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment