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

SpreadPi and Camera config

Johannes Baiter's Spreads and SpreadPi are the latest control systems and postprocessors for DIY scanning. http://spreads.readthedocs.org
peterZ
Posts: 17
Joined: 16 Jun 2013, 06:13
Number of books owned: 10000
Country: Australia

SpreadPi and Camera config

Post by peterZ » 13 Jun 2015, 20:33

1) How/Where is it determined what camera model SpreadPi is configured to use?

( I recall seeing some where "some file" needs to updated to use certain cameras ? )

I have tried #spread configure ... but it just gives errors and exits ...

Background
http://www.diybookscanner.org/forum/vie ... =35&t=3183

I used the file linked in post that mentions ...
" If you want to try out the Spreads-ready Raspbian build now, download it from: http://tenrec.builders/pi/archivist-1.zip "

I am trying to use 2 x Cannon G15 cameras.
Another option I thought of is to just use the exact same camera the image above is allready configured to use ....
- But HOW do I determine that ???

duerig
Posts: 360
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: SpreadPi and Camera config

Post by duerig » 13 Jun 2015, 22:01

The configuration file is in your home directory at:

~/.config/spreads/config.yaml

But the configuration file just determines what plugin it tries to use to connect to your camera (chdkptp or gphoto2). It shouldn't need to know exactly what camera you have. It will figure that out when it connects.

Try hooking up your cameras (making sure they have CHDK installed), running spread web, and seeing what happens in the console. If you can be more specific about your problem and post an error from the log file or an exception, then I might be able to help more.

-D

peterZ
Posts: 17
Joined: 16 Jun 2013, 06:13
Number of books owned: 10000
Country: Australia

Re: SpreadPi and Camera config

Post by peterZ » 13 Jun 2015, 23:08

I’m able to run the autohotkey script mentioned in another forum post and I get L and R images my PC as expected. So I believe this would show I have CHDK installed on each camera OK … etc

I have download the mentioned raspberry pi image , logged in as the pi user and invoked the command spread web.
On my Ethernet connected PC I can open the website as expected.

However I soon get a error in the web browser
Error Could not prepare capture. Target page for at least one of the devices could not be determined, please run ‘spread config’ …your devices .

I then rebooted the raspberry pi , with command sudo reboot etc

Log in again, as pi user and run command sudo spread configure , after a few seconds I get a error shown in photo ...

https://www.dropbox.com/sc/nvidlan6rm3k ... b5cb8mAHra

duerig
Posts: 360
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: SpreadPi and Camera config

Post by duerig » 14 Jun 2015, 11:39

Ah. I see your problem now. Spreads looks on the camera itself to determine which is taking pictures of odd or even pages. On each camera sd card, open it up and add a file called 'out.txt' and using notepad or something similar put 'odd' in one and 'even' in the other. I am not sure why spread configure isn't working because that should help do just this. I will take a look at that.

-D

barth
Posts: 28
Joined: 28 Sep 2014, 09:42
Number of books owned: 0
Country: Belgium

Re: SpreadPi and Camera config

Post by barth » 18 Jun 2015, 16:30

I have just installed the latest CHDK builds for Canon Powershot A810 100e cameras, and the latest Spreadpi for my Raspberry Pi Model B.
I'm running them in a standalone setup with a 3Com router that provides the LAN.
I have succesfully accessed the Spreadpi GUI, entering the startup screen and the screen to create a new workflow, but the 'submit' button bottom left on the screen doesn't react to clicking it.
Pressing the footpedal doesn't do anything either. The Pi's IP does appear on the camera display so it would seem they are connected, but they command to start a new workflow doesn't seem to reach them.
This appears both when Spreads is accessed via Iceweasle/Debian and via Chrome/Windows8
I've had this problem before but then I was able to solve it by right-clicking on the button and going to the target url 'manually', but now that doesn't work either, the 'Submit' button acts dead.
Can this be attributed to Spreads not knowing which camera is odd and which is even or could there be another cause?

duerig
Posts: 360
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: SpreadPi and Camera config

Post by duerig » 18 Jun 2015, 19:05

Barth, I think your problem is different. If it can't tell which is which, it pops up an error message saying so. In this case you are probably triggering an exception in the JS UI for some reason, and also possibly a problem in the backend.

As a start, open up your javascript console in Chrome and see what happens there when you click submit. Let me know what it says.

You can also click on the log file icon in the upper right to see logs there or log in and see ~/.config/spreads/* to see the configuration and the log file. If there is anything interesting there, post it.

Once I see the logs and console output, I can probably do more to help.

-D

barth
Posts: 28
Joined: 28 Sep 2014, 09:42
Number of books owned: 0
Country: Belgium

Re: SpreadPi and Camera config

Post by barth » 19 Jun 2015, 05:59

Thanks for your input. I don't have much knowledge of programming or Javascript or open source but I'll try and figure out what you mean and come up with the logfiles when I can.

duerig
Posts: 360
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: SpreadPi and Camera config

Post by duerig » 19 Jun 2015, 12:39

barth, the first thing to do is to try to hit submit like you intended using Chrome/Chromium. Then type Ctrl-Shift-J and then take a screenshot. If I can see that screenshot, I will have enough to look further.

-D

barth
Posts: 28
Joined: 28 Sep 2014, 09:42
Number of books owned: 0
Country: Belgium

Re: SpreadPi and Camera config

Post by barth » 20 Jun 2015, 16:35

Schermopname (10).png
Thank you for teaching me this. Logfiles and screenshot included
There was also information given on the Pi screen but I'm going to have to post that later

barth
Posts: 28
Joined: 28 Sep 2014, 09:42
Number of books owned: 0
Country: Belgium

Re: SpreadPi and Camera config

Post by barth » 20 Jun 2015, 16:52

Message on Pi screen: [ 96.75004044] Transfer to device 6 endpoint 0x1 frame 1806 failed - FIQ reported NYET. DAta may have been lost
Seems like the Pi is 'losing touch' with the cameras at some point

Rebooting the Pi via Spreads didn't change anything.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest