Commit ecf63c5d authored by 吴升宇's avatar 吴升宇

fix readme

parent 44f81f2b
...@@ -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)
``` ```
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment