تخطَّ إلى المحتوى

مسح ضوئي إلى PDF

صوّر مستندًا واحصل على ملف يُقرأ كأنه ممسوح ضوئيًا.

تتم المعالجة على جهازك

تعمل هذه الأداة داخل متصفحك بالكامل. لا يُرفع ملفك أبدًا، ويمكنك التحقق من ذلك في تبويب الشبكة بمتصفحك. تحقّق بنفسك: افتح تبويب الشبكة في متصفحك وراقب. سترى طلبًا صغيرًا واحدًا يسأل إن كان لديك مهام متبقية — اسم أداة وبصمة تجزئة، وليس الملف أبدًا.

ماذا تفعل هذه الأداة

Most people do not own a scanner and everybody owns a camera, but a photograph of a page is not a scan. This closes that gap in four steps: the page is found in the frame, the perspective is flattened, the text is straightened, and the image is thresholded so it reads as a document rather than as a picture of one. On a phone the camera panel captures directly; on a desktop it falls back to the file picker, because most people there are dropping photos they already took.

Use it when something has to be submitted as a scan and there is no scanner in the building: an identity document or a certificate for an application, a signed page going back to an office, a receipt for an expenses claim, or a handwritten note that has to be filed with everything else.

كيف تعمل

  1. Take the photo here, or drop photos you have already taken. Up to 100 at a time, each up to 100 MB, and every photo becomes one page in the order they are listed.
  2. Leave find the page and straighten on. A detection the tool is not confident about is discarded rather than guessed at, and the whole frame is used instead.
  3. Choose the mode. Black and white is the default and is what makes a photograph look like a scan; grayscale suits a page with photographs on it; colour keeps a stamp or a signature in its own ink.
  4. Pick the page size. A4 or Letter puts every photo on a standard sheet; Match makes each page the shape of its own photo.
  5. Turn on the searchable-text option if you will need to find or copy words later, and pick the language.
  6. Press Scan. The pages are assembled into a single PDF and the download starts.

The four steps run in that order because each depends on the one before. The document is a bright quadrilateral somewhere in a frame that also contains a desk, so its outline is detected first. A homography then maps that trapezoid back to a rectangle, which is what removes the leaning look of a photo taken at an angle. Only then is the residual rotation measured, and it is measured from the text lines rather than the page edges, because lines of text give away the true angle more reliably than a torn or shadowed edge does.

Thresholding is the step that decides whether the result is usable. A photograph has uneven lighting, so a single global threshold turns one half of the page black and blows the other half out. An adaptive threshold compares each pixel to its own neighbourhood instead, which is why a phone photo comes out looking like a scan rather than like a photocopy of a shadow. It is also why black and white is the default rather than an option for the brave.

The mode chooses the encoding as well as the look, and that is where the file size goes. A thresholded page is two colours and compresses to almost nothing as PNG, while JPEG would put ringing artefacts around every letter. A grayscale or colour page is photographic and is the other way round, so those are written as JPEG at quality 0.85. A black-and-white scan is routinely several times smaller than the same page in colour.

Resolution is set in dpi and defaults to 200, which is enough for ordinary printed text. Raise it to 300 for small print, faint carbon copies or anything the recognition is struggling with. 400 stores four times the pixels of 200 and rarely reveals something the threshold at 200 had not already found, so it is worth checking one page before committing a hundred. EXIF orientation is read and applied before any of the geometry, so a photo your phone tagged sideways is not straightened into the wrong rectangle.

Recognition, when you switch it on, runs on the processed pages rather than the originals - that is the whole point of doing the image work first, because a straightened, thresholded page recognises far better than a photograph of one. The words are placed as an invisible text layer over the image, so the page looks exactly as it did and the text can be selected, searched and copied. Words the recogniser scored below 40 per cent are left out rather than added wrong, since a wrong word in a searchable document is worse than a missing one.

