CN111131712B - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN111131712B
CN111131712B CN201911421259.2A CN201911421259A CN111131712B CN 111131712 B CN111131712 B CN 111131712B CN 201911421259 A CN201911421259 A CN 201911421259A CN 111131712 B CN111131712 B CN 111131712B
Authority
CN
China
Prior art keywords
image
area
camera module
screen
orientation
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.)
Active
Application number
CN201911421259.2A
Other languages
Chinese (zh)
Other versions
CN111131712A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911421259.2A priority Critical patent/CN111131712B/en
Publication of CN111131712A publication Critical patent/CN111131712A/en
Application granted granted Critical
Publication of CN111131712B publication Critical patent/CN111131712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • 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
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Abstract

The embodiment of the invention provides an image processing method, an image processing device and electronic equipment, wherein the method is applied to the electronic equipment, the electronic equipment comprises a flexible screen and a camera module, and the method comprises the following steps: displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module; receiving a first input; responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module; an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image. The embodiment of the invention can reduce the operation complexity of the electronic equipment for scanning the image displayed on the electronic equipment.

Description

Image processing method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image processing method and apparatus, and an electronic device.
Background
At present, applications of recognizing images using electronic devices have become more and more widespread.
In the process of using the electronic device to perform image recognition, it often happens that a certain electronic device cannot recognize an image displayed thereon, and another electronic device is needed to perform scanning, so that the operation of the image recognition process is inconvenient, and the operation complexity of the image recognition process is improved.
Disclosure of Invention
The embodiment of the invention provides an image processing method, an image processing device and electronic equipment, and aims to solve the problem that the operation complexity of an image identification process is improved in a two-dimensional code identification method in the related art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image processing method, which is applied to an electronic device, where the electronic device includes a flexible screen and a camera module, and the method includes:
displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module;
receiving a first input;
responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module;
an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
In a second aspect, an embodiment of the present invention further provides an image processing apparatus, which is applied to an electronic device, where the electronic device includes a flexible screen and a camera module, and the apparatus includes:
the display module is used for displaying a first image in a first area of the flexible screen, and the orientation of the first area is the same as that of the camera module;
the first receiving module is used for receiving a first input;
the first response module is used for responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module;
an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps in the image processing method provided in the first aspect of the embodiment when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the image processing method provided in the first aspect of the embodiment of the present invention.
The image processing method provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises a flexible screen and a camera module, and the method comprises the following steps: displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module; receiving a first input; responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module; an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image. Therefore, when a user needs to scan a first image displayed on the electronic equipment, at least part of content of the first image is displayed in the second area, and when the angle between the orientation of the second area and the orientation of the camera module is larger than 90 degrees and smaller than 180 degrees, the second area is positioned in the identification angle of the camera module, so that the camera module can be controlled to scan the image displayed in the second area, the image does not need to be sent to other electronic equipment, the image displayed on the electronic equipment can be scanned, and the operation complexity of the electronic equipment for scanning the image displayed on the electronic equipment is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention;
fig. 2 is one of application scene diagrams of an image processing method according to an embodiment of the present invention;
fig. 3 is a second application scenario diagram of an image processing method according to an embodiment of the present invention;
fig. 4 is a third application scenario diagram of an image processing method according to an embodiment of the present invention;
FIG. 5 is a fourth diagram of an application scenario of an image processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart of another image processing method provided by the embodiment of the invention;
fig. 7 is a block diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 8 is a second block diagram of an image processing apparatus according to an embodiment of the present invention;
FIG. 9 is a third block diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The image processing method provided by the embodiment of the invention is applied to the electronic equipment with the camera module and the flexible screen to implement image scanning operation. In a specific implementation, the electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), a Computer, or a notebook Computer.
Referring to fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, where the image processing method according to the embodiment of the present invention is applied to an electronic device, where the electronic device includes a flexible screen and a camera module, and as shown in fig. 1, the image processing method includes the following steps:
step 101, displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module.
In specific implementation, the first area can be any display area on the flexible screen, and the display area is located outside the shooting range of the camera module because the orientation of the display area is the same as that of the camera module.
In addition, the first image may include any one of a two-dimensional code image, a display interface, a picture, a photograph, and the like. For example: scanning and searching text pictures, scanning and identifying face images, scanning and identifying plant pictures and the like.
Step 102, receiving a first input.
In an embodiment, the first input is used to determine that a user wants to scan a first image, and in an implementation, the first input may be: any one operation or combination of multiple operations, such as clicking, long pressing, dragging, and the like, performed by the user on the first image or the interface on which the first image is displayed may also be: when the electronic device displays the first image, the electronic device is shaken, and the specific operation form of the first input is not specifically limited herein.
Step 103, responding to the first input, updating the display position of the first image to a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module; an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
Wherein the second image including at least part of the content of the first image may be understood as: the second image may be a screenshot or a copy of the first image, or it may also be an image comprising a characteristic part in the first image, for example: when the first image is an application interface including a two-dimensional code, the second image may be a screenshot of the two-dimensional code; when the first image is a photograph including a face image, the second image may include only a screenshot of the face image. After the imaging module scans the first image or the second image, image information of the first image can be acquired, so as to perform functions such as identification, search, matching and the like according to the image information.
In a specific implementation, the second region is: when the state of the flexible screen is changed, any screen display area in the shooting angle of the camera module is changed. Specifically, when the angle between the orientation of the second area and the orientation of the camera module is a first preset angle, the second area is located in the shooting range of the camera module.
In specific implementation, the first preset angle can be determined according to the position of the camera module on the flexible screen, the shooting angle range of the camera module and the size and the position of the second area. For example: the camera module is located on the first screen of the folding screen, and is located at the middle position of one side of the first screen, which is far away from the rotating shaft, and then the second area can be located at the middle position of one side of the rotating shaft, which is far away from the second screen.
In one embodiment, the flexible screen may be a folding screen, and the displaying the first image in the first area of the flexible screen may include any one of: the camera module and the first image are both positioned on the same screen; the camera module and the first image are distributed on different display screens, but the foldable screen is not folded, so that the first image is positioned outside the shooting angle of the camera module. In this embodiment, the angle between the orientation of the second region and the orientation of the camera module may be a first preset angle: on the second region and the different display screen of module distribution of making a video recording, through folding screen, make the contained angle between two screens be less than 90 degrees to make first image be located the shooting angle of the module of making a video recording. The updating the display position of the first image to the second area or displaying the second image in the second area may be: under the condition that the camera module and the first image are located on the same screen, the first image is moved to the other screen, the folding screen is folded to a first preset angle, the first image or the second image is displayed in a second area corresponding to the first preset angle, and when the folding screen is folded to the first preset angle, the second area is located in the shooting angle of the camera module.
Of course, the flexible screen may also be a flexible screen that can be bent in any direction, and the updating of the display position of the first image to the second area or the displaying of the second image in the second area, and the scanning of the image displayed in the second area by the camera module may be: and moving the first image to a second area corresponding to the position of the camera module or displaying at least part of the first image in the second area, and prompting a user to bend the flexible screen so that the shooting range of the camera module covers the second area.
In addition to prompting the user to bend the flexible screen to make the angle between the orientation of the second region and the orientation of the camera module larger than 90 ° and smaller than 180 °, so that the shooting range of the camera module covers the second region, the flexible screen may be controlled by the electronic device to bend to make the angle between the orientation of the second region and the orientation of the camera module larger than 90 ° and smaller than 180 °.
As an alternative embodiment, the flexible screen includes a first screen and a second screen, and the method includes:
the displaying a first image in a first area of the flexible screen includes:
displaying a first image on the first screen;
the updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module, includes:
updating the display position of the first image to a third area of the second screen or displaying a second image in the third area of the second screen, and scanning the image displayed in the third area through the camera module;
the angle between the orientation of the third area and the orientation of the camera module is the first preset angle.
Wherein, flexible screen includes first screen and second screen, can understand: the electronic device includes a scroll screen or a folding screen. Also, the first screen and the second screen may be: the foldable screen comprises a first display area and a second display area which can rotate relatively, and in addition, in specific implementation, the first screen and the camera module are in the same direction, namely are positioned on the same screen.
In this embodiment, the third area is located in the second screen, and when the angle between the orientation of the third area and the orientation of the camera module is a first preset angle, the third area is located in the shooting angle of the camera module, and at least a part of the first image is displayed in the third area of the second screen opposite to the camera module, so that when the angle between the orientation of the third area and the orientation of the camera module is the first preset angle (that is, the included angle between the first screen and the second screen is an acute angle), the third area is located in the shooting angle of the camera module, thereby scanning the first image.
In a specific implementation, the process of setting the angle between the orientation of the second region and the orientation of the camera module as a first preset angle may be: the flexible screen is automatically adjusted through electronic equipment, and the image pickup module is started to scan the image displayed in the second area until the second area is located within the shooting angle of the image pickup module; it may also be: the flexible screen is configured to output a prompt message for bending the display screen to prompt a user to adjust the flexible screen, which is not limited herein. When prompting the user to adjust the flexible screen, the method may further include: and under the condition that the second area is adjusted to the shooting angle of the camera module, outputting prompt information, and starting the camera module to scan the image displayed in the second area. In a specific implementation, the prompt message may be a voice prompt message, a vibration prompt, a text prompt displayed on a screen, and the like, and is not limited specifically herein. Therefore, the user can be prompted that the first image is located in the shooting range of the camera module, and the flexible screen does not need to be continuously adjusted.
Similarly, the process of making the angle between the orientation of the third region and the orientation of the camera module be the first preset angle is the same as the process of making the angle between the orientation of the second region and the orientation of the camera module be the first preset angle, and details are not repeated here.
Wherein, under the flexible screen for including the condition of first screen and second screen, the module of making a video recording can not shoot rather than being located the image in same one side screen, and in this embodiment, through showing first image in the second screen relative with the first screen that the module of making a video recording is located, make the folding back of flexible screen, the shooting scope of the module of making a video recording covers the image in the third region in the second screen. As shown in fig. 2 and fig. 3, the electronic device includes a foldable first screen 21 and a foldable second screen 22, where a camera 211 is disposed on the first screen 21, when a long press and drag operation for a first image 20 displayed on the first screen 21 is detected to be completed, the first image 20 is displayed in the second screen 22 to present an application scene as shown in fig. 2, and then an included angle between the first screen 21 and the second screen 22 is adjusted to present an application scene as shown in fig. 3, where the first image 20 in the second screen 22 is located within a shooting range of the camera 211.
Further, before the updating the display position of the first image to the second area or displaying the second image in the second area, and scanning the image displayed in the second area by the camera module, the method further includes:
receiving a second input;
and responding to the second input, and adjusting the angle between the orientation of the second area and the orientation of the camera module to be the first preset angle.
In a specific implementation, the second input may be a long-press operation, or may also be a dragging operation of dragging a second image outside the first screen, and of course, the second input may also be the same operation as the first input, and the second input is used for triggering the flexible screen to bend or fold according to an operation of a user so as to perform a scanning operation on the image displayed on the flexible screen, where a specific form of the second input is not particularly limited.
In this embodiment, through in response to the second input with the orientation of drive flexible screen adjustment second region with the angle between the orientation of the module of making a video recording to make the second region be located the shooting angle of the module of making a video recording, the problem that the accuracy that causes when having avoided adopting manual operation to adjust the flexible screen is low and the operation is complicated.
As an alternative embodiment, the first preset angle may be obtained by:
acquiring size information of the first image;
and determining the position of the second area and the first preset angle according to the size information.
In the embodiment, the first preset angle is determined according to the size information of the first image in the second area, so that when the angle between the orientation of the second area and the orientation of the camera module is adjusted to the included angle, the camera module can clearly and completely shoot the first image, and the reliability of the image processing method provided by the embodiment of the invention is improved.
Certainly, when flexible screen includes folding first screen and second screen, when scanning first image, can show first image in the predetermined region in the second screen to make and be the target contained angle between first screen and the second screen, wherein, when being the target contained angle between first screen and the second screen, the shooting scope of the module of making a video recording includes predetermine the region.
In another embodiment, the screen may be a flexible screen besides the folding screen, and in this case, the displaying the first image in the first area of the flexible screen may be: show first image outside the shooting angle of the module of making a video recording, it is specific, the first image of the recognition angle of the module of making a video recording shows outward can include: the flexible screen is unfolded; although the flexible screen is folded, the folding angle is not appropriate; the distance between the display position of first image and the module position of making a video recording is too short or the position or the size of first image are improper, when making flexible screen be in the biggest bend angle, first image still is located the shooting angle of the module of making a video recording outside. In this embodiment, the flexible screen can be bent, so that when the flexible screen is bent to a preset shape, the first image is located in a preset display area corresponding to the preset angle, wherein when the flexible screen is bent to the preset shape, the preset display area is located in a shooting angle of the camera module.
It should be noted that, after receiving the first input, if it is detected that the first image is located within the shooting angle of the camera module, the step of controlling the camera module to scan the first image may be directly performed.
In a specific implementation, the controlling the image capturing module to scan the first image may be controlling the image capturing module to scan the first image through an application program, and uploading a scanning result to the application program to execute a function or an identification operation corresponding to image information of the first image. For example: in the embodiment shown in fig. 4 and 5, a chat application program interface including a group chat two-dimensional code 411 is displayed in the first screen 41 on the same side as the camera 40 in fig. 4, and after the user drags the chat group two-dimensional code 411 to the second screen 42, the two-dimensional code scanning interface of the chat application program is started to scan the two-dimensional code, and the group chat interface shown in fig. 5 is displayed after the two-dimensional code 411 is correspondingly added to the group chat operation.
As an optional implementation manner, after the scanning, by the imaging module, the image displayed in the second display area, the method further includes:
in the case where the image displayed in the second area satisfies a first condition, enlarging or reducing the image, or adjusting the display position of the image;
wherein the first condition comprises: the image displayed in the second area is positioned outside the shooting angle of the camera module or the size of the image displayed in the second area is smaller than the minimum recognizable size of the camera module.
In a specific implementation, the minimum recognizable size may be a minimum size of a picture recognizable by the camera module, or a minimum resolution of a screen displaying an image to be scanned recognizable by the camera module.
Wherein the above-mentioned enlarging or reducing the image, or adjusting the display position of the image may be: and enlarging or reducing the display size of the image displayed in the second area on the display screen, or adjusting the position of the image displayed in the second area. Specifically, when the image displayed in the second area is located outside the shooting angle of the camera module, the image can be enlarged or reduced, or the display position of the image can be adjusted; and when the size of the image displayed in the second area is smaller than the minimum recognizable size of the camera module, amplifying the image. In a specific implementation, when the image information of the first image is failed to be acquired, the first image may be enlarged first, and if the image information of the first image cannot be acquired after the first image is enlarged, the first image may be reduced. Of course, in another embodiment, when the image information of the first image is failed to be acquired, the first image may be reduced first, and if the image information of the first image cannot be acquired even after the first image is reduced, the first image may be enlarged.
Therefore, the situation that the image information of the first image is failed to be acquired due to the fact that the first image is too small and does not accord with the identification precision of the camera module can be avoided; the situation that the image information of the first image is failed to be acquired when the first image is too large or the display position does not correspond to the shooting angle of the camera and exceeds the shooting angle of the camera module can be avoided, and therefore the reliability of the image processing method provided by the embodiment of the invention is improved.
The image processing method provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises a flexible screen and a camera module, and the method comprises the following steps: displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module; receiving a first input; in response to the first input, updating the display position of the first image to a second area or displaying a second image in the second area, and scanning the image displayed in the second area by the camera module, wherein an angle between the orientation of the second area and the orientation of the camera module is a first preset angle, the first preset angle is greater than 90 degrees and less than 180 degrees, and the second image includes at least part of the content of the first image. Therefore, when a user needs to scan a first image displayed on the electronic equipment, at least part of content of the first image is displayed in the second area, and the angle between the orientation of the second area and the orientation of the camera module is larger than 90 degrees and smaller than 180 degrees, so that the second area is positioned in the identification angle of the camera module, the camera module can be controlled to scan the image displayed in the second area, the image does not need to be sent to other electronic equipment, the image displayed on the electronic equipment can be scanned, and the operation complexity of the electronic equipment for scanning the image displayed on the electronic equipment is reduced.
Referring to fig. 6, a flowchart of another image processing method according to an embodiment of the present invention is shown, where the another image processing method according to the embodiment of the present invention is applied to an electronic device, where the electronic device includes a foldable first screen and a foldable second screen, and a camera module is disposed on the first screen. As shown in fig. 6, the another image processing method includes the steps of:
step 601, receiving a first input aiming at a two-dimensional code, and generating a screenshot of the two-dimensional code.
The first input is the same as the first input in the embodiment shown in fig. 1, and is not described herein again.
In addition, the two-dimensional code is displayed in an application program interface, and the generating of the screenshot of the two-dimensional code can be understood as follows: generating a copy of the two-dimensional code, or: and generating a screenshot or a copy of the application program interface displayed with the two-dimensional code.
And step 602, receiving a second input aiming at the screenshot, and displaying the screenshot on the second screen.
The second input may be a user-performed dragging the screenshot out of the application program interface or into a second screen, which is not specifically limited herein. And when the completion of the dragging operation or the stopping of the dragging is detected, displaying the screenshot on the second screen.
And step 603, starting a two-dimensional code scanning interface.
In implementation, when it is detected that the screenshot is displayed on the second screen, prompt information may be output to prompt a user whether to perform a two-dimensional code scanning operation, and the step of opening the two-dimensional code scanning interface may be performed when a confirmation operation of the user for inputting the prompt information is received.
And step 604, folding the display screen until the two-dimensional code is located in the shooting range of the camera module.
Wherein the folding display screen may be: the electronic equipment adjusts the included angle between the first screen and the second screen by itself, and the method can also be as follows: the suggestion user folds the display screen to adjust the contained angle between first screen and the second screen, until the two-dimensional code position is in the shooting scope of the module of making a video recording.
And step 605, controlling the camera module to execute two-dimensional code scanning.
According to the image processing method provided by the embodiment of the invention, the two-dimensional code displayed on the folding screen electronic equipment can be simply and conveniently identified, so that the identification process of the two-dimensional code is simplified.
Referring to fig. 7, an embodiment of the present invention further provides an image processing apparatus 700, which is applied to an electronic device, where the electronic device includes a flexible screen and a camera module, and as shown in fig. 7, the image processing apparatus 700 includes:
the display module 701 is configured to display a first image in a first area of the flexible screen, where an orientation of the first area is the same as an orientation of the camera module.
A first receiving module 702 is configured to receive a first input.
A first response module 703, configured to update the display position of the first image to a second area or display a second image in the second area in response to the first input, and scan the image displayed in the second area through the camera module; an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
Optionally, the flexible screen includes a first screen and a second screen, and the apparatus 700 includes:
a display module 701, configured to display a first image in a first area of the flexible screen, including:
displaying a first image on the first screen;
the first response module 703 is configured to update the display position of the first image to a second area or display a second image in the second area, and scan the image displayed in the second area through the camera module, and includes:
updating the display position of the first image to a third area of the second screen or displaying a second image in the third area of the second screen, and scanning the image displayed in the third area through the camera module;
the angle between the orientation of the third area and the orientation of the camera module is the first preset angle.
Optionally, as shown in fig. 8, the apparatus 700 further includes:
a second receiving module 704, configured to receive a second input before the first responding module 703 executes the updating of the display position of the first image to the second area or displays the second image in the second area, and scans the image displayed in the second area through the camera module;
a second response module 705, configured to respond to the second input, and adjust an angle between the orientation of the second region and the orientation of the camera module to the first preset angle;
optionally, as shown in fig. 9, the apparatus 700 further includes:
a scaling module 706, configured to, after the first responding module 703 performs scanning of the image displayed in the second display area by the imaging module, enlarge or reduce the image or adjust a display position of the image in a case where the image displayed in the second display area satisfies a first condition;
wherein the first condition comprises: the image displayed in the second area is positioned outside the shooting angle of the camera module or the size of the image displayed in the second area is smaller than the minimum recognizable size of the camera module.
Optionally, the image to be scanned includes a two-dimensional code image, a display interface, a picture or a photograph.
The image processing apparatus provided by the embodiment of the present invention can implement each process in the above method embodiments, and can obtain the same beneficial effects, and for avoiding repetition, the details are not repeated here.
Referring to fig. 10, fig. 10 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the invention.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, an electronic device having a flexible screen or a foldable screen and a camera, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, a computer, and a notebook computer.
The display unit 1006 is configured to display a first image in a first area of the flexible screen, where an orientation of the first area is the same as an orientation of the camera module;
a user input unit 1007 for receiving a first input;
the processor 1010 is configured to update the display position of the first image to a second area or control the display unit 1006 to display a second image in the second area in response to the first input, and scan the image displayed in the second area through the camera module; an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
Optionally, the flexible screen includes a first screen and a second screen that are foldable, and the displaying the first image in the first area of the flexible screen includes:
the display unit 1006 is further configured to:
displaying a first image on the first screen;
a processor 1010, further configured to:
updating the display position of the first image to a third area of the second screen or controlling a display unit 1006 to display a second image in the third area of the second screen, and scanning the image displayed in the third area through the camera module;
the angle between the orientation of the third area and the orientation of the camera module is a first preset angle.
Optionally, before the processor 1010 updates the display position of the first image to the second area or controls the display unit 1006 to display the second image in the second area, and scans the image displayed in the second area through the camera module, the user input unit 1007 is further configured to:
receiving a second input;
a processor 1010, further configured to: and responding to the second input, and adjusting the angle between the orientation of the second area and the orientation of the camera module to be the first preset angle.
Optionally, after the scanning of the image displayed in the second display area by the imaging module is executed, the processor 1010 is further configured to:
and in the case that the image displayed in the second area satisfies a first condition, enlarging or reducing the image, or adjusting the display position of the image.
The electronic device provided by the embodiment of the invention can enable the first image to be located in the shooting angle of the camera module by adjusting the display position of the first image, so as to control the camera module to scan the first image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 1002, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the electronic apparatus 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
The electronic device 1000 also includes at least one sensor 1005, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 10061 and/or the backlight when the electronic device 1000 moves to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 10, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the terminal device electronic device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the terminal device electronic device, and is not limited herein.
The interface unit 1008 is an interface for connecting an external device to the electronic apparatus 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1008 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic device 1000 or may be used to transmit data between the electronic device 1000 and the external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby integrally monitoring the electronic device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The electronic device 1000 may further include a power supply 1010 (e.g., a battery) for supplying power to various components, and preferably, the power supply 1010 may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 1000 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 1010, a memory 1009, and a computer program stored in the memory 1009 and capable of running on the processor 1010, where the computer program is executed by the processor 1010 to implement each process of the above-mentioned embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. 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 apparatus that comprises the element.
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 an electronic device (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 the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An image processing method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a flexible screen and a camera module, and the method comprises the following steps:
displaying a first image in a first area of the flexible screen, wherein the orientation of the first area is the same as that of the camera module;
receiving a first input;
responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module;
an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
2. The method of claim 1, wherein the flexible screen comprises a first screen and a second screen, the method comprising:
the displaying a first image in a first area of the flexible screen includes:
displaying a first image on the first screen;
the updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module, includes:
updating the display position of the first image to a third area of the second screen or displaying a second image in the third area of the second screen, and scanning the image displayed in the third area through the camera module;
the angle between the orientation of the third area and the orientation of the camera module is the first preset angle.
3. The method according to claim 1, wherein before the updating the display position of the first image to the second area or displaying the second image in the second area, and scanning the image displayed in the second area by the camera module, the method further comprises:
receiving a second input;
and responding to the second input, and adjusting the angle between the orientation of the second area and the orientation of the camera module to be the first preset angle.
4. The method of claim 1, wherein after the scanning of the image displayed in the second region by the imaging module, the method further comprises:
in the case where the image displayed in the second area satisfies a first condition, enlarging or reducing the image, or adjusting the display position of the image;
wherein the first condition comprises: the image displayed in the second area is positioned outside the shooting angle of the camera module or the size of the image displayed in the second area is smaller than the minimum recognizable size of the camera module.
5. The utility model provides an image processing device, is applied to electronic equipment, electronic equipment includes flexible screen and the module of making a video recording, its characterized in that, the device includes:
the display module is used for displaying a first image in a first area of the flexible screen, and the orientation of the first area is the same as that of the camera module;
the first receiving module is used for receiving a first input;
the first response module is used for responding to the first input, updating the display position of the first image into a second area or displaying a second image in the second area, and scanning the image displayed in the second area through the camera module;
an angle between the orientation of the second region and the orientation of the camera module is a first preset angle, the first preset angle is larger than 90 degrees and smaller than 180 degrees, and the second image comprises at least part of content of the first image.
6. The apparatus of claim 5, wherein the flexible screen comprises a first screen and a second screen, the apparatus comprising:
the display module is used for displaying a first image in a first area of the flexible screen, and comprises:
displaying a first image on the first screen;
the first response module is configured to update the display position of the first image to a second area or display a second image in the second area, and scan the image displayed in the second area through the camera module, and includes:
updating the display position of the first image to a third area of the second screen or displaying a second image in the third area of the second screen, and scanning the image displayed in the third area through the camera module;
the angle between the orientation of the third area and the orientation of the camera module is the first preset angle.
7. The apparatus of claim 5, further comprising:
the second receiving module is used for receiving a second input before the first response module updates the display position of the first image into a second area or displays a second image in the second area and scans the image displayed in the second area through the camera module;
and the second response module is used for responding to the second input and adjusting the angle between the orientation of the second area and the orientation of the camera module to the first preset angle.
8. The apparatus of claim 5, further comprising:
a zooming module, configured to, after the first responding module performs scanning of the image displayed by the second region by the imaging module, zoom in or out the image or adjust a display position of the image in a case where the image displayed by the second region satisfies a first condition;
wherein the first condition comprises: the image displayed in the second area is positioned outside the shooting angle of the camera module or the size of the image displayed in the second area is smaller than the minimum recognizable size of the camera module.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the image processing method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps in the image processing method according to any one of claims 1 to 4.
CN201911421259.2A 2019-12-31 2019-12-31 Image processing method and device and electronic equipment Active CN111131712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911421259.2A CN111131712B (en) 2019-12-31 2019-12-31 Image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911421259.2A CN111131712B (en) 2019-12-31 2019-12-31 Image processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111131712A CN111131712A (en) 2020-05-08
CN111131712B true CN111131712B (en) 2021-07-13

Family

ID=70507597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911421259.2A Active CN111131712B (en) 2019-12-31 2019-12-31 Image processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111131712B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813309B (en) * 2020-07-10 2022-04-29 维沃移动通信(杭州)有限公司 Display method, display device, electronic equipment and readable storage medium
CN114090144A (en) * 2021-10-11 2022-02-25 维沃移动通信有限公司 Content display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994192A (en) * 2015-07-13 2015-10-21 广东欧珀移动通信有限公司 Flexible screen mobile terminal
CN108848298A (en) * 2018-04-26 2018-11-20 努比亚技术有限公司 Picture shooting method, flexible terminal and computer readable storage medium
CN110290235A (en) * 2018-03-19 2019-09-27 华为技术有限公司 Electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631333B (en) * 2012-08-27 2017-07-21 联想(北京)有限公司 A kind of reminding method and electronic equipment
CN104933964B (en) * 2015-07-03 2018-09-07 京东方科技集团股份有限公司 Flexible display screen, display equipment and the display methods applied to flexible display screen
CN105872365A (en) * 2016-03-29 2016-08-17 努比亚技术有限公司 Photographing method and device for mobile terminal
CN106205390B (en) * 2016-07-08 2018-03-27 广东欧珀移动通信有限公司 A kind of electronic equipment control method and electronic equipment
CN107846515A (en) * 2017-11-07 2018-03-27 广东欧珀移动通信有限公司 shooting parameter adjustment method, device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994192A (en) * 2015-07-13 2015-10-21 广东欧珀移动通信有限公司 Flexible screen mobile terminal
CN110290235A (en) * 2018-03-19 2019-09-27 华为技术有限公司 Electronic equipment
CN108848298A (en) * 2018-04-26 2018-11-20 努比亚技术有限公司 Picture shooting method, flexible terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111131712A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN108668083B (en) Photographing method and terminal
CN108471498B (en) Shooting preview method and terminal
CN109361869B (en) Shooting method and terminal
CN109542306B (en) Screen capturing method and terminal equipment
CN108881733B (en) Panoramic shooting method and mobile terminal
CN109725683B (en) Program display control method and folding screen terminal
CN110505400B (en) Preview image display adjustment method and terminal
CN109739407B (en) Information processing method and terminal equipment
WO2019184947A1 (en) Image viewing method and mobile terminal
CN107741814B (en) Display control method and mobile terminal
CN110784575B (en) Electronic equipment and shooting method
CN111031234B (en) Image processing method and electronic equipment
CN109656636B (en) Application starting method and device
CN108174110B (en) Photographing method and flexible screen terminal
CN110933494A (en) Picture sharing method and electronic equipment
CN111028686B (en) Image processing method, image processing apparatus, electronic device, and medium
CN111405181B (en) Focusing method and electronic equipment
CN110536005B (en) Object display adjustment method and terminal
CN111131712B (en) Image processing method and device and electronic equipment
CN110413363B (en) Screenshot method and terminal equipment
CN109669656B (en) Information display method and terminal equipment
CN110865752A (en) Photo viewing method and electronic equipment
CN108898548B (en) Display method of panorama and mobile terminal
CN110928407A (en) Information display method and device
CN110456959B (en) Terminal control method and terminal

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
GR01 Patent grant
GR01 Patent grant