Closed UmeshBaldaniya46 closed 3 years ago
Hello everyone, is there any update regarding above issue? I am facing same issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug Create new sample project add tesseract-ocr & image-picker. Add eng.traineddata file in to assets folder, and try to run
Getting error like Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 14659 (Thread-5), pid 14527 (.awesomeproject),
I have done google for that, They said you are update UI from BG thread. but i did not do any thing, i have just copy code from your sample project.
Dependencies (please complete the following information):
Screenshots![Screenshot 2020-10-06 at 5 59 25 PM](https://user-images.githubusercontent.com/27193416/95202032-63a86500-07fe-11eb-907d-197b7902f524.png)
Smartphone (please complete the following information):
Additional context I have try in other system as well but same result.
CODE `const [isLoading, setIsLoading] = useState(false); const [progress, setProgress] = useState(0); const [imgSrc, setImgSrc] = useState(null); const [text, setText] = useState('');
const onSelectImage = () => { ImagePicker.launchImageLibrary({ storageOptions: { skipBackup: true, path: 'images', }, }, async (response) => { console.log('Response == ', response);
}
useEventListener('onProgressChange', (p) => { setProgress(p.percent / 100); });
const recognizeTextFromImage = async (path) => { setIsLoading(true);
};`
` return ( <>