Ask Your Question

MinxiangLiu's profile - activity

2019-10-25 09:34:06 -0600 received badge  Notable Question (source)
2019-03-31 14:39:04 -0600 received badge  Popular Question (source)
2018-02-27 23:44:33 -0600 commented answer (Object Detection)prior_box_layer.cpp error using Opencv dnn

This is very helpful to me.

2018-02-27 08:21:12 -0600 marked best answer (Object Detection)prior_box_layer.cpp error using Opencv dnn

I using Ubuntu 16.04.3, built Opencv 3.4.0 from source using this for python 3.5. image description

I try to use Wiki method in myself training data.

I use tf_text_graph_ssd.py script to generate a text graph representation.

On running the sample provided as object-detection-opencv.py

import cv2 as cv

cvNet = cv.dnn.readNetFromTensorflow('frozen_inference_graph.pb', 'out_graph.pbtxt')

img = cv.imread('image2.jpg')
rows = img.shape[0]
cols = img.shape[1]
cvNet.setInput(cv.dnn.blobFromImage(img, 1.0/127.5, (300, 300), (127.5, 127.5, 127.5), swapRB=True, crop=False))
cvOut = cvNet.forward()

for detection in cvOut[0,0,:,:]:
    score = float(detection[2])
    if score > 0.3:
        left = detection[3] * cols
        top = detection[4] * rows
        right = detection[5] * cols
        bottom = detection[6] * rows
        cv.rectangle(img, (int(left), int(top)), (int(right), int(bottom)), (23, 230, 210), thickness=2)

cv.imshow('img', img)
cv.waitKey()

Result: image description

shared here:https://drive.google.com/open?id=1Npu54EGHtqdd6dFb2Ff3TxRb5UpE1xkP

Any fix for this would be very much helpful.

2018-02-27 00:15:32 -0600 asked a question (Object Detection)prior_box_layer.cpp error using Opencv dnn

(Object Detection)prior_box_layer.cpp error using Opencv dnn I using Ubuntu 16.04.3, built Opencv 3.4.0 from source usin

2018-02-24 07:28:23 -0600 received badge  Enthusiast
2018-02-05 07:26:14 -0600 commented question Error while trying to run the dnn for object detection

I have the same problem at forward stages.

2018-02-03 02:53:25 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

@dkurt, May I ask your version about Opencv?

2018-02-02 08:36:14 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

Then I try use graph transformation tool and I imitate source code of Wiki. I get result here:opt_graph_trans.pb. But I

2018-02-02 08:35:32 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

Then I try use graph transformation tool and I imitate source code of Wiki. I get result here:opt_graph_trans.pb. But I

2018-02-02 08:34:25 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

I try to use Wiki of Troubleshooting. I imitate source code of Wiki. I get result here:opt_graph.pb. I run again but er

2018-02-02 08:33:47 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

I try to use Wiki of Troubleshooting. I imitate source code of Wiki. I get result here:opt_graph.pb. But I run again but

2018-02-02 08:31:34 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

@dkurt, I use Wiki of run the model using OpenCV source code.

2018-02-02 04:58:29 -0600 commented question cv::dnn::readNetFromTensorflow errors loading by myself trained model

@dkurt, Thank your respond. I try again and cv.dnn.readNetFromTensorflow problem have been solved. But have other error

2018-02-01 08:13:55 -0600 received badge  Student (source)
2018-02-01 04:19:52 -0600 asked a question cv::dnn::readNetFromTensorflow errors loading by myself trained model

cv::dnn::readNetFromTensorflow errors loading by myself trained model I follow TensorFlow Object Detection API and have