Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
openXG-WIC-Cnf
Commits
fb743ae8
Commit
fb743ae8
authored
Sep 05, 2020
by
ymwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并成功版本
parent
ad1a0789
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/service/picPro/picImpl/mergeProcess.java
.../pitong/business/service/picPro/picImpl/mergeProcess.java
+30
-0
No files found.
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/service/picPro/picImpl/mergeProcess.java
0 → 100644
View file @
fb743ae8
package
com.pitong.business.service.picPro.picImpl
;
import
com.pitong.business.item.Picture
;
import
com.pitong.business.service.picPro.IPicProcess
;
import
java.io.IOException
;
import
java.util.LinkedList
;
import
static
com
.
pitong
.
business
.
service
.
saveFile
.
Save
.
loadPicture
;
import
static
com
.
pitong
.
business
.
service
.
saveFile
.
Save
.
saveToFile
;
public
class
mergeProcess
implements
IPicProcess
{
public
static
LinkedList
<
Picture
>
picPara
=
new
LinkedList
<>();
@Override
public
LinkedList
<
Picture
>
picProcess
(
Picture
...
pictures
)
{
System
.
out
.
println
(
"run Before saveToFile"
);
saveToFile
(
pictures
[
0
],
in_file1
);
saveToFile
(
pictures
[
1
],
in_file2
);
System
.
out
.
println
(
"run after saveToFile"
);
try
{
String
command
=
"python merge-pro.py "
+
in_file1
+
" "
+
in_file2
+
" "
+
out_file
;
Process
process
=
Runtime
.
getRuntime
().
exec
(
command
);
process
.
waitFor
();
}
catch
(
IOException
|
InterruptedException
e
)
{
e
.
printStackTrace
();
}
picPara
.
add
(
loadPicture
(
out_file
));
return
picPara
;
}
}
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