Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

a small story for my scanner

Built a scanner? Started to build a scanner? Record your progress here. Doesn't need to be a whole scanner - triggers and other parts are fine. Commercial scanners are fine too.
Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 25 Aug 2017, 09:41

Code: Select all

[size=85]Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

OriginalFolder = D:\ebookscanner\17-7-21\teckthought\experiment\original
ShortcutFolder = D:\ebookscanner\17-7-21\teckthought\experiment\shortcutsoriginal

Return	
; End of the autoexecute section.

#IfWinActive, shortcutsoriginal ahk_exe Explorer.exe
^0::	; Press Ctrl + 0 to open the original picture.
	FirstBackSlashPos := 0
	
	SEND, ^c	; Copy the picture's filepath.
	
	StringGetPos, FirstBackSlashPos, Clipboard, \, R	; Get the position of the first right side backslash.
	StringRight, FileName, Clipboard, % StrLen(Clipboard) - FirstBackSlashPos	; Get the characters on the right side of this backslash (including the backslash).
	
	Run, % OriginalFolder . FileName	; Open the Original file.
Return

; ‘Original’ in this WinTitle seems to be casesensitive.
#IfWinActive, original ahk_exe Explorer.exe
$Delete::
	FirstBackSlashPos := 0
	
	SEND, ^c	; Copy the selected file.
	
	StringGetPos, FirstBackSlashPos, Clipboard, \, R	; Get the position of the first right side backslash.
	StringRight, FileName, Clipboard, % StrLen(Clipboard) - FirstBackSlashPos	; Get the characters on the right side of this backslash (including the backslash).
	
	MsgBox, 4, Delete shortcut?, Do you want to delete the shortcut (%ShortcutFolder%%FileName%) and the original file?
	IfMsgBox, Yes
	{
		FileDelete, % ShortcutFolder . FileName	; Delete the shortcut file.
		SEND, {Delete}	; Command Windows to delete the selected file.
		
		WinWaitActive, ahk_class #32770 ahk_exe explorer.exe, , 2
		If ErrorLevel
			Return
		SEND, {Enter}	; Dismiss the MsgBox from Windows by pressing Yes: Delete selected file.
	} Else {
		SEND, {Delete}	; Command to delete the selected file.
	}
	Return

#IfWinActive[/size]

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 25 Aug 2017, 10:04

i tried it on delete part didn't work . this autohotkey part is more important having 2 folders with same filenames and if delete one in a folder delete and the one from the other .

example
Originals folder filename a-0001, a-0002, a-0003, a-...
Shortcuts folder filename a-0001, a-0002, a-0003, a-...

if i delete filename a-0003 in Originals folder autodelete in Shortcuts folder and if i delete filename a-0003 in Shortcuts folder auto-delete in Originals folder .

the part auto-open is no more necessary cause i check in shortcuts folder if some pages are double or missed and i have open windows viewer for originals images so i go to the filename and delete or take note from the missed page and then i delete and the shortcut file.

dtic
Posts: 461
Joined: 06 Mar 2010, 18:03

Re: a small story for my scanner

Post by dtic » 26 Aug 2017, 09:17

having 2 folders with same filenames and if delete one in a folder delete and the one from the other
How about this

Code: Select all

OriginalFolder = D:\ebookscanner\17-7-21\teckthought\experiment\original
ShortcutFolder = D:\ebookscanner\17-7-21\teckthought\experiment\shortcutsoriginal

#IfWinActive, shortcutsoriginal ahk_exe Explorer.exe
Delete:
#IfWinActive, original ahk_exe Explorer.exe
Delete::
clipboard =
send, ^c
clipwait
if !clipboard
 return
;get only first file in the selection
Loop, Parse, clipboard, `n, `r
{
 FirstFullPath := A_LoopField
 break
}
Splitpath, FirstFullPath, FileName
MsgBox, 4, Delete these files?`n%ShortcutFolder%\%FileName%`n%OriginalFolder%\%FileName%
IfMsgBox, Yes
{
FileDelete, % OriginalFolder "\" FileName
FileDelete, % ShortcutFolder "\" FileName
}
return
#IfWinActive
You might want to change the folder names to something more unique to avoid triggering the script when you're in any other folder named "original".

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 11 Sep 2017, 12:33

thanks mohib . cost almost 25 euro without the smartphone .works with blutton trigger for more than 4.2.4 android Image

the part i used is from an old dvd some tubes that i found on a rubbish and brooms . i use the black button to trigger with Bluetooth the camera.

Image

and this one to check the best distance for smartphone and camera Image

the results with a 2 camera diybookscanner . i use chdk canon camera a3300 with electric trigger i can reach 1500 pages per hour 1 minute to start with autosettings and no errors . i have made a wooden base to have it in my fridge cause it took much space in my home. so i scan upstanding in a chair .with the electronic splitter i can have the best possible zoom cause camera give liveview in tv and can see where is the centre of the context.more zoom more dpi in specific distance better ocr and better result to read in a jailbreak ebook with Koreader .it is a very friendly scanner in using. once i scanned 5 books in 3 hours and dindt missed more than 10 pages with this one.
Image

i use abbyfinereader suggestion in process to verify if the results are fine
this page is 360 dpi and suggested from abbyfinereader 560 .captured with canon a3300 16mp in 2camera diybookscanner
Image

this page is 330 dpi ,abbyfinereader suggestion gives 530 .captured with mohibs scanner with an lg g3 13 mp. with better light the results can be better
Image

i think that this one is more accessible although i dint try to scan with this one i dont think that is as friendly as 2 camera scanner . but it need much less electronics ,triggers and parts from the online market .and the market is not with stocks. good or not i believe the smartphones are the feature in diybooksanner Image

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 17 Sep 2017, 06:08

https://www.youtube.com/watch?v=8XEGk_W7du0 1.58
i will try to make some more designs with that thing

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 04 Oct 2017, 11:34

A box scanner from Mohib design
costs boxes u can find them
plexiglass 13 euro
sticks u need 1 euro for each one i used 3

Image

i used something from old DVD drive u can find with 1,2 euro or even free in pc parts store or in hackerspaces
Image

from behind
Image

A stick scanner from Mohib design .
A 20 stick for brush this think is very stable and can go in any high that i want Image

i used 2 sticks to make it more stable Image

Image

Image

Image

didn't try them yet .for a beginner i suggest the scanner from sticks due to the stability and u can take it anywhere.

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 04 Oct 2017, 12:32

i will make some tutorials when i can on how to make it

dpc
Posts: 304
Joined: 01 Apr 2011, 18:05
Number of books owned: 0
Location: Issaquah, WA

Re: a small story for my scanner

Post by dpc » 04 Oct 2017, 14:36

In the photo you posted, the camera is casting a large shadow across the page due to the light source being over the camera. I'm assuming that for scanning you place the light elsewhere to prevent this?

If you post additional photos, can you you include a shot of the scanner with the light in the position that you use when scanning?

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 04 Oct 2017, 15:18

actually i dont have test it yet . but i will when i have a better smartphone

Konos93a
Posts: 128
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: a small story for my scanner

Post by Konos93a » 04 Oct 2017, 18:10

the tool i used
Image

Post Reply