WO2019041165A1 - Square picture taking control method and apparatus with echo - Google Patents

Square picture taking control method and apparatus with echo Download PDF

Info

Publication number
WO2019041165A1
WO2019041165A1 PCT/CN2017/099630 CN2017099630W WO2019041165A1 WO 2019041165 A1 WO2019041165 A1 WO 2019041165A1 CN 2017099630 W CN2017099630 W CN 2017099630W WO 2019041165 A1 WO2019041165 A1 WO 2019041165A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
square
mobile phone
screen
photographing
Prior art date
Application number
PCT/CN2017/099630
Other languages
French (fr)
Chinese (zh)
Inventor
张学熙
Original Assignee
深圳传音通讯有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/099630 priority Critical patent/WO2019041165A1/en
Publication of WO2019041165A1 publication Critical patent/WO2019041165A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor

Abstract

Disclosed is a square picture taking control method with an echo. The method is used for a mobile phone having a rectangular picture previewing function, and comprises: S1. when an operating system of a mobile phone receives a photography instruction from a user, acquiring, by means of a camera of the mobile phone, a rectangular preview image of a current scene and displaying same on a screen; S2. blocking the rectangular preview image displayed on the screen, so that a visible region on the screen is square; S3. a user moving the square region to select and confirm a taken image; and S4. the content displayed on the screen remaining unchanged, and a background cropping the image taken in S3 according to the region selected in S2 and echoing an obtained image to the screen. According to the present invention, the waiting time for switching between different photographing modes is not needed during the photography process, and the next instance of photography can be carried out, without switching between "exit and re-entry", thanks to an image previewing function, thus greatly reducing the waiting time for a user required during the photography process and improving the user experience.

Description

一种有回显的正方形照片拍摄控制方法及装置Square photo shooting control method and device with echo 技术领域Technical field

本发明涉及手机应用领域,具体涉及一种有回显的正方形照片拍摄控制方法及装置。 The invention relates to the field of mobile phone application, and in particular relates to a method and device for controlling square photo shooting with echo.

背景技术Background technique

电话是一种既古老又新鲜的通信工具。自1876年贝尔发明第一台有线电话算起,电话已经经历了近150年的发展。电话通讯服务已走进了千家万户,成为国家经济建设、社会生活和人们交流信息所不可缺少的重要工具。1972年,手机之父Martin Cooper开始着手研究移动电话,直到1983年第一台真正意义上的移动电话诞生,通信工具开始发生天翻地覆的改变。三十多年的时间,手机已经从最古老的“板砖”发展到了现在的囊括多种功能的智能机。电话技术和业务发生了巨大变化,通信的地点由固定方式转向移动方式。移动通讯的迅猛发展,使移动电话从外形厚重单调,功能简单唯一,逐渐发展为外形轻薄小巧,功能多样,使现代生活节奏越来越快,人们越来越离不开手机。The phone is an old and new communication tool. Since Bell’s invention of the first wired telephone in 1876, the telephone has experienced nearly 150 years of development. Telephone communication services have entered thousands of households and become an indispensable tool for national economic construction, social life and people to exchange information. In 1972, Martin Cooper, the father of mobile phones, set out to study mobile phones. Until the first truly mobile phone was born in 1983, communication tools began to change dramatically. For more than three decades, mobile phones have evolved from the oldest "bricks" to the current multi-function smart phones. The telephone technology and business have undergone tremendous changes, and the location of communication has shifted from a fixed mode to a mobile one. The rapid development of mobile communication has made mobile phones monotonous and monotonous in function, simple and unique in function, and gradually developed into a compact, compact and versatile shape, making the pace of modern life faster and faster, and people are increasingly inseparable from mobile phones.

第一代手机(1G)是指模拟的移动电话,模拟移动电话时代的手机功能往往仅仅只是局限于通话功能,而且受到技术、材料各方面的限制,款式上相当单一,缺乏变化。The first generation mobile phone (1G) refers to the analog mobile phone. The mobile phone function in the era of analog mobile phone is often limited to the call function, and is limited by various aspects of technology and materials. The style is quite simple and lacks change.

1994年,时任邮电部部长的吴基传用诺基亚2110打通了中国历史上第一个GSM电话。中国开始了第二代手机(2G)的时代。2G时代的GSM网络是数字网络,手机除了基本的通话功能外,开始可以传输少量文字数据。从而“短消息”这一功能开始出现。短消息功能弥补了人们接听不便或无法接通的缺陷,提高了手机用户的使用体验。In 1994, Wu Jichuan, then Minister of the Ministry of Posts and Telecommunications, used Nokia 2110 to open the first GSM phone in Chinese history. China began the era of second-generation mobile phones (2G). The GSM network in the 2G era is a digital network. In addition to the basic call function, the mobile phone can start transmitting a small amount of text data. Thus the "short message" feature began to appear. The short message function makes up for the inconvenience or inaccessibility of people, which improves the user experience of mobile phones.

