Ask Your Question

Aleander's profile - activity

2018-09-14 13:39:46 -0600 asked a question python exe erro

python exe erro I'm trying to create an EXE from an object-detector code I made but the following error codigo

2018-09-13 09:39:26 -0600 commented answer RGB error python

I managed to trangormando it in the color but now it does not detect from far

2018-09-13 09:25:17 -0600 marked best answer RGB error python

error generated after a runtime

Traceback (most recent call last): File "C:/detectordeobjetos/setup.py", line 31, in <module> objetosDetectados = detector(frame) RuntimeError: Unsupported image type, must be 8bit gray or RGB image. [h264 @ 000000cedf0fe920] negative number of zero coeffs at 78 6 [h264 @ 000000cedf0fe920] error while decoding MB 78 6

code

import dlib
import cv2
import sys
import time
import requests

ip = "rtsp://admin:[email protected]/doc/page/preview.asp"
detector = dlib.simple_object_detector('C:/detectordeobjetos/thor.svm')
ipp = ("https://httpbin.org/post")
Nome = 'Detector de Objetos'
fonte = cv2.FONT_ITALIC
captura = cv2.VideoCapture(ip)
x = 0
tempo = 0
sinal = 0
time.sleep(1.0)




> while captura.isOpened():

    from datetime import datetime

    data_e_hora_atuais = datetime.now()
    data_e_hora_em_texto = data_e_hora_atuais.strftime('%d/%m/%Y %H:%M')
    conectado, frame = captura.read()
    tempo += 1

    print(tempo)

    sinal += 1
    objetosDetectados = detector(frame)
    for o in objetosDetectados:
        e, t, d, f = (int(o.left()), int(o.top()), int(o.right()), int(o.bottom()))
        cv2.rectangle(frame, (e, t), (d, f), (0, 255, 0), 1)
        cv2.putText(frame, 'Eixo Detectado', (e, t), fonte, 1.0, (0, 255, 0), 2, cv2.LINE_4)
        print("Objeto foi detectado")
        tempo = 0
        sinal = 0
        cv2.destroyAllWindows()
        time.sleep(5)

    if sinal == 5:
        xml = ("""<?xml version="1.0" encoding="iso-8859-1"?>
                    <calls>
                    <call>
                    <id>0000</id>
                    <mac>0013A20040A768C4</mac>
                    <bat>2.23</bat>
                    <dthora>""" + str(data_e_hora_em_texto) + """</dthora> </call> </calls>""")
        url = 'http://mmscon.cnhindustrial.ind.br/cnhind/mms/cebh/roti01.php'
        r = requests.post(ipp, {'data': xml}).text
        print(r)
        print("---Enviando Sinal ---")
        sinal = 0
        cv2.destroyAllWindows()
        time.sleep(5)

    captura.release()
    cv2.destroyAllWindows()
    sys.exit(0)
2018-09-13 08:41:34 -0600 commented answer RGB error python

and now gives the following error [rtsp @ 000000b48fd685a0] RTP: PT=60: bad cseq ba45 expected=a875 [h264 @ 000000b4943

2018-09-13 08:41:06 -0600 commented answer RGB error python

I converted it to gray but lost a lot of efficiency in detecting objects would have some other way

2018-09-13 07:36:25 -0600 received badge  Organizer (source)
2018-09-13 06:49:41 -0600 edited question RGB error python

RGB error python error generated after a runtime Traceback (most recent call last): File "C:/detectordeobjetos/setup.

2018-09-13 06:49:15 -0600 edited question RGB error python

RGB error python error generated after a runtime Traceback (most recent call last): File "C:/detectordeobjetos/setup.

2018-09-13 06:48:10 -0600 edited question RGB error python

RGB error python error generated after a runtime Traceback (most recent call last): File "C:/detectordeobjetos/setup.

2018-09-13 06:47:51 -0600 received badge  Editor (source)
2018-09-13 06:47:51 -0600 edited question RGB error python

RGB error python error generated after a runtime Traceback (most recent call last): File "C:/detectordeobjetos/setup.

2018-09-13 06:46:12 -0600 asked a question RGB error python

RGB error python error generated after a runtime Traceback (most recent call last): File "C:/detectordeobjetos/setup.

2018-09-12 06:09:44 -0600 commented answer hardware for opencv

Thanks for the help today I discovered that the Fiat wants to use 64 cameras I'll end up setting up a nasa pc kkkkkkkkk

2018-09-11 08:33:59 -0600 commented answer hardware for opencv

The main problem of it and the following it has to run 24 h and a low definition like 800 x 600 it runs very well with m

2018-09-11 07:41:38 -0600 received badge  Student (source)
2018-09-11 07:11:36 -0600 marked best answer hardware for opencv

I'm doing an AI project to fiat where it will recognize an object when it is in place in the final project they want to recognize 285 parts simultaneously with several cameras so I do not know which hardware would be the best they have money to spend what they recommend (I had seen some tesla boards)

2018-09-11 07:11:36 -0600 received badge  Scholar (source)
2018-09-11 06:27:18 -0600 commented answer hardware for opencv

my code import dlib import cv2 import sys import socket import time import requests ip = "rtsp://admin:Infominas@192.

2018-09-11 06:27:17 -0600 commented answer hardware for opencv

the prototype is ready, but I can not run it with very high definition cameras for a long time. The budget has no limits

2018-09-10 06:55:49 -0600 asked a question hardware for opencv

hardware for opencv I'm doing an AI project to fiat where it will recognize an object when it is in place in the final p