ما لا تستطيع هذه الأداة فعله

  • Page detection can fail on a low-contrast background, a page that runs off the edge of the frame, or a heavily shadowed edge. It then falls back to the whole frame and says so rather than cropping to the wrong rectangle.
  • Adaptive thresholding handles uneven light, not every kind of bad light. Hard glare, a strong reflection off glossy paper or a deep shadow across the text will still be visible in the result.
  • Capturing directly needs a camera the browser can reach and your permission to use it. On a device without one, the tool falls back to the file picker and works on photos taken elsewhere.

أسئلة يطرحها الناس

هل ألتقط الصورة هنا، أم أحتاج إلى صورة جاهزة؟
الأمران يعملان. على الهاتف أو اللوحي تُفتح لوحة الكاميرا داخل الصفحة، وتعرض إطار الصفحة المكتشَف حيًّا، وتلتقط مباشرة إلى الطابور. وعلى الحاسب، أو في أي مكان لا يستطيع المتصفح فيه الوصول إلى كاميرا، تتراجع إلى منتقي الملفات فتُفلِت صورًا التقطتها بشيء آخر. والمعالجة بعد ذلك واحدة في الحالتين.
كيف أحصل على نتيجة تبدو كمسح ضوئي حقيقي؟
افرد الصفحة مستوية، واملأ بها معظم الإطار، وأبقِ زواياها الأربع داخل الصورة كي يمكن العثور على الإطار. والإضاءة المتساوية غير المباشرة أفضل من مصباح ساطع، فالمصباح يلقي حافة ظل حادة لا تستطيع العتبة إزالتها. وتجنّب إلقاء ظلك على الصفحة، وأمسك الكاميرا موازية لها تقريبًا - فتصحيح المنظور يعالج الميل، لكن الميل الأصغر يترك أقل ليُمَدّ.
قصّت المنطقة الخطأ، أو لم تقصّ إطلاقًا. ماذا الآن؟
الاكتشاف الذي لا تثق به الأداة يُطرح عمدًا، لأن القصّ التلقائي الخاطئ أسوأ من عدمه: يُستخدم الإطار كاملًا بدلًا منه وتخبرك النتيجة بعدد الصفحات التي قُصّت. فإن قُصّت صفحة خطأً، فأعد تصويرها على خلفية تتباين مع الورق. وإن كنت قد قصصت صورك في مكان آخر أصلًا، فأوقف خيار العثور على الصفحة تمامًا.
خرج ملف PDF كبيرًا. ما الذي أغيّره؟
الوضع أولًا: الأبيض والأسود يُكتب صورة PNG بلونين وهو أصغر بكثير من الصفحة نفسها بالألوان أو بالتدرّج الرمادي. ثم الدقة: 200 نقطة/بوصة تكفي للنص العادي، و400 تخزّن أربعة أضعاف البكسلات. وإن ظل كبيرًا بعد ذلك، فمرّر النتيجة على أداة ضغط PDF.
هل أستطيع البحث في النص بعد ذلك؟
نعم، إن فعّلت التعرّف قبل التحويل. والمتاح هو الإنجليزية والإندونيسية وكلتاهما معًا. وتُكتب الكلمات المتعرَّف عليها طبقةً غير مرئية فوق صورة الصفحة، فيبدو المستند دون تغيير بينما يمكن تحديد نصه والبحث فيه ونسخه. أما الكلمات التي تقل ثقتها عن 40 بالمئة فتُحذف بدل تخمينها.
هل تُرفع صوري، وخصوصًا مع تفعيل التعرّف؟
لا، والتعرّف هو الحالة التي يسهل فيها الخطأ أكثر من غيرها. تجري معالجة الصور في عامل ويب داخل متصفحك، وتُقدَّم نواة WebAssembly الخاصة بالمتعرِّف وبيانات لغاته من مصدر هذا الموقع نفسه لا من شبكة توزيع عامة - نحو 10.9 ميجابايت للإنجليزية و3.8 ميجابايت للإندونيسية، وتُخزَّن بعد أول تشغيل. فصورة جواز سفرك لا تغادر الجهاز أبدًا.

أدوات ذات صلة