1G的时代,手机的屏幕都还是黑白屏,背光只有绿色一种。2G时代是手机屏幕发生巨大改变的时代。上世纪九零年代末期,由于LED技术的发展,手机屏幕的背光光源开始出现白色、蓝色和橙色等不同的颜色。但是归根结底手机的屏幕还是颜色单一的。进入新世纪后,液晶技术以及OLED技术先后开始迅猛发展,手机屏幕开启了真彩色的时代。有了彩色屏幕做技术基础,手机的功能开始多样化,彩信、彩色桌面等种种以彩色图片为 基础的功能纷纷被开发出来。手机拍照的概念在这一时期被付诸实践。发展到现在屏幕的最高显示色彩到了2000万,显示效果已经足够清晰,可以用来播放高质量的视频或是图片了,使拍照功能成为手机不可分割的一部分。In the 1G era, the screens of mobile phones are still black and white, and the backlight is only green. The 2G era is an era in which mobile phone screens have undergone tremendous changes. In the late 1990s, due to the development of LED technology, the backlight source of mobile phone screens began to appear in different colors such as white, blue and orange. But in the end, the screen of the phone is still a single color. After entering the new century, liquid crystal technology and OLED technology have started to develop rapidly, and the mobile phone screen has opened the era of true color. With the technical foundation of color screens, the functions of mobile phones have begun to diversify, and various types of color pictures, color desktops, etc. Basic functions have been developed. The concept of cell phone photography was put into practice during this period. The highest display color of the screen has reached 20 million, and the display effect is clear enough to play high-quality videos or pictures, making the camera function an inseparable part of the phone.

最早的手机拍照功能只是简单的把拍照功能植入手机中,拍照功能与手机本身的操作系统相互隔离,手机操作系统对相机的仅限于控制是否拍照,如图1所示。当时的操作系统(例如经典的塞班Symbian系统)手机对相机不能进行多种美化、修改等多种操作,或只能进行简单的负片、蓝光、黑白等几种有限的图像颜色的修改功能。不然就只能将相机拍摄的照片作为普通图片另外在独立的图形处理软件中进行处理。消费者的使用体验相当不好,操作过程复杂,并且浪费时间。The earliest mobile phone camera function is simply to put the camera function into the mobile phone. The camera function is isolated from the operating system of the mobile phone itself. The mobile phone operating system is limited to controlling whether the camera is photographed, as shown in Figure 1. At that time, the operating system (such as the classic Symbian Symbian system) could not perform various operations such as beautification, modification, etc., or only a limited number of limited image colors such as negative film, blue light, and black and white. Otherwise, the photos taken by the camera can only be processed as normal pictures in separate graphics processing software. The consumer experience is quite poor, the operation process is complicated, and time is wasted.

进入3G时代,手机的操作系统有了翻天覆地的变化,手机也开始像电脑一样可以由用户自己安装应用程序(APP),从而为手机与拍照功能的真正融合提供了技术基础。In the era of 3G, the operating system of mobile phones has undergone earth-shaking changes, and mobile phones have begun to install applications (APPs) by users themselves, thus providing a technical basis for the true integration of mobile phones and camera functions.

目前,安卓(Andriod)系统和苹果(ios)系统是手机操作软件的2大巨头。而其中的安卓系统的手机由于其代码开放,对编程者没有门槛限制,任何人都可以自行开发安装应用软件,因此操作系统与第三方软件的相互嵌入成为研发的潮流。At present, Android (Andriod) system and Apple (iOS) system are the two giants of mobile operating software. The Android mobile phone has no threshold for programmers because of its open code. Anyone can develop and install application software by themselves. Therefore, the embedding of operating system and third-party software has become the trend of R&D.

如常见的声控拍照的功能,如图2所示,通过中央控制器建立麦克风和照相机的控制连接,拍照时可以通过说话来控制快门。For example, the common voice-activated camera function, as shown in Figure 2, establishes a control connection between the microphone and the camera through the central controller, and can control the shutter by speaking when taking a picture.

图像的处理是另一种常见的功能融合。一方面在相机软件中,直接对拍摄完成的照片进行美化、装饰和色彩明暗的调整,另一方面鉴于微信、QQ等第三方软件对照片调取和使用的需要,所有照片或图片都需要提供一张相应的预览图片。常见的照片长宽比一般为4:3(标准比例)或16:9(加宽比例)。但预览时图片的比例不一定与拍摄时的照片比例一致,需要有专门的预览功能对原始照片进行处理和提取。Image processing is another common feature fusion. On the one hand, in the camera software, the photos are completely beautified, decorated and shaded. On the other hand, in view of the need for photo retrieval and use by third-party software such as WeChat and QQ, all photos or pictures need to be provided. A corresponding preview image. Common photo aspect ratios are typically 4:3 (standard scale) or 16:9 (widened ratio). However, the ratio of the image during preview is not necessarily the same as the ratio of the photo at the time of shooting. A special preview function is required to process and extract the original photo.

目前无论是安卓系统的手机还是苹果系统的手机,其拍照功能在手机里是十分举足轻重的,也是最能吸引客户眼球的地方,一款产品的拍照及其外延功能的丰富性,以及相应的性能体验则很大程度上影响到产品的销量及客户对产品的选择,最终会决定客户是否使用或继续使用其该产品,因此增加拍照功能和提升性能就显得非常重要。在第三方应用程序中,正方拍照功能逐渐开始普及,开发出1:1的正方拍照功能,而有别于常见的4:3 和16:9模式的拍照功能,且有非常好的体验,在产品中占有非常重要的角色。如图3所示,是现有技术中由其他预览模式转换为1:1预览模式的流程示意图,其中S1’和S2’两步是占用时间最多,容易出现卡顿现象,最影响用户使用体验的步骤。At present, whether it is an Android mobile phone or an Apple mobile phone, its camera function is very important in the mobile phone, and it is also the most attractive place for customers, the richness of a product's camera and its extended functions, and the corresponding performance. The experience greatly affects the sales volume of the product and the choice of the customer, and ultimately determines whether the customer uses or continues to use the product. Therefore, it is very important to increase the camera function and improve the performance. In third-party applications, the square camera function has gradually become popular, and the 1:1 square camera function has been developed, which is different from the common 4:3. And the 16:9 mode camera function, and has a very good experience, occupying a very important role in the product. As shown in FIG. 3 , it is a schematic diagram of a process of converting from another preview mode to a 1:1 preview mode in the prior art, wherein two steps of S1 ' and S2 ' are the most occupied time, and the card phenomenon is prone to occur, which most affects the user experience. A step of.

