dac8e3013d731091500d21a6985f39ee730f57db,scripts/detection/demo_webcam_run.py,,,#,11

Before Change


    // Display the result
    plt.cla()
    axes = gcv.utils.viz.plot_bbox(frame, bounding_boxes[0], scores[0], class_IDs[0], class_names=net.classes, ax=axes)
    plt.draw()
    plt.pause(0.001)


cap.release()

After Change


    class_IDs, scores, bounding_boxes = net(rgb_nd)

    // Display the result
    scale = 1.0 * frame.shape[0] / scaled_frame.shape[0]
    img = gcv.utils.viz.cv_plot_bbox(frame.asnumpy(), bounding_boxes[0], scores[0], class_IDs[0], class_names=net.classes, scale=scale)
    gcv.utils.viz.cv_plot_image(img)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dmlc/gluon-cv
Commit Name: dac8e3013d731091500d21a6985f39ee730f57db
Time: 2019-06-03
Author: hetong007@gmail.com
File Name: scripts/detection/demo_webcam_run.py
Class Name:
Method Name:


Project Name: dmnfarrell/pandastable
Commit Name: b45d8f151441c0aa034160b91a8ce1f2ca8aac8c
Time: 2015-07-06
Author: farrell.damien@gmail.com
File Name: pandastable/plotting.py
Class Name: PlotViewer
Method Name: plot2D


Project Name: dmlc/dgl
Commit Name: 7156c7163b046686064d7c9de445041870e672bc
Time: 2018-12-01
Author: minjie.wang@nyu.edu
File Name: tutorials/1_first.py
Class Name:
Method Name: