US9692961B2 - Electronic device and virtual image rotation method - Google Patents
Electronic device and virtual image rotation method Download PDFInfo
- Publication number
- US9692961B2 US9692961B2 US14/695,529 US201514695529A US9692961B2 US 9692961 B2 US9692961 B2 US 9692961B2 US 201514695529 A US201514695529 A US 201514695529A US 9692961 B2 US9692961 B2 US 9692961B2
- Authority
- US
- United States
- Prior art keywords
- image
- directional value
- virtual
- coordinate system
- facial image
- 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, expires
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000001815 facial effect Effects 0.000 claims abstract description 114
- 230000003213 activating effect Effects 0.000 claims 2
- 238000013507 mapping Methods 0.000 claims 2
- 230000006870 function Effects 0.000 description 3
- 229920000535 Tan II Polymers 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Classifications
-
- H04N5/23219—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H04N5/23293—
Definitions
- the subject matter herein generally relates to electronic devices, and particularly, to an electronic device capable of automatically rotating a virtual image.
- Some electronic devices employ gravity sensors to automatically rotate virtual images displayed on display screens when the display screens of the electronic devices are rotated. However, sometimes, the rotational values of the display screens of the electronic devices and the rotational values of the virtual images displayed on the display screens are not consistent.
- FIG. 1 is a block diagram showing an embodiment of an electronic device.
- FIG. 2 is a block diagram showing an embodiment of a virtual image rotation system.
- FIG. 3 is a perspective view showing how to determine a directional value of a primary facial image.
- FIG. 4 is a perspective view showing how to rotate a virtual image displayed on a display screen of FIG. 1 .
- FIG. 5 is a flowchart showing an embodiment of a virtual image rotation method.
- module refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language.
- the software instructions in the modules can be embedded in firmware, such as in an erasable programmable read-only memory (EPROM) device.
- EPROM erasable programmable read-only memory
- the modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of computer-readable medium or other storage device.
- comprising means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
- FIG. 1 illustrates an embodiment of an electronic device 1 .
- the electronic device 1 can be a portable electronic device, such as a smart phone, a tablet computer, a personal digital assistant, an E-book, or the like.
- the electronic device 1 can include, but is not limited to, a storage unit 11 , a processor 12 , a camera 13 , and a display screen 14 .
- the storage unit 11 can be a hard disk, a compact disk, or a flash memory, for example.
- the flash memory can be a smart media (SM) card, a compact flash (CF) card, a secure digital (SD) card, an xd-picture (XD) card, or the like.
- SM smart media
- CF compact flash
- SD secure digital
- XD xd-picture
- the storage unit 11 can store an open source computer vision (OpenCV).
- OpenCV can be a library of programming functions mainly aimed at real-time computer vision. It can be a prior art and focus mainly on real-time image processing.
- the OpenCV can run on Windows®, Android®, iOS®, OSX®, and the like.
- the OpenCV can include a face database storing a number of face images.
- the storage unit 11 can further store one or more preset rotational values, with each rotational value associated with a preset directional value range. In the embodiment, when the preset directional value range is a half open interval [45°, 135°), the rotational value is 0 degrees.
- the rotational value is 90 degrees counterclockwise.
- the preset directional value range is a half open interval [225°, 315°)
- the rotational value is 180 degrees clockwise.
- the preset directional value range is equal to a half open interval [0°, 45°) or a half open interval [315°, 360°)
- the rotational value is 90 degrees clockwise.
- the processor 12 can be a central processing unit, a digital signal processor, or a single chip, for example.
- the camera 13 can be configured to capture images on a first side of the electronic device.
- the display screen 14 can be a liquid crystal display, an organic light-emitting diode, or the like.
- the display screen 14 can be configured to display a virtual image.
- the electronic device 1 can include a window coordinate system which rotates together with the rotation of the display screen 14 of the electronic device 1 . When the display screen 14 is in a natural state, the origin of the window coordinate system can be a top left corner of the display screen 14 , the X axis of the window coordinate system can be the rightward direction from the origin, and the Y axis of the window coordinate system can be the downward direction from the origin.
- the electronic device 1 can activate the camera 13 to capture an image on the first side of the electronic device, identify a primary facial image according to the captured image, calculate a directional value of the primary facial image in the captured image, and rotate the virtual image displayed on the display screen according to the directional value of the primary facial image.
- the electronic device 1 can further include a virtual image rotation system 10 .
- FIG. 2 illustrates an embodiment of the virtual image rotation system 10 .
- the virtual image rotation system 10 can include a capturing module 21 , an analyzing module 22 , a selection module 23 , a calculating module 24 , and a rotation module 25 .
- One or more programs of the function modules can be stored in the storage unit 11 and executed by the processor 12 .
- the capturing module 21 can be configured to activate the camera 13 to capture the image on the first side of the electronic device 1 . In the embodiment, the capturing module 21 can be configured to activate the camera 13 to capture the image on the first side of the electronic device 1 at predetermined time interval.
- the analyzing module 22 can be configured to analyze the captured image to identify one or more facial images in the captured image. In the embodiment, the analyzing module 22 can be configured to employ the OpenCV to analyze the captured image to identify one or more facial images in the captured image.
- the selection module 23 can be configured to identify one of the one or more facial images in the captured image as a primary facial image. In detail, when the number of facial images is one, the selection module 23 can identify that the facial image uniquely appearing in the captured image is the primary facial image. When the number of facial images is more than one, the selection module 23 can identify the facial image which is most similar to face images of the face database of the OpenCV from all the facial images to be the primary facial image.
- the calculating module 24 can be configured to calculate the directional value of the primary facial image in the captured image.
- the calculating module 24 can be configured to establish a virtual coordinate system: where an origin of the virtual coordinate system is a center of the mouth of the primary facial image; the X axis of the virtual coordinate system is parallel with and in a same direction with the X axis of the window coordinate system; and the Y axis of the virtual coordinate system is parallel with and in an opposite direction with the Y axis of the window coordinate system.
- the virtual coordinate system can be a Descartes coordinate system.
- the calculating module 24 can be further configured to determine the directional value of the primary facial image to be the angle between the straight line and the X axis of the virtual coordinate system.
- the rotation module 25 can be configured to rotate a virtual image displayed on the display screen based on the preset rotational value associated with the preset directional value range in which the calculated directional value of the primary facial image falls.
- the rotation module 25 can be configured to determine which preset directional value range that the calculated directional value of the primary facial image falls into, determine the preset rotational value associated with the determined preset directional value range, and rotate the virtual image displayed on the display screen with the determined rotational value. That is, as shown in FIG. 4 , when the directional value of the primary facial image falls into the preset directional value range [45°, 135°), the rotation module 25 prevents the rotation of the virtual image. When the directional value of the primary facial image falls into the directional value range [135°, 225°), the rotation module 25 can rotate the virtual image 90 degrees counterclockwise.
- the rotation module 25 can rotate the virtual image 180 degrees clockwise.
- the rotation module 25 can rotate the virtual image 90 degrees clockwise.
- FIG. 5 illustrates an embodiment of a virtual image rotation method 500 .
- the method 500 is provided by way of example, as there are a variety of ways to carry out the method 500 .
- the method 500 described below can be carried out using the configurations illustrated in FIGS. 1 and 2 , for example, and various elements of these figures are referenced in the explanation of the method 500 .
- Each block shown in FIGS. 1 and 2 represents one or more processes, methods, or subroutines carried out in the method. Additionally, the illustrated order of blocks is by example only and the order of the blocks can change.
- the method 500 can begin at block 501 .
- a capturing module activates a camera to capture an image on a first side of an electronic device.
- the capturing module activates the camera to capture the image on the first side of the electronic device at predetermined time interval.
- an analyzing module analyzes the captured image to identify one or more facial images in the captured image.
- the analyzing module employs an OpenCV to analyze the captured image to identify one or more facial images in the captured image.
- a selection module identifies one of the one or more facial images in the captured image as a primary facial image. In detail, when the number of facial images is one, the selection module identifies that the facial image uniquely appearing in the captured image is the primary facial image, and when the number of facial images is more than one, the selection module identifies the facial image which is most similar to face images of a face database of the OpenCV from all the facial images to be the primary facial image.
- a calculating module calculates a directional value of the primary facial image in the captured image.
- the calculating module establishes a virtual coordinate system: where an origin of the virtual coordinate system is a center of the mouth of the primary facial image; the X axis of the virtual coordinate system is parallel with and in a same direction with the X axis of the window coordinate system; and the Y axis of the virtual coordinate system is parallel with and in an opposite direction with the Y axis of the window coordinate system.
- the calculating module further determines the directional value of the primary facial image to be the angle between the straight line and the x axis of the virtual coordinate system.
- a rotation module rotates a virtual image displayed on the display screen based on the preset rotational value associated with the preset directional value range in which the calculated directional value of the primary facial image falls.
- the rotation module determines which preset directional value range that the calculated directional value of the primary facial image falls into, determines the preset rotational value associated with the determined preset directional value range, and rotates the virtual image displayed on the display screen with the determined rotational value. That is, when the directional value of the primary facial image falls into a preset directional value range [45°, 135°), the rotation module prevents the rotation of the virtual image.
- the rotation module rotates the virtual image 90 degrees counterclockwise.
- the rotation module rotates the virtual image 180 degrees clockwise.
- the rotation module rotates the virtual image 90 degrees clockwise.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Analysis (AREA)
- Studio Devices (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Abstract
Description
θ=A tan 2(x,y)*180/π;
-
- where θ is the angle between the straight line and the X axis of the virtual coordinate system; (x, y) is a set of coordinates of the target point; π is a ratio of the circumference of a circle to its diameter; and
θ=A tan 2(x,y)*180/π;
where θ is the angle between the straight line and the X axis of the virtual coordinate system; (x, y) is a set of coordinates of the target point; π is a ratio of the circumference of a circle to its diameter; and
Claims (15)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW103137538 | 2014-10-30 | ||
TW103137538A TW201616282A (en) | 2014-10-30 | 2014-10-30 | Interface rotation system and method |
TW103137538A | 2014-10-30 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20160127639A1 US20160127639A1 (en) | 2016-05-05 |
US9692961B2 true US9692961B2 (en) | 2017-06-27 |
Family
ID=55854142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/695,529 Active 2035-06-01 US9692961B2 (en) | 2014-10-30 | 2015-04-24 | Electronic device and virtual image rotation method |
Country Status (2)
Country | Link |
---|---|
US (1) | US9692961B2 (en) |
TW (1) | TW201616282A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI744775B (en) * | 2020-01-17 | 2021-11-01 | 張櫸馨 | Layout image adjustment method and device, and platform system using the same |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201403454A (en) | 2012-07-05 | 2014-01-16 | Asustek Comp Inc | Screen rotating method and system |
US20150085076A1 (en) * | 2013-09-24 | 2015-03-26 | Amazon Techologies, Inc. | Approaches for simulating three-dimensional views |
-
2014
- 2014-10-30 TW TW103137538A patent/TW201616282A/en unknown
-
2015
- 2015-04-24 US US14/695,529 patent/US9692961B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201403454A (en) | 2012-07-05 | 2014-01-16 | Asustek Comp Inc | Screen rotating method and system |
US20150085076A1 (en) * | 2013-09-24 | 2015-03-26 | Amazon Techologies, Inc. | Approaches for simulating three-dimensional views |
Also Published As
Publication number | Publication date |
---|---|
US20160127639A1 (en) | 2016-05-05 |
TW201616282A (en) | 2016-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10949995B2 (en) | Image capture direction recognition method and server, surveillance method and system and image capture device | |
CN108537721B (en) | Panoramic image processing method and device and electronic equipment | |
US20170070665A1 (en) | Electronic device and control method using electronic device | |
US9342138B2 (en) | Mobile device and rotating method of image thereon | |
US9076364B2 (en) | Electronic device and method for adjustting display screen | |
TW202004638A (en) | Bill photographing interaction method and apparatus, processing device, and client | |
US8908098B2 (en) | Method and apparatus for interacting with television screen | |
WO2017092679A1 (en) | Eyeball tracking method and apparatus, and device | |
US10282857B1 (en) | Self-validating structured light depth sensor system | |
RU2016101616A (en) | COMPUTER DEVICE, METHOD AND COMPUTING SYSTEM | |
KR20180096496A (en) | Apparatus, system and method for determining one or more optical parameters of a lens | |
EP3273412A1 (en) | Three-dimensional modelling method and device | |
CN103885611A (en) | Method and device for adjusting image | |
CN104137028A (en) | Device and method for controlling rotation of displayed image | |
US10542218B2 (en) | Image photographing apparatus and photographing method thereof | |
EP2497545A3 (en) | Information processing program, information processing system, and information processing method | |
US9972131B2 (en) | Projecting a virtual image at a physical surface | |
US9536298B2 (en) | Electronic device and method for detecting surface flaw of object | |
US20160163024A1 (en) | Electronic device and method for adjusting images presented by electronic device | |
US20170004617A1 (en) | Electronic device and mehod for capturing multi-aspect images using the electronic device | |
CN111340960A (en) | Image modeling method and device, storage medium and electronic equipment | |
US9827486B2 (en) | Electronic device and method for pausing video during playback | |
US9692961B2 (en) | Electronic device and virtual image rotation method | |
US20170188081A1 (en) | Method and apparatus for interacting with display screen | |
US20150185875A1 (en) | Control system and method for controlling user interfaces for electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: FIH (HONG KONG) LIMITED, HONG KONG Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:KUO, SAN-HSIN;REEL/FRAME:035490/0316 Effective date: 20150421 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
AS | Assignment |
Owner name: MOBILE DRIVE TECHNOLOGY CO.,LTD., TAIWAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FIH (HONG KONG) LIMITED;REEL/FRAME:051442/0362 Effective date: 20191205 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |
|
AS | Assignment |
Owner name: MOBILE DRIVE NETHERLANDS B.V., NETHERLANDS Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MOBILE DRIVE TECHNOLOGY CO., LTD.;REEL/FRAME:057391/0564 Effective date: 20210820 |
|
FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |