Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 20 Apr 2014, 23:17
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Peasyscan Image Scanner Program
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Fri 26 Nov 2010, 12:16    Post subject:  

If you comment out the epson and epson2 entries in /etc/sane.d/dll.conf, you should just get the epkowa driver.

Peasyscan generates some large, temporary PNM image files in /root. They are deleted when the program terminates. Maybe they should be placed elsewhere.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 26 Nov 2010, 13:27    Post subject:  

Yes thanks, I remember that now from our previous discussion.
Maybe that pnm file should be put in /tmp.
When scanning in color it can grow a lot.

Even resizing the scan area did work.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Fri 26 Nov 2010, 13:37    Post subject:  

Thanks for taking the time to test this.

Peasyscan has now been tested successfully with five major scanner manufacturers - HP, Canon, Epson, Lexmark and Brother. I am still looking for test results on some of the lesser-known brands.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Tue 07 Dec 2010, 14:21    Post subject:  

Peasyscan has been updated to v1.3.1 to fix a problem with overlapping windows.
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2385
Location: Japan

PostPosted: Mon 10 Jan 2011, 03:47    Post subject: On the user interface
Subject description: my thought
 

Great work, rcrsn51!
Your peasyscan is much smaller than Xsane and promising.
I have some requests to brash up the user interface,

1. Working directory
Your peasyscan uses /root directory as the working directory.
Can we choose the working directory under /mnt/home or somewhere?
Or, we can set the working directory at the same directory of the final save place.
Why not /tmp as the default working directory?
Sometime the work files were left at /root. It they are under the /tmp, they will be erased at shutdown.

2. Default saving image file name
I suppose it will be convenient if the image file name is preset, like '/root/my-documents/clipart' or somewhere.
Keeping the last used file name is more nice.

3. Control window hierarchy
What i am confused is the hierarchy of the GUI windows.
The first window has 4 buttons, Reset/Scan/Save/Quit.
The second window has 3 buttons, Preview/Scan/Done.

The first 'Quit' button only closes the first window but the second windows remains.

Click the first 'Scan', then click the second 'Scan', and back to the first, click 'Save', ok saved.
Click the second 'Done' and click the first 'Quit', ok all closed.
Somewhat wired...

CAN WE MAKE THE TWO IN ONE WINDOW like as the attached?

4. 'Done' button and showing image
Click the first 'Scan', then click the second 'Scan', and click the second 'Done', then the image is shown.
If this is for checking the scan, it is strange because the second window is already closed.
I need to back the first window and click 'Scan' to restart the second window.
The 'exit' at the menu bar of the second window seems the same as the 'Done' button.

Small thing: you are converting .pnm into .png to show, but you need not to do so. The viewnior can display .pnm files.

Please consider for the future version.
Hope you keeping the great job.
peasy_gui.png
 Description   Can the first save window be integrated in the second scan window?
 Filesize   7.6 KB
 Viewed   884 Time(s)

peasy_gui.png


_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Mon 10 Jan 2011, 13:37    Post subject:  

Quote:
Your peasyscan uses /root directory as the working directory.

The xscanimage back end uses /root as its default save path. To change it to something like /tmp would require messing even more with its source code. The original xscanimage lets you select a save path, but that is hidden in xscanimage-peasy. Maybe I'll look at that again.

As long as the program is terminated correctly, the temporary work files in /root will always be deleted.

I appreciate the confusion between "Quit" and "Done." "Done" is used to gracefully close the xscanimage window and send control back to the main window. "Quit" terminates the whole program. If you watch the flash video, you will see this in action.

Your screenie shows a "Save" button, but it is not needed by xscanimage. As soon as you click Scan, the raw pnm data is saved to /root/out.pnm.

Is your screenie just a mock-up or have you written the actual C code to generate it?

Thank you for the tip about viewnior displaying pnm files. However, if someone changed their default image viewer to another program, they might lose that ability and the preview function would be broken.
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2385
Location: Japan

PostPosted: Mon 10 Jan 2011, 17:52    Post subject: Showing scanned image  

Thanks for the reply, rcrsn!

rcrsn51 wrote:
Is your screenie just a mock-up or have you written the actual C code to generate it?

Its my artwork using gimp Wink

I saw the flash. It shows the scanned image right after the scanning has been completed.
But the peasyscan-1.3.1 doesn't show the image after the scan.
The image is shown after i click the 'Done' button. Question
This is one issue i wonder.

Suppose the peasyscan shows the scanned image right after the scanning has been completed.
I may have no idea to click the 'Done' button at this point of time.
I would like to save the image to the final place.
So, i look for the 'save' button and find it at the previous window...
This is the second issue i confused.

My idea in my previous post is to place the 'Save' button on the second window. Then i though the first windows can be integrated in the second, we can call it the main window.
In my idea, the 'Save' button on the second, our new 'main' window, moves the scanned image to the chosen final place with the chosen format. The work files are to be removed right after the save is completed.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Mon 10 Jan 2011, 18:09    Post subject:  

I am working on a new version that puts the out.pnm file in /tmp.

The second window is produced by the program xscanimage-peasy whose source code is C. It has already been altered slightly from the original xscanimage code. What you are suggesting makes sense, but I am not a good enough C programmer to implement it.

