CN111279680A - Square cutting photographing method, photographing system and photographing device - Google Patents

Square cutting photographing method, photographing system and photographing device Download PDF

Info

Publication number
CN111279680A
CN111279680A CN201780096360.8A CN201780096360A CN111279680A CN 111279680 A CN111279680 A CN 111279680A CN 201780096360 A CN201780096360 A CN 201780096360A CN 111279680 A CN111279680 A CN 111279680A
Authority
CN
China
Prior art keywords
photographing
image data
square
camera
preview
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201780096360.8A
Other languages
Chinese (zh)
Inventor
张学熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication Co Ltd
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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111279680A publication Critical patent/CN111279680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Abstract

The invention discloses a square cutting photographing method, a photographing system and a photographing device, wherein the method comprises the following processes: switching a photographing mode to a square photographing mode by a client in a photographing system; setting the photographing size resolution ratio as a 1:1 ratio, and shielding the preview size resolution ratio to a 1:1 ratio; issuing a photographing instruction through a camera application layer, and setting postview size to be 1: 1; calling an image sensor to take a picture by the camera hardware abstraction layer; storing image data collected by an image sensor through a driving layer; the camera hardware abstraction layer cuts the image data acquired from the driving layer according to the preset image size of 1:1 proportion; the camera hardware abstraction layer transmits the square image data to the camera application layer, and the camera application layer generates and displays the corresponding pictures. The invention can realize that the preview is not stopped, the picture with the square size is shot, and the switching performance between the preview modes is improved.

Description

Square cutting photographing method, photographing system and photographing device Technical Field
The invention relates to the technical field of electronic application, in particular to a square cutting photographing method, a photographing system and a photographing device based on photographing in an HDR mode.
Background
With the development of science and technology, mobile terminals such as mobile phones, tablet personal computers (PAD) and the like with shooting functions are widely applied in recent years, and electronic mobile terminals such as digital cameras, smart phones, tablet personal computers and the like generally have the shooting function, so that the requirement that people can shoot at any time and any place is met.
The camera is one of basic applications in the smart phone, and the smart phone camera is used for taking pictures conveniently and quickly, and the imaging quality of the smart phone camera is good.
Meanwhile, people have higher and higher quality requirements for pictures taken by the mobile terminal, and high-definition pictures are expected to be taken by the mobile terminal. In order to improve the quality of pictures taken by a mobile terminal, the resolution of a camera of the mobile terminal is generally improved at present, which leads to the increase of the cost of the mobile terminal; but if the cost of the mobile terminal is to be controlled, the quality of the picture is sacrificed; therefore, the cost of the mobile terminal and the quality of the pictures taken by the mobile terminal cannot be considered at the same time.
Under the environment that the market of the intelligent terminal is changing day by day, the shooting function of the intelligent terminal in the market is more and more abundant, such as eye pattern recognition, night shooting brightening, panoramic view, beauty and other third party camera functions. At present, the realization of the third-party camera functions is realized on the basis of three modes of preview, photographing and video recording of the camera application of the intelligent terminal. The common mode easily causes the normal preview, photographing and video recording effects of the intelligent terminal system to conflict with the functions of the third-party camera application, and influences the function effect debugging of the third-party camera application. Therefore, in order to avoid the conflict between the normal preview, photographing and recording functions of the self-contained camera application of the intelligent terminal system and the functions of the third-party camera application, a mode adjusting processing mode which can separately process the two functions is required. However, the user needs to try to configure the shooting mode and the shooting parameters of the mobile terminal for multiple times, the shooting process is complex, and the composition is not fine enough.
With the continuous improvement of the living standard of people, recording childhood, recording every moment of life becomes an important part of the life of people, and is an indispensable part of the life, and photographing is also a civilized fingerprint. Photography is a crystal naturally intersected by natural science and social science, is an imaging means for understanding, knowing and reflecting social reality, is an artistic form with aesthetic value, and is a perfect combination of science and art. The photographer brings aesthetic enjoyment to the viewer through the conception of the picture, the balance of the color tone and the cutting of the scene, so that the viewer really meets the requirements of soul. Meanwhile, through the knowledge of the photographic equipment, people can contact with various fields of modern science, the knowledge range is widened, and the art maintenance is improved. Thus, photography is not just a fidgeting of the camera, but a comprehensive process involving the application of science, imagination and design, professional skills and organizational ability.
In order to shoot satisfactory works better intelligently, the shooting mode of the camera needs to be further optimized; photographic composition is generally the concept most well-defined in photography. Parallel type, vertical type, diagonal type, curve type frame type and the like are classified in a large pile, so that people can be overwhelmed when people think of composition during shooting. Different compositions may capture different works, such as 3: 2 is the default scale mode for most cameras, and 16: the 9 is not precisely the wide screen film scale mode, but rather is more suitable for projection on displays that currently use this scale.
In the related art, when a user takes a picture through a camera of a smart phone, the aspect ratio of a picture taking interface of the smart phone in a vertical screen state is usually 3:4 or 9:16, the aspect ratio of the picture taking interface in a horizontal screen state is usually 4:3 or 16:9, and the user can obtain picture taking interfaces with different aspect ratios by rotating the smart phone, so as to obtain pictures with different ratios.
The squares are equal in length and width, so that the squares are stable and symmetrical in feeling. The square scale photographing mode includes a square composition, but does not include the square composition. On the basis of the square shooting scale, you can still apply the composition method of the vertical line, the parallel line, the oblique line, the curve and the like to the square shooting scale again. In the square scale shooting mode, the shooting mode with the most visual impact should be taken according to the own symmetry.
At present, no matter an android (android) mobile phone or an ios mobile phone with fire and heat, the camera function of the mobile phone is very important in the mobile phone and is the place which can attract the eyes of a customer, the richness of the camera function of a product and the corresponding performance experience influence the sales volume of the product and the selection of the customer on the product to a great extent, and finally whether the customer uses or continues to use the product is determined, so that the camera function is increased and the performance is improved very importantly. The use of square photographing function in common third party application software (APK) is also quite extensive, and in view of this, 1:1 proportion size square mode photographing function, and is different from the common 4:3 and 16: the 9-mode photographing function and the very good experience play a very important role in the product.
In the prior art, as shown in fig. 1 and 2, in the square photographing function, a camera or a camera App photographing mode is first converted into a square photographing mode, and the size of the preview resolution and the photographing resolution are both set to 1:1, stopping the preview by the camera, starting the preview by the camera, acquiring data from an image sensor arranged in the camera during the preview, cutting a preview image, sending a photographing command, executing the photographing command by the camera, and cutting image data obtained from the image sensor; when the image data needs to be converted into image data in a jpeg format, the image data in the yuv format is calculated and decompressed through a third-party algorithm, the image data in the jpeg format is fed back to the camera or the camera App, and then the photographing is finished.
In the prior art, the resolution sizes of preview and photograph are both set to 1:1, switching to 1 in a mode with other scale sizes: in the 1-ratio mode, the preview size is changed, so that the preview is necessarily stopped and then opened, a pause phenomenon is caused to a client, and the experience of the client is influenced.
Disclosure of the invention
The invention aims to provide a square cutting photographing method, a photographing system and a photographing device, which are characterized in that a square preview picture is displayed in a display module in a shielding mode under the condition of keeping the image preview size resolution unchanged, and the photographing size resolution is changed to be 1:1, the purpose of greatly improving the switching performance between preview modes is achieved without stopping the preview and taking a picture with a square size, and the shooting performance is kept almost not affected.
In order to achieve the above purpose, the invention is realized by the following technical scheme:
a square cutting and photographing method is characterized by comprising the following steps:
switching the photographing mode to a square photographing mode;
setting the photographing size resolution ratio as a 1:1 ratio, wherein the camera does not stop previewing, and the size of a previewing picture is shielded to the 1:1 ratio under the condition that the preview size resolution ratio is not changed;
issuing a photographing instruction, cutting the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performing HDR algorithm processing on the main buffer image data and the postview buffer image data;
cutting main buffer image data processed by the HDR algorithm according to a preset image size of 1:1 proportion to obtain square image data;
generating a thumbnail from the square image data and transmitting the thumbnail to a camera; and the camera displays and stores the corresponding pictures, and the photographing is finished. The method further comprises the following steps: and sending postview buffer image data processed by the HDR algorithm to the camera without processing for preview display.
The image data is yuv format data, wherein y represents luminance, and u and v represent chrominance; and the yuv data is encoded and compressed into jpeg data according to a third-party algorithm.
Converting the yuv data into jpeg data further comprises converting the yuv data into rgb data, wherein r represents red, g represents green, and b represents blue;
copying each pixel point corresponding to the rgb data, performing row and/or row interpolation on the rgb data according to the copied pixel point, and expanding the resolution corresponding to the rgb data to the preset resolution;
encoding the rgb data after interpolation into image format jpeg data to display the image according to the jpeg data.
A photographing system, comprising: the client and the server are suitable for executing the square cutting and photographing method of claims 1-4; the client is used for switching the photographing mode, setting the photographing size resolution according to the selected photographing mode, displaying a preview picture and issuing a photographing instruction; the server receives the photographing instruction, calls a camera arranged on the client to photograph, stores the obtained image data, processes the image data through an HDR algorithm, and cuts the image data processed through the HDR algorithm according to a preset image size proportion to obtain image data matched with the selected photographing mode; transmitting the square image data to the client; and the client displays the corresponding picture.
The photographing mode that the server side was equipped with contains: a standard photographing mode, a square photographing mode and a full screen photographing mode.
The server is provided with a camera application layer, a camera application framework layer and a camera hardware abstraction layer which carry out data interaction through callback commands sent by the server; when the client switches the photographing mode to the square photographing mode for photographing; setting the photographing size resolution ratio as a 1:1 ratio, wherein the camera does not stop previewing, and the size of a previewing picture is shielded to the 1:1 ratio under the condition that the preview size resolution ratio is not changed;
the camera application layer is used for issuing a photographing instruction according to the selected photographing mode;
the camera hardware abstraction layer is used for receiving the photographing command and executing the following operations, and if the photographing instruction is in a square photographing mode, an image sensor of the camera is called to photograph; cutting the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performing HDR algorithm processing on the main buffer image data and the postview buffer image data;
the main buffer image data processed by the HDR algorithm is cut according to the preset image size of 1:1 proportion to obtain square image data, and the square image data is transmitted to the camera application layer through the camera frame layer;
and the camera application layer is used for generating a corresponding picture according to the square image data and driving a client to display the picture.
The server is further provided with a driving layer, and the driving layer is used for storing the image data collected by the image sensor.
When the camera hardware abstraction layer feeds the square image data back to the camera application layer, the camera hardware abstraction layer is used for sending postview buffer image data processed by the HDR algorithm back to the camera without processing for preview display; and compressing the reserved square image data to generate image data in a jpeg format, feeding the image data back to the camera application layer, and displaying the image data by the client.
A photographing apparatus, comprising: the system comprises a processor, a photographing mode module, a preview module, a photographing command sending module, a cutting module, a display module and a photographing module, wherein the photographing mode module, the preview module, the photographing command sending module, the cutting module, the display module and the photographing module are used for data interaction through the processor respectively;
the photographing mode module is used for switching a photographing mode;
the preview module is used for previewing the photographing area along with the switching of the photographing mode; when the square photographing mode is used for photographing, the photographing size resolution is set to be 1:1 proportion, at the moment, the preview picture is not stopped, and the size of the preview picture is shielded to be 1:1 proportion under the condition that the preview size resolution is not changed;
a shooting command sending module for sending a shooting command,
the photographing module receives the photographing instruction, cuts the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performs HDR algorithm processing on the main buffer image data and the postview buffer image data;
and the cutting module is used for cutting the image data acquired by the photographing module according to a preset image size in a ratio of 1:1 to obtain square image data, and feeding the square image data back to the display module for display.
Compared with the prior art, the invention has the following advantages:
the invention adopts a shielding mode to display a square preview picture in a display module under the condition of keeping the image preview size resolution unchanged, and changes the photographing size resolution into 1:1, the method has the advantages that the previewing is not stopped, the picture with the square size is shot, the photographing performance is kept to be hardly influenced, and the switching performance between the previewing modes is greatly improved. And a better functional performance experience is provided for the client. In addition, if image data in yuv format is processed, the original resolution size 4:3 or 16: and (3) processing by a third-party algorithm sensitive to the position offset under the proportion of 9 without separately considering 1: the third-party algorithm processing under the 1-proportion contextual model can be normally used without any modification, and is convenient for image data conversion. In addition, if the scheme is used in a project under the photographing mode with the display-back function and the photographing mode without the display-back function, the method comprises the following steps of 1: the preview function at the 1-ratio has an unnecessary process, which can greatly reduce the logic complexity of the control system program.
Brief description of the drawings
FIG. 1 is a flow chart of a square clipping and photographing method in the prior art;
FIG. 2 is a photo-taking flow chart of a square clipping photo-taking method in the prior art;
FIG. 3 is a flowchart of a photographing command generation method for square cropping photographing in HDR mode according to the present invention;
FIG. 4 is a flowchart illustrating a photographing process of a square cropping photographing method in HDR mode according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another embodiment of a photographing process of a square cropping photographing method based on photographing in HDR mode according to the present invention;
fig. 6 is a schematic diagram of a selected photographing mode of a mobile terminal according to a square clipping photographing method for photographing in an HDR mode according to the present invention;
FIG. 7 is a diagram illustrating a mobile terminal selecting a general full screen photographing mode based on a square clipping photographing method in HDR mode according to the present invention;
fig. 8 is a preview diagram of a mobile terminal selecting a square photographing mode based on the square cropping photographing method in the HDR mode according to the present invention;
fig. 9 is a schematic structural diagram of a photographing apparatus according to the square cropping photographing method in the HDR mode.
Best mode for carrying out the invention
The present invention will now be further described by way of the following detailed description of a preferred embodiment thereof, taken in conjunction with the accompanying drawings.
The following explains the camera photographing process by taking an Android system as an example; in the Android system, when running a camera application, interaction between a camera application layer, a camera application framework layer, a camera hardware abstraction layer, and a driver layer is generally required. The launcher searches for the resources of the camera application on the camera application layer, obtains a start entry, analyzes and executes the Java codes in the virtual machine in sequence, and calls the interface of the camera framework layer, the interface of the camera hardware abstraction layer and the drive interface of the drive layer in sequence in the execution process. The camera application layer is a program written in Java language and running on the camera virtual machine. Enabling the camera application requires starting the camera virtual machine.
The hardware abstraction layer, i.e. the bottom layer system, may be a package of the hardware device camera operation interface of the system, providing an interface upwards, and shielding the implementation details of the bottom layer.
The Camera framework layer includes a Camera API (Application Programming Interface) and a Camera service. The camera system is provided with a client and a server, the code of the camera framework layer is operated on the client, and the code of the camera service and the interface of the HAL including the implementation code are operated on the server. The camera server is a background service, is hosted in a server process, and provides an interface for a client to operate a camera. Since the camera is characterized by belonging to exclusive hardware equipment, the true owner of the camera should be a server side rather than a client side, the client side can only operate the camera equipment through the server side, and information such as parameters and the like should be stored in the server side. Since the characteristics of the server are to allow a plurality of clients to be connected simultaneously, detailed characteristics such as whether a specific server can support the client or not and whether a plurality of cameras can be used simultaneously are also required to depend on specific implementations.
When a user takes a picture through the mobile terminal, the Camera application layer sends out a corresponding picture taking instruction (take picture instruction), and the picture taking instruction is transmitted to the Camera hardware abstraction layer through the Camera API and the Camera service of the Camera framework layer. When the camera hardware abstraction layer receives the photographing instruction, the camera is called to photograph, and the image data collected by the camera is stored by the driving layer.
The Camera hardware abstraction layer of the mobile terminal acquires image data acquired by the Camera from the drive layer, transmits the image data to the Camera application layer through the Camera API and the Camera service of the Camera frame layer, and generates and displays corresponding pictures according to the image data by the Camera application layer.
Example one
Referring to fig. 3 to 5, the square cropping photographing method based on HDR photographing further includes the following steps:
a square cutting and photographing method comprises the following processes: switching the photographing mode to a square photographing mode;
setting the photographing size resolution ratio as a 1:1 ratio, wherein the camera does not stop previewing, and the size of a previewing picture is shielded to the 1:1 ratio under the condition that the preview size resolution ratio is not changed; issuing a photographing instruction, cutting the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performing HDR algorithm processing on the main buffer image data and the postview buffer image data; cutting main buffer image data processed by the HDR algorithm according to a preset image size of 1:1 proportion to obtain square image data; transmitting the square image data to a camera; and the camera displays and stores the corresponding pictures, and the photographing is finished.
In this embodiment, the camera does not need to close the preview for a certain delay time and then re-preview, but changes the standard preview screen into a square preview screen by using a vertical shielding manner on the screen, that is, the camera preview mode does not stop during the process of switching from the standard other preview mode to the square preview mode or from the square preview mode to the standard other preview mode.
In this embodiment, in the process of transmitting the image data to the camera, the postview buffer image data processed by the HDR algorithm is sent back to the camera without being processed for preview display.
The square cutting and photographing further comprises the following processes: the image data is yuv format data, wherein y represents luminance, and u and v represent chrominance; and the yuv data is encoded and compressed into jpeg data according to a third-party algorithm.
In this embodiment, converting the yuv data into jpeg data further comprises converting the yuv data into rgb data, wherein r represents red, g represents green, and b represents blue. Copying each pixel point corresponding to the rgb data, performing row and/or row interpolation on the rgb data according to the copied pixel point, and expanding the resolution corresponding to the rgb data to the preset resolution; encoding the rgb data after interpolation into image format jpeg data to display the image according to the jpeg data.
Example two
Based on the square photographing method of the first embodiment, the invention also discloses a photographing system, which comprises: the system comprises a client and a server, wherein the client and the server are suitable for executing the square cutting photographing method in the first embodiment; the client is used for switching the photographing mode, setting the photographing size resolution according to the selected photographing mode, displaying a preview picture and issuing a photographing instruction; the server receives the photographing instruction, calls a camera arranged on the client to photograph, stores the obtained image data, and cuts the image data according to a preset image size proportion to obtain image data matched with the selected photographing mode; transmitting the square image data to the client; and the client displays the corresponding picture.
In this embodiment, after the photographing mode or the preview mode is set, a photographing instruction is issued through a Camera application layer, and the photographing instruction is transmitted to a Camera hardware abstraction layer through a Camera API and a Camera service of a Camera framework layer; and the camera hardware abstraction layer receives the photographing command.
Then, the camera hardware abstraction layer calls an image sensor (sensor end) of the camera to take a picture, and main buffer image data collected by the image sensor is saved through the driving layer.
And the camera hardware abstraction layer directly cuts the main buffer image data acquired from the driving layer and acquired by the image sensor according to the cutting algorithm matched with the main buffer image data and the image size in a preset ratio of 1:1 to obtain square image data.
And the Camera hardware abstraction layer transmits the square image data to the Camera application layer through a Camera frame Camera API and a Camera service according to a call-back command issued by the application layer, and the Camera application layer generates and displays a corresponding picture according to the image data, so that the photographing is finished.
In this embodiment, when the square image data is fed back to the camera application layer, the postview buffer image data processed by the HDR algorithm is returned to the camera application layer without being processed, and main image data (main buffer) reserved for preview display is fed back to the camera application layer.
In the present embodiment, as shown in fig. 6, the photographing mode of the camera or the camera App includes but is not limited to: a standard photographing mode, a square photographing mode and a full screen photographing mode.
In the present embodiment, as shown in fig. 7, fig. 7 is a preview display diagram of a camera or a camera App arranged on a mobile terminal product selecting a general full-screen photographing mode; as can be seen from the figure, the preview image of the region to be photographed for previewing in the full-screen photographing mode occupies the size of the screen provided in the entire mobile terminal.
In the present embodiment, as shown in fig. 8, fig. 8 is a schematic view of displaying a preview image of a mobile terminal selecting a square photographing mode based on a square cropping photographing method for photographing in an HDR mode; as can be seen from the figure, the width of the screen corresponds to the width of the square image, and the width of the screen is equal to the image height based on the value of the screen width, so that other parts in the preview picture are shielded, and the oblique-stripe part shown in fig. 8 is a part to be shielded, so that the preview picture looks identical to the size of the required square image on the surface.
As shown in fig. 5, since the data format finally presented in the camera is a jpeg data format, based on the photographing method described in the first embodiment, the main image data (main buffer) in the image data stored in the yuv format obtained in the first embodiment needs to be processed by a third-party algorithm, that is, the square image data needs to be subjected to image data storage format conversion by the third-party algorithm.
If the image data collected by the image sensor is yuv data, where y represents luminance, u and v represent chrominance,
therefore, after the Camera hardware abstraction layer acquires the yuv data from the drive layer, the Camera hardware abstraction layer encodes and compresses the yuv data into jpeg data according to a third party algorithm, the jpeg data is transmitted to the Camera application layer through the Camera API and the Camera service of the Camera framework layer, and the Camera application layer generates and displays a corresponding picture according to the jpeg data. The photographing is ended.
For yuv data, it is mainly used to optimize the transmission of color video signals to be backward compatible with legacy black and white televisions. Compared with the transmission of RGB video signals, the most significant advantage is that it takes up very little bandwidth (RGB requires the simultaneous transmission of three independent video signals). Wherein "y" represents the brightness (Luma) i.e. the gray scale value; the "u" and "v" represent the Chroma (Chroma) and describe the color and saturation of the image for specifying the color of the pixel. "luminance" is established through the RGB input signals by superimposing specific parts of the RGB signals together. "chroma" defines two aspects of color-hue and saturation, represented by Cr and Cb, respectively. Where Cr reflects the difference between the red part of the RGB input signal and the luminance value of the RGB signal. And Cb reflects the difference between the blue part of the RGB input signal and the luminance value of the RGB signal.
The importance of using the yuv color space is that its luminance signal y and chrominance signals u, v are separated. If only the y signal component and not the u, v components, the image thus represented is a black and white grayscale image. For example, the use of yuv space in color tv just solves the compatibility problem between color tv and black-and-white tv by using luminance signal y, so that black-and-white tv can also receive color tv signals.
EXAMPLE III
As shown in fig. 9, in an exemplary embodiment of the above square photographing method, the present invention also discloses a photographing apparatus, including: the system comprises a processor 100, a photographing mode module 107, a preview module 108, a photographing command sending module 109, a cropping module 110, a photographing module 111, a memory 102, a transmission interface 103, an audio component 104, a sensor component 105 and a control interface 106, wherein the photographing mode module 107, the preview module 108, the photographing command sending module 109, the cropping module 110, the photographing module 111, the memory 102, the transmission interface 103, the audio component 104, the sensor component 105.
The processor 100 is configured to control the overall operations of the photographing apparatus, such as displaying, storing, data transmitting, photographing operations, and the like.
A photographing mode module 107, which includes standard, square, full screen, etc. photographing modes; the photographing mode can be selected through the manipulation interface 106.
And the photographing module 111 is configured to take a picture by using the configured photographing mode and photographing parameters when receiving a photographing instruction.
And a memory 102 for storing the shot pictures in association with the corresponding shooting parameters.
A sensor assembly 105, including but not limited to a light sensor, such as a CMOS or CCD image sensor, is used in imaging applications. The image sensor is a camera core component.
The audio component 104 is configured to output and/or input audio signals. For example, the audio component 104 includes a microphone configured to receive external audio signals when the camera is in an operational mode, such as a voice-activated camera mode, a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 102 or the photographing module may be controlled by the processor 100 to take a photograph. In other embodiments, the audio component 104 further includes a speaker for outputting audio signals.
And a transmission interface 103 for connecting to an external device by wire and/or wireless and transmitting image data.
The photographing device is further provided with a power module 101 which provides power for various components or modules of the photographing device.
The control interface 106 is used for facilitating human-computer interaction and performing operations such as setting parameters for photographing, and further includes a display module therein, and is used for receiving image data and displaying the image data in the control interface 106.
The preview module 108 is configured to preview the shot area along with the change of the shooting mode, and may further set a preview size resolution.
And a photographing command sending module 109, configured to send a photographing command to the photographing module 111 after the photographing mode, the preview resolution, and the photographing parameters are set.
And the cutting module 110 is configured to cut the image data obtained after the photographing module 111 calls the sensor component 105 to take a picture, and feed the cut image data back to the memory 102 for storage, or feed the cut image data back to the display module for display through the control interface.
When the square photographing mode is used for photographing, the photographing size resolution is set to be 1:1, at the moment, the preview picture is not stopped, and the size of the preview picture is shielded to be 1:1 under the condition that the preview size resolution is not changed. The photographing command sending module issues a photographing command; and the photographing module receives the photographing instruction, cuts the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performs HDR algorithm processing on the main buffer image data and the postview buffer image data. The cutting module cuts the image data collected by the photographing module according to a preset image size of 1:1 proportion to obtain square image data, and feeds the square image data back to the display module to be displayed through a control interface.
In summary, in the present invention, under the condition that the preview size resolution is not changed, the preview screen looks like a square in a blocking manner, and only the photographing size resolution is changed to 1:1, just so can need not stop the preview, also can take out the photo of square size, the performance of shooing reduces a little or under the hardly influenced condition, and the switching performance between the preview mode can promote greatly.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The square cutting photographing method, the square cutting photographing system and the square cutting photographing device provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed.
In view of the above, while the present invention has been described in detail with reference to the preferred embodiments thereof, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.

