Giter VIP home page Giter VIP logo

Comments (4)

bittnt avatar bittnt commented on June 21, 2024

Hi, @seanXYZ I am not sure which OpenCV version you are talking about. The code should works with the previous version 2.4.9. Alternatively, you could try the mexOpenCV https://github.com/kyamagu/mexopencv, it should help you getting things done with the latest OpenCV YAML interface.

from objectness.

seanXYZ avatar seanXYZ commented on June 21, 2024

Hi, thank you for your message. I have already figured it out.And read and test all your code.
The problem takes place because that the format of YAML can not be parsed on my machine.So I have tried different formats, this format below is working:
%YAML:1.0

annotation:
folder: VOC2007
filename: "000001.jpg"
source: {database: The VOC2007 Database, annotation: PASCAL VOC2007, image: flickr,
flickrid: '341012865'}
owner: {flickrid: Fried Camels, name: Jinky the Fruit Bat}
size: {width: '353', height: '500', depth: '3'}
segmented: '0'
object:
- bndbox: {xmin: '48', ymin: '240', xmax: '195', ymax: '371'}
name: dog
pose: Left
truncated: '1'
difficult: '0'
- bndbox: {xmin: '8', ymin: '12', xmax: '352', ymax: '498'}
name: person
pose: Left
truncated: '1'
difficult: '0'

from objectness.

ZhengYuxiao avatar ZhengYuxiao commented on June 21, 2024

@seanXYZ Hello, I want make own data set like VOC2007 Annotations, but the annotations is xml, I want generate yml,could you tell me how to generate the formats like follow
%YAML:1.0

annotation:
folder: VOC2007
filename: "000001.jpg"
source: {database: The VOC2007 Database, annotation: PASCAL VOC2007, image: flickr,
flickrid: '341012865'}
owner: {flickrid: Fried Camels, name: Jinky the Fruit Bat}
size: {width: '353', height: '500', depth: '3'}
segmented: '0'
object:

  • bndbox: {xmin: '48', ymin: '240', xmax: '195', ymax: '371'}
    name: dog
    pose: Left
    truncated: '1'
    difficult: '0'
  • bndbox: {xmin: '8', ymin: '12', xmax: '352', ymax: '498'}
    name: person
    pose: Left
    truncated: '1'
    difficult: '0'

from objectness.

seanXYZ avatar seanXYZ commented on June 21, 2024

I think you can use a lot of APIs to edit your YAML file or XML file. To the infomation of the object, you may write a program to select the box of it.

from objectness.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.