WO2019037698A1 - 图像显示方法及装置和电子设备 - Google Patents
图像显示方法及装置和电子设备 Download PDFInfo
- Publication number
- WO2019037698A1 WO2019037698A1 PCT/CN2018/101445 CN2018101445W WO2019037698A1 WO 2019037698 A1 WO2019037698 A1 WO 2019037698A1 CN 2018101445 W CN2018101445 W CN 2018101445W WO 2019037698 A1 WO2019037698 A1 WO 2019037698A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- scanning device
- image
- distance value
- detecting device
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/64—Three-dimensional [3D] 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/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/60—Static or dynamic means for assisting the user to position a body part for biometric acquisition
- G06V40/67—Static or dynamic means for assisting the user to position a body part for biometric acquisition by interactive indications to the user
-
- 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/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/22—Character recognition characterised by the type of writing
- G06V30/224—Character recognition characterised by the type of writing of printed characters having additional code marks or containing code marks
Definitions
- the embodiments of the present disclosure relate to the field of Internet technologies, and in particular, to an image display method and apparatus, and an electronic device.
- the image will appear small for the scanning device, and the scanning is not easy, and the worker who operates the scanning device needs to move the scanning device close to the terminal and find the optimal distance to complete the scanning; If the user is closer to the scanning device, the image will appear too large for the scanning device, and it is not easy to scan successfully. The worker needs to move the scanning device away from the terminal and find the best distance to complete the scanning.
- an image display method comprising:
- the scanning device is configured to scan the displayed image
- the size of the currently displayed image is adjusted to the optimal size.
- an image display method comprising:
- the size of the currently displayed face image is adjusted to the optimal size.
- an image display apparatus comprising:
- Obtaining a unit acquiring, by the detecting device, a distance value of the terminal from the scanning device; the scanning device is configured to scan the displayed image;
- a calculating unit calculating an optimal size of the image according to the distance value
- the display unit adjusts the size of the currently displayed image to the optimal size.
- an image display apparatus comprising:
- Calculating unit calculating an optimal size of the face image according to the distance value
- the display unit adjusts the size of the currently displayed face image to the optimal size.
- an electronic device including:
- a memory for storing processor executable instructions
- processor is configured to:
- the scanning device is configured to scan the displayed image
- the size of the currently displayed image is adjusted to the optimal size.
- an electronic device including:
- a memory for storing processor executable instructions
- processor is configured to:
- the size of the currently displayed face image is adjusted to the optimal size.
- the user may face the scanning device with the terminal displaying the image to be scanned at any position from the scanning device; the detecting device in the terminal may detect the distance value of the terminal from the scanning device; Describe the distance value detected by the detecting device, calculate the optimal size of the image that is most convenient for the scanning device to scan, and finally adjust the size of the displayed image to the optimal size; since the adjusted image size is most convenient for the scanning device to scan , so you can achieve improved scanning success rate.
- FIG. 1 is a structural diagram of a system for implementing image display according to an embodiment of the present disclosure
- FIG. 2 is a flowchart of an image display method according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a detecting device provided by an embodiment of the present specification.
- FIG. 4 is a structural diagram of a system for implementing image display according to an embodiment of the present disclosure
- FIG. 5 is a flowchart of an image display method according to an embodiment of the present disclosure.
- FIG. 6 is a structural diagram of a system for implementing image display according to an embodiment of the present disclosure.
- FIG. 7 is a flowchart of an image display method according to an embodiment of the present disclosure.
- FIG. 8 is a flowchart of an image display method according to an embodiment of the present disclosure.
- FIG. 9 is a schematic block diagram of an image display apparatus according to an embodiment of the present disclosure.
- FIG. 10 is a schematic block diagram of an image display device according to an embodiment of the present disclosure.
- first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as the second information without departing from the scope of the present description.
- second information may also be referred to as the first information.
- word "if” as used herein may be interpreted as "when” or "when” or "in response to determination.”
- the user will display the terminal with the image to be scanned facing the scanning device, since the image size displayed by the terminal is usually fixed, and each user terminal is not fixed from the scanning device, in many cases
- the staff is required to constantly move the scanning device to find the best distance to complete the scan. For example, if the user is far away from the scanning device, the image will appear small for the scanning device, and the scanning is not easy, and the worker who operates the scanning device needs to move the scanning device close to the terminal and find the optimal distance to complete the scanning; If the user is closer to the scanning device, the image will appear too large for the scanning device, and it is not easy to scan successfully. The worker needs to move the scanning device away from the terminal and find the best distance to complete the scanning.
- the system 100 shown in FIG. 1 can include a user's terminal 11 and a scanning device 12.
- the terminal 11 can be used to display the image 111 to be scanned, and the detecting device 112 can also be configured to detect the distance value of the terminal 11 from the scanning device 12. .
- the scanning device 12 can be used to scan the image 111 displayed by the terminal 11 to perform related business processes.
- the terminal 11 can display a payment code image (as shown in FIG. 1), and the scanning device 12 passes the scan.
- the code can complete the payment process; in another example, the terminal 11 can display the ticket code image, and the scanning device 12 can complete the identity verification by scanning the code, thereby issuing the ticket (which can be paper or electronic).
- the user can face the display device 11 with the image to be scanned 111 facing the scanning device 12 at any position from the scanning device 12; the terminal 11 can automatically adjust the displayed image 111 based on the distance value detected by the detecting device.
- the size (for example, magnifying the originally smaller image 111 or reducing the originally larger image 111) facilitates the scanning device 12 to efficiently scan.
- the method may include the following steps:
- Step 210 Determine an image displayed in the current terminal.
- the image may refer to a graphic code, for example, including a two-dimensional code, a barcode, or the like.
- Step 220 Acquire a distance value of the terminal detected by the detecting device from the scanning device; the scanning device is configured to scan the displayed image.
- the detecting device includes a distance sensor
- the step 220 acquires a distance value of the terminal that is detected by the detecting device from the scanning device, and specifically includes:
- the terminal may be provided with a distance sensor (as shown in FIG. 3).
- the distance sensor may be used to detect the distance value of the terminal from the scanning device, and report the distance value to the terminal.
- the distance sensor can be composed of two components, one for emitting infrared rays and the other for detecting infrared rays.
- the working principle is as follows.
- the emitted infrared rays are reflected after encountering an obstacle (the scanning device described in this specification), and the reflected infrared rays are detected by the components detecting the infrared rays.
- the distance value of the terminal from the obstacle can be calculated.
- the detecting device includes a camera of the terminal
- the distance value of the terminal detected by the acquiring detecting device from the scanning device includes:
- the camera of the terminal includes a front camera (as shown in FIG. 3); and may also be a rotary camera, a flip camera, or the like.
- the terminal After acquiring the scanning device image captured by the camera, the terminal may calculate a distance value of the current terminal from the scanning device according to an image processing algorithm.
- the distance value can also be determined by the distance sensor and the camera to determine a relatively accurate distance value.
- the scanning device may include a hand-held scanner or a fixed scanner.
- Step 230 Calculate an optimal size of the image according to the distance value.
- the terminal may preset a correspondence between a distance value and an optimal size
- the optimal size corresponding to 3 meters is 3cm*3cm
- the optimal size corresponding to 5 meters is 5cm*5cm;
- the optimal size corresponding to 10 is 10cm*10cm
- the final determined optimal size also needs to be determined according to the actual screen size of the terminal. For example, if the calculated optimal size exceeds the screen size of the terminal, the final determined optimal size may be the screen size.
- the terminal can calculate the optimal size according to the local computing model.
- the computing model may be provided by a service provider server.
- the third-party server is a payment application platform; in the ticket collection scenario, the third-party server may be a ticketing application platform.
- the model can typically be trained based on massive distance values and optimal size data.
- the terminal inputs the obtained distance value into the calculation model to obtain the optimal size of the output.
- Step 240 Adjust the size of the currently displayed image to the optimal size.
- the user may face the scanning device with the terminal displaying the image to be scanned at any position from the scanning device; the detecting device in the terminal may detect the distance value of the terminal from the scanning device; and then, the terminal detects according to the detecting device.
- the distance value is calculated to optimize the optimal size of the scanning device for scanning, and finally the size of the displayed image can be adjusted to the optimal size; since the adjusted image size is most convenient for scanning by the scanning device, the scanning can be improved. Success rate.
- the following request refers to another system architecture diagram for implementing image display provided in the embodiment of the present specification shown in FIG.
- the system 400 shown in FIG. 4 can include a user's terminal 41, a detection device 42, and a scanning device 43.
- the terminal 41 can be used to display the image 411 to be scanned.
- the detection device 42 can be used to detect the distance value of the terminal 41 from the scanning device 43.
- the terminal 41 and the detecting device 42 may be integrated with modules suitable for short-range wireless communication, such as a Bluetooth module, an infrared (IrDA) module, a wireless local area network (WI-FI or WLAN, most of which adopt an 802.11 series protocol).
- modules suitable for short-range wireless communication such as a Bluetooth module, an infrared (IrDA) module, a wireless local area network (WI-FI or WLAN, most of which adopt an 802.11 series protocol).
- WIFI Direct Wi-Fi Direct
- Ultra Wide Band Ultra Wide Band
- Zifeng Zigbee
- NFC Near Field Communication
- the short-range wireless connection 412 can be established between the terminal 41 and the detecting device 42 by the module of the short-range wireless communication, such that the detecting device 42 detects the distance value of the terminal 41 from the scanning device 43 after detecting the distance value of the terminal 41 from the scanning device 43.
- the distance value can be transmitted to the terminal 41 via the short-range wireless connection 412.
- the scanning device 43 can be used to scan the image 411 displayed by the terminal 41 to perform related business processes, for example, in the payment scenario, the terminal 41 can display a payment code image (as shown in FIG. 4), and the scanning device 43 passes the scan.
- the code can complete the payment process; in another example, the terminal 41 can display the ticket code image, and the scanning device 43 can complete the identity verification by scanning the code, thereby issuing the ticket (which can be paper or electronic).
- the user can face the scanning device 43 with the terminal 41 displaying the image to be scanned 411 at any position from the scanning device 43; the detecting device 42 transmits the detected distance value to the terminal 41; the terminal 41
- the size of the displayed image 411 is automatically adjusted according to the received distance value (for example, the originally smaller image 411 is enlarged, or the originally larger image 411 is reduced), thereby facilitating the scanning device 43 to perform scanning efficiently.
- the method may include the following steps:
- Step 510 Determine an image displayed in the current terminal.
- This step is the same as step 110, and is not described here.
- Step 550 Receive a distance value of the terminal from the scanning device sent by the detecting device through the short-range wireless connection; the scanning device is configured to scan the displayed image.
- the short-range wireless includes one of Bluetooth, infrared, wireless local area network, WIFI, ultra-wideband communication, Zifeng, and near field communication.
- a distance sensor and/or a camera may be integrated in the detecting device; the distance sensor and the camera are the same as those in the previous embodiment, and details are not described herein again.
- Step 530 Calculate an optimal size of the image according to the distance value.
- This step is the same as the previous step 130, and details are not described herein again.
- Step 540 Adjust the size of the currently displayed image to the optimal size.
- This step is the same as the previous step 140, and details are not described herein again.
- the detecting device in the embodiment is a third-party detecting device other than the terminal, and the detecting device establishes a short-range wireless connection with the terminal, The distance value is sent by the detection device over a short-range wireless connection.
- the following request refers to another system architecture diagram for implementing image display provided in the embodiment of the present specification shown in FIG. 6.
- the system 600 shown in FIG. 6 can include a user's terminal 61 and a scanning device 62.
- the terminal 61 can be used to display the image 611 to be scanned.
- the scanning device 62 can be used to scan the image 611 displayed by the terminal 61 to perform related business processes, such as in a payment scenario, the terminal 61 can display a payment code image (as shown in the figure), and the scanning device 62 scans the code.
- the payment process can be completed; for example, in the ticket collection scenario, the terminal 61 can display the ticket code image, and the scanning device 63 can complete the identity verification by scanning the code, thereby issuing the ticket (which can be paper or electronic).
- a detection device 621 can also be integrated in the scanning device 62, and the detection device 621 can be used to detect a distance value of the scanning device 62 from the terminal 61.
- the terminal 61 and the scanning device 62 may be integrated with modules suitable for short-range wireless communication, such as a Bluetooth module, an infrared (IrDA) module, a wireless local area network (WI-FI or WLAN, mostly using an 802.11 series protocol).
- modules suitable for short-range wireless communication such as a Bluetooth module, an infrared (IrDA) module, a wireless local area network (WI-FI or WLAN, mostly using an 802.11 series protocol).
- WIFI Direct Wi-Fi Direct
- Ultra Wide Band Ultra Wide Band
- Zifeng Zigbee
- NFC Near Field Communication
- a short-range wireless connection 622 can be established between the terminal 61 and the scanning device 62, such that the detecting device 621 detects the distance value of the scanning device 62 from the terminal 61, The distance value can be transmitted to the terminal 41 via the short-range wireless connection 622.
- the user may face the display device 61 with the image to be scanned 611 facing the scanning device 62 at any position from the scanning device 62; the detecting device 621 transmits the detected distance value to the terminal 61; the terminal 61
- the size of the displayed image 611 is automatically adjusted according to the received distance value (for example, the originally smaller image 611 is enlarged, or the originally larger image 611 is reduced), thereby facilitating the scanning device 62 to perform scanning efficiently.
- the method may include the following steps:
- Step 710 Determine an image displayed in the current terminal.
- This step is the same as step 110, and is not described here.
- Step 720 Receive a distance value of the scanning device sent by the scanning device through the short-range wireless connection from the terminal; the distance value is detected by the detecting device in the scanning device, and the scanning device is configured to scan the display. Image.
- the short-range wireless includes one of Bluetooth, infrared, wireless local area network, WIFI, ultra-wideband communication, Zifeng, and near field communication.
- the detecting device may include a distance sensor and/or a camera; the distance sensor and the camera are the same as those in the foregoing embodiment, and details are not described herein again.
- the distance value detected by the detecting device may be sent by the detecting device through a short-range wireless connection
- the short-range wireless module may also be integrated in the detecting device, and the distance value may be directly sent by the detecting device over a short-range wireless connection without going through the Scan the device.
- Step 730 Calculate an optimal size of the image according to the distance value.
- This step is the same as the previous step 130, and details are not described herein again.
- Step 740 Adjust the size of the currently displayed image to the optimal size.
- This step is the same as the previous step 140, and details are not described herein again.
- the detecting device is located in the scanning device, and the scanning device establishes a short-range wireless connection with the terminal, and the distance value is sent by the scanning device through a short-range wireless connection.
- the method may include the following steps:
- Step 810 Determine a face image displayed in the current terminal.
- Step 820 Acquire a distance value of the terminal detected by the detecting device from the face;
- Step 830 Calculate an optimal size of the face image according to the distance value.
- Step 840 Adjust the size of the currently displayed face image to the optimal size.
- the user is required to limit the face image captured by the camera to a preset range. Due to the distance, the user needs to constantly move the terminal so that the face image size just meets the recognition requirement.
- the embodiment can be applied to a face recognition scene, and the distance value of the terminal is detected based on the detection device in the terminal; and the optimal size of the face image is conveniently calculated according to the distance value. Finally, the size of the displayed face image can be adjusted to the optimal size; since the size of the adjusted face image is most conveniently identified, the success rate of the face recognition can be improved.
- the present specification also provides an embodiment of an image display device.
- the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
- the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory.
- a hardware structure of the device where the image display device of the present specification is located may include a processor, a network interface, a memory, and a non-volatile memory.
- the device where the device is located usually displays an actual function according to the image. It can also include other hardware, which will not be described here.
- FIG. 9 is a block diagram of an image display device according to an embodiment of the present disclosure.
- the device corresponds to the embodiment shown in FIG. 2, and the device includes:
- the determining unit 910 determines an image displayed in the current terminal
- the obtaining unit 920 is configured to acquire a distance value of the terminal detected by the detecting device from the scanning device, where the scanning device is configured to scan the displayed image;
- the calculating unit 930 calculates an optimal size of the image according to the distance value
- the display unit 940 adjusts the size of the currently displayed image to the optimal size.
- the detecting device includes a distance sensor, and the acquiring unit 920 specifically includes:
- the detecting device includes a camera of the terminal, and the acquiring unit 920 specifically includes:
- Determining a subunit determining a distance value of the terminal from the scanning device according to the scanning device image.
- the camera of the terminal includes a rotary camera or a front camera.
- the scanning device includes a scanning code gun.
- the image includes a graphic code.
- the detecting device is a third-party detecting device other than the terminal, and the detecting device establishes a short-range wireless connection with the terminal;
- the obtaining unit 920 specifically includes:
- the detecting device is located in the scanning device, and the scanning device establishes a short-range wireless connection with the terminal;
- the obtaining unit 920 specifically includes:
- the distance value of the scanning device sent by the scanning device from the terminal is detected by the detecting device in the scanning device.
- the short-range wireless includes one of Bluetooth, infrared, wireless local area network, WIFI, ultra-wideband communication, Zifeng, and near field communication.
- FIG. 10 is a block diagram of an image display apparatus according to an embodiment of the present disclosure.
- the apparatus corresponds to the embodiment shown in FIG. 8.
- the apparatus includes:
- the determining unit 1010 is configured to determine a face image displayed in the current terminal
- the obtaining unit 1020 is configured to acquire a distance value of the terminal detected by the detecting device from the face;
- the calculating unit 1030 calculates an optimal size of the face image according to the distance value
- the display unit 1040 adjusts the size of the currently displayed face image to the optimal size.
- the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
- a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, and a game control.
- the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present specification. Those of ordinary skill in the art can understand and implement without any creative effort.
- the internal function module and structure of the image display device are described in FIG. 9 , and the substantial execution body of the image display device may be an electronic device, including:
- a memory for storing processor executable instructions
- processor is configured to:
- the scanning device is configured to scan the displayed image
- the size of the currently displayed image is adjusted to the optimal size.
- the detecting device includes a distance sensor, and the distance value of the terminal that is detected by the acquiring and detecting device from the scanning device, specifically includes:
- the detecting device includes a camera of the terminal, and the distance value of the terminal detected by the acquiring detecting device from the scanning device includes:
- the camera of the terminal comprises a rotary camera or a front camera.
- the scanning device comprises a scanning code gun.
- the image comprises a graphic code.
- the detecting device is a third-party detecting device other than the terminal, and the detecting device establishes a short-range wireless connection with the terminal;
- the obtaining the distance value of the terminal from the scanning device that is detected by the detecting device includes:
- the detecting device is located in the scanning device, and the scanning device establishes a short-range wireless connection with the terminal;
- the obtaining the distance value of the terminal from the scanning device that is detected by the detecting device includes:
- the distance value of the scanning device sent by the scanning device from the terminal is detected by the detecting device in the scanning device.
- the short-range wireless comprises one of Bluetooth, infrared, wireless local area network, WIFI, ultra-wideband communication, Zifeng, and near field communication.
- the internal function module and structure of the image display device are described in FIG. 10, and the substantial execution body of the image display device may be an electronic device, including:
- a memory for storing processor executable instructions
- processor is configured to:
- the size of the currently displayed face image is adjusted to the optimal size.
- the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processor, digital signal processor (English: Digital Signal Processor) , referred to as: DSP), ASIC (English: Application Specific Integrated Circuit, referred to as: ASIC).
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the foregoing memory may be a read-only memory (English: read-only memory, abbreviation: ROM), a random access memory (English) :random access memory (abbreviation: RAM), flash memory, hard disk or solid state disk.
- the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- User Interface Of Digital Computer (AREA)
- Image Analysis (AREA)
- Controls And Circuits For Display Device (AREA)
- Telephone Function (AREA)
Abstract
一种图像显示方法及装置和电子设备,通过检测设备检测终端距离扫描设备的距离值;所述检测设备用于扫描所述展示的图像(220);然后根据这个距离值,计算所述图像的最佳大小(230);从而将当前展示的图像的大小调整为所述最佳大小(240)。
Description
本说明书实施例涉及互联网技术领域,尤其涉及一种图像显示方法及装置和电子设备。
随着互联网技术的不断发展,特别是移动终端的不断普及,通过扫描图像执行相关业务的场景越来越多,例如,扫码取票、扫码支付。在实际使用时,用户将展示有待扫描图像的终端面向扫描设备,由于终端展示的图像大小通常是固定的,而每个用户终端距离扫描设备又是不固定的,很多情况下,需要工作人员不断移动扫描设备寻找最佳的距离完成扫描。例如如果用户距离扫描设备较远,对于扫描设备来说,图像会显得很小,不容易扫描成功,需要操作扫描设备的工作人员移动扫描设备贴近终端,并寻找到最佳的距离来完成扫描;如果用户距离扫描设备较近,对于扫描设备来说,图像会显得太大,同样不容易扫描成功,需要工作人员移动扫描设备远离终端,并寻找到最佳的距离来完成扫描。
需要提供更为高效地图像显示方案来提高扫描成功率。
发明内容
本说明书实施例提供的一种图像显示方法及装置和电子设备:
根据本说明书实施例的第一方面,提供一种图像显示方法,所述方法包括:
确定当前终端中展示的图像;
获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;
根据所述距离值,计算所述图像的最佳大小;
将当前展示的图像的大小调整为所述最佳大小。
根据本说明书实施例的第二方面,提供一种图像显示方法,所述方法包括:
确定当前终端中展示的人脸图像;
获取检测设备检测到的所述终端距离所述人脸的距离值;
根据所述距离值,计算所述人脸图像的最佳大小;
将当前展示的人脸图像的大小调整为所述最佳大小。
根据本说明书实施例的第三方面,提供一种图像显示装置,所述装置包括:
确定单元,确定当前终端中展示的图像;
获取单元,获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;
计算单元,根据所述距离值,计算所述图像的最佳大小;
显示单元,将当前展示的图像的大小调整为所述最佳大小。
根据本说明书实施例的第四方面,提供一种图像显示装置,所述装置包括:
确定单元,确定当前终端中展示的人脸图像;
获取单元,获取检测设备检测到的所述终端距离所述人脸的距离值;
计算单元,根据所述距离值,计算所述人脸图像的最佳大小;
显示单元,将当前展示的人脸图像的大小调整为所述最佳大小。
根据本说明书实施例的第五方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
确定当前终端中展示的图像;
获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;
根据所述距离值,计算所述图像的最佳大小;
将当前展示的图像的大小调整为所述最佳大小。
根据本说明书实施例的第五方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
确定当前终端中展示的人脸图像;
获取检测设备检测到的所述终端距离所述人脸的距离值;
根据所述距离值,计算所述人脸图像的最佳大小;
将当前展示的人脸图像的大小调整为所述最佳大小。
通过本说明书实施例,用户可以在距离扫描设备的任意位置,将展示有待扫描图像的终端面向扫描设备;所述终端中的检测设备可以检测该终端距离扫描设备的距离值;然后,终端根据所述检测设备检测到的距离值,计算出该图像最方便扫描设备进行扫描的最佳大小,最后可以将展示的图像的大小调整为最佳大小;由于调整后图像的大小最方便扫描设备进行扫描,所以可以实现提高扫描成功率。
图1是本说明书一实施例提供的实现图像显示的系统结构图;
图2是本说明书一实施例提供的图像显示方法的流程图;
图3是本说明书一实施例提供的检测设备的示意图;
图4是本说明书一实施例提供的实现图像显示的系统结构图;
图5是本说明书一实施例提供的图像显示方法的流程图;
图6是本说明书一实施例提供的实现图像显示的系统结构图;
图7是本说明书一实施例提供的图像显示方法的流程图;
图8是本说明书一实施例提供的图像显示方法的流程图;
图9是本说明书一实施例提供的图像显示装置的模块示意图;
图10是本说明书一实施例提供的图像显示装置的模块示意图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
如前所述,在实际使用时,用户将展示有待扫描图像的终端面向扫描设备,由于终端展示的图像大小通常是固定的,而每个用户终端距离扫描设备又是不固定的,很多情况下,需要工作人员不断移动扫描设备寻找最佳的距离完成扫描。例如如果用户距离扫描设备较远,对于扫描设备来说,图像会显得很小,不容易扫描成功,需要操作扫描设备的工作人员移动扫描设备贴近终端,并寻找到最佳的距离来完成扫描;如果用户距离扫描设备较近,对于扫描设备来说,图像会显得太大,同样不容易扫描成功,需要工作人员移动扫描设备远离终端,并寻找到最佳的距离来完成扫描。
需要提供更为高效地图像显示方案来提高扫描成功率。
以下请求参考图1所示本说明书实施例中提供的实现图像显示的系统架 构图。图1所示该系统100可以包括用户的终端11、扫描设备12。
其中,终端11可以用于展示待扫描的图像111,并且所述终端11中还可以设置有检测设备112,所述检测设备112可以用于检测所述终端11距离所述扫描设备12的距离值。
扫描设备12可以用于扫描终端11展示的图像111,从而执行相关的业务流程,例如支付场景中,终端11展示的可以是支付码图像(如图1中所示),而扫描设备12通过扫码可以完成收款流程;再例如取票场景中,终端11展示的可以是取票码图像,而扫描设备12通过扫码可以完成身份验证,从而发放票据(可以是纸质或者电子的)。
在实际使用时,用户可以在距离扫描设备12的任意位置,将展示有待扫描图像111的终端11面向扫描设备12;所述终端11基于检测设备检测到的距离值可以自动调整所展示图像111的大小(例如将原本较小的图像111放大,或者将原本较大的图像111缩小),从而方便扫描设备12高效地进行扫描。
以下请结合图2所示的例子介绍本说明书一种实现图像显示的方法的实施例,如图2所示,该方法可以包括以下步骤:
步骤210:确定当前终端中展示的图像。
本实施例中,所述图像可以是指图形码,例如包括二维码、条形码等。
步骤220:获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像。
在一种实现方式中:所述检测设备包括距离传感器,则所述步骤220获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:
获取距离传感器检测到的所述终端距离扫描设备的距离值。
一般的,终端可以设置有距离传感器(如图3中所示),本说明书中距离传感器可以用于检测终端距离扫描设备的距离值,并在检测出距离值后上报给终端。
距离传感器通过可以是由两个元器件组成,一个可以发射红外线,另一 个可以检测红外线。工作原理如下,发射的红外线在遇到障碍物(本说明书中所述的扫描设备)后会发生反射,反射的红外线被检测红外线的元器件检测到。根据发射红外线到检测到红外线的时间,以及红外线的速度,就可以计算出终端距离障碍物的距离值。
在另一种实现方式中:所述检测设备包括所述终端的摄像头,所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:
获取所述摄像头捕捉到的扫描设备图像;
根据所述扫描设备图像,确定所述终端距离扫描设备的距离值。
一般的,所述终端的摄像头包括前置摄像头(如图3中所示);还可以是旋转式摄像头、翻转式摄像头等。
终端在获取到所述摄像头捕捉到的扫描设备图像之后;可以根据图像处理算法计算出当前终端距离扫描设备的距离值。
此外,所述距离值,还可以通过距离传感器结合摄像头共同确定到的较为精确的距离值。
本说明书中,所述扫描设备可以包括手持的扫码枪或者固定的扫码器等。
步骤230:根据所述距离值,计算所述图像的最佳大小。
在一种实现方式中,终端可以预设的距离值与最佳大小的对应关系;
例如,3米对应的最佳大小为3cm*3cm;
5米对应的最佳大小为5cm*5cm;
10对应的最佳大小为10cm*10cm;
当前,最终确定的最佳大小还需要根据终端实际屏幕大小决定,例如,计算出的最佳大小超过了终端屏幕大小的情况下,则最终确定的最佳大小可以为屏幕大小。
在另一种实现方式中,终端可以根据本地计算模型,计算出最佳大小。
所述计算模型可以是业务方服务器提供的,例如支付场景中,所述第三方服务器即为支付应用平台;在取票场景中,所述第三方服务器既可以是售票应用平台。
所述模型通常可以是基于海量距离值与最佳大小的数据训练得到的。终端将获取到的距离值输入到该计算模型,就可以得到输出的最佳大小。
步骤240:将当前展示的图像的大小调整为所述最佳大小。
用户可以在距离扫描设备的任意位置,将展示有待扫描图像的终端面向扫描设备;所述终端中的检测设备可以检测该终端距离扫描设备的距离值;然后,终端根据所述检测设备检测到的距离值,计算出该图像最方便扫描设备进行扫描的最佳大小,最后可以将展示的图像的大小调整为最佳大小;由于调整后图像的大小最方便扫描设备进行扫描,所以可以实现提高扫描成功率。
以下请求参考图4所示本说明书实施例中提供的另一种实现图像显示的系统架构图。图4所示该系统400可以包括用户的终端41、检测设备42、扫描设备43。
其中,终端41可以用于展示待扫描的图像411。
检测设备42可以用于检测终端41距离扫描设备43的距离值。
所述终端41与所述检测设备42中可以集成有适用于短距离无线通信的模块,如蓝牙(Bluetooth)模块、红外(IrDA)模块、无线局域网(WI-FI或WLAN,大多采用802.11系列协议)模块、WIFI直连(Wi-Fi Direct)模块、超宽带通信(Ultra Wide Band)模块、紫峰(Zigbee)模块、近场通信(Near Field Communication,NFC)模块等,以实现短距离无线信号的收发。通过所述短距离无线通信的模块,所述终端41与所述检测设备42之间可以建立短距离无线连接412,如此所述检测设备42在检测出终端41距离扫描设备43的距离值后,可以通过所述短距离无线连接412将距离值发送给终端41。
扫描设备43可以用于扫描终端41展示的图像411,从而执行相关的业务流程,例如支付场景中,终端41展示的可以是支付码图像(如图4中所示),而扫描设备43通过扫码可以完成收款流程;再例如取票场景中,终端41展示的可以是取票码图像,而扫描设备43通过扫码可以完成身份验证,从而发 放票据(可以是纸质或者电子的)。
在实际使用时,用户可以在距离扫描设备43的任意位置,将展示有待扫描图像411的终端41面向扫描设备43;所述检测设备42将检测到的距离值发送给终端41;所述终端41根据接收到的距离值自动调整所展示图像411的大小(例如将原本较小的图像411放大,或者将原本较大的图像411缩小),从而方便扫描设备43高效地进行扫描。
以下请结合图5所示的例子介绍本说明书一种实现图像显示的方法的实施例,如图2所示,该方法可以包括以下步骤:
步骤510:确定当前终端中展示的图像。
本步骤与前述步骤110相同,此处不再赘述。
步骤550:接收检测设备通过短距离无线连接发送的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像。
所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
所述检测设备中可以集成有距离传感器和/或摄像头;所述距离传感器、摄像头与前述实施例中相同,此次不再赘述。
步骤530:根据所述距离值,计算所述图像的最佳大小。
本步骤与前述步骤130相同,此处不再赘述。
步骤540:将当前展示的图像的大小调整为所述最佳大小。
本步骤与前述步骤140相同,此处不再赘述。
本实施例与上一实施例不同之处在于,本实施例中所述检测设备为所述终端之外的第三方检测设备,所述检测设备与所述终端建立有短距离无线连接,所述距离值是检测设备通过短距离无线连接发送的。
以下请求参考图6所示本说明书实施例中提供的另一种实现图像显示的系统架构图。图6所示该系统600可以包括用户的终端61、扫描设备62。
其中,终端61可以用于展示待扫描的图像611。
扫描设备62可以用于扫描终端61展示的图像611,从而执行相关的业 务流程,例如支付场景中,终端61展示的可以是支付码图像(如图中所示),而扫描设备62通过扫码可以完成收款流程;再例如取票场景中,终端61展示的可以是取票码图像,而扫描设备63通过扫码可以完成身份验证,从而发放票据(可以是纸质或者电子的)。
所述扫描设备62中还可以集成有检测设备621,所述检测设备621可以用于检测所述扫描设备62距离所述终端61的距离值。
所述终端61与所述扫描设备62中可以集成有适用于短距离无线通信的模块,如蓝牙(Bluetooth)模块、红外(IrDA)模块、无线局域网(WI-FI或WLAN,大多采用802.11系列协议)模块、WIFI直连(Wi-Fi Direct)模块、超宽带通信(Ultra Wide Band)模块、紫峰(Zigbee)模块、近场通信(Near Field Communication,NFC)模块等,以实现短距离无线信号的收发。通过所述短距离无线通信的模块,所述终端61与所述扫描设备62之间可以建立短距离无线连接622,如此所述检测设备621在检测出扫描设备62距离终端61的距离值后,可以通过所述短距离无线连接622将距离值发送给终端41。
在实际使用时,用户可以在距离扫描设备62的任意位置,将展示有待扫描图像611的终端61面向扫描设备62;所述检测设备621将检测到的距离值发送给终端61;所述终端61根据接收到的距离值自动调整所展示图像611的大小(例如将原本较小的图像611放大,或者将原本较大的图像611缩小),从而方便扫描设备62高效地进行扫描。
以下请结合图7所示的例子介绍本说明书一种实现图像显示的方法的实施例,如图7所示,该方法可以包括以下步骤:
步骤710:确定当前终端中展示的图像。
本步骤与前述步骤110相同,此处不再赘述。
步骤720:接收扫描设备通过短距离无线连接发送的所述扫描设备距离所述终端的距离值;所述距离值由所述扫描设备中检测设备检测得到,所述扫描设备用于扫描所述展示的图像。
所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
所述检测设备可以包括距离传感器和/或摄像头;所述距离传感器、摄像头与前述实施例中相同,此次不再赘述。
值得一提的是,所述短距离无线模块集成在扫描设备时,所述检测设备检测到的距离值可以是由所述检测设备通过短距离无线连接发送的;
在另一种实现方式中,所述短距离无线模块还可以是集成在所述检测设备中,那么,所述距离值可以直接由所述检测设备通过短距离无线连接发送,而不用经过所述扫描设备。
步骤730:根据所述距离值,计算所述图像的最佳大小。
本步骤与前述步骤130相同,此处不再赘述。
步骤740:将当前展示的图像的大小调整为所述最佳大小。
本步骤与前述步骤140相同,此处不再赘述。
本实施例与上一实施例不同之处在于,本实施例中
所述检测设备位于所述扫描设备,所述扫描设备与所述终端建立有短距离无线连接,所述距离值是扫描设备通过短距离无线连接发送的。
以下请参考图8所示的例子介绍本说明书一种实现图像显示的方法的实施例,如图8所示,该方法可以包括以下步骤:
步骤810:确定当前终端中展示的人脸图像;
步骤820:获取检测设备检测到的所述终端距离所述人脸的距离值;
步骤830:根据所述距离值,计算所述人脸图像的最佳大小;
步骤840:将当前展示的人脸图像的大小调整为所述最佳大小。
通常人脸识别过程中,需要用户将摄像头拍摄到的人脸图像限制到一个预设范围,由于距离原因,用户需要不断移动终端使得人脸图像大小刚好符合识别要求。本实施例可以应用于人脸识别场景,基于终端中的检测设备检测到终端距离人脸的距离值;并根据所述距离值,计算出该人脸图像最方便进行人脸识别的最佳大小,最后可以将展示的人脸图像的大小调整为最佳大 小;由于调整后人脸图像的大小最方便识别,所以可以实现提高人脸识别的成功率。
与前述图像显示方法实施例相对应,本说明书还提供了图像显示装置的实施例。所述装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,本说明书图像显示装置所在设备的一种硬件结构可以包括处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常根据该图像显示实际功能,还可以包括其他硬件,对此不再赘述。
参见图9,为本说明书一实施例提供的图像显示装置的模块图,所述装置对应了图2所示实施例,所述装置包括:
确定单元910,确定当前终端中展示的图像;
获取单元920,获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;
计算单元930,根据所述距离值,计算所述图像的最佳大小;
显示单元940,将当前展示的图像的大小调整为所述最佳大小。
在一个可选的实施例中:
所述检测设备包括距离传感器,所述获取单元920,具体包括:
获取距离传感器检测到的所述终端距离扫描设备的距离值。
在一个可选的实施例中:
所述检测设备包括所述终端的摄像头,所述获取单元920,具体包括:
获取子单元,获取所述摄像头捕捉到的扫描设备图像;
确定子单元,根据所述扫描设备图像,确定所述终端距离扫描设备的距离值。
在一个可选的实施例中:
所述终端的摄像头包括旋转式摄像头或者前置摄像头。
在一个可选的实施例中:
所述扫描设备包括扫码枪。
在一个可选的实施例中:
所述图像包括图形码。
在一个可选的实施例中:
所述检测设备为所述终端之外的第三方检测设备,所述检测设备与所述终端建立有短距离无线连接;
所述获取单元920,具体包括:
接收检测设备通过短距离无线连接发送的所述终端距离扫描设备的距离值。
在一个可选的实施例中:
所述检测设备位于所述扫描设备,所述扫描设备与所述终端建立有短距离无线连接;
所述获取单元920,具体包括:
接收扫描设备通过短距离无线连接发送的所述扫描设备距离所述终端的距离值;所述距离值由所述扫描设备中检测设备检测得到。
在一个可选的实施例中:
所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
参见图10,为本说明书一实施例提供的图像显示装置的模块图,所述装置对应了图8所示实施例,所述装置包括:
确定单元1010,确定当前终端中展示的人脸图像;
获取单元1020,获取检测设备检测到的所述终端距离所述人脸的距离值;
计算单元1030,根据所述距离值,计算所述人脸图像的最佳大小;
显示单元1040,将当前展示的人脸图像的大小调整为所述最佳大小。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算 机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上图9描述了图像显示装置的内部功能模块和结构示意,其实质上的执行主体可以为一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
确定当前终端中展示的图像;
获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;
根据所述距离值,计算所述图像的最佳大小;
将当前展示的图像的大小调整为所述最佳大小。
可选的,所述检测设备包括距离传感器,所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:
获取距离传感器检测到的所述终端距离扫描设备的距离值。
可选的,所述检测设备包括所述终端的摄像头,所述获取检测设备检测 到的所述终端距离扫描设备的距离值,具体包括:
获取所述摄像头捕捉到的扫描设备图像;
根据所述扫描设备图像,确定所述终端距离扫描设备的距离值。
可选的,所述终端的摄像头包括旋转式摄像头或者前置摄像头。
可选的,所述扫描设备包括扫码枪。
可选的,所述图像包括图形码。
可选的,所述检测设备为所述终端之外的第三方检测设备,所述检测设备与所述终端建立有短距离无线连接;
所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:
接收检测设备通过短距离无线连接发送的所述终端距离扫描设备的距离值。
可选的,所述检测设备位于所述扫描设备,所述扫描设备与所述终端建立有短距离无线连接;
所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:
接收扫描设备通过短距离无线连接发送的所述扫描设备距离所述终端的距离值;所述距离值由所述扫描设备中检测设备检测得到。
可选的,所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
以上图10描述了图像显示装置的内部功能模块和结构示意,其实质上的执行主体可以为一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
确定当前终端中展示的人脸图像;
获取检测设备检测到的所述终端距离所述人脸的距离值;
根据所述距离值,计算所述人脸图像的最佳大小;
将当前展示的人脸图像的大小调整为所述最佳大小。
在上述电子设备的实施例中,应理解,该处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于电子设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本说明书的其它实施方案。本说明书旨在涵盖本说明书的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本说明书的一般性原理并包括本说明书未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本说明书的真正范围和精神由下面的权利要求指出。
应当理解的是,本说明书并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本说明书的范围仅由所附的权利要求来限制。
Claims (22)
- 一种图像显示方法,所述方法包括:确定当前终端中展示的图像;获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;根据所述距离值,计算所述图像的最佳大小;将当前展示的图像的大小调整为所述最佳大小。
- 根据权利要求1所述的方法,所述检测设备包括距离传感器,所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:获取距离传感器检测到的所述终端距离扫描设备的距离值。
- 根据权利要求1所述的方法,所述检测设备包括所述终端的摄像头,所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:获取所述摄像头捕捉到的扫描设备图像;根据所述扫描设备图像,确定所述终端距离扫描设备的距离值。
- 根据权利要求3所述的方法,所述终端的摄像头包括旋转式摄像头或者前置摄像头。
- 根据权利要求2或3所述的方法,所述扫描设备包括扫码枪。
- 根据权利要求1所述的方法,所述图像包括图形码。
- 根据权利要求1所述的方法,所述检测设备为所述终端之外的第三方检测设备,所述检测设备与所述终端建立有短距离无线连接;所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:接收检测设备通过短距离无线连接发送的所述终端距离扫描设备的距离值。
- 根据权利要求1所述的方法,所述检测设备位于所述扫描设备,所述扫描设备与所述终端建立有短距离无线连接;所述获取检测设备检测到的所述终端距离扫描设备的距离值,具体包括:接收扫描设备通过短距离无线连接发送的所述扫描设备距离所述终端的距离值;所述距离值由所述扫描设备中检测设备检测得到。
- 根据权利要求7或8所述的方法,所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
- 一种图像显示方法,所述方法包括:确定当前终端中展示的人脸图像;获取检测设备检测到的所述终端距离所述人脸的距离值;根据所述距离值,计算所述人脸图像的最佳大小;将当前展示的人脸图像的大小调整为所述最佳大小。
- 一种图像显示装置,所述装置包括:确定单元,确定当前终端中展示的图像;获取单元,获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;计算单元,根据所述距离值,计算所述图像的最佳大小;显示单元,将当前展示的图像的大小调整为所述最佳大小。
- 根据权利要求11所述的装置,所述检测设备包括距离传感器,所述获取单元,具体包括:获取距离传感器检测到的所述终端距离扫描设备的距离值。
- 根据权利要求11所述的装置,所述检测设备包括所述终端的摄像头,所述获取单元,具体包括:获取子单元,获取所述摄像头捕捉到的扫描设备图像;确定子单元,根据所述扫描设备图像,确定所述终端距离扫描设备的距离值。
- 根据权利要求13所述的装置,所述终端的摄像头包括旋转式摄像头或者前置摄像头。
- 根据权利要求12或13所述的装置,所述扫描设备包括扫码枪。
- 根据权利要求11所述的装置,所述图像包括图形码。
- 根据权利要求1所述的装置,所述检测设备为所述终端之外的第三方检测设备,所述检测设备与所述终端建立有短距离无线连接;所述单元,具体包括:接收检测设备通过短距离无线连接发送的所述终端距离扫描设备的距离值。
- 根据权利要求11所述的装置,所述检测设备位于所述扫描设备,所述扫描设备与所述终端建立有短距离无线连接;所述获取单元,具体包括:接收扫描设备通过短距离无线连接发送的所述扫描设备距离所述终端的距离值;所述距离值由所述扫描设备中检测设备检测得到。
- 根据权利要求17或18所述的装置,所述短距离无线包括蓝牙、红外、无线局域网、WIFI、超宽带通信、紫峰、近场通信的一种。
- 一种图像显示装置,所述装置包括:确定单元,确定当前终端中展示的人脸图像;获取单元,获取检测设备检测到的所述终端距离所述人脸的距离值;计算单元,根据所述距离值,计算所述人脸图像的最佳大小;显示单元,将当前展示的人脸图像的大小调整为所述最佳大小。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:确定当前终端中展示的图像;获取检测设备检测到的所述终端距离扫描设备的距离值;所述扫描设备用于扫描所述展示的图像;根据所述距离值,计算所述图像的最佳大小;将当前展示的图像的大小调整为所述最佳大小。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:确定当前终端中展示的人脸图像;获取检测设备检测到的所述终端距离所述人脸的距离值;根据所述距离值,计算所述人脸图像的最佳大小;将当前展示的人脸图像的大小调整为所述最佳大小。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/686,415 US11064112B2 (en) | 2017-08-24 | 2019-11-18 | Image display method and device, and electronic device |
| US16/945,713 US11044394B2 (en) | 2017-08-24 | 2020-07-31 | Image display method and device, and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710734888.5A CN107633398A (zh) | 2017-08-24 | 2017-08-24 | 图像显示方法及装置和电子设备 |
| CN201710734888.5 | 2017-08-24 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/686,415 Continuation US11064112B2 (en) | 2017-08-24 | 2019-11-18 | Image display method and device, and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019037698A1 true WO2019037698A1 (zh) | 2019-02-28 |
Family
ID=61100507
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/101445 Ceased WO2019037698A1 (zh) | 2017-08-24 | 2018-08-21 | 图像显示方法及装置和电子设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (2) | US11064112B2 (zh) |
| CN (1) | CN107633398A (zh) |
| TW (1) | TW201913484A (zh) |
| WO (1) | WO2019037698A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107633398A (zh) | 2017-08-24 | 2018-01-26 | 阿里巴巴集团控股有限公司 | 图像显示方法及装置和电子设备 |
| US10929630B2 (en) | 2019-06-04 | 2021-02-23 | Advanced New Technologies Co., Ltd. | Graphic code display method and apparatus |
| CN110334554A (zh) * | 2019-06-04 | 2019-10-15 | 阿里巴巴集团控股有限公司 | 图形码的展示方法及装置 |
| CN115049805B (zh) * | 2022-05-26 | 2024-09-10 | 歌尔股份有限公司 | 一种vr设备透视的方法、装置、vr设备及介质 |
| CN116703718B (zh) * | 2022-09-08 | 2024-03-22 | 荣耀终端有限公司 | 一种图像放大方法及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102833486A (zh) * | 2012-07-05 | 2012-12-19 | 深圳泰山在线科技有限公司 | 一种实时调节视频图像中人脸显示比例的方法及装置 |
| US20140105450A1 (en) * | 2012-10-17 | 2014-04-17 | Robert Berkeley | System and method for targeting and reading coded content |
| CN105787404A (zh) * | 2014-12-22 | 2016-07-20 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
| CN106778434A (zh) * | 2016-11-25 | 2017-05-31 | 广州视源电子科技股份有限公司 | 一种在显示区域上动态调整二维码的方法及其装置 |
| CN107633398A (zh) * | 2017-08-24 | 2018-01-26 | 阿里巴巴集团控股有限公司 | 图像显示方法及装置和电子设备 |
Family Cites Families (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4920255A (en) * | 1988-10-31 | 1990-04-24 | Stephen C. Gabeler | Automatic incremental focusing scanner system |
| US5513264A (en) * | 1994-04-05 | 1996-04-30 | Metanetics Corporation | Visually interactive encoding and decoding of dataforms |
| FI114961B (fi) | 2001-12-31 | 2005-01-31 | Nokia Corp | Menetelmä ja laite kuvan muodostamiseksi elektronisessa laitteessa |
| US7203911B2 (en) * | 2002-05-13 | 2007-04-10 | Microsoft Corporation | Altering a display on a viewing device based upon a user proximity to the viewing device |
| US20130119124A1 (en) * | 2004-11-29 | 2013-05-16 | Leigh M. Rothschild | Combining an image with a symbology selected image |
| WO2007127385A2 (en) * | 2006-04-27 | 2007-11-08 | Codebroker Llc | Customizing barcode images for particular displays |
| US20080073434A1 (en) * | 2006-09-26 | 2008-03-27 | Epshteyn Alan J | System and method for an image decoder with feedback |
| US7639935B2 (en) * | 2007-03-28 | 2009-12-29 | Sony Ericsson Mobile Communications Ab | Zoom control |
| US8209635B2 (en) * | 2007-12-20 | 2012-06-26 | Sony Mobile Communications Ab | System and method for dynamically changing a display |
| JP2010176170A (ja) * | 2009-01-27 | 2010-08-12 | Sony Ericsson Mobilecommunications Japan Inc | 表示装置、表示制御方法および表示制御プログラム |
| US20110084897A1 (en) | 2009-10-13 | 2011-04-14 | Sony Ericsson Mobile Communications Ab | Electronic device |
| US8471889B1 (en) * | 2010-03-11 | 2013-06-25 | Sprint Communications Company L.P. | Adjusting an image for video conference display |
| US8515491B2 (en) * | 2011-07-28 | 2013-08-20 | Qualcomm Innovation Center, Inc. | User distance detection for enhanced interaction with a mobile device |
| US9916538B2 (en) | 2012-09-15 | 2018-03-13 | Z Advanced Computing, Inc. | Method and system for feature detection |
| KR20140011215A (ko) | 2012-07-18 | 2014-01-28 | 삼성전자주식회사 | 촬영 장치, 그의 촬영 제어 방법 및 안구 인식 장치 |
| CN103914130A (zh) | 2013-01-05 | 2014-07-09 | 鸿富锦精密工业(武汉)有限公司 | 显示装置及调整显示装置观测距离的方法 |
| JP5861218B2 (ja) | 2013-03-28 | 2016-02-16 | 株式会社東芝 | 携帯端末装置、表示制御方法およびプログラム |
| WO2015027196A1 (en) | 2013-08-22 | 2015-02-26 | Bespoke, Inc. | Method and system to create custom products |
| US20160012465A1 (en) * | 2014-02-08 | 2016-01-14 | Jeffrey A. Sharp | System and method for distributing, receiving, and using funds or credits and apparatus thereof |
| US9813693B1 (en) * | 2014-06-27 | 2017-11-07 | Amazon Technologies, Inc. | Accounting for perspective effects in images |
| US9424570B2 (en) * | 2014-08-13 | 2016-08-23 | Paypal, Inc. | On-screen code stabilization |
| CN106919247B (zh) * | 2015-12-25 | 2020-02-07 | 北京奇虎科技有限公司 | 虚拟影像展示方法及装置 |
| KR20170139408A (ko) | 2016-06-09 | 2017-12-19 | 엘지전자 주식회사 | 듀얼 카메라가 장착된 동영상 촬영 장치 |
| US9704216B1 (en) * | 2016-08-04 | 2017-07-11 | Le Technology | Dynamic size adjustment of rendered information on a display screen |
| CN106529449A (zh) * | 2016-11-03 | 2017-03-22 | 英华达(上海)科技有限公司 | 自动调整显示画面比例的方法及其显示装置 |
-
2017
- 2017-08-24 CN CN201710734888.5A patent/CN107633398A/zh active Pending
-
2018
- 2018-05-24 TW TW107117720A patent/TW201913484A/zh unknown
- 2018-08-21 WO PCT/CN2018/101445 patent/WO2019037698A1/zh not_active Ceased
-
2019
- 2019-11-18 US US16/686,415 patent/US11064112B2/en active Active
-
2020
- 2020-07-31 US US16/945,713 patent/US11044394B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102833486A (zh) * | 2012-07-05 | 2012-12-19 | 深圳泰山在线科技有限公司 | 一种实时调节视频图像中人脸显示比例的方法及装置 |
| US20140105450A1 (en) * | 2012-10-17 | 2014-04-17 | Robert Berkeley | System and method for targeting and reading coded content |
| CN105787404A (zh) * | 2014-12-22 | 2016-07-20 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
| CN106778434A (zh) * | 2016-11-25 | 2017-05-31 | 广州视源电子科技股份有限公司 | 一种在显示区域上动态调整二维码的方法及其装置 |
| CN107633398A (zh) * | 2017-08-24 | 2018-01-26 | 阿里巴巴集团控股有限公司 | 图像显示方法及装置和电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20200366833A1 (en) | 2020-11-19 |
| CN107633398A (zh) | 2018-01-26 |
| US20200084370A1 (en) | 2020-03-12 |
| TW201913484A (zh) | 2019-04-01 |
| US11044394B2 (en) | 2021-06-22 |
| US11064112B2 (en) | 2021-07-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109409161B (zh) | 图形码识别方法、装置、终端及存储介质 | |
| US9953506B2 (en) | Alarming method and device | |
| WO2019037698A1 (zh) | 图像显示方法及装置和电子设备 | |
| US20220405733A1 (en) | Payment Method and Electronic Device | |
| RU2731370C1 (ru) | Способ распознавания живого организма и терминальное устройство | |
| CN111464716B (zh) | 一种证件扫描方法、装置、设备及存储介质 | |
| KR102251483B1 (ko) | 영상을 처리하는 전자 장치 및 방법 | |
| KR102220443B1 (ko) | 깊이 정보를 활용하는 전자 장치 및 방법 | |
| CN108022274B (zh) | 图像处理方法、装置、计算机设备和计算机可读存储介质 | |
| CN115525383B (zh) | 壁纸显示方法、装置、移动终端及存储介质 | |
| CN108256853B (zh) | 一种支付方法和移动终端 | |
| US20200294022A1 (en) | Product checkout using a client device | |
| CN107995422B (zh) | 图像拍摄方法和装置、计算机设备、计算机可读存储介质 | |
| EP4060976A1 (en) | Electronic device comprising camera and method thereof | |
| WO2014125398A1 (en) | Object detection using difference of image frames | |
| CN107193820B (zh) | 位置信息获取方法、装置及设备 | |
| CN110659895A (zh) | 支付方法、装置、电子设备及介质 | |
| CN108596600B (zh) | 一种信息处理方法、终端 | |
| CN110517035B (zh) | 一种信息显示方法及移动终端 | |
| CN107257430B (zh) | 一种拍照控制方法、终端及计算机可读存储介质 | |
| CN111723615A (zh) | 对检测物图像进行检测物匹配判定的方法和装置 | |
| HK1248887A1 (zh) | 图像显示方法及装置和电子设备 | |
| CN108174101B (zh) | 一种拍摄方法和装置 | |
| CN114862399A (zh) | 基于脸部识别的支付方法、装置、电子设备和存储介质 | |
| US9877163B2 (en) | Method for detecting synchronized terminal with pose similar to reference pose data, method for transmitting message, and computer readable storage medium recorded with program therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18849086 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18849086 Country of ref document: EP Kind code of ref document: A1 |