发明的公开Disclosure of invention

本发明的目的在于提供一种有回显的正方形照片拍摄控制方法及装置,应用于手机、平板电脑等移动终端,减少切换预览时的卡顿,丰富用户的使用选择,改善用户使用体验。 The object of the present invention is to provide a method and device for controlling square photo shooting with echo display, which is applied to mobile terminals such as mobile phones and tablet computers, which reduces the jamming during the switching preview, enriches the user's use selection, and improves the user experience.

一种有回显的正方形照片拍摄控制方法,用于原本就具有长方形照片预览功能的手机,包括: A method for controlling a square photo shooting with echo, for a mobile phone originally having a rectangular photo preview function, including:

S1、当手机操作系统接收到用户的拍照指令时,通过所述手机的摄像头获取当前场景的长方形预览图并显示在屏幕上; S1. When the mobile phone operating system receives the photographing instruction of the user, obtain a rectangular preview image of the current scene through the camera of the mobile phone and display it on the screen;

S2、遮挡屏幕上显示的所述长方形预览图,使屏幕上的可见区域为正方形; S2, occluding the rectangular preview image displayed on the screen, so that the visible area on the screen is a square;

S3、由用户移动所述正方形区域选择并确认拍摄图像; S3. The user moves the square area to select and confirm a captured image;

S4、屏幕显示内容不变,后台根据S2所选定的区域裁剪S3所拍摄的图像并回显至屏幕。 S4, the screen display content is unchanged, the background crops the image captured by S3 according to the area selected by S2 and returns to the screen.

上述的一种有回显的正方形照片拍摄控制方法基础上,在所述步骤S4后,还包括: The above-mentioned method for controlling the square photo shooting of the echo, in addition to the step S4, further includes:

S5、将S4所得图像进行压缩,生成jpeg/jpg图像; S5, compressing the image obtained by S4 to generate a jpeg/jpg image;

S6、将所述jpeg/jpg图像数据反馈至手机操作系统,由手机操作系统保存图像数据。 S6: The jpeg/jpg image data is fed back to the mobile phone operating system, and the image data is saved by the mobile phone operating system.

上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S1前,还包括: The above-mentioned method for controlling the square photographing of the echoes, before the step S1, further includes:

S0、确认手机当前拍照模式为正方形取景。 S0. Confirm that the current camera mode of the mobile phone is square viewfinder.

上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S3中,确认拍摄的方式为传统按键确认或屏幕软按键触摸确认或声音控制。In the above-described step-by-step square photo shooting control method, in the step S3, it is confirmed that the shooting mode is a conventional button confirmation or a screen soft button touch confirmation or sound control.

进一步地,为了加强拍照功能与手机中其他应用程序的交互,在上述的一种有回显的正方形照片拍摄控制方法基础上,上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S4后,还包括: Further, in order to enhance the interaction between the photographing function and other applications in the mobile phone, in accordance with the above-described echoed square photo shooting control method, the above-described method for controlling a square photo shooting with echo is described in After step S4, the method further includes:

S7、若有第三方软件需要调取照片数据,则将S4的处理结果发送至第三方。 S7. If the third party software needs to retrieve the photo data, the processing result of S4 is sent to the third party.

上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S6后,还包括: The above-mentioned method for controlling the square photographing of the echo, after the step S6, further includes:

S8、由第三方软件提供当前位置、当前时间、当前天气的信息,记录于所述jpeg/jpg图像的属性信息中; S8. The third-party software provides information about the current location, the current time, and the current weather, and records the attribute information of the jpeg/jpg image;

S9、将所述图像的属性信息显示在所述jpeg/jpg图像中。 S9. Display attribute information of the image in the jpeg/jpg image.

一种拍照控制装置,使用上述的任一项方法控制其拍照过程,包括: A photographing control device that controls the photographing process using any of the above methods, including:

图像传感器,用于采集图像,形成步骤S1中所述的长方形预览图; An image sensor for acquiring an image to form a rectangular preview image described in step S1;

取景器,与图像传感器连接,从中选取正方形视图; a viewfinder, connected to the image sensor, from which a square view is selected;

快门,与取景器连接,确认拍摄照片; Shutter, connect to the viewfinder to confirm the photo taken;

中央处理器,根据取景器选定的区域裁剪所拍摄的照片并保存; The central processing unit crops the captured photos according to the selected area of the viewfinder and saves them;

保存后的图片回显于屏幕上。 The saved image is echoed back to the screen.

上述的一种拍照控制装置,还包括: The above camera control device further includes:

即时缓存postview buffer,用于缓存步骤S1中获得的长方形预览图; Instantly buffering the postview buffer for caching the rectangular preview obtained in step S1;

主缓存main buffer,储存步骤S3中所拍摄的照片; Main buffer main buffer, storing the photos taken in step S3;

数据缓存data buffer,用于保存最终的正方形照片,所述正方形照片是根据取景器选取的区域裁剪主缓存中照片而得到。 The data buffer is used to save the final square photo, which is obtained by cropping the photo in the main cache according to the area selected by the viewfinder.

上述的一种拍照控制装置,所述取景器是软件取景器,用黑色色块遮挡长方形预览图,在视觉效果上提供了正方形的视图,并未实际裁剪照片。 In the above-mentioned photographing control device, the viewfinder is a software viewfinder that blocks a rectangular preview image with a black color block, and provides a square view in visual effect without actually cropping the photo.

一种手机,包括上述的任一项拍照控制装置。 A mobile phone comprising any of the above camera control devices.

本发明的优点和有益效果是: The advantages and benefits of the present invention are:

(1)更佳的用户体验; (1) Better user experience;