Claims (10)

  1. A square cutting and photographing method is characterized by comprising the following steps:
    switching the photographing mode to a square photographing mode;
    setting the photographing size resolution ratio as a 1:1 ratio, wherein the camera does not stop previewing, and the size of a previewing picture is shielded to the 1:1 ratio under the condition that the preview size resolution ratio is not changed;
    issuing a photographing instruction, cutting the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performing HDR algorithm processing on the main buffer image data and the postview buffer image data;
    cutting main buffer image data processed by the HDR algorithm according to a preset image size of 1:1 proportion to obtain square image data;
    generating a thumbnail from the square image data and transmitting the thumbnail to a camera; and the camera displays and stores the corresponding pictures, and the photographing is finished.
  2. The square cropping photographing method of claim 1, further comprising: and sending postview buffer image data processed by the HDR algorithm to the camera without processing for preview display.
  3. The square cropping photographing method of claim 1, further comprising:
    the image data is yuv format data, wherein y represents luminance, and u and v represent chrominance; and the yuv data is encoded and compressed into jpeg data according to a third-party algorithm.
  4. The square cropping photographing method of claim 3,
    converting the yuv data into jpeg data further comprises converting the yuv data into rgb data, wherein r represents red, g represents green, and b represents blue;
    copying each pixel point corresponding to the rgb data, performing row and/or row interpolation on the rgb data according to the copied pixel point, and expanding the resolution corresponding to the rgb data to the preset resolution;
    encoding the rgb data after interpolation into image format jpeg data to display the image according to the jpeg data.
  5. A photographing system, comprising: the client and the server are suitable for executing the square cutting and photographing method of claims 1-4; the client is used for switching the photographing mode, setting the photographing size resolution according to the selected photographing mode, displaying a preview picture and issuing a photographing instruction; the server receives the photographing instruction, calls a camera arranged on the client to photograph, stores the obtained image data, processes the image data through an HDR algorithm, and cuts the image data processed through the HDR algorithm according to a preset image size proportion to obtain image data matched with the selected photographing mode; transmitting the square image data to the client; and the client displays the corresponding picture.
  6. The photographing system of claim 5,
    the photographing mode that the server side was equipped with contains: a standard photographing mode, a square photographing mode and a full screen photographing mode.
  7. The photographing system of claim 6,
    the server is provided with a camera application layer, a camera application framework layer and a camera hardware abstraction layer which carry out data interaction through callback commands sent by the server; when the client switches the photographing mode to the square photographing mode for photographing; setting the photographing size resolution ratio as a 1:1 ratio, wherein the camera does not stop previewing, and the size of a previewing picture is shielded to the 1:1 ratio under the condition that the preview size resolution ratio is not changed;
    the camera application layer is used for issuing a photographing instruction according to the selected photographing mode;
    the camera hardware abstraction layer is used for receiving the photographing command and executing the following operations, and if the photographing instruction is in a square photographing mode, an image sensor of the camera is called to photograph; cutting the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performing HDR algorithm processing on the main buffer image data and the postview buffer image data;
    the main buffer image data processed by the HDR algorithm is cut according to the preset image size of 1:1 proportion to obtain square image data, and the square image data is transmitted to the camera application layer through the camera frame layer;
    and the camera application layer is used for generating a corresponding picture according to the square image data and driving a client to display the picture.
  8. The photographing system of claim 7,
    the server is further provided with a driving layer, and the driving layer is used for storing the image data collected by the image sensor.
  9. The photographing system of claim 7,
    when the camera hardware abstraction layer feeds the square image data back to the camera application layer, the camera hardware abstraction layer is used for sending postview buffer image data processed by the HDR algorithm back to the camera application layer without processing for preview display; and compressing the reserved square image data to generate image data in a jpeg format, feeding the image data back to the camera application layer, and displaying the image data by the client.
  10. A photographing apparatus, comprising: the system comprises a processor, a photographing mode module, a preview module, a photographing command sending module, a cutting module, a display module and a photographing module, wherein the photographing mode module, the preview module, the photographing command sending module, the cutting module, the display module and the photographing module are used for data interaction through the processor respectively;
    the photographing mode module is used for switching a photographing mode;
    the preview module is used for previewing the photographing area along with the switching of the photographing mode; when the square photographing mode is used for photographing, the photographing size resolution is set to be 1:1 proportion, at the moment, the preview picture is not stopped, and the size of the preview picture is shielded to be 1:1 proportion under the condition that the preview size resolution is not changed;
    a shooting command sending module for sending a shooting command,
    the photographing module receives the photographing instruction, cuts the image data according to the preview size resolution to obtain main buffer image data and postview buffer image data, and performs HDR algorithm processing on the main buffer image data and the postview buffer image data;
    and the cutting module is used for cutting the image data acquired by the photographing module according to a preset image size in a ratio of 1:1 to obtain square image data, and feeding the square image data back to the display module for display.
