alicewish / MomoTranslator

Pure OpenCV comic translation tool
MIT License
216 stars 32 forks source link

Outscreen bubbles are not detecting #30

Closed wwardaww closed 9 months ago

wwardaww commented 10 months ago

Hi some out screen bubbles are not detecting:

original image:

image

detection image: image

alicewish commented 10 months ago

You need to put XXX-加框.jpg in your folder, which would be generated in step 1.

wwardaww commented 10 months ago

there is no XXX-加框.jpg bu here another step images test

test2

alicewish commented 10 months ago

287685320-eab4a148-875c-4641-b318-e2d300619cbe-画格 287685320-eab4a148-875c-4641-b318-e2d300619cbe-加框 287685320-eab4a148-875c-4641-b318-e2d300619cbe-CTD 287685320-eab4a148-875c-4641-b318-e2d300619cbe-ffffff-white~000000-black 287685320-eab4a148-875c-4641-b318-e2d300619cbe-Mask-ffffff-white~000000-black 287685320-eab4a148-875c-4641-b318-e2d300619cbe-TextBlock-ffffff-white~000000-black

wwardaww commented 10 months ago

so we should draw missing parts of bubble xd?

alicewish commented 10 months ago

It should be generated in step 1.

alicewish commented 10 months ago

In extreme cases maybe a little drawing, but rectangles can be generated.

alicewish commented 10 months ago

Update the code and try again. Also, one folder can only use all png or all jpg, not mixed.

alicewish commented 10 months ago
    if do_add_frame:
        added_frames = get_added_frames(frame_grid_strs, image_raw, color_name0)
        write_pic(added_frames_jpg, added_frames)

It should be generated here. It works when I'm using.

wwardaww commented 10 months ago

image still same but i can draw edges it wont be a problem

last question: how can i put those files in a folder image

alicewish commented 10 months ago

You can move them anywhere, and make sure to maintain the structure. Then use open folder for the new location.

wwardaww commented 10 months ago

Hi, i have new bug (of course :d)

I cant process this image : 1

its throw this error: image

alicewish commented 10 months ago

In config file comment - 'ffffff-15~000000-60' # 白底黑字, uncomment - '000000-15~ffffff-60' # 黑底白字, and try again.