(2)更快的处理速度; (2) faster processing speed;

(3)更多样的图片形式。 (3) More kinds of picture forms.

用户在拍照的过程中不需要因切换不同拍照模式而带来的等待时间,因为预览图像功能不需要“退出—重入”的切换才能进行下一次拍照,大大缩减了用户在拍照的过程中需要等待的时间,提高了用户体验。 The user does not need to wait for switching between different camera modes in the process of taking pictures, because the preview image function does not need the "exit-re-enter" switch to take the next picture, which greatly reduces the need for the user to take pictures. The waiting time increases the user experience.

附图的简要说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据本发明实施例的内容和这些附图获得其他附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings may be obtained according to the contents of the embodiments of the present invention and the drawings without any creative work.

图1是现有技术中手机拍照控制方式的结构示意图之一。 FIG. 1 is a schematic structural diagram of a method for controlling a photograph of a mobile phone in the prior art.

图2是现有技术中手机拍照控制方式的结构示意图之二。 FIG. 2 is a second schematic structural diagram of a mobile phone photographing control method in the prior art.

图3是现有切换预览方式的流程图。 FIG. 3 is a flow chart of a conventional switching preview mode.

图4是本发明中切换预览方式的流程图。 Fig. 4 is a flow chart showing the manner of switching the preview in the present invention.

图5是本发明中正方形拍照控制方式的结构示意图。 FIG. 5 is a schematic structural view of a square photographing control method in the present invention.

图6是本发明中正方形拍照控制方式的细化结构示意图。 Fig. 6 is a schematic view showing the detailed structure of a square photographing control method in the present invention.

图7是本发明中缓存器的使用示意图。 Figure 7 is a schematic illustration of the use of a buffer in the present invention.

图8是本发明中的一种手机的结构示意图。 Fig. 8 is a schematic structural view of a mobile phone in the present invention.

实现本发明的最佳方式The best way to implement the invention

以下结合附图,通过详细说明若干个较佳的具体实施例,对本发明做进一步阐述。 The present invention will be further described in detail below with reference to the accompanying drawings in detail.

如图4所示的一种有回显的正方形照片拍摄控制方法,可以应用于原本就具有长方形照片预览功能的手机,当然也可以单独使用。为手机增加一种拍摄正方形照片的选择,且本方法不需要现有技术中“先停止,再重启”的过程,优化了程序流程。包括:As shown in FIG. 4, an echo-based square photo shooting control method can be applied to a mobile phone that originally has a rectangular photo preview function, and can of course be used alone. Adding a choice for taking a square photo to the mobile phone, and the method does not require the process of “stop first, then restart” in the prior art, and optimizes the program flow. include:

S1、当手机操作系统接收到用户的拍照指令时,通过所述手机的图像传感器31获取当前场景的长方形预览图并显示在屏幕5上; S1. When the mobile phone operating system receives the photographing instruction of the user, the image sensor 31 of the mobile phone acquires a rectangular preview image of the current scene and displays it on the screen 5;

S2、遮挡屏幕5上显示的所述长方形预览图,使屏幕5上的可见区域为正方形; S2, blocking the rectangular preview image displayed on the screen 5, so that the visible area on the screen 5 is a square;

S3、由用户移动所述正方形区域选择并确认拍摄图像; S3. The user moves the square area to select and confirm a captured image;

S4、屏幕5显示内容不变,后台根据S2所选定的区域裁剪S3所拍摄的图像并回显至屏幕5。S4, the screen 5 displays the content unchanged, and the background crops the image captured by S3 according to the area selected by S2 and returns to the screen 5.

进一步地,为了完整准确的保存既得的图像,需把屏幕5显示的图像保存到本地存储 器中,其保存形式有多种,可以为jpeg/jpg、gif、bmp等多种。在上述的一种有回显的正方形照片拍摄控制方法基础上,在所述步骤S4后,还包括: Further, in order to completely and accurately save the acquired image, the image displayed on the screen 5 needs to be saved to the local storage. In the device, there are various storage forms, which can be jpeg/jpg, gif, bmp, and the like. On the basis of the above-mentioned method for controlling the photographing of the square photographing, the step S4 further includes:

S5、将S4所得图像进行压缩,生成jpeg/jpg图像; S5, compressing the image obtained by S4 to generate a jpeg/jpg image;

S6、将所述jpeg/jpg图像数据反馈至手机操作系统,由手机操作系统保存图像数据。S6: The jpeg/jpg image data is fed back to the mobile phone operating system, and the image data is saved by the mobile phone operating system.

而支持步骤S1~S5的手机硬件结构如图5所示。手机1内部的中央处理器2可以控制相机3拍照,此控制信号可以是来自传统按键,也可以是来自屏幕5的虚拟按键,还可以是来自声音控制软件、蓝牙控制软件的控制信号。而相机3拍照所获得的YUV格式的数据优选保存在缓存器组6中,这样利于加速照片的处理时间。图像处理器21对YUV格式的照片数据进行处理,得到正方形预览图返回缓存器组6缓存,得到的jpeg/jpg格式的图片反馈给中央处理器2,由中央处理器2安排保存。The hardware structure of the mobile phone supporting steps S1 to S5 is as shown in FIG. 5. The central processing unit 2 inside the mobile phone 1 can control the camera 3 to take a picture. The control signal can be from a traditional button, a virtual button from the screen 5, or a control signal from the sound control software and the Bluetooth control software. The data of the YUV format obtained by photographing the camera 3 is preferably stored in the buffer group 6, which is advantageous for accelerating the processing time of the photo. The image processor 21 processes the photo data in the YUV format to obtain a square preview map return buffer group 6 buffer, and the obtained jpeg/jpg format picture is fed back to the central processing unit 2, and is arranged and saved by the central processing unit 2.

