Em seg., 25 de jan. de 2021 às 04:35, Alexander Pevzner <[email protected]> escreveu:
> On 1/25/21 2:49 AM, Thiago Milczarek Sayão wrote: > > > Some observations: > > 1 - I have limited it to work with 1 Frame only. Would be nice to have > > an API where sane manages multi-frame situations; > > This is about SANE options. You can choose input source from Flatbad/ADF > simplex/ADF duplex list. In the ADF mode, a sequence of > sane_start/sane_read operations will scan and return all images from the > ADF. > > There is no way to scan only a single page from the ADF (i.e., once > started, scaning will not stop, even if you will not issue next > sane_start to obtain the next page). > > I mean, by my understanding a frame could be also only RED, or GREEN or BLUE and in this case I need to create an image of this composition. I have just ignored it as I am using modern scanners. > I will guide you through SANE options, once we will get basic > functionality working. > > > 2 - Sane is very easy, the difficult part is to convert the received > > bytes onto an image. Would also be nice to convert the code on > > scanimage.c to an API call; > > What do you want to get in result, image file in some standard (say > JPEG/PNG format), or Java image object? > I took a peek at jfreesane project and converted it in the Java side, but I have noticed that all the code is on scanimage.c. Would be nice if there is a sane api to get an image in a specific format instead of a "raw" one. > > > Note: > > I got it working with the Ricoh driver, will try to connect with an > > apple device and wireshark it > > It would be very nice. > > You also can try VueScan for Linux > (https://www.hamrick.com/linux-scanner-software.html). VueScan may > choose to use eSCL, and it leaves full protocol trace in the > .vuescan/vuescan.log file. > > I can't believe that eSCL implementation is totally broken on Ricoh, so > probably I just miss some nuances. Looking to working implementation's > trace could help. > > I will follow up on that. Tried the software on an iPad but with no success (I don't own any other mac device). Will try VueScan. I have also contacted the company that provides the hardware for us, maybe they can help. > -- > > Wishes, Alexander Pevzner ([email protected]) >