CN201780096360.8A 2017-08-31 2017-08-31 Square cutting photographing method, photographing system and photographing device Pending CN111279680A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099913 WO2019041226A1 (en) 2017-08-31 2017-08-31 Square cropping photography method, photography system and photography apparatus

Publications (1)

Publication Number Publication Date
CN111279680A true CN111279680A (en) 2020-06-12

Family

ID=65524631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780096360.8A Pending CN111279680A (en) 2017-08-31 2017-08-31 Square cutting photographing method, photographing system and photographing device

Country Status (2)

Country Link
CN (1) CN111279680A (en)
WO (1) WO2019041226A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578999A (en) * 2020-11-16 2022-06-03 深圳市万普拉斯科技有限公司 Image sharing method and device and terminal equipment
CN116709042A (en) * 2022-02-24 2023-09-05 荣耀终端有限公司 Image processing method and electronic equipment
CN117135268A (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Shooting method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389884B (en) * 2023-02-24 2024-03-26 荣耀终端有限公司 Thumbnail display method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090190004A1 (en) * 2008-01-26 2009-07-30 Sanyo Electric Co., Ltd. Data processing apparatus
CN105657265A (en) * 2016-01-06 2016-06-08 卢锦霞 Full-automatic shooting imaging system and method
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal
CN106878623A (en) * 2017-04-20 2017-06-20 努比亚技术有限公司 Photographic method, mobile terminal and computer-readable recording medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472062A (en) * 2008-05-23 2009-07-01 嘉兴闻泰通讯科技有限公司 Mobile terminal apparatus and method for implementing pick-up head function
CN101355634B (en) * 2008-08-26 2013-06-05 北京中星微电子有限公司 Method and system for regulating image chromaticity
CN101399898B (en) * 2008-10-28 2010-04-14 深圳市迅雷网络技术有限公司 Image processing method and apparatus
KR101571332B1 (en) * 2008-12-23 2015-11-24 삼성전자주식회사 Digital photographing apparatus and method for controlling the same
CN101699849A (en) * 2009-09-29 2010-04-28 深圳华为通信技术有限公司 Method and device for realizing high-pixel camera function
JP5003803B2 (en) * 2010-08-11 2012-08-15 カシオ計算機株式会社 Image output apparatus and program
CN105163039A (en) * 2015-09-18 2015-12-16 联想(北京)有限公司 Control method and control device
CN105472266A (en) * 2015-12-18 2016-04-06 广东欧珀移动通信有限公司 High dynamic range image generation method, photographing device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090190004A1 (en) * 2008-01-26 2009-07-30 Sanyo Electric Co., Ltd. Data processing apparatus
CN105657265A (en) * 2016-01-06 2016-06-08 卢锦霞 Full-automatic shooting imaging system and method
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal
CN106878623A (en) * 2017-04-20 2017-06-20 努比亚技术有限公司 Photographic method, mobile terminal and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578999A (en) * 2020-11-16 2022-06-03 深圳市万普拉斯科技有限公司 Image sharing method and device and terminal equipment
CN116709042A (en) * 2022-02-24 2023-09-05 荣耀终端有限公司 Image processing method and electronic equipment
CN117135268A (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
WO2019041226A1 (en) 2019-03-07

Similar Documents

Publication Publication Date Title
US10021302B2 (en) Video recording method and device
CN107241588B (en) The control method of projector and projector
US8780180B2 (en) Stereoscopic camera using anaglyphic display during capture
US8736697B2 (en) Digital camera having burst image capture mode
US20110205397A1 (en) Portable imaging device having display with improved visibility under adverse conditions
CN111279680A (en) Square cutting photographing method, photographing system and photographing device
US20120243802A1 (en) Composite image formed from an image sequence
WO2023016039A1 (en) Video processing method and apparatus, electronic device, and storage medium
US8934033B2 (en) Imaging device, imaging method, and computer readable recording medium
JP2006115475A (en) Image processor, image processing method and image processing program
WO2023160295A9 (en) Video processing method and apparatus
CN113747240B (en) Video processing method, apparatus and storage medium
KR20230039723A (en) Projection data processing method and apparatus
US20230403458A1 (en) Camera Invocation Method and System, and Electronic Device
KR20150024098A (en) Method and apparatus for composing photograph in a digital camera
CN103312981A (en) Synthetic multi-picture taking method and shooting device
CN115526787A (en) Video processing method and device
KR101547828B1 (en) Apparatus and method for image processing
CN111279679A (en) Square cutting photographing method, photographing system and photographing device
CN115550544B (en) Image processing method and device
CN115359105A (en) Depth-of-field extended image generation method, depth-of-field extended image generation device, and storage medium
WO2019041231A1 (en) Square cropping photography method, photography system and photography apparatus
CN111279681A (en) Square photo shooting control method and device with redisplay function
CN111048039A (en) Intelligent terminal, screen resolution adjusting method and computer-readable storage medium
WO2023056785A1 (en) Image processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612

RJ01 Rejection of invention patent application after publication