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
4c08581e
Commit
4c08581e
authored
Oct 04, 2014
by
Dmitriy Anisimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opencv_version
parent
79f593a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
opencv_version.cpp
samples/cpp/opencv_version.cpp
+1
-1
opencv_version.java
samples/java/opencv_version.java
+23
-0
opencv_version.py
samples/python2/opencv_version.py
+18
-0
No files found.
samples/cpp/opencv_version.cpp
View file @
4c08581e
...
@@ -25,7 +25,7 @@ int main(int argc, const char* argv[])
...
@@ -25,7 +25,7 @@ int main(int argc, const char* argv[])
}
}
else
else
{
{
std
::
cout
<<
"OpenCV "
<<
CV_VERSION
<<
std
::
endl
;
std
::
cout
<<
"
Welcome to
OpenCV "
<<
CV_VERSION
<<
std
::
endl
;
}
}
return
0
;
return
0
;
...
...
samples/java/opencv_version.java
0 → 100644
View file @
4c08581e
import
org.opencv.core.Core
;
class
opencv_version
{
static
{
System
.
loadLibrary
(
Core
.
NATIVE_LIBRARY_NAME
);
}
public
static
void
main
(
String
[]
args
)
{
if
((
1
==
args
.
length
)
&&
(
0
==
args
[
0
].
compareTo
(
"--build"
)))
{
System
.
out
.
println
(
Core
.
getBuildInformation
());
}
else
if
((
1
==
args
.
length
)
&&
(
0
==
args
[
0
].
compareTo
(
"--help"
)))
{
System
.
out
.
println
(
"\t--build\n\t\tprint complete build info"
);
System
.
out
.
println
(
"\t--help\n\t\tprint this help"
);
}
else
{
System
.
out
.
println
(
"Welcome to OpenCV "
+
Core
.
VERSION
);
}
}
}
samples/python2/opencv_version.py
0 → 100644
View file @
4c08581e
#!/usr/bin/env python
import
cv2
if
__name__
==
'__main__'
:
import
sys
try
:
param
=
sys
.
argv
[
1
]
except
:
param
=
""
if
(
"--build"
==
param
):
print
cv2
.
getBuildInformation
()
elif
(
"--help"
==
param
):
print
"
\t
--build
\n\t\t
print complete build info"
print
"
\t
--help
\n\t\t
print this help"
else
:
print
"Welcome to OpenCV"
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