进一步地,现有技术中一般手机均已具有长方形预览的功能。在此基础上增加正方形拍照和预览的功能相当于在原有流程中增加一条支路,在进入本支路前必定具有支路的判断和选择的步骤,进入本支路后还可以对此进行确认,如图4所示。上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S1前,还包括:Further, in the prior art, a general mobile phone has a function of a rectangular preview. On the basis of this, adding the function of square photographing and previewing is equivalent to adding a branch in the original process. Before entering this branch, it must have the steps of judging and selecting the branch. After entering this branch, it can also confirm this. ,As shown in Figure 4. The above-mentioned method for controlling the square photographing of the echoes, before the step S1, further includes:

S0、确认手机当前拍照模式为正方形取景。S0. Confirm that the current camera mode of the mobile phone is square viewfinder.

进一步地,基于各类应用软件相互之间的融合趋势,不仅在用户使用需求上,在技术层面也可以支持手机相机快门多样化。传统来说手机固有的音量键或电源键或确认是充当手机相机快门的首选,这也是各种新技术不可能放弃的快门选择之一。在此基础上,得到了手机操作系统的支持后,手机上的其余输入方式都可以用来充当手机相机的快门。手机相机与第三方软件以手机操作系统为交互平台,如图5所示,第三方软件的控制信号连接到中央处理器2中,由中央处理器2转发、控制相机3的快门33。上述的一种有回显的正方形照片拍摄控制方法,在所述步骤S3中,确认拍摄的方式为传统按键确认或屏幕5软按键触摸确认或声音控制或蓝牙控制。Further, based on the convergence trend of various application softwares, the mobile phone camera shutter can be diversified not only in the user's use requirements but also in the technical level. Traditionally, the phone's inherent volume button or power button or confirmation is the first choice for a mobile camera shutter, which is one of the shutter options that new technologies cannot give up. On this basis, after receiving the support of the mobile phone operating system, the rest of the input methods on the mobile phone can be used as the shutter of the mobile phone camera. The mobile phone camera and the third-party software use the mobile phone operating system as an interactive platform. As shown in FIG. 5, the control signals of the third-party software are connected to the central processing unit 2, and the central processor 2 forwards and controls the shutter 33 of the camera 3. In the above-described step S3, there is an echo-based square photo shooting control method. In the step S3, it is confirmed that the shooting mode is a conventional button confirmation or a screen 5 soft button touch confirmation or sound control or Bluetooth control.

进一步地,为了加强拍照功能与手机中其他应用程序的交互,在上述的一种有回显的正方形照片拍摄控制方法基础上,在所述步骤S4后,还可以包括下列步骤: Further, in order to enhance the interaction between the photographing function and other applications in the mobile phone, based on the above-described method for controlling the square photographing of the echo, the step of the step S4 may further include the following steps:

S7、若有第三方软件需要调取照片数据,则将S4的处理结果发送至第三方。 S7. If the third party software needs to retrieve the photo data, the processing result of S4 is sent to the third party.

需要特别指出的是,在步骤S4中,所拍摄的照片格式为YUV格式,YUV是被欧洲电视系统所采用的一种颜色编码方法。采用YUV色彩空间的重要性是它的亮度信号Y和色度信号U、V是分离的。YUV格式通常有两大类:打包(packed)格式和平面(planar)格式。前者将YUV分量存放在同一个数组中,通常是几个相邻的像素组成一个宏像素(macro-pixel);而后者使用三个数组分开存放YUV三个分量,就像是一个三维平面一样。无论哪种格式,都便于数字化的存储在各类电子设备中且其信息量完整、具体。因此,在本步骤S7中传送给第三方软件时选用YUV格式的数据,这样可以保留最多的原始的亮度、色度等关键信息。It should be particularly noted that in step S4, the photographed photo format is the YUV format, and YUV is a color encoding method adopted by the European television system. The importance of using the YUV color space is that its luminance signal Y and chrominance signals U, V are separated. The YUV format usually has two broad categories: a packed format and a planar format. The former stores the YUV components in the same array, usually several adjacent pixels form a macro-pixel; the latter uses three arrays to store the three components of the YUV separately, just like a three-dimensional plane. Regardless of the format, it is easy to digitally store in various types of electronic devices and its information volume is complete and specific. Therefore, the data in the YUV format is selected when transmitting to the third-party software in this step S7, so that the most original key information such as brightness and chromaticity can be retained.

为了增加照片的趣味性和有助于用户记忆照片拍摄的周边信息,在上述的一种有回显的正方形照片拍摄控制方法的基础上,在所述步骤S6后,还可以包括: In order to increase the interest of the photo and the surrounding information for the user to memorize the photo shooting, on the basis of the above-mentioned method for controlling the photographing of the square photographing, the step S6 may further include:

S8、由第三方软件提供当前位置、当前时间、当前天气的信息,记录于所述jpeg/jpg图像的属性信息中; S8. The third-party software provides information about the current location, the current time, and the current weather, and records the attribute information of the jpeg/jpg image;

S9、将所述图像的属性信息显示在所述jpeg/jpg图像中。 S9. Display attribute information of the image in the jpeg/jpg image.

一个优选的方案是:对所述的位置、时间和天气等信息进行文字编辑和美化后显示在所述jpeg/jpg图像的右下角。 A preferred solution is to perform text editing and landscaping on the information such as the location, time, and weather, and display the information in the lower right corner of the jpeg/jpg image.

