![](https://i0.wp.com/blog.baowebdev.com/wp-content/uploads/2019/04/Helium_discharge_tube-1024x684.jpg?resize=512%2C342&ssl=1)
Why?
Amazon doesn’t allow sharing long passages from the Kindle app past a certain limit.
What?
- Enable capturing long passages from Kindle app.
- Use native screenshot feature of phones to capture passages.
- Parse passages from screenshots.
- Share to social media.
Strengths
- Robust because screenshot feature exists on most phones.
Weaknesses
- Parsing passages from screenshots is a hard computer vision problem.
Opportunities
- Cognitive Services can be used to solve the computer vision problem.
- Competitors like Liner cannot extract passages from Kindle app.
- OneShot for iPhone App doesn’t exist anymore.
Threats
- Amazon may shut it down.
Development Environment
How to Setup a LAMP Development Environment
Restore Dependencies
Prototype
Use Native Screenshot Feature of Phones to Capture Passages
Use form to upload image.
![Image Upload](https://i0.wp.com/blog.baowebdev.com/wp-content/uploads/2019/04/image-1.png?resize=321%2C29&ssl=1)
Parse Passages From Screenshots
Build the request and send it. Print out the parsed text alongside the image and raw response to enable validation.
![Print text, image, and response](https://i0.wp.com/blog.baowebdev.com/wp-content/uploads/2019/04/image-4-1024x495.png?resize=640%2C309&ssl=1)
The pictures variable references the input element with the same name.
The tmp_name variable references the path where the file is temporarily stored.
Build the Request
Replace <Subscription Key> with your Cognitive Services subscription key.
Use file_get_contents to get the raw file data. Use application/octet-stream as the request Content-Type to send raw file data.
Print the Passages
Print the Image
Render the image using data:image/jpeg;base64 encoding so we don’t have to permanently store the image on the server.
Further Work
- Draw bounding box outlines.
- Format paragraphs.
- Support sharing.
- Support multiple screenshots.
- Host the tool as a service.
- SEO.
- AdSense.
![Image result for south park underpants gnomes business plan](https://i0.wp.com/cdn-images-1.medium.com/max/1280/1*oaJlY6rLTVKnCCwrjCItMA.jpeg?resize=640%2C360&ssl=1)
Works Cited
Clean up your local branches after merge and delete in GitHub
Composer – Installation – Linux / Unix / macOS
https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos
You must log in to post a comment.