ankush-me / SynthText

Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Vedaldi, Andrew Zisserman, CVPR 2016.
http://www.robots.ox.ac.uk/~vgg/data/scenetext/
Apache License 2.0
2.02k stars 622 forks source link

results/SynthText.h5 #268

Closed Lane689 closed 2 years ago

Lane689 commented 2 years ago

Hi @ankush-me ,

how can I look into SynthText.h5, can't open it, but dset.h5 I can open. I tried to run gen.py and then open but nothing. I don't know what's the name of folder where are names of generated images such as in thedset.h5 'Images', can you tell me this or can you run visualize_results and open SynthText.h5 and screenshot me opened file?

This folder: image

Because I'm working on Ubuntu and when I run hdf5view, nothing shows in all h5 files, but on Windows it shows, but I can't run script on windows because i'm working on linux.

I want to load these names in json file.

**imnames = sorted(db1['Images'].keys())**

            with open("annotation.json") as json_file:
                data=json.load(json_file)
                temp=data["annotations"]
                y = {#"image_name": {imnames},
                     #"id": 1,
                     #"image_id": 1,
                     f'gt_{imnames}': {
                     "transcription": v,
                     "language": "Latin", 
                     "bbox": [[a,e], [b,f], [c,g], [d,h]]
                        }
                    }

                temp.append(y)

            write_json(data)