Step #2: Build the Bookreader




Since we wanted to use the Raspberry Pi camera, the BrickPi and Raspberry Pi setup had to be placed above the book to get a good picture of the page. The structure that we ended up with looks a bit like a lean AT-AT walker from Star Wars.
The Camera is Placed Squarely Above the book.
In our example, we used the Lego Mindstorms EV3 kit.

The trickiest part of setup lies with the motor connected to the wheel. The motor is not fixed to the platform, but can rotate freely from the point that it is connected to the platform. This is important because it keeps the pages pressed down so that the wheels can get a grip on the page. Another important thing to do is to rotate the wheel only for the time it takes for one page to come out of the wheel, then rotate the wheel back so that any extra pages that might have been pulled up are brought down.
A closer look at the page turning mechanism.
In the Dexter Industries Github Code Repository, there is a test code called arm⎽test.py to help you calibrate the arm for perfect movement. Connect the motor to Port A of BrickPi and change the values of ‘speed⎽roller’, 'speed_arm, 't1' and ’t2’, until you get flawless movement of your book pages.
Step #3: Set Up the Camera



Raspberry Pi Camera mounted with Lego.
The Raspberry Pi camera packs a lot of punch: there are a lot of options; it’s easy to set up; and the image quality is acceptable for our project. We held it in place by pinching it between two Lego Technic beams in the previous section.
After connecting the camera, there is one more thing to do: change the focus of the Raspberry Pi camera. The camera comes with its focus fixed at infinity, and since it is a fixed focus camera, you have to manually change it. Here are two helpful links to do focus the camera:
After setting up the camera, take a test image to see that it is properly focused. In the rig we built, we have the camera about 10 inches above the book. (You may need to adjust the height depending on your book size.)
To take a test picture, simply run "raspistill -o image.jpg"
Take a few test images to check if the images are clear and the whole page is captured. If the camera is initialized properly you’ll see a new file image.jpg in your present folder. Open it to see the image.
You may need to readjust the focus of the camera and angle at this point.
Step #4: Set Up the Text To Speech Software

First we'll setup the Text-To-Speech engine (TTS). TTS takes text data and reads it aloud. In our project, we use eSpeak. The voice is robotic, but using eSpeak, we can select a few accents and choose the gender of our reader.
First, test if the audio is working on the Raspberry Pi. Plug a headphone or speakers in the audio jack and run the following command:
aplay /usr/share/sounds/alsa/*
If you are able to hear the sounds, move to the next step. If not, this tutorial may help you set up the audio.
Now, install eSpeak. Run the following in terminal:
sudo apt-get install espeak
After it is successfully installed, run the following command (disregard any error messages on the terminal if you can hear sound):
espeak “hello”
If you are able to hear “hello” from the headphones or the speakers, move to the next step.
Step #5: Setup the Optical Character Recognition (OCR) Engine

Optical Character Recognition is really cool; it can read a picture of text, and turn it into text on the computer. We chose Tesseract OCR Engine. It runs smoothly on the Pi, it does not require an online connection, and it reliably converts images to text.
First, install tesseract:
sudo apt-get install tesseract-ocr
Next, test the OCR engine. Take a good image of a piece of text and run tesseract:
tesseract image.jpg o
Image.jpg is the image which was taken by the raspberry pi camera and o is the file in which the text will be saved (tesseract will make it o.txt, so no need to add the extension).
Now, wait. The OCR takes a lot of processing power. When the Pi is done processing, open o.txt. If the OCR did not detect anything at all, you can try rotating the image and running the tesseract again.
Step #6: Put it All Together: Digitize a Book

With the camera, software, and platform working it is now time to bring the Bookreader to life.

Download the program bookreader.py from the BrickPi GitHub Python Repo and put it in the directory where you have the BrickPi.py library. Run the code to bring it to life:
sudo bookreader.py
And start digitizing the worlds millions of books!
Like the Bookreader project? The BrickPi is an opensource hardware and software project. You can contribute to the GitHub repository for the BrickPi and make it better!
accept only Bank transfers, MoneyGram, WesternUnion etc. (Old or 0day):
http://0daymusic.org
42TB File Storage (199x-2015) mp3
No Waiting Time, No captcha,No Speed Limit, No Ads.
Never Deleted Original Albums, Save Time And Money.
Updated On Daily: 5GB-15GB, 100-200 0-day WEB, Promo, CD, CDA, CDM, CDR, CDS, Vinyl…
All Genre: House, Techno, Trance, Dance, Italo-Dance, Drum and Bass, Psychedelic, House, Progressive House, Electro, Tech House, Dutch House, Minimal, Deep-House, Nu-Disco, Hardstyle, Hardcore, Jumpstyle, Electronic, Pop, Rock, Metal, R&B, Hip-Hop etc.
Easy to use: Most of genres are sorted by days.
Account delivery time: 1 to 24 hours.
Hello,
This is a fascinating project and well done indeed for sharing it
with us.
I cannot help thinking, though, that using Lego may make the structure
unstable. I may well be wrong and I am very open to correction.
I personally would have like to have seen a metal construction (Meccano , etc)
rather than plastic.
I can appreciate your wish for a more stable structure, but why not simply anchor the lego structure to a weighted platform? Just a thought. Have a good day.
It is the complete Lego structure that I am concerned about.
Looks a bit fragile.
Oh, Okay. Do you think a little airplane glue to cement the lego bits together would help?
Can someone please give me the designer files to build the book reader .. I am unable to determine the required lego parts for building this book reader structure.. Waiting Anxiously For Positive Reply …
My Email : hashimsyed01@gmail.com
@@nigel_trewartha:disqus @@jim_mike:disqus