Abstract:
The present invention provides a method and an apparatus for processing a light-field image. The method includes: acquiring a light-field image; acquiring an occlusion tag function of each unit image in the light-field image; determining a cost function for offset estimation of each unit image according to intensity change information and gradient change information that are of each unit image in the light-field image and the occlusion tag function of each unit image; acquiring an offset of each unit image in the light-field image by using the cost function; and reconstructing a high-resolution light field by using the offset of each unit image. An offset of each unit image in a light-field image may first be acquired according to optical flow change information of the light-field image, and then a high-resolution light field is reconstructed by using the offset of each unit image, so as to effectively improve spatial resolution.
Abstract:
A multi-depth-interval refocusing method, apparatus and electronic device are provided. The method includes displaying an image on a display device; acquiring user input, and determining, in the displayed image according to the user input, a refocus area including at least two discontinuous depth intervals, where each depth interval in the at least two discontinuous depth intervals is constituted by at least one depth plane, each depth plane contains at least one focus pixel, and depths of object points corresponding to focus pixels contained on a same depth plane are the same; performing refocusing processing on an image within the refocus area to display a refocused image on the display device, where the refocused image has a visually distinguishable definition difference relative to an area, except the refocus area, in the displayed image; and displaying the refocused image on the display device. Therefore, multi-depth-interval refocusing is implemented.
Abstract:
A flash control method, includes detecting a view operation of electronic ticket information, obtaining a view time of the view operation and corresponding target electronic ticket information, obtaining an effective time range included in the target electronic ticket information, and controlling a flash component to start lighting when the view time matches the effective time range.
Abstract:
A flash control method, includes detecting a view operation of electronic ticket information, obtaining a view time of the view operation and corresponding target electronic ticket information, obtaining an effective time range included in the target electronic ticket information, and controlling a flash component to start lighting when the view time matches the effective time range.
Abstract:
The present invention discloses an apparatus and a method for image acquisition. The apparatus includes: a main lens, a micro lens array, an image sensor, and a focal length control unit; the main lens, the micro lens array, and the image sensor are successively disposed alternately, and the image sensor is configured to: sense an optical signal that is transmitted from the main lens and the micro lens array, and convert the optical signal into an electrical signal; and the focal length control unit is configured to control a focal length of the main lens, a focal length of a micro lens in the micro lens array, or focal lengths of the main lens and the micro lens. The apparatus and the method for image acquisition according to embodiments of the present invention can implement switching between the two light field camera modes, thereby improving user experience.
Abstract:
This application provides a CAN bus circuit and a CAN bus communications method. The CAN bus circuit used for CAN bus communication includes: at least one CAN unit and one bus, where a first CAN unit includes an input port and an output port, the first CAN unit is any one of the at least one CAN unit, the output port is connected to the bus by using a first circuit, the input port is connected to the bus by using a second circuit, a first diode is disposed on the first circuit, and a second diode is disposed on the second circuit.
Abstract:
Disclosed herein is a light field camera, where both a curved shape of a curved microlens array and a curved shape of a curved image sensor are the same as a curved shape of a wide-angle main lens, and a sum of a reciprocal of a vertical distance between the curved microlens array and the curved image sensor and a reciprocal of a vertical distance between the curved microlens array and a virtual image plane of the wide-angle main lens is equal to a reciprocal of a focal length of the curved microlens array, which resolves a problem of poor image quality such as blurring and distortion that is caused when a wide-angle main lens is used in a light field camera and a flat microlens array and a flat image sensor cannot match a curved virtual image plane of the wide-angle main lens.
Abstract:
Disclosed herein is a light field camera, where both a curved shape of a curved microlens array and a curved shape of a curved image sensor are the same as a curved shape of a wide-angle main lens, and a sum of a reciprocal of a vertical distance between the curved microlens array and the curved image sensor and a reciprocal of a vertical distance between the curved microlens array and a virtual image plane of the wide-angle main lens is equal to a reciprocal of a focal length of the curved microlens array, which resolves a problem of poor image quality such as blurring and distortion that is caused when a wide-angle main lens is used in a light field camera and a flat microlens array and a flat image sensor cannot match a curved virtual image plane of the wide-angle main lens.
Abstract:
This application provides a data copying method, system an electronic device, and relates to the field of electronic technologies. According to the data copying method provided in this application, first, after performing a plurality of copy, cut, or drag operations in one or more source applications, a user may copy one or more pieces of data to a target application by performing one paste or drag operation. Then, a visualized interface may be provided for the copied, cut, or dragged data, and different types of data are displayed in different formats on the interface. Further, on the visualized interface, the user may adjust an arrangement order of different data, and may further delete any data. This greatly improves user experience.
Abstract:
A multi-depth-interval refocusing method, apparatus and electronic device are provided. The method includes displaying an image on a display device; acquiring user input, and determining, in the displayed image according to the user input, a refocus area including at least two discontinuous depth intervals, where each depth interval in the at least two discontinuous depth intervals is constituted by at least one depth plane, each depth plane contains at least one focus pixel, and depths of object points corresponding to focus pixels contained on a same depth plane are the same; performing refocusing processing on an image within the refocus area to display a refocused image on the display device, where the refocused image has a visually distinguishable definition difference relative to an area, except the refocus area, in the displayed image; and displaying the refocused image on the display device. Therefore, multi-depth-interval refocusing is implemented.