There is another issue. The content of the second window is not fixed. It varies depending on the sane backend of the particular scanner. For example, my HP scanner only shows Scan Mode and Resolution. So it would be difficult to lay out a window like you have in your screenie.

But I agree that the current labels on the buttons are confusing.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Mon 10 Jan 2011, 20:33    Post subject:  

Peasyscan 1.4 is now posted above.
Back to top
View user's profile Send private message 
charlie6

Joined: 30 Jun 2008
Posts: 937
Location: South of Belgium

PostPosted: Sun 20 Feb 2011, 05:10    Post subject:
Subject description: peasyscan on Canon pixma MP160
 

Hi rscrn51,
I much appreciate peasyscan for its simplicity, thanX for it !
Testing it on wary504 in live-cd session:
The USB scanner Canon Pixma seems to be recognized as 'Pixma' is displayed in the top of the peasyscan GUI; the scanner scans the document;
no data is transferred from scanner; file out.pnm is empty (data transfer display keeps awaiting for datas)
So I believe something is missing to transfer the datas from scanner to PC.
Is there some specific driver to install?

Thanks for any answer
Cheers
Charlie
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Sun 20 Feb 2011, 10:35    Post subject:
Subject description: peasyscan on Canon pixma MP160
 

charlie6 wrote:
Is there some specific driver to install?

Which driver are you using? Does Xsane work?

I tested my Canon MP490 in Wary 504 using the pixma-backend-quirky-1.0.21 from here and it worked fine. But I know that your MP160 has been problematic.

Also, I had some strange behaviours with printer/scanners if the unit was already turned on when Wary booted up.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Thu 30 Jun 2011, 22:52    Post subject:  

Here is the 64-bit version of Tesseract 3.0 OCR. You can use the same language packages, like tesseract_eng-3.00.pet above, that work with the 32-bit version.
tesseract_fd64-3.00.pet
Description 
pet

 Download 
Filename  tesseract_fd64-3.00.pet 
Filesize  1.18 MB 
Downloaded  488 Time(s) 
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 1876
Location: The Blue Marble

PostPosted: Fri 01 Jul 2011, 21:21    Post subject:  

Thank you for compiling tesseract. I'll give it a try.

cheers!

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8558
Location: Stratford, Ontario

PostPosted: Tue 09 Aug 2011, 00:07    Post subject:  

Peasyscan v1.5 is now available. See the top of this thread.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Mon 26 Sep 2011, 08:13    Post subject:  

Just for the record : peasyscan1.4 that is delivered with the new wary-racy detects my scanner epson2.conf
but segfaults both while preview and scan .

Then I started xsane0.997 which could scan preview and scan .

Then I installed peasyscan1.6 and now it does not even detect my scanner . I am still getting a bunch of :

[11974.994697] ppdev: user-space parallel port driver
[11998.975636] usb 1-2: new full speed USB device number 7 using uhci_hcd
[11999.133762] usb 1-2: New USB device found, idVendor=04b8, idProduct=0851
[11999.133769] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11999.133774] usb 1-2: Product: USB2.0 MFP
[11999.133777] usb 1-2: Manufacturer: EPSON
[11999.133780] usb 1-2: SerialNumber: 4C4447593131313575
[11999.161384] scsi8 : usb-storage 1-2:1.2
[11999.163105] usb-storage: device found at 7
[11999.163112] usb-storage: waiting for device to settle before scanning
[11999.784501] usblp0: USB Bidirectional printer dev 7 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0851
[11999.787237] usbcore: registered new interface driver usblp
[12000.166611] scsi 8:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
[12000.190657] sd 8:0:0:0: [sdd] Attached SCSI removable disk
[12000.191474] usb-storage: device scan complete
[12016.126410] usb 1-2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
[12040.474564] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12042.684236] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12100.944689] xscanimage-peas[5496]: segfault at 50 ip 08054c7b sp bfe1b484 error 4 in xscanimage-peasy[8048000+12000]
[12125.288912] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12127.374444] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12148.264869] xscanimage-peas[6943]: segfault at 50 ip 08054c7b sp bfeab6f4 error 4 in xscanimage-peasy[8048000+12000]
[12156.836415] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12159.041986] usb 1-2: usbfs: interface 1 claimed by usblp while 'xscanimage-peas' sets config #1
[12162.602962] xscanimage-peas[7484]: segfault at 50 ip 08054c7b sp bfbd20c4 error 4 in xscanimage-peasy[8048000+12000]
[12212.370006] usb 1-2: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1
[12214.338053] usb 1-2: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1
[12760.630693] usb 1-2: usbfs: interface 0 claimed by usbfs while 'scanimage' sets config #1


from dmesg .

To me it indicates a bug in the xscanimage code : missing functions or wrong ordering of some arguments to functions .

As far as i can see only
./xscanimage-peasy --version
xscanimage (sane-frontends) 1.0.14 is the only compiled binary of your package .

find /usr -name "*xscanimage*"
/usr/local/peasyscan/xscanimage-peasy

is the only hit i get .

Racy Puppy 5.1.99 2.6.39.4 :
/lib/libc-2.10.1.so
libglib-2.0.so.0.2800.8
libgtk-x11-2.0.so.0.2400.5
sane-config --version 1.0.21

Will test again in RAM .
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0782s ][ Queries: 12 (0.0046s) ][ GZIP on ]