如图6所示的一种拍照控制装置,使用上述的任一项方法控制其拍照过程,图像传感器31将光与色彩信息转换为计算机可识别的电信号并数字化,之后保存在缓存器组6中,取景器32是软件取景器,利用软件制造出一个中间为正方形透明、两边为黑色不透明的框,叠加在图像传感器31之上,令使用者看见的图像为正方形。As shown in FIG. 6, a photographing control device controls the photographing process using any of the above methods, and the image sensor 31 converts the light and color information into computer-recognizable electrical signals and digitizes them, and then stores them in the buffer group 6. The viewfinder 32 is a software viewfinder, and uses a software to manufacture a frame which is square transparent in the middle and black and opaque on both sides, and is superimposed on the image sensor 31 so that the image seen by the user is square.

包括: include:

图像传感器31,用于采集图像,形成步骤S1中所述的长方形预览图; The image sensor 31 is configured to collect an image to form a rectangular preview image described in step S1;

取景器32,与图像传感器31连接,从中选取正方形视图; a viewfinder 32 connected to the image sensor 31 and selecting a square view therefrom;

快门33,与取景器32连接,确认拍摄照片; a shutter 33 connected to the viewfinder 32 to confirm the photograph;

中央处理器2,根据取景器32选定的区域裁剪所拍摄的照片并保存; The central processing unit 2 crops the captured photos according to the selected area of the viewfinder 32 and saves them;

保存后的图片回显于屏幕5上。 The saved picture is echoed on screen 5.

如图7所示,上述的一种拍照控制装置,拍摄过程中照片缓存在缓存器组6中,最终经 确认后才将正方形照片反馈回操作系统,由操作系统保存至系统存储器中。包括: As shown in FIG. 7, the above-mentioned photographing control device caches photos in the buffer group 6 during shooting, and finally The square photos are fed back to the operating system after confirmation and saved by the operating system to system memory. include:

即时缓存61(postview buffer),用于缓存步骤S1中获得的长方形预览图; a cache view 61 (postview buffer) for buffering the rectangular preview obtained in step S1;

主缓存62(main buffer),储存步骤S3中所拍摄的照片; a main buffer 62 (main buffer), storing the photos taken in step S3;

数据缓存63(data buffer),用于保存最终的正方形照片,所述正方形照片是根据取景器32选取的区域裁剪主缓存中照片而得到。 A data buffer 63 is used to save the final square photo, which is obtained by cropping the photo in the main buffer according to the area selected by the viewfinder 32.

进一步地,上述的一种拍照控制装置,所述取景器32是软件取景器,用黑色色块遮挡长方形预览图,在视觉效果上提供了正方形的视图,并未实际裁剪照片。Further, in the above-mentioned photographing control device, the viewfinder 32 is a software viewfinder that blocks a rectangular preview image with a black color block, and provides a square view in visual effect without actually cropping the photo.

进一步地,上述的一种拍照控制装置,除了应用在本发明所述的手机中,还可以应用于多种具有操作系统的移动终端,如手机或平板电脑或个人数字助理中。需特别说明的是,基于不同操作系统所使用的语言和文件格式的不同,可能需要编写不同的具体程序,但这不应影响本发明所述的方法的通用性。就如本发明是基于安卓系统编制的处理程序,如果同样的功能需移植到苹果系统中,只需做适应性的修改,而这种修改并不应视作是有创造性的。Further, the above-mentioned camera control device can be applied to a plurality of mobile terminals having an operating system, such as a mobile phone or a tablet computer or a personal digital assistant, in addition to being applied to the mobile phone of the present invention. It should be specially noted that different specific programs may need to be written based on the language and file format used by different operating systems, but this should not affect the versatility of the method described in the present invention. Just as the present invention is based on the processing program compiled by the Android system, if the same function needs to be transplanted into the Apple system, only adaptive modification is required, and the modification should not be regarded as creative.

在Android系统中,运行摄像头应用时,一般需要相机应用层、相机应用框架层、相机硬件抽象层、驱动层之间的交互。启动器在相机应用层查找摄像头应用的资源,获取启动入口,把Java代码依次在交虚拟机解析执行,在执行过程中会依次调用到相机框架层的接口,相机硬件抽象层的接口和驱动层的驱动接口。其中,相机应用层是用Java语言编写的运行在摄像虚拟机上的程序。启用摄像头应用需要启动摄像虚拟机。当用户通过移动终端进行拍照时,相机应用层发出相应的拍照指令(take picture指令),该拍照指令经由相机框架层的Camera API和CameraService传输至相机硬件抽象层。当相机硬件抽象层接收到该拍照指令时,调用摄像头进行拍照,驱动层保存摄像头所采集的图像数据。In the Android system, when running a camera application, the interaction between the camera application layer, the camera application framework layer, the camera hardware abstraction layer, and the driver layer is generally required. The initiator finds the resources of the camera application in the camera application layer, obtains the startup entry, and sequentially executes the Java code in the virtual machine for parsing and execution, and sequentially calls the interface of the camera frame layer, the interface and the driver layer of the camera hardware abstraction layer in the execution process. Drive interface. Among them, the camera application layer is a program written in the Java language and running on the camera virtual machine. Enabling the camera app requires launching the camera virtual machine. When the user takes a photo through the mobile terminal, the camera application layer issues a corresponding photographing instruction (take picture instruction), which is transmitted to the camera hardware abstraction layer via the Camera API and CameraService of the camera frame layer. When the camera hardware abstraction layer receives the photographing instruction, the camera is called to take a photo, and the driving layer saves the image data collected by the camera.

移动终端的相机硬件抽象层从驱动层获取到摄像头采集的图像数据,并将该图像数据经由相机框架层的Camera API和CameraService传输至相机应用层,由相机应用层根据该图像数据,生成并显示相应的图片。The camera hardware abstraction layer of the mobile terminal acquires image data collected by the camera from the driver layer, and transmits the image data to the camera application layer via the Camera API and the CameraService of the camera frame layer, and the camera application layer generates and displays the image data according to the image data. The corresponding picture.

