Open jinhan1414 opened 3 years ago
当文字背景是透明的时候,无法识别 换成非透明背景的图片,可以正常的识别
透明背景的图片: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAYAAABkDeOuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGSSURBVGhD7ZWBjcMgDEUzXge6cW6XW6WbtPwKo+LaxiRGcCpPQlX58Tc2hByMR/7V+HZ9E8XqOz1b33hZfSdn65soUqd/0ng0xi0NEW2eMHT4IrfJbH/Obwq4I0gIRLI/RbsCPF3FnCTGXwiGcTk5TEcTq1PFdID4sihBr8jPohCxGP6f49Av+bfQTg5OnKa9UzXLARUhFhPAOH/DDMnUu4pIutksNk/PwtdVTKce7u/Be6qA92ThGfJ0F9NBvH8rOOsfdxUhzFXNkmIyWDzpajH8P8fQQ/x7QQLr64hFeMZ7PG++Vgwaz32kwdfn9b+GYIbEeA1fWitZ0s3XMM3Dq/hl3MU49KH+Fmd2xGoW/KRTGrXzY/0bwdghJFGfE+atO4v8WqMUjGHB9HD/HujO6DE1X0OFqJOlMcafmdFOlPlWsqS37iwJdzEn9TB/DUpQNWsQ/+NkGcGuZhnxL5w6ikAe/hWb7t9Ds1kXoTuRj4+iTjLWv2Xw7frGy+o7OVvfRLH6Ts/WN15W38nZ+sbHcTwBEJAnE/zLG8UAAAAASUVORK5CYII=
非透明配置的图片: data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2OTApLCBkZWZhdWx0IHF1YWxpdHkK/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyM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SSx6AKAST1OAOgJ6A1BFrk+4te6JfafaorPLdXU1sIolUEksVlJA464+uBzXjXxbluPEHh638TO00enC9+y6XC8Ij8yFomZ52zljvZBtB2/KoOPmzTwmD9pWUKrsvKz3vZLVrp8lr2CUrK6PfaKKK4CwrkLfSNZ/4W1da1cQQf2V/ZItLaaN/mz5iuVcE53Z3nIGMbe+a6+itaVZ0uay+JNffb/ITVwrH0Lwzp+geGYvD8Ie5sY1kQrdbXLq7MzBsAAj5iMY6VsUVCnJLlT0A8q+JvgRtT0q2sfCvhW2juVnWaS6t0t4F2bXUpncrE5KnGMdOcivSNIihg0uGODS/wCy4hu22e2NfL+Y9oyV568HvzzmrtFdNXGVKtKNKetm3e7e/q2v68xKKTuMmhiuYJIJ4klhlUpJHIoZXUjBBB4II7V5b8TfAjanpVtY+FfCttHcrOs0l1bpbwLs2upTO5WJyVOMY6c5Feq0VOFxdTDVFOD26XaXzs1cJRUlZlLSIoYNLhjg0v8AsuIbttntjXy/mPaMleevB7885q7RRWEpc0m31KP/2Q==
请问是什么模型,什么版本,您的用法是?
用的是在线的测试:https://www.paddlepaddle.org.cn/hub/scene/ocr 应该是这个模型chinese_ocr_db_crnn_mobile
当文字背景是透明的时候,无法识别 换成非透明背景的图片,可以正常的识别
透明背景的图片: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAYAAABkDeOuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGSSURBVGhD7ZWBjcMgDEUzXge6cW6XW6WbtPwKo+LaxiRGcCpPQlX58Tc2hByMR/7V+HZ9E8XqOz1b33hZfSdn65soUqd/0ng0xi0NEW2eMHT4IrfJbH/Obwq4I0gIRLI/RbsCPF3FnCTGXwiGcTk5TEcTq1PFdID4sihBr8jPohCxGP6f49Av+bfQTg5OnKa9UzXLARUhFhPAOH/DDMnUu4pIutksNk/PwtdVTKce7u/Be6qA92ThGfJ0F9NBvH8rOOs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