ImageTrans-doc
This is the documentation repo of ImageTrans.
It is also served as the issue tracker of ImageTrans.
ImageTrans is a computer-aided image translation tool.
Documentation of ImageTrans, a computer-aided image translation tool. ImageTrans的文档项目。ImageTrans是一款计算机辅助图片/漫画翻译软件。
Home Page: https://imagetrans.readthedocs.io/
This is the documentation repo of ImageTrans.
It is also served as the issue tracker of ImageTrans.
ImageTrans is a computer-aided image translation tool.
I have some trouble I want auto that...
export txt and use cirl+H change and import thing?
how to convience change spacing to indent?
like Mantra Engine https://youtu.be/X3gRg6pOXBw
I have some Photoshop script,tool for translator. Could you please review if it will be useful as an image transfer tool??
P.S I
when i find error area I delete that so...
For more convenience, I suggest putting in Delete key.
and
when use OCR they can't recognize like ... ♡ ♥ Special Characters
how can I recognize it?
PS. this screenshot is edit strings.db en > ko
It's very likely someone might reuse the same font styles for multiple projects, so having global font styles would be nice.
Alternatively, a way to easily create new projects based upon a template could also work.
https://imgdb.in/iiLs
open file
https://imgdb.in/iiLt
OCR
https://imgdb.in/iiLu
pick text [remove]
https://imgdb.in/iiLv
and then...
error how can I do?
when im translating sometimes its erases the bubbles or if theres it skips some of the bubbles and dont translate it and alsothe programs have trouble translating when the website has a lot of water marks it tries to translating part of the drawing
I have the Augie font installed, but it's not showing up in the font list. If I edit the project file manually to add it as a font, it works fine, despite also not showing up in the "text edit" mode.
I need help with step by step instruction to install imagetran i purchase the program and tried to floow the steps but i dont knnow what im doing. wrong
i have a mac os big sur 11.3v
would appreciate the help i dont know wat im doing.
Basically, if there's text within a textbox that wraps to the next line, and the text is centered, it can look a bit janky. As far as I can tell, this is due to the spaces within the text. Would it be possible to improve/fix this? It's pretty annoying since it means you need to manually fix it every time.
It would be nice if we could reorder the fonts in the font style list, to change the default one without deleting all of them and remaking them (or editing the project file).
java -jar ImageTrans.jar 这个命令报错
The title essentially says it all - I've found DeepL (https://www.deepl.com/translator) to be the best machine translator overall, and it would be great to have support for it within the program.
Right now you can only create a text area from left to right, but there are often cases where I would find it much easier to create an accurate text area on my own if I could do it from right to left.
An option to bind deleting a text area to a button (DEL perhaps?) would be useful since it's pretty common for some garbage text areas to be leftover.
I'm talking about the place between "previous" and "next" where you can click in the middle to choose a different picture. The problem is when the name for the jpg image too long is like this "xxxxxxxxxxxxxxxxx057" then you can't see what your current page number is without searching for it. It would be nice if I hover with the mouse over the area between "previous" and "next" that I could get the full name of the current image.
It would be great to have a way to compare different OCR results, similar to how "Translation assist" works, as I've seen certain OCR engines being able to handle cases others can't, but not being as good overall (example: baidu_accurate is better than ABBYY overall, but ABBYY can OCR certain characters that baidu_accurate can't)
error: (NullPointerException) java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
at org.xulihang.imagetrans.project._import(project.java:285)
at org.xulihang.imagetrans.main$ResumableSub_MenuBar1_Action.resume(main.java:6406)
at org.xulihang.imagetrans.main._menubar1_action(main.java:5971)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:187)
at java.lang.Thread.run(Unknown Source)
Does the offline balloon detection require to set up the api url in the settings or do I have to do something else for it. When I check the box it tells me: Model is not placed correctly. I'm not sure how I have to set up the offline detection
There is the feature to export the current image to jpg, but when I'm doing custom translations for a volume with 200 pages, it would be easier if I could export all pictures to jpg with one click.
It would be nice to have some instructions on how to set up balloon detection on azure/baidu in the docs.
error: java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
at anywheresoftware.b4a.keywords.Common.WaitFor(Common.java:1054)
at org.xulihang.imagetrans.mt$ResumableSub_getMT.resume(mt.java:646)
at org.xulihang.imagetrans.mt._getmt(mt.java:511)
at org.xulihang.imagetrans.main$ResumableSub_showTM.resume(main.java:16121)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:136)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:85)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at anywheresoftware.b4a.keywords.Common$3.run(Common.java:1086)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
I have been receiving an error when I attempt to bulk OCR my projects. If I click OCR for individual lines, it works. But when I attempt to bulk OCR several pages of text, it provides an error report and begins listing "null" in the OCR text boxes. This happens while using "baidu_accurate" but it also occurs while using other OCR styles. This has happened repeatedly with different projects and OCR styles selected. Below is the error report I received most recently.
error: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
StackTrace: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at anywheresoftware.b4a.objects.collections.List.Get(List.java:105)
at org.xulihang.imagetrans.main$ResumableSub_BoxesListView_SelectedIndexChanged.resume(main.java:2812)
at org.xulihang.imagetrans.main._boxeslistview_selectedindexchanged(main.java:2618)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Unknown Source)
I use VNR [It's japanese adult game translate supporter]
when I use eztrans translation quality is high
[eztrans]
http://www.mediafire.com/file/roroiechqkz6319/ezTrans_XP_no_Install.7z/file
[VNR eztrans file]
https://blog.naver.com/bravehon/222308125156
This happened when I tried uploading a pdf, but I've gotten similar screens when trying to upload images along with it not recognizing my jpgs
error: java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
at org.xulihang.imagetrans.project._getdirpath(project.java:223)
at org.xulihang.imagetrans.main$ResumableSub_MenuBar1_Action.resume(main.java:9926)
at org.xulihang.imagetrans.main._menubar1_action(main.java:9325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
When dealing with resizing/moving text areas, undo behaves in a somewhat weird way. It seems to undo them one "step" at a time, instead of all at once. Moving/resizing the text area back to what it was before the mouse button was first pressed would be more consistent with the usual behavior of similar features in other programs.
[jp > ko]
I use batch but it has some error like this can check that?
https://imgdb.in/igRy
https://imgdb.in/igRz
I use PAPAGO API
Last suggestion, I promise - I figured I'd write down all the improvements I thought of.
It would be very useful if it were possible to rotate or use non-rectangular text areas. There's plenty of cases where text may be slanted and selecting it all using a rectangular text are could lead to it overlapping other text.
I've been using azure ocr for this and had no problems.
But the other ocr don't work properly, I'll use ocrspace and baidu accurate for an example. This doesn't happen on every picture, so it's not like it's not working at all.
Ocrspace error:
error: java.lang.RuntimeException: Object should first be initialized (Map).
StackTrace: java.lang.RuntimeException: Object should first be initialized (Map).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.Map.Get(Map.java:67)
at org.xulihang.imagetrans.ocr$ResumableSub_ocrspace.resume(ocr.java:3434)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:136)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:85)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:487)
at anywheresoftware.b4a.keywords.Common.access$0(Common.java:467)
at anywheresoftware.b4a.keywords.Common$CallSubDelayedHelper.run(Common.java:541)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Unknown Source)
baidu accurate error
error: java.lang.RuntimeException: Object should first be initialized (List).
StackTrace: java.lang.RuntimeException: Object should first be initialized (List).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.List.getSize(List.java:117)
at org.xulihang.imagetrans.ocr$ResumableSub_GetTextWithLocation.resume(ocr.java:2407)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:136)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:85)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at anywheresoftware.b4a.keywords.Common$3.run(Common.java:1086)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Unknown Source)
There were other errors I got as well, but these two errors are the ones I almost always get. It's really a big problem when you use Removing non-text area (OCR) in a batch because if you get this error on page 25/80 then that's it, it will be stuck on that page forever and won't move on to the next pictures.
I have obtained my own ocrspace and baidu api which works fine. The problem is when I remove the appid and the key the entire program breaks, nothing works anymore. And when I restart the program, even the Dark theme which I have on doesn't work. Whenever I click on anything I get an error like this for example
error: java.util.NoSuchElementException
StackTrace: java.util.NoSuchElementException
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(Unknown Source)
at java.util.LinkedHashMap$LinkedEntryIterator.next(Unknown Source)
at java.util.LinkedHashMap$LinkedEntryIterator.next(Unknown Source)
at anywheresoftware.b4a.objects.collections.Map$MyMap.getEntry(Map.java:219)
at anywheresoftware.b4a.objects.collections.Map$MyMap.getValue(Map.java:199)
at anywheresoftware.b4a.objects.collections.Map.GetValueAt(Map.java:108)
at org.xulihang.imagetrans.utils._loaddefaultapikeys(utils.java:1625)
at org.xulihang.imagetrans.utils._getprefmap(utils.java:1280)
at org.xulihang.imagetrans.utils._getpref(utils.java:1259)
at org.xulihang.imagetrans.main$ResumableSub_OCRBox.resume(main.java:11677)
at org.xulihang.imagetrans.main._ocrbox(main.java:11623)
at org.xulihang.imagetrans.main$ResumableSub_OCRButton_MouseClicked.resume(main.java:12003)
at org.xulihang.imagetrans.main._ocrbutton_mouseclicked(main.java:11845)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:93)
at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3470)
at javafx.scene.Scene$ClickGenerator.access$8100(Scene.java:3398)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3766)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:410)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433)
at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
at com.sun.glass.ui.View.notifyMouse(View.java:941)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Unknown Source)
I fix this issue by having a backup folder of ImageTrans and just replace my current ImageTrans Folder with the backup. It seems that when you remove your custom Api, the program doesn't go back to the default Api that you have set which for some reason breaks everything.
https://developers.naver.com/apps/#/myapps/kbne68t22o2oxse4X86F/overview
when I use papago translate
I found papago OCR can you add ??
HI,
I'm having an issue with using Tesseract as the OCR engine. I've successfully used ocrspace but when I use tesseract no translation has occurred.
It could be the external Tesseract setup, is there additional debug logging that I can enable?
To reproduce:
It would be nice if you could input the text size directly with numbers rather than needing to click the up/down arrows.
Applies to pretty much anywhere text size is specified.
error: (NullPointerException) java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
at org.xulihang.imagetrans.project._import(project.java:286)
at org.xulihang.imagetrans.main$ResumableSub_MenuBar1_Action.resume(main.java:5328)
at org.xulihang.imagetrans.main._menubar1_action(main.java:4904)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Unknown Source)
Hey, I bought the program yesterday, and I everything was going smoothly, up until 30 minutes ago that is. I wanted to start a new project, and when I clicked to import pictures from a folder I got a error code.
This is the error code I got: error: java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
at org.xulihang.imagetrans.project._getdirpath(project.java:223)
at org.xulihang.imagetrans.main$ResumableSub_MenuBar1_Action.resume(main.java:9834)
at org.xulihang.imagetrans.main._menubar1_action(main.java:9325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
It does make sense that ocr batch will skip all text areas that have already been ocred, but it does so as well for every area that has gotten a null result which is a big problem if you use ocr with a daily limit. The only way right now for that to not happen is to use only offline ocr all the time so that you don't get a null result to begin with.
It would be nice if the program were to present a dialog box asking wheter the user would like to close the current project when they try to open a new one without having closed the current one, instead of simply displaying a message.
Also I just noticed that for whatever reason this doesn't apply to open recent.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.