|
|
|
Show HN: Extract code from image snippets with Code OCR App
(code-ocr-app.vercel.app)
|
|
2 points
by rifkyniyas
1057 days ago
|
|
Hi folks, ever found an interesting code snippet online and ended up manually typing it all out? Frustrating indeed. So I decided to make the Code OCR App. You can now extract the code from any image snippet with just three clicks.
1- Upload your desired file
2- Crop and adjust the image to include only the desired text portion.
3- Once extracted, simply copy and start using in your project right away! The text extraction is currently powered by tesseract.js so there might be inaccuracies in the extracted text. There are few other limitations as well which I am working on for a fix. Check out the app and do let me know of your thoughts. Your feedbacks are highly appreciated. |
|
one problem: the cropping cut off half the code sample I uploaded. not sure if that was due to the size of the image, the app didn't explain, but if cropping is not require don't require, if it is required explain why.
I did not realize there was a lot of code trapped in images either, it seems like there is a lot of formatted code support as raw text