如图8所示的一种手机,包括如上述的任一项拍照控制装置。本实施例中手机1包含了中央处理器2,相机3,屏幕5,缓存器组6和存储器。中央处理器2按本发明所述的方法综 合控制相机3,屏幕5,缓存器组6和存储器,令不同部件之间的互融只占据少数系统时间,从而节约了系统资源和客户等待的时间。A mobile phone as shown in FIG. 8 includes any of the above-described photographing control devices. The mobile phone 1 in this embodiment includes a central processing unit 2, a camera 3, a screen 5, a buffer group 6, and a memory. Central processor 2 according to the method of the invention Control camera 3, screen 5, buffer group 6 and memory, allowing the integration between different components to occupy only a small amount of system time, thereby saving system resources and customer waiting time.

以上结合附图详细说明了本发明的技术方案,本发明提出了一种新的正方拍照控制方法,通过对屏幕显示的遮挡造成正方形视图,有效的避免了切换预览而带来的停顿,提高预览速度,优化拍照过程和效果,从而提升了用户的使用体验。The technical solution of the present invention is described in detail above with reference to the accompanying drawings. The present invention proposes a new method for controlling the square photographing, which causes a square view by occlusion of the screen display, effectively avoids the pause caused by switching the preview, and improves the preview. Speed, optimize the camera process and effects, thus improving the user experience.

尽管本发明的内容已经通过上述优选实施例作了详细介绍,但应当认识到上述的描述不应被认为是对本发明的限制。在本领域技术人员阅读了上述内容后,对于本发明的多种修改和替代都将是显而易见的。因此,本发明的保护范围应由所附的权利要求来限定。 Although the present invention has been described in detail by the preferred embodiments thereof, it should be understood that the foregoing description should not be construed as limiting. Various modifications and alterations of the present invention will be apparent to those skilled in the art. Therefore, the scope of the invention should be defined by the appended claims.

Claims (10)

  1. 一种有回显的正方形照片拍摄控制方法,用于具有长方形照片预览功能的手机,其特征在于,包括: A method for controlling a square photo shooting with echo, for a mobile phone having a rectangular photo preview function, comprising:
    S1、当手机操作系统接收到用户的拍照指令时,通过所述手机的摄像头获取当前场景的长方形预览图并显示在屏幕上; S1. When the mobile phone operating system receives the photographing instruction of the user, obtain a rectangular preview image of the current scene through the camera of the mobile phone and display it on the screen;
    S2、遮挡屏幕上显示的所述长方形预览图,使屏幕上的可见区域为正方形; S2, occluding the rectangular preview image displayed on the screen, so that the visible area on the screen is a square;
    S3、由用户移动所述正方形区域选择并确认拍摄图像; S3. The user moves the square area to select and confirm a captured image;
    S4、屏幕显示内容不变,后台根据S2所选定的区域裁剪S3所拍摄的图像并回显至屏幕。 S4, the screen display content is unchanged, the background crops the image captured by S3 according to the area selected by S2 and returns to the screen.
  2. 如权利要求1所述的一种有回显的正方形照片拍摄控制方法,其特征在于,在所述步骤S4后,还包括: The method for controlling the photographing of a square photograph with the echo according to claim 1, wherein after the step S4, the method further comprises:
    S5、将S4所得图像进行压缩,生成jpeg/jpg图像; S5, compressing the image obtained by S4 to generate a jpeg/jpg image;
    S6、将所述jpeg/jpg图像数据反馈至手机操作系统,由手机操作系统保存图像数据。 S6: The jpeg/jpg image data is fed back to the mobile phone operating system, and the image data is saved by the mobile phone operating system.
  3. 如权利要求1所述的一种有回显的正方形照片拍摄控制方法,其特征在于,在所述步骤S1前,还包括: The method for controlling the photographing of a square photograph with the echo according to claim 1, wherein before the step S1, the method further comprises:
    S0、确认手机当前拍照模式为正方形取景。 S0. Confirm that the current camera mode of the mobile phone is square viewfinder.
  4. 如权利要求1所述的一种有回显的正方形照片拍摄控制方法,其特征在于,在所述步骤S3中,确认拍摄的方式为传统按键确认或屏幕软按键触摸确认或声音控制。 The echo-photographed square photographing control method according to claim 1, wherein in the step S3, the manner of confirming the photographing is a conventional button confirmation or a screen soft-key touch confirmation or sound control.
  5. 如权利要求1所述的一种有回显的正方形照片拍摄控制方法,其特征在于,在所述步骤S4后,还包括: The method for controlling the photographing of a square photograph with the echo according to claim 1, wherein after the step S4, the method further comprises:
    S7、若有第三方软件需要调取照片数据,则将S4的处理结果发送至第三方。 S7. If the third party software needs to retrieve the photo data, the processing result of S4 is sent to the third party.
  6. 如权利要求2所述的一种有回显的正方形照片拍摄控制方法,其特征在于,在所述步骤S6后,还包括: The method of claim 2, wherein after the step S6, the method further comprises:
    S8、由第三方软件提供当前位置、当前时间、当前天气的信息,记录于所述jpeg/jpg图像的属性信息中; S8. The third-party software provides information about the current location, the current time, and the current weather, and records the attribute information of the jpeg/jpg image;
    S9、将所述图像的属性信息显示在所述jpeg/jpg图像中。 S9. Display attribute information of the image in the jpeg/jpg image.
  7. 一种拍照控制装置,其特征在于,使用如权利要求1至6中所述的任一项方法控制其拍照过程,包括: A photographing control device, characterized in that the photographing process is controlled using any one of the methods as claimed in claims 1 to 6, comprising:
    图像传感器,用于采集图像,形成步骤S1中所述的长方形预览图; An image sensor for acquiring an image to form a rectangular preview image described in step S1;
    取景器,与图像传感器连接,从中选取正方形视图; a viewfinder, connected to the image sensor, from which a square view is selected;
    快门,与取景器连接,确认拍摄照片; Shutter, connect to the viewfinder to confirm the photo taken;
    中央处理器,根据取景器选定的区域裁剪所拍摄的照片并保存; The central processing unit crops the captured photos according to the selected area of the viewfinder and saves them;
    保存后的图片回显于屏幕上。 The saved image is echoed back to the screen.
  8. 如权利要求7所述的一种拍照控制装置,其特征在于,还包括: A camera control device according to claim 7, further comprising:
    即时缓存postview buffer,用于缓存步骤S1中获得的长方形预览图; Instantly buffering the postview buffer for caching the rectangular preview obtained in step S1;
    主缓存main buffer,储存步骤S3中所拍摄的照片; Main buffer main buffer, storing the photos taken in step S3;
    数据缓存data buffer,用于保存最终的正方形照片,所述正方形照片是根据取景器选取的区域裁剪主缓存中照片而得到。 The data buffer is used to save the final square photo, which is obtained by cropping the photo in the main cache according to the area selected by the viewfinder.
  9. 如权利要求7所述的一种拍照控制装置,其特征在于,所述取景器是软件取景器,用黑色色块遮挡长方形预览图,在视觉效果上提供正方形的视图,并未实际裁剪照片。 A photographing control device according to claim 7, wherein the viewfinder is a software viewfinder that blocks a rectangular preview image with a black color block, and provides a square view in a visual effect without actually cropping the photo.
  10. 一种手机,其特征在于,包括如权利要求7至9中所述的任一项拍照控制装置。 A mobile phone characterized by comprising the photographing control device according to any one of claims 7 to 9.
