title: Ð Ð°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° ÑÐºÐ°Ð½ÐµÑÐ° ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹ Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑÐ½Ð¾Ð³Ð¾ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ "ÐÐ´Ð½Ð¾ÐºÐ»Ð°ÑÑÐ½Ð¸ÐºÐ¸" Ð¿Ð¾Ð´ ÐÐ¡ Android
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: Development of a photo scanner for the Odnoklassniki mobile application for Android OS
Creators: name: ÐÐ·ÑÑÐµÐ²Ð°, Ð¡Ð°Ð±Ð¸Ð½Ð°
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2023
Subjects: Android
Kotlin
OpenCV
ÐºÐ¾Ð¼Ð¿ÑÑÑÐµÑÐ½Ð¾Ðµ Ð·ÑÐµÐ½Ð¸Ðµ
MVVM
computer vision

description: Ð¢ÐµÐ¼Ð° Ð²ÑÐ¿ÑÑÐºÐ½Ð¾Ð¹ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÑ: Â«Ð Ð°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° ÑÐºÐ°Ð½ÐµÑÐ° ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹ Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑÐ½Ð¾Ð³Ð¾ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Â«ÐÐ´Ð½Ð¾ÐºÐ»Ð°ÑÑÐ½Ð¸ÐºÐ¸Â» Ð¿Ð¾Ð´ ÐÐ¡ AndroidÂ». Ð¦ÐµÐ»Ñ ÑÐ°Ð±Ð¾ÑÑ Ð·Ð°ÐºÐ»ÑÑÐ°ÐµÑÑÑ Ð² ÑÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ ÑÐ°Ð·Ð´ÐµÐ»Ð° Ð² Ð¼Ð¾Ð±Ð¸Ð»ÑÐ½Ð¾Ð¼ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ð¸ Â«ÐÐ´Ð½Ð¾ÐºÐ»Ð°ÑÑÐ½Ð¸ÐºÐ¸Â» Ð¿Ð¾Ð´ ÐÐ¡ Android Ð´Ð»Ñ ÑÐ´Ð¾Ð±Ð½Ð¾Ð³Ð¾ Ð¿ÐµÑÐµÐ½Ð¾ÑÐ° Ð±ÑÐ¼Ð°Ð¶Ð½ÑÑ ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹ Ð¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°ÑÐµÐ»ÐµÐ¹ Ð² ÑÐ¾ÑÐ¸Ð°Ð»ÑÐ½ÑÑ ÑÐµÑÑ. ÐÐ°Ð´Ð°ÑÐ° ÑÐ°Ð·Ð´ÐµÐ»Ð° â Ð²ÑÐ¿Ð¾Ð»Ð½Ð¸ÑÑ ÑÐ°ÑÐ¿Ð¾Ð·Ð½Ð°Ð²Ð°Ð½Ð¸Ðµ ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¸ Ð½Ð° ÑÐ½Ð¸Ð¼ÐºÐµ, ÐºÐ°Ð´ÑÐ¸ÑÐ¾Ð²Ð°ÑÑ Ð¸ Ð¸ÑÐ¿ÑÐ°Ð²Ð¸ÑÑ Ð¿ÐµÑÑÐ¿ÐµÐºÑÐ¸Ð²Ñ ÑÐ°Ðº, ÐºÐ°Ðº ÐµÑÐ»Ð¸ Ð±Ñ ÑÐ½Ð¸Ð¼Ð¾Ðº Ð±ÑÐ» Ð¾ÑÑÐºÐ°Ð½Ð¸ÑÐ¾Ð²Ð°Ð½ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ ÑÐ¿ÐµÑÐ¸Ð°Ð»ÑÐ½Ð¾Ð³Ð¾ ÑÑÑÑÐ¾Ð¹ÑÑÐ²Ð°, Ð° Ð½Ðµ ÑÐ´ÐµÐ»Ð°Ð½ Ð½Ð° ÐºÐ°Ð¼ÐµÑÑ Ð¼Ð¾Ð±Ð¸Ð»ÑÐ½Ð¾Ð³Ð¾ ÑÑÑÑÐ¾Ð¹ÑÑÐ²Ð°. Ð Ð´Ð°Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÐµ Ð¿ÑÐ¾Ð²ÐµÐ´ÐµÐ½ Ð°Ð½Ð°Ð»Ð¸Ð· Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ð¹-Ð°Ð½Ð°Ð»Ð¾Ð³Ð¾Ð², Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÐµÐ¼ÑÑ Ð´Ð»Ñ ÑÐºÐ°Ð½Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹ Ð¸ Ð´Ð¾ÐºÑÐ¼ÐµÐ½ÑÐ¾Ð², Ð° ÑÐ°ÐºÐ¶Ðµ Ð¿ÑÐ¸Ð²ÐµÐ´ÐµÐ½Ð¾ Ð¾Ð±Ð¾ÑÐ½Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð²ÑÐ±Ð¾ÑÐ° Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÐµÐ¼ÑÑ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐº, ÑÐ´ÐµÐ»Ð°Ð½Ð½Ð¾Ð³Ð¾ Ñ ÑÑÐµÑÐ¾Ð¼ ÑÐ¿ÐµÑÐ¸ÑÐ¸ÐºÐ¸ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ. Ð ÑÐ¾Ð´Ðµ ÑÐ°Ð±Ð¾ÑÑ Ð±ÑÐ» ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½ Ð°Ð»Ð³Ð¾ÑÐ¸ÑÐ¼ ÑÐ°ÑÐ¿Ð¾Ð·Ð½Ð°Ð²Ð°Ð½Ð¸Ñ Ð³ÑÐ°Ð½Ð¸Ñ ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð±Ð¸Ð±Ð»Ð¸Ð¾ÑÐµÐºÐ¸ OpenCV, Ð° ÑÐ°ÐºÐ¶Ðµ Ð¿ÑÐµÐ¾Ð±ÑÐ°Ð·Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¿ÐµÑÑÐ¿ÐµÐºÑÐ¸Ð²Ñ Ð¸ÑÑÐ¾Ð´Ð½Ð¾Ð³Ð¾ Ð¸Ð·Ð¾Ð±ÑÐ°Ð¶ÐµÐ½Ð¸Ñ. ÐÐ¾Ð»ÑÐ·Ð¾Ð²Ð°ÑÐµÐ»ÑÑÐºÐ¸Ð¹ Ð¸Ð½ÑÐµÑÑÐµÐ¹Ñ Ð¿ÑÐµÐ´ÑÑÐ°Ð²Ð»ÐµÐ½ ÑÐºÑÐ°Ð½Ð¾Ð¼ ÐºÐ°Ð¼ÐµÑÑ, ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¼ Ñ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸ÐµÐ¼ CameraX, Ð° ÑÐ°ÐºÐ¶Ðµ ÑÐºÑÐ°Ð½Ð°Ð¼Ð¸ ÑÐµÐ´Ð°ÐºÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ ÑÐ°ÑÐ¿Ð¾Ð·Ð½Ð°Ð½Ð½Ð¾Ð¹ Ð¾Ð±Ð»Ð°ÑÑÐ¸ Ð¸ Ð¿ÑÐµÐ´Ð¿ÑÐ¾ÑÐ¼Ð¾ÑÑÐ°. Ð Ð´Ð¾Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ðµ, Ð±ÑÐ»Ð¸ ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ñ Ð°Ð²ÑÐ¾Ð¼Ð°ÑÐ¸Ð·Ð¸ÑÐ¾Ð²Ð°Ð½Ð½ÑÐµ ÑÐµÑÑÑ Ð´Ð»Ñ Ð±Ð¸Ð·Ð½ÐµÑ-Ð»Ð¾Ð³Ð¸ÐºÐ¸ Ð¸ Ð¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°ÑÐµÐ»ÑÑÐºÐ¾Ð³Ð¾ Ð¸Ð½ÑÐµÑÑÐµÐ¹ÑÐ°. Ð ÐµÐ·ÑÐ»ÑÑÐ°ÑÐ¾Ð¼ ÑÐ°Ð±Ð¾ÑÑ ÑÐ²Ð»ÑÐµÑÑÑ Ð¸Ð½ÑÐµÐ³ÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð½ÑÐ¹ Ð² Ð¼Ð¾Ð±Ð¸Ð»ÑÐ½Ð¾Ðµ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ ÑÐ¾ÑÐ¸Ð°Ð»ÑÐ½Ð¾Ð¹ ÑÐµÑÐ¸ Â«ÐÐ´Ð½Ð¾ÐºÐ»Ð°ÑÑÐ½Ð¸ÐºÐ¸Â» ÑÐºÐ°Ð½ÐµÑ ÑÐ¾ÑÐ¾Ð³ÑÐ°ÑÐ¸Ð¹.
description: The topic of the final qualifying work: "Development of a photo scanner for the Odnoklassniki mobile application for Android OS". The aim of the work is to implement the section in the Odnoklassniki mobile application for easy uploading users paper photos to the social network. The task of the section is to detect the photo on the image, crop and correct the perspective as if the photo was scanned with a special device, and not with the camera of the mobile device. This paper analyzes the analogue applications used to scan photos and documents, and gives a justification of the choice of libraries used, made with the specifics of the application in mind. In the course of this work, the algorithm for recognizing the boundaries of photos using the OpenCV library, as well as the perspective transformation of the original image were implemented. The user interface is represented by the camera screen implemented using CameraX, as well as the screens for editing the detected area and the preview. In addition, automated tests for the business logic and user interface were implemented. The result of the work is a photo scanner integrated into the mobile application of the Odnoklassniki social network.