Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
ecf63c5d
Commit
ecf63c5d
authored
May 23, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix readme
parent
44f81f2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+7
-0
three_color.py
demo/three_color.py
+1
-1
No files found.
README.md
View file @
ecf63c5d
...
@@ -268,4 +268,11 @@ pip install git+ssh://git@git.wanmeizhensuo.com/wushengyu/maskrcnn.git
...
@@ -268,4 +268,11 @@ pip install git+ssh://git@git.wanmeizhensuo.com/wushengyu/maskrcnn.git
from
demo.three_color
import
handle_from_path
from
demo.three_color
import
handle_from_path
path
=
'/xxx/xxx/xx.jpg'
path
=
'/xxx/xxx/xx.jpg'
img
=
handle_from_path
(
path
)
# 类似cv2.imread的img
img
=
handle_from_path
(
path
)
# 类似cv2.imread的img
from
demo.three_color
import
handle_from_url
url
=
'http://xxx/xxx/xx.jpg'
img
=
handle_from_url
(
url
)
```
```
demo/three_color.py
View file @
ecf63c5d
...
@@ -64,7 +64,7 @@ def img_to_three_color_map(img):
...
@@ -64,7 +64,7 @@ def img_to_three_color_map(img):
min_image_size
=
args
.
min_image_size
,
min_image_size
=
args
.
min_image_size
,
)
)
composite
=
coco_demo
.
run_on_opencv_image
(
img
)
composite
=
coco_demo
.
run_on_opencv_image
(
img
)
if
composite
:
if
composite
is
not
None
:
return
composite
return
composite
return
None
return
None
...
...
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