PCT/CN2017/099630 2017-08-30 2017-08-30 Square picture taking control method and apparatus with echo WO2019041165A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099630 WO2019041165A1 (en) 2017-08-30 2017-08-30 Square picture taking control method and apparatus with echo

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/099630 WO2019041165A1 (en) 2017-08-30 2017-08-30 Square picture taking control method and apparatus with echo
CN201780096377.3A CN111279681A (en) 2017-08-30 2017-08-30 Square photo shooting control method and device with redisplay function

Publications (1)

Publication Number Publication Date
WO2019041165A1 true WO2019041165A1 (en) 2019-03-07

Family

ID=65524588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099630 WO2019041165A1 (en) 2017-08-30 2017-08-30 Square picture taking control method and apparatus with echo

Country Status (2)

Country Link
CN (1) CN111279681A (en)
WO (1) WO2019041165A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841658A (en) * 2009-03-19 2010-09-22 奥林巴斯映像株式会社 The control method of camera head and camera head
CN104767939A (en) * 2015-04-03 2015-07-08 广州市久邦数码科技有限公司 Method and system for achieving shape framing photographing
JP2015127849A (en) * 2013-12-27 2015-07-09 株式会社リコー Display system, information terminal, display control program, and display control method
CN104836957A (en) * 2015-05-09 2015-08-12 陈包容 Photo shooting processing method and device
CN303805768S (en) * 2016-03-31 2016-08-17
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841658A (en) * 2009-03-19 2010-09-22 奥林巴斯映像株式会社 The control method of camera head and camera head
JP2015127849A (en) * 2013-12-27 2015-07-09 株式会社リコー Display system, information terminal, display control program, and display control method
CN104767939A (en) * 2015-04-03 2015-07-08 广州市久邦数码科技有限公司 Method and system for achieving shape framing photographing
CN104836957A (en) * 2015-05-09 2015-08-12 陈包容 Photo shooting processing method and device
CN303805768S (en) * 2016-03-31 2016-08-17
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal

Also Published As

Publication number Publication date
CN111279681A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
US10009578B2 (en) Mobile terminal, display apparatus and control method thereof
AU2018208733B2 (en) Adaptive transfer function for video encoding and decoding
US10200597B2 (en) Method and apparatus for photographing in portable terminal
US9591256B2 (en) Methods and devices for video communication
CN105190511B (en) Image processing method, image processing apparatus and image processing program
US8120641B2 (en) Panoramic photography method and apparatus
CN100546374C (en) Interactive communication apparatus and method of attachment
US7868890B2 (en) Display processor for a wireless device
KR100890236B1 (en) A method for capturing video data by utilizing a camera cell phone as a camera of a computer
AU2013297221B2 (en) Image processing method and apparatus
CN105827964B (en) A kind of image processing method and mobile terminal
US9430810B2 (en) Drawing method, apparatus, and terminal
CN1172553C (en) Screen display device in mobile terminal and mehtod for using said device
CN105163017B (en) A kind of self-timer image shows method and device
US9491367B2 (en) Image data processing method and electronic device supporting the same
EP3151548A1 (en) Video recording method and device
CN104994277B (en) A kind of method and apparatus of mobile communication terminal snapshots
CN103067585B (en) Multiparty call display controlling method, device and mobile terminal
JP2015097070A (en) Communication system, information processor, and program
US6879846B1 (en) Destination calling control system and destination calling control method
US8111314B2 (en) Camera-enabled portable terminal and method for taking multi-image photograph using the same
KR100753041B1 (en) Mobile terminal with a virtual mode dial and method for operating thereof
US20120249575A1 (en) Display device for displaying related digital images
EP2133841A1 (en) Mobile communication terminal and data input method
US10122942B2 (en) Photo shooting method, device, and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17923295

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17923295

Country of ref document: EP

Kind code of ref document: A1