UFOID / UFO-Detector

UFO Detector
http://ufoid.net/
GNU General Public License v3.0
54 stars 8 forks source link

ERROR: Could not read detection area file #77

Open djtarki opened 2 months ago

djtarki commented 2 months ago

Hi!

When running it I get the following error:

Starting [21:19:38 debug] - Config file already exists, not overwriting [ WARN:0@0.652] global ./modules/videoio/src/cap_gstreamer.cpp (1405) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 [21:19:38 debug] - Creating recorder [21:19:38 debug] - "Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)" [21:19:38 debug] - Server created [21:19:38 warning] - "Error reading the detection area file /home/djtarki/Documents/UFO ID/detectionArea.xml" [21:19:38 warning] - ERROR: Could not read detection area file [21:19:38 info] - Detector failed to start terminate called without an active exception Aborted (core dumped)

I'd love to have this fix so I can test this very promising tool!

Thanks.

PS: Adding the steps I followed trying to make it work on laptop running Ubuntu UFO_Detector_Installation_On_Ubuntu_Laptop.txt

UFOID commented 5 days ago

Hi apologies for the delay

Here is an example file for 1920x1080 picture

<?xml version="1.0" encoding="UTF-8"?>
<detectionarealist>
  <detectionarea>
    <camera id="0" width="1920" height="1080"/>
    <polygon>
      <point x="0" y="0"/>
      <point x="1920" y="0"/>
      <point x="1920" y="1080"/>
      <point x="0" y="1080"/>
    </polygon>
  </detectionarea>
</detectionarealist>

The idea is that you can hide elements that you do want (like trees, window frame, etc). I build a little frontend which helps setup the file but did not get around to share it.